/* ==========================================================================
   HDHUB2U - Modern Netflix Dark & Glassmorphism Design System
   ========================================================================== */

:root {
    --bg-main: #07080a;
    --bg-surface: #0e1117;
    --bg-surface-elevated: #151922;
    --bg-glass: rgba(18, 22, 31, 0.75);
    --bg-glass-card: rgba(22, 27, 38, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(229, 9, 20, 0.4);
    
    --primary-red: #e50914;
    --primary-red-hover: #ff1e27;
    --primary-red-glow: rgba(229, 9, 20, 0.35);
    
    --accent-gold: #ffb703;
    --accent-cyan: #00d2ff;
    --accent-green: #2ec4b6;
    
    --text-primary: #f0f3f8;
    --text-secondary: #9da7b7;
    --text-muted: #64748b;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --shadow-red-glow: 0 0 25px rgba(229, 9, 20, 0.4);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

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

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Atmospheric Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #e50914 0%, transparent 70%);
    top: -150px;
    left: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3a86ff 0%, transparent 70%);
    top: 40%;
    right: -150px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 8, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(7, 8, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

/* Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.65rem;
    letter-spacing: -0.5px;
}

.logo-hd {
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-hub {
    color: var(--primary-red);
    text-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.logo-2u {
    background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--primary-red);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search Bar */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 6px 16px;
    width: 260px;
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    width: 320px;
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.25);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 8px;
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.88rem;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 4px;
}

.clear-search-btn:hover {
    color: #fff;
}

.btn-sync-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ff5b64;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
}

.btn-sync-link:hover {
    background: var(--primary-red);
    color: #fff;
    box-shadow: var(--shadow-red-glow);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--border-glass);
    padding: 15px 20px;
    gap: 8px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ==========================================================================
   Hero Banner & Auto-Shuffling Carousel (Netflix/Prime Video Style)
   ========================================================================== */
.hero-carousel-container {
    position: relative;
    width: 100%;
    min-height: 540px;
    overflow: hidden;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
}

.hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 540px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 540px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* Floating Navigation Buttons */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(11, 12, 16, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.hero-carousel-container:hover .hero-nav-btn {
    opacity: 0.9;
}

.hero-nav-btn:hover {
    opacity: 1 !important;
    background: rgba(229, 9, 20, 0.85);
    border-color: #ff1e27;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.6);
}

.hero-nav-btn.prev-btn {
    left: 24px;
}

.hero-nav-btn.next-btn {
    right: 24px;
}

/* Pagination Dots */
.hero-dots-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(11, 12, 16, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.active {
    width: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e50914, #ff4b55);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

.hero-banner {
    position: relative;
    min-height: 520px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
}

.hero-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    z-index: 1;
}

.hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.badge-spotlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff6b72;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #ff1e27;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff1e27;
    animation: pulseGlow 1.5s infinite;
}

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

.badge-quality {
    background: #21262d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #58a6ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: #ffb703;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-year {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    max-width: 800px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-genres {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.genre-pill {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-glass);
}

.hero-overview {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* Button UI Components */
.btn-play-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-red);
    color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
    transition: var(--transition-smooth);
}

.btn-play-primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(229, 9, 20, 0.6);
}

.btn-trailer-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-trailer-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-info-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-info-ghost:hover {
    color: #fff;
}

/* ==========================================================================
   Filter Pills & Section Header
   ========================================================================== */
.site-body {
    padding-bottom: 60px;
    flex: 1;
}

.filter-section {
    margin-bottom: 24px;
}

.genre-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.filter-pill {
    padding: 7px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 2px 14px rgba(229, 9, 20, 0.35);
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-query {
    color: var(--primary-red);
}

.results-count {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
}

.btn-clear-filters:hover {
    color: var(--primary-red);
    background: rgba(229, 9, 20, 0.1);
}

/* ==========================================================================
   Movie Card Grid (Ultra-Crisp Netflix Pro Layout)
   ========================================================================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 16px;
}

.movie-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-red);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 9, 20, 0.25);
}

.card-media-box,
.card-media-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0d1117;
}

.poster-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover .poster-img {
    transform: scale(1.08);
}

.card-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.badge-quality-small {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #60a5fa;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.badge-rating-small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 183, 3, 0.4);
    color: #ffb703;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
}

.poster-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 0%, rgba(7, 8, 10, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(3px);
    padding: 10px;
}

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

.play-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.8);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.movie-card:hover .play-circle-btn {
    transform: scale(1);
}

.hover-play-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.hover-download-btn {
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.hover-download-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
}

.card-details {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
}

.card-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a {
    color: #f1f5f9;
}

.card-title a:hover {
    color: var(--primary-red);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-year {
    color: #94a3b8;
}

.card-category {
    color: #64748b;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.card-genre {
    color: var(--text-secondary);
}

/* Pagination */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.page-btn.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 40px auto;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   Watch Page & Video Player Box
   ========================================================================== */
.watch-page-container {
    padding-bottom: 60px;
}

.breadcrumb-bar {
    padding: 14px 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 20px;
}

.breadcrumb-bar a:hover {
    color: var(--primary-red);
}

.crumb-separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.crumb-current {
    color: var(--text-secondary);
    font-weight: 600;
}

.watch-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.watch-main-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.watch-year {
    color: var(--text-muted);
    font-weight: 500;
}

.watch-meta-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.84rem;
}

.pill-quality {
    background: rgba(30, 58, 138, 0.4);
    border: 1px solid #3b82f6;
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.pill-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffb703;
    font-weight: 700;
}

.pill-runtime, .pill-views {
    color: var(--text-secondary);
}

.watch-player-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Server Switcher Bar */
.server-selector-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow-x: auto;
}

.server-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pulse-live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.5s infinite;
}

.server-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.server-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.server-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.server-tab-btn.active {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.server-quality-tag {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 6px;
    border-radius: 3px;
    opacity: 0.9;
}

/* Player Container Box & Gateway */
.player-container-box {
    position: relative;
    background: #000;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    border-top: none;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-glass);
}

.iframe-embed-holder {
    width: 100%;
    height: 100%;
}

.iframe-embed-holder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Smart Gateway Overlay */
.smart-gateway-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s ease;
}

.smart-gateway-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.gateway-start-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gateway-play-pulse {
    position: relative;
}

.big-play-trigger {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.8);
    transition: var(--transition-smooth);
    animation: pulseBig 2s infinite;
}

.big-play-trigger:hover {
    transform: scale(1.08);
    background: var(--primary-red-hover);
    box-shadow: 0 0 50px rgba(229, 9, 20, 1);
}

@keyframes pulseBig {
    0%, 100% { box-shadow: 0 0 30px rgba(229, 9, 20, 0.7); }
    50% { box-shadow: 0 0 55px rgba(229, 9, 20, 1); }
}

.gateway-movie-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.gateway-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.gateway-server-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Gateway Countdown View */
.gateway-countdown-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 500px;
}

.countdown-circle-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 6px;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-bg-ring {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.countdown-progress-ring {
    fill: transparent;
    stroke: var(--primary-red);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.29; /* 2 * PI * 54 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.gateway-loading-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.gateway-status-msg {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.gateway-ad-slot {
    width: 100%;
    margin-top: 6px;
}

.ad-card-preview {
    background: rgba(30, 41, 59, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.ad-tag {
    font-size: 0.65rem;
    background: #f59e0b;
    color: #000;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
}

.ad-content {
    display: flex;
    flex-direction: column;
}

.ad-headline {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.ad-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-skip-countdown {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-skip-countdown:not(:disabled) {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
    cursor: pointer;
    box-shadow: var(--shadow-red-glow);
}

.btn-skip-countdown:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Stream Notice Bar */
.stream-notice-bar {
    margin-top: 14px;
    padding: 12px 18px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: #bae6fd;
}

.notice-icon {
    font-size: 1.2rem;
}

/* Cinema Dimmer */
.cinema-dimmer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cinema-dimmer.active {
    opacity: 1;
    pointer-events: auto;
}

body.cinema-active .site-header,
body.cinema-active .movie-details-section,
body.cinema-active .related-section,
body.cinema-active .site-footer {
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.cinema-active .player-wrapper-section {
    position: relative;
    z-index: 950;
}

/* ==========================================================================
   Movie Details Card Glassmorphism
   ========================================================================== */
.movie-details-section {
    margin-top: 36px;
}

.details-card-glass {
    background: var(--bg-glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-glass);
}

.details-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
}

.details-poster-img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
}

.poster-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.btn-seo-quicklink {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-seo-quicklink:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--primary-red);
}

.info-badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.details-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.info-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
}

.info-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    font-size: 0.92rem;
}

.info-label {
    color: var(--text-muted);
    font-weight: 600;
}

.info-val {
    color: var(--text-primary);
}

.genre-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-genre-link {
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.meta-genre-link:hover {
    color: var(--primary-red);
    background: rgba(229, 9, 20, 0.15);
}

.rating-val {
    color: #ffb703;
    font-weight: 700;
}

.votes-text {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.director-highlight, .cast-highlight {
    color: #e2e8f0;
}

.imdb-code {
    font-family: monospace;
    color: #93c5fd;
}

.synopsis-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.synopsis-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Related Section */
.related-section {
    margin-top: 48px;
}

.related-header {
    margin-bottom: 20px;
}

.related-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Programmatic SEO Landing Page
   ========================================================================== */
.landing-hero {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-glass);
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 40px;
    align-items: center;
}

.seo-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #58a6ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.landing-h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 14px;
}

.landing-summary {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 750px;
}

.landing-cta-box, .landing-cta-dual-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.inline-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.pulse-btn {
    animation: pulseCta 2s infinite;
}

@keyframes pulseCta {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.cta-guarantee {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.landing-poster-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-glass);
}

.landing-content-section {
    padding: 40px 0;
}

.landing-cards-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.content-card-glass, .sidebar-card-glass {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
}

.content-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.content-subheading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: #f1f5f9;
}

.specs-table-wrap {
    margin: 20px 0;
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.specs-table th, .specs-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.specs-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 700;
}

.status-online {
    color: #10b981;
    font-weight: 700;
}

.benefit-list, .steps-list {
    margin-left: 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
}

.inline-cta-banner {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-top: 24px;
    text-align: center;
}

.inline-cta-banner h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.inline-cta-banner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.rip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.rip-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.82rem;
    color: #38bdf8;
}

/* FAQ Styles */
.faq-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-glass);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sidebar Styles */
.side-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glass);
}

.side-meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.side-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

.side-label {
    color: var(--text-muted);
}

.btn-block-cta {
    width: 100%;
    display: block;
    text-align: center;
}

.side-movie-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-movie-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.side-movie-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.side-movie-thumb {
    width: 48px;
    height: 68px;
    border-radius: 4px;
    object-fit: cover;
}

.side-movie-info {
    display: flex;
    flex-direction: column;
}

.side-movie-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

.side-movie-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Admin Sync Dashboard
   ========================================================================== */
.admin-sync-page {
    padding: 30px 20px 60px;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-badge {
    display: inline-block;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff6b72;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.admin-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.admin-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.api-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
}

.api-status-pill.status-good {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.api-status-pill.status-warn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.metric-icon {
    font-size: 2.2rem;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.metric-foot {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.sync-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.admin-action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-head {
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.card-desc code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #38bdf8;
}

.btn-large-sync {
    width: 100%;
}

.single-sync-form {
    width: 100%;
}

.input-action-group {
    display: flex;
    gap: 10px;
}

.admin-text-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.admin-text-input:focus {
    border-color: var(--primary-red);
}

.alert-box-result {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid #3b82f6;
    border-radius: var(--radius-sm);
    color: #bfdbfe;
    font-size: 0.88rem;
}

.sync-results-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px;
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.results-counters {
    display: flex;
    gap: 8px;
}

.cnt-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.cnt-processed { background: rgba(255,255,255,0.1); color: #fff; }
.cnt-inserted { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.cnt-skipped { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.cnt-errors { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.log-stream {
    background: #090c10;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 14px;
    max-height: 240px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-line {
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
}

.log-arrow {
    color: var(--primary-red);
    font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #07080a;
    border-top: 1px solid var(--border-glass);
    padding: 50px 0 25px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 14px 0 16px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.disclaimer-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.84rem;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-name {
    color: var(--primary-red);
    font-weight: 700;
}

.footer-meta-tags {
    font-size: 0.78rem;
}

/* ==========================================================================
   Hindi Audio Badges & Category Tags
   ========================================================================== */
.badge-hindi {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: 4px;
}

.badge-tag-hindi {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.highlight-audio {
    color: #fbbf24;
    font-weight: 700;
}

.category-pill {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff6b72;
    font-weight: 700;
}

.btn-download-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: var(--transition-smooth);
}

.btn-download-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(16, 185, 129, 0.6);
}

.hover-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #10b981;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 4px;
    transition: var(--transition-smooth);
}

.hover-download-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

/* Watch Page Download Banner */
.watch-download-cta-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cta-download-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-download-icon {
    font-size: 2.2rem;
}

.cta-download-text h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.cta-download-text p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.btn-download-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
    transition: var(--transition-smooth);
}

.btn-download-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.7);
}

.btn-download-quicklink {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-sm);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-download-quicklink:hover {
    background: #10b981;
    color: #fff;
}

/* ==========================================================================
   Download Gateway Page Styles
   ========================================================================== */
.download-hero-section {
    padding: 30px 0 20px;
}

.download-movie-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: center;
    box-shadow: var(--shadow-glass);
}

.download-poster-img {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.audio-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-hindi-audio {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-category-tag {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-quality-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.download-main-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.download-sub-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.download-quick-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.spec-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    display: flex;
    gap: 6px;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    color: #fff;
    font-weight: 700;
}

.btn-watch-online-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-size: 0.88rem;
    font-weight: 700;
}

.btn-watch-online-alt:hover {
    text-decoration: underline;
}

/* Gateway Step Section */
.gateway-step-section {
    padding: 24px 0 40px;
}

.download-gateway-card {
    background: var(--bg-surface);
    border: 2px solid rgba(229, 9, 20, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.gateway-step-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.step-badge-indicator {
    display: inline-block;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #ff6b72;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.step-badge-indicator.step-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
}

.step-action-wrap {
    margin-top: 10px;
    width: 100%;
    max-width: 480px;
}

.btn-step-action {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-red);
    color: #fff;
    padding: 16px 30px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 25px rgba(229, 9, 20, 0.5);
    transition: var(--transition-smooth);
}

.btn-step-action:hover:not(:disabled) {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(229, 9, 20, 0.7);
}

.btn-step-action.btn-ready {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 25px rgba(16, 185, 129, 0.5);
}

.btn-step-action:disabled {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.sponsored-notice {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Step 2 Countdown */
.step-countdown-circle {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 10px 0;
}

.step-timer-svg {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.timer-progress {
    fill: transparent;
    stroke: var(--primary-red);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 251.32;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.ad-trigger-preview {
    background: rgba(30, 41, 59, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
    max-width: 480px;
}

.ad-pill {
    font-size: 0.65rem;
    background: #f59e0b;
    color: #000;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
}

.ad-info {
    display: flex;
    flex-direction: column;
}

.ad-info strong {
    font-size: 0.84rem;
    color: #fff;
}

.ad-info small {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

/* Download Links Grid (Step 3) */
.download-links-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
}

.download-link-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 3fr 2.5fr;
    gap: 20px;
    align-items: center;
    text-align: left;
    transition: var(--transition-smooth);
}

.download-link-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.download-link-card.card-zip-package {
    border-color: rgba(245, 158, 11, 0.3);
}

.quality-badge-group {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.link-res-tag {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.link-format-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.72rem;
    color: #93c5fd;
    font-weight: 700;
}

.link-size-tag {
    font-size: 0.88rem;
    color: #34d399;
    font-weight: 700;
}

.link-specs-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
}

.link-spec-row {
    display: flex;
    gap: 8px;
}

.spec-name {
    color: var(--text-muted);
}

.spec-val {
    color: var(--text-secondary);
}

.server-highlight {
    color: #60a5fa;
    font-weight: 600;
}

.link-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-cloud-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    transition: var(--transition-smooth);
}

.btn-cloud-download:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

.btn-mirror-gdrive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-mirror-gdrive:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Guide Section */
.download-guide-section {
    padding-bottom: 40px;
}

.guide-card-glass {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 28px;
}

.guide-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guide-step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.guide-step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.guide-step p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .details-grid { grid-template-columns: 200px 1fr; gap: 24px; }
    .landing-cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .download-link-card { grid-template-columns: 1fr 1fr; }
    .link-cta-actions { grid-column: span 2; }
}

@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .container { padding: 0 12px !important; }
    .site-header { padding: 8px 0; }
    .header-content { padding: 0 12px; gap: 8px; }
    .brand-logo { font-size: 1.35rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-bottom-bar { display: flex; }
    .search-box { width: 130px; padding: 5px 10px; font-size: 0.8rem; }
    .search-box:focus-within { width: 160px; }
    
    .hero-banner { min-height: 320px; padding: 24px 0; margin-bottom: 14px; }
    .hero-title { font-size: 1.5rem; letter-spacing: -0.3px; line-height: 1.2; }
    .hero-overview { font-size: 0.82rem; -webkit-line-clamp: 2; margin-bottom: 14px; }
    .hero-actions { gap: 8px; flex-wrap: wrap; }
    .btn-play-primary { padding: 9px 16px; font-size: 0.84rem; }
    .btn-trailer-secondary { padding: 9px 14px; font-size: 0.82rem; }
    
    .category-pills-bar, .filter-chips-wrap {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 4px 0 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-pills-bar::-webkit-scrollbar { display: none; }
    .filter-chip { padding: 5px 11px; font-size: 0.76rem; white-space: nowrap; }

    .movie-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px 8px !important; 
    }

    .movie-card { border-radius: 8px; }
    .card-details { padding: 7px 8px; }
    .card-title { font-size: 0.78rem; margin-bottom: 2px; }
    .card-meta { font-size: 0.68rem; }
    .card-year { font-size: 0.68rem; }
    .card-category { font-size: 0.65rem; max-width: 65px; }
    .badge-quality-small { font-size: 0.58rem; padding: 1px 4px; max-width: 80px; }
    .badge-rating-small { font-size: 0.60rem; padding: 1px 4px; }
    
    .watch-main-title { font-size: 1.3rem; }
    .watch-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .server-selector-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; }
    .server-tabs { width: 100%; overflow-x: auto; padding-bottom: 4px; gap: 6px; }
    .server-tab-btn { padding: 6px 10px; font-size: 0.75rem; }

    .details-card-glass { padding: 16px 12px; }
    .details-grid { grid-template-columns: 1fr; gap: 16px; }
    .details-poster-col { max-width: 160px; margin: 0 auto; text-align: center; }
    .details-title { font-size: 1.25rem; }

    .download-movie-card { grid-template-columns: 1fr; text-align: center; padding: 16px 12px; }
    .download-poster-box { max-width: 150px; margin: 0 auto; }
    .audio-badges-row { justify-content: center; gap: 4px; }
    .download-quick-specs { justify-content: center; gap: 6px; }
    .download-main-title { font-size: 1.25rem; }
    .download-link-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .link-cta-actions { grid-column: auto; }
    .guide-steps-grid { grid-template-columns: 1fr; gap: 10px; }
    
    .landing-hero { padding: 24px 0; }
    .landing-hero-grid { grid-template-columns: 1fr; }
    .landing-hero-poster { display: none; }
    .landing-h1 { font-size: 1.35rem; }
    
    .sync-actions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer { padding: 24px 0 16px; margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .movie-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 8px 6px !important; 
    }
    .header-content { padding: 0 8px; }
    .brand-logo { font-size: 1.2rem; }
    .search-box { width: 110px; padding: 4px 8px; font-size: 0.75rem; }
    .search-box:focus-within { width: 135px; }
    .btn-sync-link span { display: none; }
    .btn-sync-link { padding: 5px 8px; }
    .btn-telegram-header span { display: none; }
    .btn-telegram-header { padding: 5px 8px; }
    .watch-download-cta-banner { padding: 12px; }
    .btn-download-primary { width: 100%; justify-content: center; font-size: 0.85rem; padding: 10px 14px; }
}

/* Telegram Header & Community Badges */
.btn-telegram-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.4);
    text-decoration: none;
}

.btn-telegram-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.6);
    filter: brightness(1.1);
}