:root {
    --netflix-red: #e50914;
    --netflix-black: #000000;
    --netflix-dark-gray: #141414;
    --netflix-gray: #2f2f2f;
    --netflix-light-gray: #8c8c8c;
    --netflix-white: #ffffff;
    --fittelly-orange: #f7a31a;
    --fittelly-orange-hover: #e8941a;
    --body-fonts: "Roboto", sans-serif;
    --title-fonts: "Jost", sans-serif;
}

body {
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    font-family: var(--body-fonts);
}

.container {
    max-width: 1600px;
    padding: 0;
}
.container-fluid {
    margin: 0;
}

/* Hero Section */
.hero-section {
    height: 20vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        url("https://www.fittelly.com/storage/app/public/default-fitdoc-image.jpeg")
            center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: var(--title-fonts);
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    background-color: var(--netflix-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1rem;
    color: var(--netflix-light-gray);
    max-width: 400px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--netflix-gray);
    color: var(--netflix-white);
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--fittelly-orange);
    color: var(--netflix-black);
    transform: translateY(-2px);
}

/* Container for grid of cards */
.media-grid-wrapper {
    display: grid;
    gap: 0.5rem;
    /* thoda kam gap */
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

@media (min-width: 1200px) {
    .media-grid-wrapper {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .media-grid-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .media-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .media-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

.content-card {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    /* adjust agar tumhara image ratio alag ho */
    overflow: hidden;
    border-radius: 6px;
    background: var(--netflix-dark-gray);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0.5rem;
}
.card-caption .card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
@media (max-width: 480px) {
    .card-caption .card-title {
        font-size: 0.75rem;
        font-weight: 500;
        margin: 0;
        color: #fff;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (hover: hover) {
    .content-card:hover {
        transform: scale(1.03);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
        z-index: 5;
    }
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--fittelly-orange);
    border-radius: 50%;
    color: var(--netflix-black);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.content-card:hover .play-icon {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(20, 20, 20, 0.95));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.content-card:hover .card-content {
    opacity: 1;
    visibility: visible;
}

.card-title {
    font-size: 1rem;
    color: var(--netflix-white);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--netflix-light-gray);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-description {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--netflix-light-gray);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: uppercase;
    background: var(--fittelly-orange);
    color: var(--netflix-black);
    z-index: 10;
}

.series-badge {
    background: var(--netflix-red);
    color: var(--netflix-white);
}
.live-badge {
    background: #e50914;
    color: #fff;
}

.upcoming-badge {
    background: #f7a31a;
    color: #000;
}
.badge-scheduled {
    background: #f7a31a;
    color: #000;
}

.ended-badge {
    background: #2f2f2f;
    color: #fff;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    color: var(--netflix-white);
    margin-bottom: 1.2rem;
}

.section-title i {
    color: var(--fittelly-orange);
}
