.movie-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.36s cubic-bezier(.2,.9,.2,1), box-shadow 0.36s ease, filter 0.36s ease;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    will-change: transform, box-shadow;
}

.movie-card:hover {
    transform: translateY(-12px) scale(1.02) rotateX(1deg);
    box-shadow: 0 28px 60px rgba(0,0,0,0.65), 0 8px 28px rgba(192,0,255,0.08);
}

.movie-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.movie-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.22));
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(.2,.9,.2,1), backdrop-filter 0.32s ease;
    backdrop-filter: blur(6px) saturate(120%);
}

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

.movie-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(1rem);
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-card-content {
    transform: translateY(0);
}


.movie-card img,
.movie-card .movie-card-image {
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), filter 0.4s ease;
}
.movie-card:hover img,
.movie-card:hover .movie-card-image {
    transform: scale(1.06) translateY(-4px);
    filter: brightness(1.05) saturate(1.05);
}

.movie-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.movie-card-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, #c000ff, #0078ff);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.movie-card:hover .movie-card-btn {
    opacity: 1;
}

.movie-card-btn:hover {
    transform: scale(1.02);
}

.category-card {
    position: relative;
    height: 12rem;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transition: all 0.5s ease;
}

.category-card:hover .category-card-bg {
    filter: blur(0);
    transform: scale(1.25);
}

.category-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card-gradient {
    opacity: 0.1;
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.category-card-content {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.category-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.category-card-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.category-card-arrow {
    align-self: flex-end;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.category-card-pulse {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card-pulse {
    opacity: 0.3;
    animation: pulse 2s infinite;
}




.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.48);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    z-index: 12;
    transition: transform 0.24s cubic-bezier(.2,.9,.2,1), box-shadow 0.24s ease, background 0.2s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,0.55), inset 0 1px 6px rgba(255,255,255,0.02);
}

.play-btn:focus {
    outline: 3px solid rgba(192,0,255,0.28);
    outline-offset: 4px;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.04);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.55));
}

.play-btn svg {
    width: 22px;
    height: 22px;
    transform: translateX(2px);
    fill: white;
}


.play-btn::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,0,255,0.06), transparent 35%);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 10;
}

.play-btn:hover::before,
.play-btn:focus::before { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }





.watch-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 999px;
    backdrop-filter: blur(6px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.06);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 10;
}

.watch-badge.live {
    background: linear-gradient(90deg, rgba(220,38,38,0.95), rgba(185,28,28,0.95));
    box-shadow: 0 6px 18px rgba(220,38,38,0.28);
}


.movie-card-views {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    transform: translateY(6px);
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity 0.2s ease;
    opacity: 0.95;
}


.horizontal-scroll,
.make-horizontal {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.75rem;
}

.horizontal-scroll > *,
.make-horizontal > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 12rem; 
}

.horizontal-scroll::-webkit-scrollbar,
.make-horizontal::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-thumb,
.make-horizontal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
}

.horizontal-scroll.no-snap { scroll-snap-type: none; }

.movie-card:hover .movie-card-views {
    transform: translateY(0);
}

.tv-channel-card {
    position: relative;
    height: 16rem;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tv-channel-card:hover {
    transform: scale(1.05);
}

.tv-channel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-channel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tv-channel-card:hover .tv-channel-overlay {
    opacity: 0.9;
}

.tv-channel-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #dc2626;
    border-radius: 50px;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

.tv-channel-content {
    position: absolute;
    inset: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tv-channel-name {
    font-size: 1.25rem;
}

.tv-channel-now-playing {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.tv-channel-now-playing-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.tv-channel-now-playing-title {
    font-size: 1rem;
}

.tv-channel-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, #c000ff, #0078ff);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 0 20px rgba(192, 0, 255, 0.5);
}

.tv-channel-card:hover .tv-channel-btn {
    opacity: 1;
}

.sports-card {
    position: relative;
    height: 20rem;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sports-card:hover {
    transform: translateY(-5px) scale(1.03);
}

.sports-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sports-card-overlay {
    position: absolute;
    inset: 0;
    
    transition: background 0.3s ease;
}

.sports-card:hover .sports-card-overlay {
    
}

.sports-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to right, #c000ff, #0078ff);
    border-radius: 50px;
    font-size: 0.875rem;
}

.sports-card-live {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: livePulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sports-card-live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: liveBlink 1s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
    }
}

@keyframes liveBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.3;
    }
}

.sports-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

.sports-card-teams {
    margin-bottom: 1rem;
}

.sports-card-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.sports-card-team-name {
    font-size: 1.25rem;
}

.sports-card-score {
    font-size: 1.5rem;
    background: linear-gradient(to right, #c000ff, #0078ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sports-card-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.sports-card-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.sports-card-vs {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.sports-card-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sports-card:hover .sports-card-actions {
    opacity: 1;
}

.sports-card-btn {
    flex: 1;
    padding: 0.75rem;
    background: linear-gradient(to right, #c000ff, #0078ff);
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(192, 0, 255, 0.5);
}

.sports-card-btn:hover {
    transform: scale(1.02);
}

.sports-card-btn-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sports-card-btn-icon:hover {
    transform: scale(1.1);
}

.search-box {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    transition: 0.3s;
}

.search-box:focus-within {
    border-color: #c000ff;
    box-shadow: 0 0 18px rgba(192, 0, 255, 0.4);
}

.search-icon {
    opacity: 0.7;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.search-tag {
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.search-tag:hover {
    background: linear-gradient(to right, #c000ff, #0078ff);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(192, 0, 255, 0.4);
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulseLive 1.2s infinite;
}

@keyframes pulseLive {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.live-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.live-section-header::before {
    content: '';
    width: 16px;
    height: 16px;
    background: #dc2626;
    border-radius: 50%;
    animation: liveBlink 1s infinite;
    flex-shrink: 0;
}

.tv-channel-live {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: livePulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}



.hotstar-carousel-section {
    position: relative;
    margin-bottom: 2rem;
    animation: slideUp 0.6s ease-out;
}

.hotstar-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.hotstar-carousel-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}


.hotstar-carousel-container {
    position: relative;
    padding: 0 50px;
    user-select: none;
}

.hotstar-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 8px 4px;
    scrollbar-width: none;
    cursor: grab;
}

.hotstar-carousel-track::-webkit-scrollbar { height: 0; display: none; }
.hotstar-carousel-track::-webkit-scrollbar-thumb { background: transparent; }
.hotstar-carousel-track.is-dragging { cursor: grabbing; }


.hotstar-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 180px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.hotstar-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: inherit;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
}


.hotstar-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.hotstar-card:hover .hotstar-card-inner img {
    transform: scale(1.05);
    filter: brightness(1.05);
}


.hotstar-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
    z-index: 2;
}


.hotstar-card-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 4;
    font-size: 13px;
    font-weight: 600;
}

.hotstar-card-rating svg {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
}

.hotstar-card:hover .hotstar-card-rating {
    opacity: 1;
    transform: translateX(0);
}


.hotstar-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.28s ease;
}

.hotstar-card-play svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.hotstar-card:hover .hotstar-card-play {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(0.95);
}


.hotstar-card-info {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    color: #fff;
}

.hotstar-card-title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.hotstar-card-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.hotstar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}


.hotstar-carousel-arrow {
    position: absolute;
    top: 50%;
    margin-top: -22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(10,10,20,0.7), rgba(5,5,10,0.5));
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 50;
    color: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.hotstar-carousel-arrow svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.hotstar-carousel-arrow.left { left: 8px; }
.hotstar-carousel-arrow.right { right: 8px; }

.hotstar-carousel-arrow:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(15,15,25,0.8), rgba(8,8,15,0.6));
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}


@media (max-width: 1024px) {
    .hotstar-card { width: 160px; }
    .hotstar-carousel-arrow { width: 40px; height: 40px; margin-top: -20px; }
    .hotstar-carousel-arrow svg { width: 16px; height: 16px; }
    .hotstar-carousel-container { padding: 0 40px; }
}

@media (max-width: 640px) {
    .hotstar-card { width: 140px; }
    .hotstar-carousel-arrow { width: 36px; height: 36px; margin-top: -18px; }
    .hotstar-carousel-container { padding: 0 36px; }
}


.hotstar-carousel-arrow:focus-visible {
    outline: 2px solid rgba(192,0,255,0.24);
    outline-offset: 3px;
}

.hotstar-card-play:focus-visible {
    outline: 2px solid rgba(0,120,255,0.24);
    outline-offset: 2px;
}

