          /* --- GLOBAL STYLES & VARIABLES --- */
        :root {
            --primary-color: #e50914;
            --secondary-color: #ffffff;
            --dark-color: #141414;
            --body-bg: #101010;
            --card-bg: #1a1a1a;
            --text-color: #f5f5f5;
            --text-muted: #a0a0a0;
            --premium-gold: #ffd700;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--body-bg);
            color: var(--text-color);
            overflow-x: hidden;
            padding-top: 70px; /* Space for fixed top bar */
            padding-bottom: 70px; /* Space for fixed bottom bar on mobile */
        }
        
        a {
            color: var(--secondary-color);
            text-decoration: none;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            font-size: 1rem;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: var(--secondary-color);
        }

        .btn-primary:hover {
            background-color: #f61a26;
            transform: scale(1.05);
        }

        .btn-secondary {
            background-color: rgba(109, 109, 110, 0.7);
            color: var(--secondary-color);
        }
        
        .btn-secondary:hover {
            background-color: rgba(109, 109, 110, 0.9);
        }

        /* Style for the new download button */
        .btn-download {
            background-color: #28a745; /* Green color for download */
            color: var(--secondary-color);
            margin-top: 5px; /* Add some space between buttons */
        }

        .btn-download:hover {
            background-color: #218838;
            transform: scale(1.05);
        }
        
        .page {
            display: none; /* Pages are hidden by default */
            padding: 20px;
            animation: fadeIn 0.5s ease-in-out;
        }

        .page.active {
            display: block; /* Active page is visible */
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- TOP BAR --- */
        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;/* 70px*/
            height: auto;/* 70px*/
            /* background: linear-gradient(to bottom, rgba(19, 245, 11, 0.719) 0%, rgba(243, 247, 6, 0.795) 100%); */
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 9999;
            transition: transform 0.3s ease; /* IMPORTANT */
           /* transition: background-color 0.3s, transform 0.3s ease-in-out; */ /* MODIFIED: Added transform transition */
        }
        
        
        .top-bar.hide {
    transform: translateY(-100%);
}

        .top-bar.scrolled {
            /* background-color: var(--dark-color); */
        }
        
        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 25px;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: auto;/* 700; */
            text-transform: uppercase;
        }

        .main-nav {
            display: none; /* MODIFIED: Hide text links, use side-nav always */
        }

        .main-nav .nav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 5px;
            transition: color 0.3s, background-color 0.3s;
        }

        .main-nav .nav-item:hover, .main-nav .nav-item.active {
            color: var(--secondary-color);
            background-color: rgba(227, 243, 4, 0);
        }
        
        .main-nav .nav-item.active {
            font-weight: 600;
        }

        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .search-container {
            position: relative;
            display: none;
        }

        .search-container .search-icon {
            font-size: 1.2rem;
            cursor: pointer;
        }

        .search-bar {
            width: 0;
            opacity: 0;
            border: 1px solid var(--text-muted);
            background-color: rgba(247, 5, 5, 0);
            color: rgb(251, 250, 255);
            padding: 8px 15px;
            border-radius: 20px;
            transition: all 0.4s ease;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        .search-container.active .search-bar {
            width: auto; /* MODIFIED: Set width to auto for better responsiveness */
            opacity: 1;
        }
        
        .search-container.active .search-icon {
            color: var(--primary-color);
        }

        .user-actions .btn {
            padding: 8px 16px;
            font-size: 0.9rem;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 15px;
            cursor: pointer;
        }
        
        .user-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-color);
        }

        .user-profile .premium-status {
            font-size: 0.8rem;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 4px;
        }
        .user-profile .premium-status.active-plan {
            background-color: var(--premium-gold);
            color: var(--dark-color);
        }
        .user-profile .premium-status.inactive-plan {
            background-color: var(--btn-secondary);
            color: var(--secondary-color);
        }

        .hamburger-menu {
            display: block; /* MODIFIED: Always visible */
            font-size: 1.8rem;
            cursor: pointer;
        }

        /* --- SIDE NAVIGATION (TOGGLE) --- */
        .side-nav {
            position: fixed;
            top: 0;
            left: -300px;
            width: 280px;
            height: 100%;
            background-color: var(--dark-color);
            z-index: 1001;
            padding: 20px;
            padding-top: 80px;
            transition: left 0.4s ease-in-out;
            display: flex;
            flex-direction: column;
        }
        .side-nav.open {
            left: 0;
        }
        .side-nav .nav-item {
            font-size: 1.2rem;
            padding: 15px 10px;
            border-bottom: 1px solid #333;
        }

        /* --- BOTTOM NAVIGATION (MOBILE) --- */
        
        /* =========================
   AI MODE BOTTOM NAV
========================= */

.bottom-nav{
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    height: 68px;

    display: flex;
    justify-content: space-around;
    align-items: center;

    border-radius: 22px;

    background: rgba(25,25,30,0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    overflow: hidden;
    z-index: 9999;
}

/* ===== MOVING BORDER ===== */

.bottom-nav::before{
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 24px;

    background: linear-gradient(
        90deg,
        /*
        #00f0ff,
        #0051ff,
        #7a00ff,
        #ff00d4,
        #ff0040,
        #ff9900,
        #ffee00,
        #00ff99,
        #00f0ff
        */
        #FF9933 33%,
        #FFFFFF 33% 66%,
        #138808 66%
    );

    background-size: 400%;
    animation: moveBorder 15s linear infinite;

    z-index: -2;
}

/* ===== INNER DARK BG ===== */

.bottom-nav::after{
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 20px;

    background: rgba(20,20,25,0.96);

    z-index: -1;
}

/* ===== BORDER ANIMATION ===== */

@keyframes moveBorder{
    0%{
        background-position: 0% 50%;
    }
    100%{
        background-position: 400% 50%;
    }
}

/* =========================
   BUTTON STYLE
========================= */

.bottom-nav-btn{
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    color: gold;
    text-decoration: none;

    transition: 0.3s ease;

    z-index: 5;
}

.bottom-nav-btn i{
    font-size: 22px;
}

.bottom-nav-btn span{
    font-size: 11px;
    font-weight: 500;
}

/* PROFILE IMAGE */

.bottom-nav-btn img{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

/* ===== ACTIVE BUTTON ===== */

.bottom-nav-btn.active{
    color: red;
    transform: translateY(-4px) scale(1.08);
}

/* ACTIVE GLOW */

.bottom-nav-btn.active::before{
    content: "";

    position: absolute;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: linear-gradient(
        45deg,
        #00f0ff,
        #ff00c8,
        #ffee00,
        #00ff99
    );

    filter: blur(16px);

    opacity: 0.9;

    z-index: -1;

    animation: activeGlow 2s infinite alternate;
}

/* GLOW ANIMATION */

@keyframes activeGlow{
    0%{
        transform: scale(0.9);
        opacity: 0.7;
    }

    100%{
        transform: scale(1.15);
        opacity: 1;
    }
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:768px){

    .bottom-nav{
        display: flex;
    }

}


        
        /*
        .bottom-nav {
            display: none; /* Hidden on desktop 
            position: fixed;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: 92%;
            max-width: 3120px;
            height: 60px;
            /* background: linear-gradient(to bottom, rgba(19, 245, 11, 0.719) 0%, rgba(243, 247, 6, 0.795) 100%); *//*background-color: var(--dark-color);*/
            /* border-top: 1px solid #333;            
            border-radius: 35px;
            border: 1px solid rgba(255,255,255,0.15);
            display:flex;
            box-shadow: 0 8px 25px rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: space-around;
            align-items: center;
            /* transition: transform 0.3s ease-in-out; */ /* MODIFIED: Added transform transition 
        }

        .bottom-nav-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: gold; /* rgb(255, 0, 179); */ /*var(--text-muted);
            transition: all 0.2s;
            padding: 5px;
        }

        .bottom-nav-btn i {
            font-size: 1.5rem;
        }

        .bottom-nav-btn span {
            font-size: 0.7rem;
            margin-top: 2px;
        }

        .bottom-nav-btn.active {
            color: var(--primary-color);
            transform: scale(1.1);
        }
        */

        /* --- HOME PAGE: HERO SLIDER --- */
        .hero-slider {
            width: 100%;
            height: 20vh; /* Reduced height */
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            margin-bottom: 40px;
        }
        .hero-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }
        .hero-slide.active {
            opacity: 1;
        }
        .hero-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .hero-slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 40px;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
        }
        .hero-slide-content h2 {
            font-size: 2.2rem; /* Slightly smaller font */
            margin-bottom: 10px;
            color: yellow !important;
        }
        
        
/* =========================================
   HERO SLIDER AI WATCH BUTTON
========================================= */

/* HERO WATCH BUTTON */

.hero-slide-content .btn,
.hero-slide-content .btn-primary{

    position: relative;

    overflow: hidden;

    border: none !important;

    border-radius: 14px;

    background: rgba(20,20,25,0.88) !important;

    color: yellow !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 12px 28px;

    font-weight: 700;

    z-index: 1;

    transition: 0.35s ease;
}

/* MOVING RGB BORDER */

.hero-slide-content .btn::before,
.hero-slide-content .btn-primary::before{

    content: "";

    position: absolute;

    inset: -2px;

    border-radius: 16px;

    background: linear-gradient(
        90deg,
        /*
        #00f0ff,
        #0055ff,
        #7a00ff,
        #ff00c8,
        #ff003c,
        #ff9900,
        #ffee00,
        #00ff99,
        #00f0ff
        */
        #FF9933 33%,
        #FFFFFF 33% 66%,
        #138808 66%
    );

    background-size: 400%;

    animation: heroAiBorder 15s linear infinite;

    z-index: -2;
}

/* INNER GLASS BG */

.hero-slide-content .btn::after,
.hero-slide-content .btn-primary::after{

    content: "";

    position: absolute;

    inset: 2px;

    border-radius: 12px;

    background:
    linear-gradient(
        90deg,
        #0077ff,
        #ff0080
    );

    z-index: -1;
}

/* HOVER EFFECT */

.hero-slide-content .btn:hover,
.hero-slide-content .btn-primary:hover{

    transform: scale(1.06);

    box-shadow:
    0 0 12px #00f0ff,
    0 0 24px #ff00c8,
    0 0 35px #ffee00;
}

/* RGB ANIMATION */

@keyframes heroAiBorder{

    0%{
        background-position: 0% 50%;
    }

    100%{
        background-position: 400% 50%;
    }
}

        
        
        
        /* --- CONTENT SECTIONS & CARDS --- */
        .content-section {
            margin-bottom: 40px;
            margin-top: 50px;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-header h2 {
            font-size: 1.5rem;
            font-weight: 600;
        }

        /* --- NEW: SECTION SEARCH BAR --- */
        .section-search-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .section-search-container .fa-search {
            position: absolute;
            left: 15px;
            color: var(--text-muted);
            pointer-events: none; /* So it doesn't block clicks on the input */
        }

        .section-search-bar {
            background-color: var(--card-bg);
            border: 1px solid #333;
            border-radius: 20px;
            color: var(--text-color);
            padding: 8px 15px 8px 40px; /* Add padding for the icon */
            width: 250px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .section-search-bar::placeholder {
            color: var(--text-muted);
        }

        .section-search-bar:focus {
            outline: none;
            border-color: var(--primary-color);
            background-color: var(--dark-color);
        }


        .category-filter-bar {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding-bottom: 15px;
            margin-bottom: 20px;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        .category-filter-bar::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        .category-btn {
            flex-shrink: 0;
            padding: 8px 18px;
            background-color: green;/* var(--card-bg) */
            color: gold;/* var(--text-muted) */
            border: 3px solid pink;/* #333 */
            border-radius: 10px 30px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .category-btn.active, .category-btn:hover {
            background-color: red;/* var(--primary-color) */
            color: gold;/* var(--secondary-color) */
            border-color: green;/* var(--primary-color) */
        }
        
        
        

/* ===== Provider small logo ===== */
.provider-logo{
   position:absolute;
   top:6px;
   right:6px;
   width:25px;
   height:25px;
   border-radius:50%;
   
   padding:2px;
   z-index:30;
   object-fit:contain;
   
}



        

        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Smaller min size */
            gap: 15px; /* Smaller gap */
        }
        
        .content-card {
            background-color: var(--card-bg);
            border-radius: 10px 30px;/*8px;*/
            box-shadow: 0 2px 8px rgb(40, 2, 255);
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .content-card:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(8, 235, 57, 0.856);
            z-index: 10;
        }
        
        .content-card.hide {
            display: none;
        }
        
        .card-img {
            width: 100%;
            aspect-ratio: 2 / 3;
            /* object-fit: cover; */
            object-fit: fit;
            border-radius: 10px 30px 0 0;
        }
        
        .card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.8) 20%, transparent 60%);
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 10px; /* Smaller padding */
        }
        
        .content-card:hover .card-overlay {
            opacity: 1;
        }

        .card-title {
            font-size: 0.9rem; /* Smaller font size */
            color: gold;
            font-weight: 600;
            margin-bottom: 5px;
            transform: translateY(20px);
            transition: transform 0.3s ease 0.1s;
        }
        .content-card:hover .card-title {
            transform: translateY(0);
        }

        .card-meta {
    font-size: 14px;
    color: yellow;
    margin: 0;        /* ⭐ VERY IMPORTANT */
    line-height: 1.2;
}
        .content-card:hover .card-meta {
            transform: translateY(0);
        }

        .card-actions {
            margin-top: 8px; /* Smaller margin */
            transform: translateY(20px);
            transition: transform 0.3s ease 0.2s;
        }
        .content-card:hover .card-actions {
            transform: translateY(0);
        }

        .premium-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: var(--premium-gold);
            color: var(--dark-color);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 700;
            z-index: 5;
        }
        
        /* Trending Post Style */
        .trending-card {
            display: flex;
            align-items: flex-end;
        }
        .trending-number {
            font-size: 3rem; /* Smaller font size */
            font-weight: 700;
            /*
            color: var(--body-bg);
            -webkit-text-stroke: 2px var(--text-muted);
            */
            
            color: red;
            -webkit-text-stroke: 2px yellow;
            
            
            line-height: 1;
            transform: translateX(20%);
            transition: color 0.3s, -webkit-text-stroke-color 0.3s;
        }
        .trending-card .content-card {
            flex-grow: 1;
            width: 100%;
        }
        .trending-card:hover .trending-number {
             -webkit-text-stroke-color: var(--primary-color);
        }

        /* --- WEB SERIES DETAIL PAGES --- */
        .detail-header {
            display: flex;
            gap: 30px;
            margin-bottom: 40px;
            align-items: center;
        }
        .detail-poster img {
            width: 100%;
            height: auto;
            max-width: 250px; /* Smaller max-width */
            object-fit: cover;
            border-radius: 10px;
        }
        .detail-info h1 {
            font-size: 2.5rem; /* Smaller font size */
            margin-bottom: 10px;
        }
        .detail-info .meta {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 20px;
        }
        .detail-info .description {
            max-width: 600px;
            line-height: 1.6;
        }
        
        .season-list .season-item {
            background-color: var(--card-bg);
            padding: 20px;
            margin-bottom: 15px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.3s;
        }
        .season-list .season-item:hover {
            background-color: #2a2a2a;
        }
        .season-item .btn {
            cursor: pointer;
        }
        
        /* MODIFIED: Styles for the vertical episode list */
        .episode-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .episode-card {
            display: flex;
            gap: 15px; /* Smaller gap */
            background-color: var(--card-bg);
            border-radius: 8px;
            overflow: visible; /* ⭐ ADD THIS */
            align-items: flex-start;
            transition: transform 0.3s;
        }
        .episode-card:hover {
            transform: scale(1.02);
        }
        .episode-thumbnail img {
            width: 120px; /* Smaller width */
            height: auto;
            object-fit: cover;
        }
        .episode-info {
    flex-grow: 1;

    display: flex;
    flex-direction: column;   /* title ke niche date */
    justify-content: center;

    gap: 4px;
}
        .episode-actions {
            padding: 0 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        /* --- MODALS --- */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.85);
            z-index: 2000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }
        .modal.open {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background-color: var(--dark-color);
            padding: 40px;
            border-radius: 10px;
            position: relative;
            max-width: 500px;
            width: 90%;
            animation: modal-pop 0.4s ease-out;
        }
        @keyframes modal-pop {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 2.0rem;
            color: rgb(0, 17, 255);
            cursor: pointer;
            transition: color 0.2s, transform 0.2s;
            z-index: 2005;
        }
        .modal-close:hover {
            color: rgb(255, 0, 0);
            transform: rotate(90deg);
        }

        /* --- AUTH MODAL --- */
        #auth-modal .modal-content { max-width: 400px; }
        .auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid #333; }
        .auth-tab { flex: 1; padding: 15px; text-align: center; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; }
        .auth-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
        .auth-form { display: none; }
        .auth-form.active { display: block; }
        .form-group { margin-bottom: 20px; }
        .form-group input { width: 100%; padding: 15px; background-color: #333; border: none; border-radius: 5px; color: var(--secondary-color); font-size: 1rem; }
        .form-group .btn { width: 100%; }
        .auth-divider { text-align: center; margin: 25px 0; color: var(--text-muted); }
        .social-login .btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }

        /* --- PLAYER MODAL --- */
        #player-modal { background-color: #000; }
        #player-modal .modal-content { width: 100%; height: 100%; max-width: none; background: none; padding: 0; display: flex; flex-direction: column; }
        .player-back-btn { position: absolute; top: 20px; left: 20px; font-size: 1.8rem; color: rgba(255,255,255,0.7); cursor: pointer; z-index: 2005; transition: all 0.2s; padding: 10px; background-color: rgba(0,0,0,0.3); border-radius: 50%; }
        .player-back-btn:hover { color: white; transform: scale(1.1); }
        #player-container { width: 100%; flex-grow: 1; background-color: black; }
        .player-info-bar { padding: 20px; background-color: var(--dark-color); max-height: 40vh; overflow-y: auto; }
        .player-info-bar .description a { color: var(--primary-color); text-decoration: underline; }
        .related-content { margin-top: 20px; }
        .related-content h4 { margin-bottom: 10px; }

        /* NEW: Player info bar actions */
        .player-info-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 15px;
        }
        .player-info-header h3 { font-size: 1.8rem; margin-bottom: 5px; }
        .player-info-header .meta { color: var(--text-muted); }
        .player-info-actions {
            display: flex;
            gap: 10px;
            flex-shrink: 0;
        }
        .player-info-actions .btn-icon { width: 38px; height: 38px; }
        .player-info-actions .download-container { position: relative; }
        .player-info-actions .download-dropdown {
            bottom: auto; /* override card style */
            top: 110%; /* position below button */
            right: 0;
            left: auto;
        }


        /* --- PREMIUM MODAL --- */
        #premium-modal .modal-content { max-width: 800px; max-height: 90vh; overflow-y: auto; }
        .premium-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .plan-card { background-color: var(--card-bg); padding: 30px; border-radius: 10px; text-align: center; border: 2px solid #333; transition: all 0.3s; }
        .plan-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
        .plan-card h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 15px; }
        .plan-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; }
        .plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
        .plan-features { list-style: none; margin: 25px 0; text-align: left; }
        .plan-features li { margin-bottom: 10px; }
        .plan-features li i { color: var(--primary-color); margin-right: 10px; }
        
        /* --- WATCH HISTORY SECTION --- */
        #watch-history-list { display: flex; flex-direction: column; gap: 15px; }
        .history-item { display: flex; align-items: center; gap: 15px; background-color: var(--card-bg); padding: 10px; border-radius: 8px; }
        .history-item-img { width: 100px; height: auto; object-fit: cover; border-radius: 5px; }
        .history-item-info { flex-grow: 1; }
        .history-item-info h4 { font-weight: 500; }
        .history-item-info p { font-size: 0.8rem; color: var(--text-muted); }
        .history-item-actions { display:flex; gap: 10px; }
        .history-item-actions .btn { background: none; color: var(--text-muted); padding: 5px 10px; }
        .history-item-actions .btn:hover { color: var(--primary-color); }
        
        /* --- PROFILE PAGE --- */
        #profile-page .profile-container { max-width: 700px; margin: 20px auto; background-color: var(--card-bg); padding: 30px; border-radius: 10px; }
        .profile-header { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; }
        .profile-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); }
        .profile-header-info h2 { font-size: 2rem; margin-bottom: 5px; }
        .profile-header-info p { color: var(--text-muted); }
        .profile-details, .profile-premium, .profile-actions { margin-bottom: 30px; }
        .profile-details h3, .profile-premium h3 { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; }
        .detail-item, .form-group-profile { display: flex; align-items: center; margin-bottom: 20px; }
        .detail-item label, .form-group-profile label { width: 150px; font-weight: 600; color: var(--text-muted); }
        .detail-item span { font-size: 1rem; }
        .form-group-profile input { flex-grow: 1; padding: 10px; background-color: #333; border: 1px solid #444; border-radius: 5px; color: var(--secondary-color); }
        .profile-actions { display: flex; justify-content: space-between; align-items: center; }
        #edit-mode-actions { display: none; gap: 15px; }

        /* Responsive: Profile page for all device widths and heights */
        @media (max-width: 600px), (max-height: 600px) {
    #profile-page .profile-container {
        padding: 10px;
        border-radius: 8px;
        max-width: 98vw;
    }
    .profile-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    .profile-header-info h2 {
        font-size: 1.2rem;
    }
    .profile-details h3, .profile-premium h3 {
        font-size: 1rem;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
    .detail-item, .form-group-profile {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        margin-bottom: 12px;
    }
    .detail-item label, .form-group-profile label {
        width: 100%;
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    .form-group-profile input {
        font-size: 0.95rem;
        padding: 8px;
    }
    .profile-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

        /* --- RESPONSIVE DESIGN --- */
        @media (max-width: 100%) { .main-nav .nav-item span { display: none; } .content-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .premium-plans { grid-template-columns: 1fr; } }
        @media (max-width: 100%) { 
            body { padding-top: 60px; } 
            .top-bar { height: 40px; padding: 0 15px; } 
            .bottom-nav { display: flex; } 
            .search-bar { position: static; transform: none; } 
            .search-container.active .search-bar { width: 180px; } 
            .user-profile .premium-status { display: none; } 
            .hero-slider { height: 35vh; } 
            .hero-slide-content h2 { font-size: 1.5rem; } 
            .detail-header, .profile-header { flex-direction: column; text-align: center; } 
            .detail-poster img { width: 180px; } 
            .detail-info h1 { font-size: 1.8rem; } 
            /* NEW: Responsive styles for section search */
            .section-header {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }
            .section-search-bar {
                width: 100%;
            }

            /* NEW: Styles for immersive video playback on mobile (APK mode) */
            body.video-is-playing .top-bar {
                transform: translateY(-100%);
            }

            body.video-is-playing .bottom-nav {
                transform: translateY(100%);
            }
        }
        
        
        
        /* Progress Bar Color */
        .jw-slider-horizontal .jw-progress {
            background: rgb(247, 6, 106) !important;
        }
		 .jw-progress {
			background-color: rgb(226, 241, 12);
		}

		.jw-rail {
			background-color: rgba(4, 255, 100, 0.932);
		}

        /* Change JWPlayer icons to yellow */
        .jw-icon {
            color: rgb(4, 194, 252);/* rgba(3, 250, 36, 0) !important */
        }

        .jw-button-color {
            color: rgb(9, 236, 96) !important;/* rgba(3, 250, 36, 0) !important */
        }

		.jw-text-track-display{
			color: rgb(252, 22, 6) !important;
		}
  .jwplayer .jw-slider-horizontal .jw-buffer { background: #e5d609 !important; }
		


        /* --- JW Player Custom Icon Styles --- */
        .jwplayer .jw-icon, .jwplayer .jw-button-color, .jwplayer .jw-icon-inline, .jwplayer .jw-svg-icon, .jwplayer .jw-icon-display, .jwplayer .jw-icon-tooltip, .jwplayer .jw-icon-volume, .jwplayer .jw-icon-playback, .jwplayer .jw-icon-play, .jwplayer .jw-icon-pause, .jwplayer .jw-icon-next, .jwplayer .jw-icon-prev, .jwplayer .jw-icon-fullscreen, .jwplayer .jw-icon-rewind, .jwplayer .jw-icon-forward, .jwplayer .jw-icon-settings, .jwplayer .jw-icon-cast, .jwplayer .jw-icon-cc, .jwplayer .jw-icon-audio-tracks, .jwplayer .jw-icon-playlist, .jwplayer .jw-icon-download, .jwplayer .jw-icon-share, .jwplayer .jw-icon-mute, .jwplayer .jw-icon-unmute {
            color: #f80505 !important; /* Gold */
            fill: #00c3ff !important;
            text-shadow: 0 1px 2px #1d04fa, 0 0 2px #ff00bf;
        }
        .jwplayer .jw-button-color:hover, .jwplayer .jw-icon:hover, .jwplayer .jw-icon-inline:hover {
            color: #aee90d !important; /* Netflix Red on hover */
            fill: #f8056b !important;
        }
        /*.jwplayer .jw-slider-horizontal .jw-progress { background: #ffd700 !important; }
        .jwplayer .jw-slider-horizontal .jw-buffer { background: #e50914 !important; }
        .jwplayer .jw-slider-horizontal .jw-***** { background: #ffd700 !important; }
        .jwplayer .jw-slider-horizontal .jw-rail { background: #444 !important; }
        .jwplayer .jw-text-track-display { color: #ffd700 !important; text-shadow: 1px 1px 2px #000; }
        .jwplayer .jw-controlbar { background: rgba(30,30,30,0.85) !important; border-top: 2px solid #ffd700; }
        .jwplayer .jw-display-icon-container { background: rgba(0,0,0,0.7) !important; border-radius: 50%; box-shadow: 0 0 8px #ffd700; }
        */


        /* Slide Bar */
        .slide-bar-top {
            background-color: Navy;
            width: auto;
            height: auto;
            color: Yellow;
            padding: auto;
            font-size: 20px;
            border-radius: 10px 30px;
            border: 3px solid Yellow;
            margin-bottom: 10px;
            margin-top: 40px;
            white-space: nowrap;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .slide-bar-top:hover {
            background-color: #000050; /* Darker navy on hover */
        }

        .slide-bar-bottom {
            background-color: yellow;
            width: auto;
            height: auto;
            color: red;
            padding: auto;
            font-size: 20px;
            border-radius: 30px 10px;
            border: 3px solid green;
            margin-bottom: 40px;
            margin-top: 10px;
            white-space: nowrap;
            overflow: hidden;
            position: relative;
        }

        .slide-bar-text {
            display: inline-block;
            animation: slide 30s linear infinite;
        }

        @keyframes slide {
            100% {
                transform: translateX(100%);
            }

            100% {
                transform: translateX(-100%);
            }
        }
        
        
        
            /* --- QUICK LINKS PAGE --- */
        #quick-links-page .quick-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 25px;
            padding: 20px 0;
        }

        .quick-link-card {
            background-color: var(--card-bg);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 1px solid #333;
        }

        .quick-link-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.4);
            border-color: var(--primary-color);
        }

        .quick-link-card img {
            width: 60px; /* Smaller image */
            height: 60px; /* Smaller image */
            margin-bottom: 15px;
            object-fit: contain;
            /* Invert color of simple black icons to white for dark mode */
            filter: brightness(0) invert(1);
        }

        .quick-link-card h3 {
            font-size: 1rem;
            font-weight: 500;
            color: var(--text-color);
        }
        


.see-all-btn {
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid #999;
  color: gold;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.see-all-btn:hover {
  background-color: red;
  color: white;
  border-color: yellow;
}



/* --- RESPONSIVE DESIGN FOR ALL DEVICES --- */
@media (max-width: 900px) {
    .top-bar { padding: 0 10px; }
    .top-bar-left { gap: 10px; }
    .logo { font-size: 1.2rem; }
    .top-bar-right { gap: 10px; }
    .user-profile img { width: 32px; height: 32px; }
    .main-nav { display: none; }
    .content-section { margin-bottom: 20px; }
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .hero-slider { height: 35vh; }
    .hero-slide-content { padding: 15px; }
    .hero-slide-content h2 { font-size: 1.2rem; }
    .section-header { flex-direction: column; align-items: stretch; gap: 10px; }
    .section-search-bar { width: 100%; }
    .category-filter-bar { gap: 5px; margin-bottom: 10px; }
    .category-btn { padding: 6px 10px; font-size: 0.9rem; }
    .premium-plans { grid-template-columns: 1fr; }
    .plan-card { padding: 15px; }
    .plan-card h3 { font-size: 1.1rem; }
    .plan-price { font-size: 1.4rem; }
    .slide-bar-top, .slide-bar-bottom { font-size: 1rem; margin-top: 10px; margin-bottom: 10px; }
    #quick-links-page .quick-links-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .quick-link-card img { width: 40px; height: 40px; }
    .profile-header { flex-direction: column; gap: 10px; text-align: center; }
    .profile-avatar { width: 60px; height: 60px; }
    .profile-header-info h2 { font-size: 1rem; }
    .profile-details h3, .profile-premium h3 { font-size: 1rem; }
    .detail-item, .form-group-profile { flex-direction: column; align-items: stretch; gap: 3px; margin-bottom: 8px; }
    .detail-item label, .form-group-profile label { width: 100%; font-size: 0.95rem; }
    .form-group-profile input { font-size: 0.95rem; padding: 6px; }
    .profile-actions { flex-direction: column; gap: 8px; align-items: stretch; }
    .modal-content { padding: 15px; }
    .history-item-img { width: 60px; height: auto; }
    .history-item { gap: 8px; padding: 5px; }
    .detail-header { flex-direction: column; gap: 10px; }
    .detail-poster img { max-width: 120px; }
    .detail-info h1 { font-size: 1.2rem; }
    .episode-card { flex-direction: row; gap: 10px; }
    .episode-thumbnail img { height: auto; width: 80px; }
}

@media (max-width: 600px), (max-height: 600px) {
    body { padding-top: 50px; padding-bottom: 60px; }
    .top-bar { height: 40px; }
    .bottom-nav { display: flex; }
    .search-bar { position: static; transform: none; }
    .search-container.active .search-bar { width: 100%; }
    .user-profile .premium-status { display: none; }
    .hero-slider { height: 30vh; }
    .hero-slide-content h2 { font-size: 1rem; }
    .content-grid { grid-template-columns: repeat(3, 1fr); } /* 3 columns on mobile */
    .slide-bar-top, .slide-bar-bottom { font-size: 0.9rem; }
    #quick-links-page .quick-links-grid { grid-template-columns: 1fr 1fr; }
    .quick-link-card img { width: 32px; height: 32px; }
    .modal-content { padding: 8px; }
} 

/* --- SHARE AND DOWNLOAD BUTTONS (NEW) --- */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.card-actions .btn, .card-actions .btn-icon {
    padding: 6px 8px;
    font-size: 0.75rem;
    flex-grow: 1; /* Watch button takes remaining space */
}

.btn-icon {
    background: rgba(4, 82, 250, 0.2);
    color: rgb(11, 253, 2);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    flex-grow: 0;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgb(250, 246, 3);
}
.download-container {
    position: relative;
    display: inline-block;
}
.download-dropdown {
    display: none;
    position: absolute;

    /* 🔥 नीचे open होगा (best for episode list) */
    top: 110%;
    bottom: auto;

    right: 0;
    min-width: 170px;   /* width increase */
    max-height: 220px;  /* scroll add */

    overflow-y: auto;   /* all qualities visible */

    background-color: var(--card-bg);
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    z-index: 999;
}
.download-dropdown a {
    color: var(--text-color);
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    transition: background-color 0.2s;
}
.download-dropdown a:hover {
    background-color: var(--primary-color);
}
.download-container.active .download-dropdown {
    display: block;
}

/* --- NEW: DETAILS MODAL --- */
/* =========================================
   PREMIUM HOTSTAR / OMG DETAILS MODAL
========================================= */

#details-modal .modal-content{
    max-width:3120px;
    width:95%;
    height:90vh;
    padding:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;

    background:#050505;
    border-radius:22px;

    border:1px solid rgba(255,255,255,0.08);

    box-shadow:
    0 0 20px rgba(255,0,140,0.25),
    0 0 50px rgba(0,140,255,0.15);
}

/* BACKDROP */
.details-modal-backdrop{
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;

    background-size:cover;
    background-position:center top;

    z-index:1;

    filter:saturate(1.2);
}

.details-modal-backdrop::after{
    content:'';
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,0.98) 5%,
        rgba(0,0,0,0.78) 35%,
        rgba(0,0,0,0.35) 65%,
        transparent 100%
    );
}

/* MAIN AREA */
.details-modal-main{
    position:relative;
    z-index:2;

    padding:40px;

    margin-top:34vh;

    flex-grow:1;
    overflow-y:auto;

/*
    background:
    linear-gradient(
        to right,
        rgba(0,0,0,0.96) 20%,
        rgba(0,0,0,0.72) 50%,
        rgba(0,0,0,0.25) 85%,
        transparent 100%
    );

    backdrop-filter:blur(6px);
    */
    
}

#details-modal-info{
    max-width:540px;
}


/* =========================================
   TITLE STYLE OMG / HOTSTAR
========================================= */

#details-modal-title{
    font-size:4rem;
    font-weight:700;

    line-height:0.9;

    text-transform:uppercase;

    letter-spacing:2px;

    display:inline-block;

    margin-bottom:14px;

    font-family:'Poppins',sans-serif;

    background:
    linear-gradient(
        180deg,
        #fff8c7 0%,
        #ffe600 15%,
        #ffbb00 35%,
        #ff7a00 60%,
        #ff006a 100%
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-shadow:
    0 0 5px rgba(255,230,0,0.9),
    0 0 12px rgba(255,120,0,0.8),
    0 0 18px rgba(255,0,106,0.6),
    2px 2px 0 #5a1200,
    4px 4px 10px rgba(0,0,0,0.95);

    transform:
    perspective(600px)
    rotateX(10deg);

    animation:titleGlow 2s infinite alternate;
}

@keyframes titleGlow{
    from{
        filter:brightness(1);
        transform:
        perspective(600px)
        rotateX(10deg)
        scale(1);
    }

    to{
        filter:brightness(1.25);
        transform:
        perspective(600px)
        rotateX(10deg)
        scale(1.02);
    }
}


/* =========================================
   META INFO 3D MULTI COLOR
========================================= */

.details-meta-info{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:14px;

    margin-bottom:18px;
}

.details-meta-info span{

    padding:6px 14px;

    border-radius:30px;

    font-size:0.88rem;

    font-weight:700;

    letter-spacing:0.5px;

    background:
    linear-gradient(
        135deg,
        rgba(0,183,255,0.2),
        rgba(255,0,140,0.2)
    );

    border:1px solid rgba(255,255,255,0.12);

    color:#fff;

    backdrop-filter:blur(8px);

    box-shadow:
    0 0 10px rgba(0,183,255,0.25),
    0 0 15px rgba(255,0,140,0.15);

    text-shadow:
    0 0 6px rgba(255,255,255,0.5);
}


/* =========================================
   DESCRIPTION PREMIUM STYLE
========================================= */

#details-modal-description{

    font-size:1rem;

    line-height:1.8;

    color:#f2f2f2;

    margin-bottom:24px;

    text-shadow:
    0 0 4px rgba(255,255,255,0.15);

    background:
    linear-gradient(
        135deg,
        rgba(255,0,140,0.18),
        rgba(0,183,255,0.18)
    );

    border:1px solid rgba(255,255,255,0.12);

    backdrop-filter:blur(8px);

    box-shadow:
    0 0 10px rgba(255,0,140,0.2),
    0 0 10px rgba(0,183,255,0.15);

    transition:0.3s;
}


/* =========================================
   GENRES PREMIUM CAPSULES
========================================= */

.details-genres{
    display:flex;
    gap:12px;
    flex-wrap:wrap;

    margin-bottom:28px;
}

.details-genres span{

    padding:8px 16px;

    border-radius:30px;

    font-size:0.82rem;

    font-weight:700;

    color:#fff;

    background:
    linear-gradient(
        135deg,
        rgba(255,0,140,0.18),
        rgba(0,183,255,0.18)
    );

    border:1px solid rgba(255,255,255,0.12);

    backdrop-filter:blur(8px);

    box-shadow:
    0 0 10px rgba(255,0,140,0.2),
    0 0 10px rgba(0,183,255,0.15);

    transition:0.3s;
}

.details-genres span:hover{

    transform:translateY(-3px) scale(1.05);

    background:
    linear-gradient(
        135deg,
        #ff006a,
        #0077ff
    );
}


/* =========================================
   BUTTONS
========================================= */

.details-actions{
    display:flex;
    gap:10px;
    align-items:center;
}

.details-actions .btn-primary{

    padding:13px 28px;

    border:none;

    border-radius:12px;

    font-size:1rem;

    font-weight:700;

    color:#fff;

    background:
    linear-gradient(
        90deg,
        #0077ff,
        #ff0080
    );

    box-shadow:
    0 0 15px rgba(255,0,128,0.4);

    transition:0.3s;
}

.details-actions .btn-primary:hover{

    transform:scale(1.06);

    box-shadow:
    0 0 20px rgba(255,0,128,0.65);
}

/* ICON BUTTON */
.details-actions .btn-icon{

    width:46px;
    height:46px;

    border-radius:12px;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.1);

    color:#fff;

    backdrop-filter:blur(8px);        
}




/* =========================================
   AI MODE EFFECT FOR DETAILS BUTTONS
========================================= */

/* MAIN BUTTON */

.details-actions .btn-primary{

    position:relative;
    overflow:hidden;
    color: gold !important;

    background:rgba(20,20,25,0.88) !important;

    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    z-index:1;
}

/* MOVING RGB BORDER */

.details-actions .btn-primary::before{

    content:"";

    position:absolute;

    inset:-2px;

    border-radius:14px;

    background:linear-gradient(
        90deg,
        /*
        #00f0ff,
        #0055ff,
        #7a00ff,
        #ff00c8,
        #ff003c,
        #ff9900,
        #ffee00,
        #00ff99,
        #00f0ff
        */
        #FF9933 33%,
        #FFFFFF 33% 66%,
        #138808 66%
    );

    background-size:400%;

    animation:aiMoveBorder 15s linear infinite;

    z-index:-2;
}

/* INNER DARK GLASS */

.details-actions .btn-primary::after{

    content:"";

    position:absolute;

    inset:2px;

    border-radius:10px;

    background:
    linear-gradient(
        90deg,
        #0077ff,
        #ff0080
    );

    z-index:-1;
}

/* HOVER EFFECT */

.details-actions .btn-primary:hover{

    transform:scale(1.06);

    box-shadow:
    0 0 12px #00f0ff,
    0 0 24px #ff00c8,
    0 0 35px #ffee00;
}

/* =========================================
   ICON BUTTON AI EFFECT
========================================= */

.details-actions .btn-icon{

    position:relative;

    overflow:hidden;

    background:rgba(20,20,25,0.88);
    color: yellow;

    border:none;

    z-index:1;
}

/* MOVING BORDER */

.details-actions .btn-icon::before{

    content:"";

    position:absolute;

    inset:-2px;

    border-radius:14px;

    background:linear-gradient(
        90deg,
        /*
        #00f0ff,
        #0055ff,
        #7a00ff,
        #ff00c8,
        #ff003c,
        #ff9900,
        #ffee00,
        #00ff99,
        #00f0ff
        */
        #FF9933 33%,
        #FFFFFF 33% 66%,
        #138808 66%
    );

    background-size:400%;

    animation:aiMoveBorder 15s linear infinite;

    z-index:-2;
}

/* INNER BG */

.details-actions .btn-icon::after{

    content:"";

    position:absolute;

    inset:2px;

    border-radius:10px;

    background:
    linear-gradient(
        90deg,
        #0077ff,
        #ff0080
    );

    z-index:-1;
}

/* ICON HOVER */

.details-actions .btn-icon:hover{

    transform:translateY(-3px);

    box-shadow:
    0 0 10px #00f0ff,
    0 0 20px #ff00c8;
}

/* =========================================
   RGB BORDER ANIMATION
========================================= */

@keyframes aiMoveBorder{

    0%{
        background-position:0% 50%;
    }

    100%{
        background-position:400% 50%;
    }
}





/*
.details-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.details-actions .btn-primary {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}
.details-actions .btn-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}
*/


.details-actions .btn-icon.active {
    color: var(--primary-color);
    background-color: rgba(229, 9, 20, 0.349);
}

.details-related-content {
    margin-top: 40px;
}
.details-related-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}
.details-tab-btn {
    padding: 10px 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.details-tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}
.details-tab-content {
    display: none;
}
.details-tab-content.active {
    display: block;
}




/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:768px){

    #details-modal-title{
        font-size:2.5rem;
        letter-spacing:1px;
    }

    .details-modal-main{
        padding:22px;
        margin-top:28vh;
    }

    .details-meta-info span{
        font-size:0.75rem;
        padding:5px 10px;
    }

    #details-modal-description{
        font-size:0.92rem;
        line-height:1.6;
    }

    .details-genres span{
        font-size:0.72rem;
        padding:6px 12px;
    }
}



/* --- NEW: LIVE CHAT PAGE --- */
#live-chat-page .chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px); /* Full height minus nav bars */
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 10px;
}
#chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 70%;
    line-height: 1.5;
    position: relative;
}
.chat-message .reply-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.chat-message:hover .reply-btn {
    display: flex;
}
.chat-message.sent {
    background-color: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}
.chat-message.received {
    background-color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}
.chat-message-sender {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: var(--premium-gold);
}
.chat-reply-indicator {
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 3px solid var(--text-muted);
    font-style: italic;
    font-size: 0.8rem;
    opacity: 0.8;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-reply-indicator strong {
    font-style: normal;
}

#chat-input-container {
    padding: 15px;
    border-top: 1px solid #333;
}
#reply-preview-container {
    display: none;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
#reply-preview-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#cancel-reply-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}
#chat-input-form {
    display: flex;
    gap: 10px;
}
#chat-input-form input {
    flex-grow: 1;
    padding: 12px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 20px;
    color: var(--text-color);
    font-size: 1rem;
}
#chat-input-form button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
}
#emoji-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.emoji-btn {
    background: #333;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}
.emoji-btn:hover {
    transform: scale(1.2);
}

/* --- LIBRARY TABS (HISTORY/WATCHLIST) --- */
.library-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}
.library-tab-btn {
    padding: 10px 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}
.library-tab-btn.active, .library-tab-btn:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}
.library-tab-content {
    display: none;
}
.library-tab-content.active {
    display: block;
}



/* 55555 DEVICE PANEL STYLE */

.device-box{
 background:#1a1a1a;
 padding:12px;
 border-radius:8px;
 margin-top:10px;
 border:1px solid #333;
}

.device-box button{
 margin-top:8px;
 background:#e50914;
 color:white;
 border:none;
 padding:6px 12px;
 border-radius:6px;
 cursor:pointer;
}


/* 55555 MANAGE DEVICE BUTTON STYLE */

#manage-devices-btn{
    width:100%;
    margin-top:12px;
    padding:12px 16px;
    border-radius:10px;
    border:1px solid #444;
    background: green;
    cursor:pointer;
    transition:all .3s ease;
}

/* Hover effect */
#manage-devices-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(0,0,0,0.5);
    background:linear-gradient(90deg,#e50914,#ff4b2b);
}

/* TEXT STYLE */
.manage-btn-text{
    font-weight:700;
    font-size:15px;
    letter-spacing:.5px;
    color: yellow;     /* text color */
    text-transform:uppercase;
    text-shadow:0 0 8px #00ffd5;
    transition:all .3s ease;
}

/* text hover color */
#manage-devices-btn:hover .manage-btn-text{
    color:#ffffff;
    text-shadow:0 0 10px #fff;
}


/* 55555 DEVICE TEXT COLORS */

.device-name{
   color:#00ffcc;   /* cyan */
   font-weight:700;
   font-size:16px;
}

.device-location{
   color:#ffd700;   /* gold */
   font-weight:600;
   margin-top:4px;
}

.device-last-active{
   color:#ff6b6b;   /* red/pink */
   font-weight:500;
   margin-top:4px;
}


/* 55555 LOGOUT POPUP STYLE */

.logout-popup{
   position:fixed;
   top:0;
   left:0;
   width:100%;
   height:100%;
   background:rgba(0,0,0,0.75);
   display:none;
   justify-content:center;
   align-items:center;
   z-index:99999;
}

.logout-card{
   background:#111;
   padding:20px;
   border-radius:10px;
   text-align:center;
   width:85%;
   max-width:320px;
   border:1px solid #333;
}

.logout-card h3{
   color:#ff4747;
   margin-bottom:10px;
}

.logout-card p{
   color:#fff;
   margin-bottom:15px;
}

.logout-card button{
   background:#e50914;
   color:white;
   border:none;
   padding:8px 20px;
   border-radius:6px;
   cursor:pointer;
}





.logout-popup{
   position:fixed;
   top:0;
   left:0;
   width:100%;
   height:100%;
   background:rgba(0,0,0,0.8);
   display:none;
   justify-content:center;
   align-items:center;
   z-index:9999;
}

.logout-box{
   background:#111;
   padding:25px;
   border-radius:15px;
   text-align:center;
   box-shadow:0 0 20px #00ff00;
   width:280px;
}

.logout-box h3{
   color:#ff3b3b;
   margin-bottom:10px;
}

.logout-box p{
   color:white;
   margin-bottom:20px;
}



.hero-dots{
 position:absolute;
 bottom:1px;
 left:50%;
 transform:translateX(-50%);
 display:flex;
 gap:8px;
 z-index:30;
}

.hero-dot{
 width:8px;
 height:8px;
 border-radius:50%;
 background:#999;
 cursor:pointer;
}

.hero-dot.active{
 background:#e50914;
}




.thumb-slider{
width:100%;
overflow-x:auto;
padding:10px;
}

.thumb-track{
display:flex;
gap:12px;
}

.thumb-item{
min-width:140px;
text-decoration:none;
color:white;
font-size:13px;
}

.thumb-item img{
width:100px;
height:100px;
border-radius:8px;
object-fit:cover;
}

.thumb-item p{
margin-top:4px;
}

.thumb-slider::-webkit-scrollbar{
display:none;
}





.login-required-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

.login-popup-box{
background:#141414;
padding:25px;
border-radius:12px;
text-align:center;
width:320px;
color:#fff;
animation:popupScale .3s ease;
}

.login-popup-box h2{
margin-bottom:10px;
color:#ff4747;
}

.login-btn-a{
background: red;
border:none;
padding:10px 18px;
margin-top:15px;
color:#fff;
border-radius:6px;
cursor:pointer;
}

.close-btn{
background:#333;
border:none;
padding:10px 18px;
margin-top:15px;
color:#fff;
border-radius:6px;
cursor:pointer;
margin-left:10px;
}

@keyframes popupScale{
from{transform:scale(.8);opacity:0;}
to{transform:scale(1);opacity:1;}
}





/* --- START: NEW CHANGE - NOTIFICATION SYSTEM STYLES --- */
.top-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.notification-container {
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.notification-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--dark-color);
    transform: scale(0);
    transition: transform 0.3s ease-in-out;
}

.notification-badge.show {
    transform: scale(1);
}

.notification-panel {
    display: none;
    position: fixed;
    top: 65px;
    right: 20px;
    width: 350px;
    max-height: 80vh;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    z-index: 9998;
    overflow-y: auto;
    border: 1px solid #444;
}

.notification-panel.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    background-color: var(--dark-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

.notification-panel-header h3 {
    font-size: 1.1rem;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #333;
    background-color: var(--card-bg);
    transition: background-color 0.2s;
}

.notification-item.unread {
    background-color: #2a2a2a; /* Slightly different background for unread */
}

.notification-poster img {
    width: 70px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
}

.notification-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.notification-actions .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.notification-actions .btn-icon-action {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    display: flex;
    gap: 15px;
}
.notification-actions .btn-icon-action i:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .top-bar-center {
        display: none; /* Hide center icon on mobile to avoid clutter */
    }
    .top-bar-right {
        gap: 15px; /* Add space for the icon on the right */
    }
    .notification-panel {
        width: 95vw;
        max-width: 350px;
        right: 10px;
        top: 60px;
    }
}
/* --- END: NEW CHANGE - NOTIFICATION SYSTEM STYLES --- */





        
