
          /* --- 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: 1000;
            transition: background-color 0.3s, transform 0.3s ease-in-out; /* MODIFIED: Added transform transition */
        }

        .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; */
            color: var(--primary-color);
            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) --- */
        .bottom-nav {
            display: none; /* Hidden on desktop */
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 65px;
            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;
            z-index: 1000;
            display: flex;
            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: 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: 50vh; /* 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;
        }
        
        /* --- 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) */
        }

        .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;
        }
        
        .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: 0.7rem; /* Smaller font size */
            color: yellow;/* var(--text-muted)*/
            transform: translateY(20px);
            transition: transform 0.3s ease 0.15s;
        }
        .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: 5rem; /* Smaller font size */
            font-weight: 700;
            color: var(--body-bg);
            -webkit-text-stroke: 2px var(--text-muted);
            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: hidden;
            align-items: center;
            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;
        }
        .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: 1.5rem;
            color: var(--text-muted);
            cursor: pointer;
            transition: color 0.2s, transform 0.2s;
            z-index: 2005;
        }
        .modal-close:hover {
            color: var(--secondary-color);
            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;
        }

        .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(255, 255, 255, 0.2);
    color: white;
    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: rgba(255, 255, 255, 0.4);
}
.download-container {
    position: relative;
    display: inline-block;
}
.download-dropdown {
    display: none;
    position: absolute;
    bottom: 110%; /* Position above the button */
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 20;
    width: 120px;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}
.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;
}
