/* Browse Pages (Movies & TV Shows) */

.browse-page {
    min-height: 100vh;
    padding-bottom: 60px;
}

.browse-header {
    background-color: darkslategray;
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.browse-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.browse-header p {
    font-size: 1rem;
    color: silver;
}

/* Grid Layout */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Styles */
.browse-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.browse-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-poster {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: slategray;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: black;
}

.card-season {
    font-size: 0.9rem;
    color: darkslategray;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-year {
    font-size: 0.85rem;
    color: gray;
    margin-bottom: 6px;
}

.card-genres {
    font-size: 0.8rem;
    color: dimgray;
    margin-bottom: 12px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-rating {
    background-color: black;
    color: gold;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-reviews {
    font-size: 0.8rem;
    color: gray;
}

.card-link {
    display: block;
    text-align: center;
    background-color: darkslategray;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.card-link:hover {
    background-color: black;
}

/* Loading & Empty States */
.loading,
.no-data,
.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: gray;
    font-size: 1rem;
}

.no-data a {
    color: darkslategray;
    text-decoration: underline;
}

.no-data a:hover {
    color: black;
}

.error {
    color: crimson;
}
