/* =============================================
   GLASSMORPHISM THEME - VIEWVERSE
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #38BDF8;
    --primary-dark: #0EA5E9;
    --primary-light: #7DD3FC;
    --primary-glow: rgba(56, 189, 248, 0.3);
    --primary-gradient: linear-gradient(135deg, #38BDF8, #0EA5E9, #7DD3FC);
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(20px);
    
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --sidebar-width: 78px;
    --radius-lg: 2rem;
    --radius-md: 1.5rem;
}

/* =============================================
   ANIMATED COLORFUL BACKGROUND
   ============================================= */

html {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a1a;
    color: white;
}

body {
    min-height: 100vh;
    background: #0a0a1a;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* ===== MAIN BACKGROUND - GRADIENT ANIMATED ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(56, 189, 248, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(52, 211, 153, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    animation: bgFloat 20s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.05) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(-2deg); opacity: 0.8; }
}

/* ===== FLOATING PARTICLES ===== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(2px 2px at 5% 15%, rgba(56, 189, 248, 0.4), transparent),
        radial-gradient(2px 2px at 20% 50%, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(2px 2px at 35% 5%, rgba(236, 72, 153, 0.3), transparent),
        radial-gradient(2px 2px at 50% 70%, rgba(52, 211, 153, 0.25), transparent),
        radial-gradient(2px 2px at 65% 25%, rgba(56, 189, 248, 0.35), transparent),
        radial-gradient(2px 2px at 80% 85%, rgba(168, 85, 247, 0.25), transparent),
        radial-gradient(2px 2px at 95% 45%, rgba(236, 72, 153, 0.2), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(52, 211, 153, 0.2), transparent),
        radial-gradient(2px 2px at 45% 90%, rgba(56, 189, 248, 0.25), transparent),
        radial-gradient(2px 2px at 75% 10%, rgba(168, 85, 247, 0.2), transparent);
    background-size: 400px 400px;
    animation: particlesFloat 35s linear infinite;
}

@keyframes particlesFloat {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-50px) scale(1.02); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(50px) scale(0.98); }
    100% { transform: translateY(0) scale(1); }
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* =============================================
   GRADIENT TEXT
   ============================================= */
.gradient {
    background: linear-gradient(135deg, #38BDF8, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   GLASS DESKTOP SIDEBAR
   ============================================= */
.desktop-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.sidebar-top { padding-top: 0.5rem; margin-bottom: auto; }
.logo-link { display: flex; align-items: center; justify-content: center; font-size: 32px; filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3)); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1.75rem;
    width: 100%;
    padding: 0 0.5rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.05);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -15px;
    width: 4px;
    height: 24px;
    border-radius: 0 4px 4px 0;
    background: var(--primary-gradient);
    box-shadow: 0 0 20px var(--primary-glow);
}

.tooltip {
    position: absolute;
    left: 56px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: var(--glass-blur);
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item:hover .tooltip { opacity: 1; }

/* =============================================
   GLASS MOBILE BOTTOM NAV
   ============================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 50;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    padding: 6px 4px;
    box-shadow: var(--glass-shadow);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 12px;
    flex: 1;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-size: 10px;
    font-weight: 500;
}

.mobile-nav-item.active {
    background: var(--primary-gradient);
    color: black;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.mobile-nav-item svg { width: 19px; height: 19px; }

/* =============================================
   GLASS MAIN CONTENT
   ============================================= */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding-bottom: 2rem;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mobile-top-logo {
    display: none;
    padding: 1.5rem 0 0.5rem;
}

.mobile-top-logo a {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   GLASS CATEGORY TABS
   ============================================= */
.category-tabs-wrapper {
    padding: 1rem 0 0.5rem;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.tab {
    flex-shrink: 0;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.tab.active {
    background: var(--primary-gradient);
    color: black;
    border-color: transparent;
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* =============================================
   GLASS SEARCH
   ============================================= */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

#searchInput {
    width: 100%;
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

#searchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

#searchInput::placeholder { color: rgba(255, 255, 255, 0.3); }

.search-hint {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

#searchResults {
    display: none;
    margin-top: 20px;
}

/* =============================================
   GLASS HERO BANNER
   ============================================= */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    margin-top: 0.5rem;
    min-height: 50vh;
    max-height: 70vh;
    box-shadow: var(--glass-shadow);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.03));
    pointer-events: none;
    z-index: 1;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-banner .hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-banner .hero-backdrop-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.5));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 50vh;
    max-height: 70vh;
    padding: 2rem 2.5rem 3rem;
    gap: 10px;
    animation: heroFade 0.5s ease;
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content .movie-poster-small {
    width: 80px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-bottom: 8px;
}

.hero-content .movie-poster-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content .badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-gradient);
    color: black;
    width: fit-content;
}

.hero-content .badge.hd { background: #4ade80; color: black; }
.hero-content .badge.trending { background: var(--primary-gradient); color: black; }
.hero-content .badge.new { background: #60a5fa; color: black; }
.hero-content .badge.classic { background: #fbbf24; color: black; }

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    max-width: 700px;
}

.hero-content .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-content .meta .rating {
    color: #fbbf24;
    font-weight: 700;
}

.hero-content .overview {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-content .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-content .actions .play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: black;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--primary-glow);
}

.hero-content .actions .play-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35);
}

.hero-content .actions .info-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-content .actions .info-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== BANNER DOTS ===== */
.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dots .dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.banner-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* =============================================
   GLASS CONTENT ROWS
   ============================================= */
.content-row {
    margin-top: 2rem;
    overflow: visible;
    padding: 0 2px;
}

#watchlistSection {
    display: none;
    margin-top: 2rem;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 1rem;
}

.row-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.row-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.view-all:hover {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary-light);
}

/* =============================================
   GLASS MOVIE GRID
   ============================================= */
.movie-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 20px 16px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    scroll-padding: 0 20px;
}

.movie-grid::-webkit-scrollbar { height: 4px; }
.movie-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; margin: 0 20px; }
.movie-grid::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.movie-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.movie-card .movie-poster {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    aspect-ratio: 2/3;
    transition: all 0.3s ease;
}

.movie-card:hover .movie-poster {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 8px 40px rgba(56, 189, 248, 0.05);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.poster-rating {
    position: absolute;
    bottom: 50px;
    left: 8px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--glass-blur);
    padding: 2px 10px;
    border-radius: 20px;
    color: var(--primary-light);
}

.movie-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-tag {
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-tag.hd { color: #4ade80; }
.badge-tag.trending { color: var(--primary); }
.badge-tag.new { color: #60a5fa; }
.badge-tag.classic { color: #fbbf24; }

.badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge-icon:hover {
    background: var(--primary-gradient);
    color: black;
    transform: scale(1.1);
}

.movie-title {
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-year {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   GLASS WATCHLIST
   ============================================= */
.watchlist-count {
    background: var(--primary-gradient);
    color: black;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--glass-blur);
}

.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: rgba(255, 255, 255, 0.5); margin-bottom: 20px; }

/* =============================================
   GLASS TOAST
   ============================================= */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: var(--glass-blur);
    color: white;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--glass-shadow);
    animation: slideUp 0.3s ease;
    max-width: 90%;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* =============================================
   GLASS VIEW ALL
   ============================================= */
#viewAllPage {
    min-height: 100vh;
    padding: 20px 24px 60px 24px;
    animation: fadeIn 0.3s ease;
    display: none;
    width: 100%;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.viewall-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px 24px 4px;
    flex-wrap: wrap;
    width: 100%;
}

.viewall-header h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex: 1;
    min-width: 150px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
}

.viewall-sort select {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    color: white;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.viewall-sort select:focus {
    border-color: var(--primary);
}

.viewall-sort select option {
    background: #11131a;
    color: white;
}

.viewall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 4px 20px 4px;
    width: 100%;
}

.viewall-grid .movie-card {
    flex: none !important;
    scroll-snap-align: none !important;
    min-width: 0;
    width: 100%;
    transition: transform 0.3s ease;
}

.viewall-grid .movie-card:hover {
    transform: translateY(-8px);
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(56, 189, 248, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   GLASS DETAIL PAGE
   ============================================= */
#detailPage {
    min-height: 100vh;
    padding: 20px 30px 80px 30px;
    animation: fadeIn 0.3s ease;
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-poster {
    width: 200px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    flex: 1;
    min-width: 200px;
}

.detail-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.detail-info .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.detail-info .detail-meta .rating {
    color: #fbbf24;
    font-weight: 700;
}

.detail-info .detail-overview {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 700px;
}

.detail-info .detail-cast {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-info .detail-cast .cast-item {
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.detail-info .detail-languages {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.detail-info .detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-info .detail-actions .play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: black;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--primary-glow);
}

.detail-info .detail-actions .play-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35);
}

/* =============================================
   GLASS PLAYER PAGE
   ============================================= */
#playerPage {
    min-height: 100vh;
    padding: 20px 30px 80px 30px;
    animation: fadeIn 0.3s ease;
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#playerPage iframe {
    background: #000;
}

#seasonSelect,
#episodeSelect {
    min-width: 120px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    color: white;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

#episodeGrid .episode-item {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

#episodeGrid .episode-item:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

#episodeGrid .episode-item.active {
    background: var(--primary-gradient);
    color: black;
    border-color: transparent;
}

.server-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.server-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.server-btn.active {
    background: var(--primary-gradient);
    color: black;
    border-color: transparent;
}

/* =============================================
   GLASS SEARCH PAGE
   ============================================= */
#searchPage {
    min-height: 100vh;
    padding: 20px 30px 80px 30px;
    animation: fadeIn 0.3s ease;
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 0 20px 0;
    width: 100%;
}

.search-result-item {
    display: flex;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    align-items: center;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(4px);
}

/* =============================================
   GLASS FOOTER
   ============================================= */
.footer {
    margin-left: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3rem 1.5rem 7rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-desc {
    max-width: 700px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-desc strong {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .desktop-sidebar { display: none; }
    .mobile-bottom-nav { display: flex; }
    .mobile-top-logo { display: block; }
    .main-content { margin-left: 0; padding-bottom: 80px; }
    .footer { margin-left: 0; padding-bottom: 100px; }
    .page-wrapper { padding: 0 1rem; }
    
    .hero-content {
        min-height: 45vh;
        max-height: 60vh;
        padding: 1.5rem 1.2rem 2rem;
    }
    .hero-content h1 { font-size: 1.6rem; }
    .hero-content .overview { font-size: 13px; -webkit-line-clamp: 2; }
    .hero-content .movie-poster-small { width: 60px; height: 90px; }
    .hero-content .actions .play-btn,
    .hero-content .actions .info-btn { padding: 10px 20px; font-size: 13px; }
    
    .banner-dots { bottom: 12px; right: 16px; gap: 6px; }
    .banner-dots .dot { width: 8px; height: 8px; }
    .banner-dots .dot.active { width: 20px; }
    
    .movie-card { flex: 0 0 140px; }
    .row-header h2 { font-size: 1rem; }
    .tab { font-size: 12px; padding: 5px 14px; }
    
    #viewAllPage { padding: 16px 16px 60px 16px; }
    .viewall-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .viewall-header h2 { font-size: 20px; }
    .viewall-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; padding: 8px 4px 16px 4px; }
    .viewall-sort { width: 100%; }
    .viewall-sort select { width: 100%; padding: 10px 16px; }
    
    #detailPage { padding: 16px 16px 60px 16px; }
    #playerPage { padding: 16px 16px 60px 16px; }
    .detail-poster { width: 140px; height: 210px; }
    .detail-info h1 { font-size: 20px; }
    #seasonSelect, #episodeSelect { min-width: 100px; }
}

@media (max-width: 480px) {
    .hero-content {
        min-height: 40vh;
        max-height: 55vh;
        padding: 1rem 1rem 1.5rem;
    }
    .hero-content h1 { font-size: 1.3rem; }
    .hero-content .overview { font-size: 12px; -webkit-line-clamp: 2; }
    .hero-content .movie-poster-small { width: 50px; height: 75px; }
    .hero-content .meta { font-size: 12px; gap: 10px; }
    
    .movie-card { flex: 0 0 120px; }
    .movie-title { font-size: 12px; }
    .badge-tag { font-size: 9px; padding: 1px 8px; }
    
    .viewall-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; padding: 6px 2px 12px 2px; }
    .viewall-grid .movie-title { font-size: 12px; }
    .viewall-grid .movie-year { font-size: 11px; }
    
    #detailPage { padding: 12px 12px 60px 12px; }
    #playerPage { padding: 12px 12px 60px 12px; }
    .detail-poster { width: 100px; height: 150px; }
    .detail-info h1 { font-size: 18px; }
    .detail-info .detail-overview { font-size: 13px; }
    #seasonSelect, #episodeSelect { min-width: 80px; font-size: 12px; }
    #episodeGrid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .server-btn { font-size: 12px; padding: 6px 14px; }
}

@media (min-width: 769px) {
    .desktop-sidebar { display: flex; }
    .mobile-bottom-nav { display: none; }
    .mobile-top-logo { display: none; }
    .hero-content { min-height: 50vh; max-height: 70vh; padding: 2rem 2.5rem 3rem; }
    .movie-card { flex: 0 0 180px; }
}

/* =============================================
   LOGO STYLES - FIX
   ============================================= */

/* ===== DESKTOP SIDEBAR LOGO ===== */
.logo-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
    transition: all 0.3s ease;
    display: block;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(-5deg);
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.5));
}

/* ===== MOBILE TOP LOGO ===== */
.mobile-top-logo {
    display: none;
    padding: 1.5rem 0 0.5rem;
}

.mobile-top-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-logo-icon {
    height: 30px;
    width: auto;
    display: block;
}

.mobile-logo-text {
    height: 22px;
    width: auto;
    display: block;
}

/* ===== FOOTER LOGO ===== */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo-icon {
    height: 32px;
    width: auto;
    display: block;
}

.footer-logo-text {
    height: 24px;
    width: auto;
    display: block;
}

/* =============================================
   RESPONSIVE LOGO
   ============================================= */
@media (max-width: 768px) {
    .mobile-top-logo {
        display: block;
    }
    
    .mobile-logo-icon {
        height: 26px;
    }
    
    .mobile-logo-text {
        height: 18px;
    }
}

@media (max-width: 480px) {
    .mobile-logo-icon {
        height: 22px;
    }
    
    .mobile-logo-text {
        height: 16px;
    }
}

/* =============================================
   ADSTERRA ADS - COMPLETE STYLES
   ============================================= */

/* ===== AD CONTAINER ===== */
.ad-container {
    position: relative;
    margin: 16px auto;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.04);
    max-width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-container:hover {
    border-color: rgba(56, 189, 248, 0.15);
}

.ad-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    text-align: right;
    padding: 2px 12px 4px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== AD CLOSE BUTTON ===== */
.ad-close-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.ad-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== CUSTOM BANNER ADS ===== */
.ad-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ad-banner:hover {
    transform: scale(1.01);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 40px rgba(56, 189, 248, 0.05);
}

.ad-banner-custom {
    padding: 16px 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-content {
    text-align: center;
    width: 100%;
}

.ad-banner-title {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.ad-banner-movies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 6px 0;
}

.ad-banner-movies span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ad-banner-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* ===== SMALL BANNER ===== */
.ad-banner-small {
    padding: 10px 16px;
    min-height: 40px;
}

.ad-banner-small .ad-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
}

.ad-banner-small-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.ad-banner-small-sub {
    font-size: 11px;
    color: rgba(56, 189, 248, 0.6);
    font-weight: 500;
}

/* ===== AD POSITIONS ===== */
.ad-top {
    margin-top: 8px;
    margin-bottom: 12px;
}

.ad-between {
    margin: 16px auto;
}

.ad-bottom {
    margin-top: 20px;
    margin-bottom: 8px;
}

/* ===== AD OVERLAY (Full click) ===== */
.ad-banner-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 2;
}

/* ===== RESPONSIVE ADS ===== */
@media (max-width: 768px) {
    .ad-container {
        margin: 12px auto;
        padding: 6px;
    }
    
    .ad-banner-custom {
        padding: 12px 14px;
        min-height: 50px;
    }
    
    .ad-banner-title {
        font-size: 15px;
    }
    
    .ad-banner-movies span {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .ad-banner-sub {
        font-size: 11px;
    }
    
    .ad-banner-small-text {
        font-size: 12px;
    }
    
    .ad-label {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .ad-container {
        margin: 8px auto;
        padding: 4px;
        border-radius: 12px;
    }
    
    .ad-banner-custom {
        padding: 10px 10px;
        min-height: 40px;
    }
    
    .ad-banner-title {
        font-size: 13px;
    }
    
    .ad-banner-movies {
        gap: 4px 10px;
    }
    
    .ad-banner-movies span {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .ad-banner-sub {
        font-size: 10px;
    }
    
    .ad-banner-small-text {
        font-size: 10px;
    }
    
    .ad-banner-small-sub {
        font-size: 9px;
    }
}

/* =============================================
   AD POPUP OVERLAY
   ============================================= */
#adOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.ad-popup {
    max-width: 420px;
    width: 90%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ad-popup-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.ad-popup h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #38BDF8, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ad-popup p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.ad-popup-timer {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ad-popup-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #38BDF8, #A855F7);
    border-radius: 4px;
    transition: width 1s linear;
}

.ad-popup-skip {
    padding: 10px 32px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ad-popup-skip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

#adTimer {
    color: #38BDF8;
    font-weight: 700;
    font-size: 18px;
}

/* =============================================
   AD BANNER STYLES
   ============================================= */
.ad-container {
    position: relative;
    margin: 16px auto;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.04);
    max-width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-container:hover {
    border-color: rgba(56, 189, 248, 0.15);
}

.ad-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    text-align: right;
    padding: 2px 12px 4px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ad-close-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.ad-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.ad-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ad-banner:hover {
    transform: scale(1.01);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 40px rgba(56, 189, 248, 0.05);
}

.ad-banner-custom {
    padding: 16px 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-content {
    text-align: center;
    width: 100%;
}

.ad-banner-title {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #38BDF8, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.ad-banner-movies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 6px 0;
}

.ad-banner-movies span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding: 2px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ad-banner-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.ad-banner-small {
    padding: 10px 16px;
    min-height: 40px;
}

.ad-banner-small .ad-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
}

.ad-banner-small-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.ad-banner-small-sub {
    font-size: 11px;
    color: rgba(56, 189, 248, 0.6);
    font-weight: 500;
}

.ad-top { margin-top: 8px; margin-bottom: 12px; }
.ad-between { margin: 16px auto; }
.ad-bottom { margin-top: 20px; margin-bottom: 8px; }

.ad-banner-overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 2;
}

/* ===== RESPONSIVE ADS ===== */
@media (max-width: 768px) {
    .ad-container { margin: 12px auto; padding: 6px; }
    .ad-banner-custom { padding: 12px 14px; min-height: 50px; }
    .ad-banner-title { font-size: 15px; }
    .ad-banner-movies span { font-size: 12px; padding: 2px 8px; }
    .ad-banner-sub { font-size: 11px; }
    .ad-banner-small-text { font-size: 12px; }
    .ad-label { font-size: 9px; }
    .ad-popup { padding: 30px 20px; }
    .ad-popup h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    .ad-container { margin: 8px auto; padding: 4px; border-radius: 12px; }
    .ad-banner-custom { padding: 10px 10px; min-height: 40px; }
    .ad-banner-title { font-size: 13px; }
    .ad-banner-movies { gap: 4px 10px; }
    .ad-banner-movies span { font-size: 10px; padding: 1px 6px; }
    .ad-banner-sub { font-size: 10px; }
    .ad-banner-small-text { font-size: 10px; }
    .ad-banner-small-sub { font-size: 9px; }
    .ad-popup { padding: 24px 16px; }
    .ad-popup h3 { font-size: 16px; }
    .ad-popup p { font-size: 13px; }
}