/* ═══════════════════════════════════════════════════════
   PlayLiveBRAnime — Premium Design System 5.0
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #06060a;
    --bg-secondary: #0c0c12;
    --bg-tertiary: #14141e;
    --bg-elevated: #1a1a26;
    --bg-glass: rgba(12, 12, 18, 0.7);
    --bg-glass-light: rgba(255, 255, 255, 0.03);

    --accent: #00f2ff;
    --accent-light: #70f9ff;
    --accent-dark: #00a2ff;
    --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #0072ff 100%);
    --accent-glow: rgba(0, 242, 255, 0.35);
    --accent-glow-strong: rgba(0, 242, 255, 0.6);

    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #06060a;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(168, 85, 247, 0.3);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 32px var(--accent-glow);

    --nav-height: 72px;
    --container-width: 1440px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul { list-style: none; }

input {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    width: 0;
    z-index: 9999;
    transition: width 300ms var(--ease-out);
}
#loading-bar.active { width: 100%; }

/* ═══════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════ */

.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.splash-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 60px var(--accent-glow-strong);
    animation: logoGlow 2s ease-in-out infinite;
}

.splash-logo .logo-text {
    color: var(--text-primary);
}

.splash-logo .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.splash-loader-bar {
    width: 280px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.splash-loader-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s var(--ease-out);
    box-shadow: 0 0 20px var(--accent-glow);
}

.splash-loader-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: textFade 1.5s ease-in-out infinite;
}

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

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
    50% { box-shadow: 0 0 80px var(--accent-glow-strong), 0 0 120px var(--accent-glow); }
}

@keyframes textFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════
   PAGE TRANSITION
   ═══════════════════════════════════════════ */

.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.page-transition-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-transition-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.page-transition-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════ */

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.skeleton-card {
    aspect-ratio: 3/4.2;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    display: block;
    padding-bottom: 60px;
    background: linear-gradient(0deg, var(--bg-tertiary) 0%, transparent 100%);
    border-radius: var(--radius-md);
    margin-top: -60px;
    position: relative;
}

.skeleton-hero {
    height: 85vh;
    min-height: 600px;
    border-radius: 0;
}

.skeleton-ep-row {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.skeleton-ep-card {
    flex: 0 0 320px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
}

.skeleton-detail {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 60px;
}

.skeleton-detail-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 550px;
}

.skeleton-detail-content {
    display: flex;
    gap: 48px;
}

.skeleton-poster {
    width: 300px;
    aspect-ratio: 3/4.2;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-title {
    height: 56px;
    width: 80%;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 20px;
    width: 100%;
    border-radius: var(--radius-xs);
}

.skeleton-text.short { width: 60%; }

/* ═══════════════════════════════════════════
   PLAYER LOADING
   ═══════════════════════════════════════════ */

.player-loading {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.player-loading-spinner {
    width: 64px;
    height: 64px;
    position: relative;
}

.player-loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 50%;
}

.player-loading-ring:nth-child(1) {
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

.player-loading-ring:nth-child(2) {
    border-right-color: #ec4899;
    animation: spin 1.2s linear infinite reverse;
    inset: 6px;
}

.player-loading-ring:nth-child(3) {
    border-bottom-color: #f43f5e;
    animation: spin 1.4s linear infinite;
    inset: 12px;
}

.player-loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    animation: textFade 1.5s ease-in-out infinite;
}

.player-loading-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -16px;
}

/* ═══════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════ */

.content-fade-in {
    animation: contentFadeIn 0.5s var(--ease-out) forwards;
}

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

.content-fade-out {
    animation: contentFadeOut 0.2s var(--ease-out) forwards;
}

@keyframes contentFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(6, 6, 10, 0.8) 0%, transparent 100%);
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: var(--shadow-accent);
}

.logo-text .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass-light);
}

.nav-link.active {
    color: var(--accent-light);
    background: rgba(168, 85, 247, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-wrapper {
    position: relative;
    width: 280px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    transition: var(--transition-base);
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

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

.search-input:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-input:focus ~ .search-icon { color: var(--accent); }

.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: var(--transition-base);
    z-index: 1001;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.search-result-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-fast);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-glass-light); }

.search-result-item img {
    width: 48px;
    height: 68px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-see-all {
    padding: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-light);
    cursor: pointer;
    border-top: 1px solid var(--border);
    transition: var(--transition-fast);
}

.search-see-all:hover { background: var(--bg-glass-light); }

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.mobile-toggle:hover { background: var(--bg-glass-light); }

/* ═══════════════════════════════════════════
   MOBILE SIDEBAR
   ═══════════════════════════════════════════ */

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.mobile-sidebar.active { transform: translateX(0); }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo-text {
    font-weight: 700;
    font-size: 1.1rem;
}

#sidebar-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

#sidebar-close:hover { background: var(--bg-glass-light); }

.sidebar-menu { padding: 12px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.sidebar-link:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
}

.sidebar-link i { width: 20px; text-align: center; }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════ */

.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s var(--ease-out), visibility 1.2s var(--ease-out);
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    z-index: -2;
    transform: scale(1.1);
    transition: transform 8s linear;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, var(--bg-primary) 0%, rgba(6, 6, 10, 0.4) 50%, transparent 100%),
        linear-gradient(0deg, var(--bg-primary) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, transparent 20%);
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 10, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 720px;
    padding-top: var(--nav-height);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s var(--ease-out) 0.3s, opacity 0.8s var(--ease-out) 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    box-shadow: var(--shadow-accent);
}

.hero-meta-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 20;
}

.hero-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--accent);
    width: 64px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.hero-controls {
    display: flex;
    gap: 12px;
}

.hero-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-base);
}

.hero-controls button:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--shadow-accent);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn i { font-size: 0.9em; }

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--accent-glow-strong);
}

.btn-secondary {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-hover);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-3px);
}

.btn-ghost {
    color: var(--text-secondary);
    padding: 10px 20px;
}

.btn-ghost:hover {
    color: var(--accent-light);
    background: rgba(168, 85, 247, 0.1);
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */

.section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-link:hover { gap: 10px; }

/* ═══════════════════════════════════════════
   ANIME GRID & CARDS
   ═══════════════════════════════════════════ */

.continue-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.section-actions {
    display: flex;
    gap: 12px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-text:hover {
    background: var(--accent-glow);
}

.btn-text.danger {
    color: var(--error);
}

.btn-text.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--bg-tertiary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--bg-tertiary);
    margin-bottom: 20px;
}

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

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.anime-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4.2;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: var(--transition-slow);
}

.anime-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.anime-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.anime-card:hover img { transform: scale(1.1); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 6, 10, 0.98) 0%, rgba(6, 6, 10, 0.4) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-base);
}

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

.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xs);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.card-info-content {
    transform: translateY(10px);
    transition: transform var(--transition-base);
}

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

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.meta-views i {
    font-size: 0.8em;
    margin-right: 4px;
    color: var(--accent-light);
}

/* ═══════════════════════════════════════════
   TRENDING TOP 10
   ═══════════════════════════════════════════ */

.trending-row {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 40px 40px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    cursor: grab;
    user-select: none;
}

.trending-row.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.trending-row::-webkit-scrollbar { display: none; }

.trending-card {
    position: relative;
    flex: 0 0 240px;
    height: 320px;
    display: flex;
    align-items: center;
    cursor: pointer;
    scroll-snap-align: start;
    transition: var(--transition-base);
}

.trending-card:hover {
    transform: translateX(20px);
}

.trending-rank {
    font-size: 14rem;
    font-weight: 900;
    line-height: 1;
    color: var(--bg-primary);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
    position: absolute;
    left: -40px;
    bottom: -30px;
    z-index: 1;
    transition: var(--transition-base);
}

.trending-card:hover .trending-rank {
    -webkit-text-stroke-color: var(--accent);
    color: rgba(168, 85, 247, 0.1);
}

.trending-poster {
    width: 180px;
    height: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-left: 60px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.trending-card:hover .trending-poster {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.05);
}

.trending-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════
   CONTINUE WATCHING
   ═══════════════════════════════════════════ */

.continue-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 24px;
    scrollbar-width: none;
}

.continue-row::-webkit-scrollbar { display: none; }

.continue-card {
    flex: 0 0 320px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid var(--border);
}

.continue-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-lg);
}

.continue-thumb {
    position: relative;
    aspect-ratio: 16/9;
}

.continue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.continue-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.continue-card:hover .continue-play { opacity: 1; }

.continue-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

.continue-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    box-shadow: 0 0 10px var(--accent-glow);
}

.continue-info {
    padding: 16px;
}

.continue-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   EPISODE ROW (HORIZONTAL SCROLL)
   ═══════════════════════════════════════════ */

.ep-row-wrapper {
    position: relative;
}

.ep-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.ep-row::-webkit-scrollbar { display: none; }

.ep-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition-base);
}

.ep-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.ep-banner {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ep-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.ep-card:hover .ep-banner img { transform: scale(1.05); }

.ep-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.ep-info {
    padding: 14px 16px;
}

.ep-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   DETAIL VIEW
   ═══════════════════════════════════════════ */

.detail-view {
    position: relative;
    padding-top: var(--nav-height);
}

.detail-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 550px;
    background-size: cover;
    background-position: center 30%;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 40%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent);
}

.detail-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 10, 0.5);
}

.detail-content {
    display: flex;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 60px;
}

.detail-poster {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    align-self: flex-start;
}

.detail-poster img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.detail-poster .btn {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
}

.detail-info { flex: 1; }

.detail-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.detail-alt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 500;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tag {
    padding: 8px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(168, 85, 247, 0.1);
}

.detail-stats {
    display: flex;
    gap: 32px;
    padding: 24px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.stat-item { text-align: center; }

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.detail-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* EPISODE GRID */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ep-list-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.ep-list-item:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
}

.ep-list-thumb {
    width: 110px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xs);
    overflow: hidden;
    flex-shrink: 0;
}

.ep-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-list-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.ep-list-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   WATCH VIEW
   ═══════════════════════════════════════════ */

.watch-view {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 60px;
}

/* ═══════════════════════════════════════════
   CUSTOM VIDEO PLAYER (V2 - STABLE)
   ═══════════════════════════════════════════ */

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 32px;
}

.custom-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Overlays */
.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-player.paused .player-overlay,
.custom-player.user-active .player-overlay {
    opacity: 1;
    visibility: visible;
}

.custom-player:not(.user-active):not(.paused) {
    cursor: none;
}

/* Center Play Button */
.player-center {
    position: absolute;
    z-index: 11;
    pointer-events: none;
}

.btn-center-play {
    width: 80px;
    height: 80px;
    background: rgba(12, 12, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s var(--ease-spring);
    pointer-events: all;
}

.custom-player.paused .btn-center-play {
    opacity: 1;
    transform: scale(1);
}

.btn-center-play:hover {
    background: var(--accent);
    color: #000;
}

/* Top Bar */
.player-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.player-title-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.player-title-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Bottom Bar */
.player-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transform: translateY(10px);
    transition: transform 0.3s var(--ease-spring);
}

.custom-player:hover .player-bottom,
.custom-player.paused .player-bottom,
.custom-player.user-active .player-bottom {
    transform: translateY(0);
}

/* Progress Area */
.player-progress-area {
    width: 100%;
    height: 6px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.player-progress-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.player-progress-bar {
    position: absolute;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 1;
}

.player-progress-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    left: 0;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-glow);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

.player-progress-area:hover .player-progress-handle {
    opacity: 1;
}

.player-progress-area:hover {
    height: 8px;
}

/* Controls Layout */
.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-controls-left, .player-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.player-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.player-time {
    font-size: 0.9rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
    margin-left: 8px;
}

/* Volume Group */
.volume-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-bar-container {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s;
}

.volume-group:hover .volume-bar-container {
    width: 100px;
}

.volume-bar-fill {
    height: 100%;
    background: #fff;
}

.btn-speed {
    font-size: 0.85rem !important;
    font-weight: 800;
    width: auto !important;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px;
    height: 28px !important;
}

/* Responsive Player */
@media (max-width: 768px) {
    .player-bottom {
        padding: 12px;
        gap: 12px;
        width: calc(100% - 24px);
    }
    .player-controls-left, .player-controls-right {
        gap: 8px;
    }
    .player-btn {
        font-size: 1.1rem;
        width: 32px;
        height: 32px;
    }
    .volume-group { display: none; }
}

.watch-header { margin-bottom: 28px; }

.watch-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 8px;
}

.watch-subtitle {
    color: var(--accent-light);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.watch-subtitle:hover { color: var(--accent); }

.watch-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   GENRES VIEW
   ═══════════════════════════════════════════ */

.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.genre-card {
    padding: 28px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.genre-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.genre-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.genre-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 48px;
    padding-bottom: 20px;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.page-btn:hover {
    background: var(--bg-glass-light);
    border-color: var(--text-muted);
}

.page-btn.active {
    background: var(--accent-gradient);
    box-shadow: var(--shadow-accent);
}

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */

.empty-state {
    padding: 120px 0;
    text-align: center;
}

.empty-state h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

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

/* ═══════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════ */

.spinner-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 1500;
    transition: var(--transition-base);
}

.spinner-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
    margin-top: 80px;
}

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

.footer-brand .logo { margin-bottom: 16px; }

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-nav h4,
.footer-stats h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-nav a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-stats { display: flex; flex-direction: column; gap: 10px; }

.stat-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

.stat-pill span:last-child {
    color: var(--accent-light);
    font-weight: 700;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom i { color: var(--error); }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
    opacity: 0;
}

.reveal:nth-child(1) { animation-delay: 0ms; }
.reveal:nth-child(2) { animation-delay: 50ms; }
.reveal:nth-child(3) { animation-delay: 100ms; }
.reveal:nth-child(4) { animation-delay: 150ms; }
.reveal:nth-child(5) { animation-delay: 200ms; }
.reveal:nth-child(6) { animation-delay: 250ms; }
.reveal:nth-child(7) { animation-delay: 300ms; }
.reveal:nth-child(8) { animation-delay: 350ms; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .detail-content {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-poster {
        width: 240px;
        position: relative;
        top: auto;
    }
    
    .detail-info { text-align: center; }
    
    .detail-tags,
    .detail-stats { justify-content: center; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-desc { margin: 0 auto; }
}

@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    
    .nav-menu { display: none; }
    
    .mobile-toggle { display: flex; }
    
    .search-wrapper { width: 100%; max-width: 200px; }
    
    .hero {
        height: 65vh;
        min-height: 450px;
    }
    
    .hero-title { font-size: 2.25rem; letter-spacing: -1px; }
    
    .hero-desc { font-size: 1rem; }
    
    .hero-actions { flex-direction: column; }
    
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .ep-card { flex: 0 0 280px; }
    
    .ep-grid { grid-template-columns: 1fr; }
    
    .detail-banner { height: 350px; }
    
    .detail-stats { flex-wrap: wrap; gap: 20px; }
    
    .footer-content { gap: 32px; }
}

@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card-title { font-size: 0.85rem; }
    
    .genres-grid { grid-template-columns: repeat(2, 1fr); }
}
