/* ==========================================================================
   H!ANIME PRO - Core Theme Stylesheet
   Modern, Dark Mode, High Performance Anime Streaming UI
   ========================================================================== */

:root {
    --bg-body: #0d0d13;
    --bg-surface: #14151f;
    --bg-surface-elevated: #1a1b29;
    --bg-surface-hover: #222436;
    --bg-glass: rgba(20, 21, 31, 0.85);
    
    /* Vibrant modern anime accent colors (Customizable via WP Admin) */
    --primary: #ff5e89;
    --primary-hover: #ff759b;
    --primary-glow: rgba(255, 94, 137, 0.35);
    --secondary: #7952ec;
    --secondary-glow: rgba(121, 82, 236, 0.3);
    
    --accent-cyan: #00d2b4;
    --accent-orange: #ff9800;
    --accent-yellow: #ffc107;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    
    /* Text Hierarchy */
    --text-white: #ffffff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Borders & Dividers */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    /* Layout & Geometry */
    --header-height: 70px;
    --container-max: 1560px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-heading: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   LIGHT THEME MODE (Activated via Top Header Bulb Button)
   ========================================================================== */
body.light-theme,
html.light-theme {
    --bg-body: #f4f5f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8f9fa;
    --bg-surface-hover: #edf0f5;
    --bg-glass: rgba(255, 255, 255, 0.94);
    
    --text-white: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    
    color-scheme: light;
}

body.light-theme {
    background-color: var(--bg-body);
    color: var(--text-main);
}

body.light-theme .site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .site-logo .logo-h,
body.light-theme .site-logo .logo-anime {
    color: #0f172a;
}

body.light-theme .anime-brand-logo .logo-text-title,
html.light-theme .anime-brand-logo .logo-text-title {
    color: #0f172a !important;
}

body.light-theme .anime-brand-logo .logo-icon-emblem,
html.light-theme .anime-brand-logo .logo-icon-emblem {
    filter: drop-shadow(0 3px 8px rgba(225, 29, 72, 0.22));
}

body.light-theme .anime-brand-logo .logo-badge-pill,
html.light-theme .anime-brand-logo .logo-badge-pill {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

body.light-theme .header-search-box {
    background: #f1f3f7;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .header-search-box:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

body.light-theme .search-input {
    color: #0f172a;
}

body.light-theme .tool-icon-btn,
body.light-theme .lang-toggle,
body.light-theme .btn-my-anime {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

body.light-theme .btn-toggle-lights.active-light,
.btn-toggle-lights.active-light {
    color: #f59e0b !important;
    background: #fef3c7 !important;
    border-color: #fde68a !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

body.light-theme .search-results-dropdown,
body.light-theme .nav-dropdown-menu,
body.light-theme .my-anime-drawer {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body.light-theme .top10-card,
body.light-theme .anime-card,
body.light-theme .chart-column,
body.light-theme .quick-category-pill,
body.light-theme .filter-bar,
body.light-theme .anime-detail-modal-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-theme .chart-item:hover,
body.light-theme .quick-category-pill:hover,
body.light-theme .search-result-item:hover {
    background: #f1f4f9;
}

/* Hero Spotlight Carousel: Keep rich, vivid, cinematic artwork in both light & dark mode */
body.light-theme .hero-spotlight {
    background: #0b0c12 !important;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .hero-spotlight .spotlight-backdrop,
.spotlight-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 12, 18, 0.95) 0%, rgba(11, 12, 18, 0.82) 42%, rgba(11, 12, 18, 0.2) 80%, rgba(11, 12, 18, 0.5) 100%) !important;
    pointer-events: none;
}

body.light-theme .hero-spotlight .spotlight-title,
.hero-spotlight .spotlight-title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.light-theme .hero-spotlight .spotlight-desc,
.hero-spotlight .spotlight-desc {
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

body.light-theme .hero-spotlight .spotlight-meta span:not(.badge-tag):not(.badge-sub):not(.badge-dub):not(.badge-score) {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .hero-spotlight .btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(8px);
}

body.light-theme .hero-spotlight .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

body.light-theme .spotlight-pager {
    background: rgba(15, 16, 22, 0.8) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.light-theme .spotlight-pager .pager-btn {
    color: #ffffff !important;
}

body.light-theme .section-title,
body.light-theme .anime-card-title,
body.light-theme .chart-anime-title,
body.light-theme .top10-title {
    color: #0f172a;
}

body.light-theme .section-subtitle,
body.light-theme .anime-card-sub {
    color: #64748b;
}

body.light-theme .site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-theme .tab-btn {
    background: #ffffff;
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

body.light-theme .btn-secondary {
    background: #f1f4f9;
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .btn-secondary:hover {
    background: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    background-color: var(--bg-body);
    transition: background-color var(--transition-normal);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: #2a2c3d;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* ==========================================================================
   ADAPTIVE BRAND LOGO (DARK & LIGHT THEME AUTO-SWITCHING)
   ========================================================================== */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Vector Adaptive Badge Logo */
.anime-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.anime-brand-logo .logo-icon-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(255, 40, 83, 0.38));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.site-logo:hover .anime-brand-logo .logo-icon-emblem {
    transform: rotate(-4deg) scale(1.06);
    filter: drop-shadow(0 6px 16px rgba(255, 40, 83, 0.55));
}

.anime-brand-logo .logo-text-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: #ffffff;
    transition: color 0.25s ease;
}

.anime-brand-logo .logo-badge-pill {
    background: linear-gradient(135deg, #ff2853 0%, #ff5e89 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 40, 83, 0.4);
    text-transform: uppercase;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Image Logo Dark & Light Mode Handlers */
.theme-logo-img {
    height: 38px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* In Dark Theme (Default) */
.theme-logo-img.default-logo {
    display: inline-block !important;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(255, 87, 34, 0.25));
}

.theme-logo-img.light-logo {
    display: none !important;
}

/* In Light Theme */
body.light-theme .theme-logo-img.default-logo,
html.light-theme .theme-logo-img.default-logo {
    display: none !important;
}

body.light-theme .theme-logo-img.light-logo,
html.light-theme .theme-logo-img.light-logo {
    display: inline-block !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

body.light-theme .theme-logo-img.default-logo.only-logo,
html.light-theme .theme-logo-img.default-logo.only-logo {
    display: inline-block !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

/* Legacy text logo classes for backward compatibility */
.site-logo .logo-h {
    color: var(--text-white);
}

.site-logo .logo-exclamation {
    color: var(--primary);
    display: inline-block;
    animation: pulse-glow 2s infinite ease-in-out;
}

.site-logo .logo-anime {
    color: var(--text-white);
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px var(--primary-glow)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--primary)); }
}

/* Navigation Links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: var(--text-white);
}

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

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
    background: var(--bg-surface-hover);
    color: var(--primary);
}

/* Header Search Bar */
.header-search-wrap {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 16px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    padding: 6px 0;
}

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

.search-filter-btn {
    color: var(--text-dim);
    padding: 6px 10px;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.search-filter-btn:hover {
    color: var(--text-white);
}

.search-submit-btn {
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.search-submit-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Header Utility Buttons */
.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tool-icon-btn:hover {
    color: var(--text-white);
    border-color: var(--border-hover);
    background: var(--bg-surface-hover);
}

/* Audio Language Pill (EN/JP) */
.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    color: var(--text-dim);
    transition: all var(--transition-fast);
}

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

/* My Anime Pill Button */
.btn-my-anime {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-my-anime:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-surface-hover);
}

/* Live Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--bg-surface-hover);
}

.search-result-thumb {
    width: 44px;
    height: 58px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 4px;
}

.search-result-info span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ==========================================================================
   HERO SPOTLIGHT CAROUSEL (SCREENSHOT 1)
   ========================================================================== */
.hero-spotlight {
    position: relative;
    width: 100%;
    margin-top: 18px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0b0c12;
    min-height: 520px;
    height: 520px;
}

.spotlight-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    background-size: cover;
    background-position: center right;
    display: flex;
    align-items: center;
}

.spotlight-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.spotlight-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 13, 19, 0.96) 0%, rgba(13, 13, 19, 0.85) 40%, rgba(13, 13, 19, 0.25) 80%, rgba(13, 13, 19, 0.6) 100%);
    pointer-events: none;
}

.spotlight-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 60px 48px;
}

.spotlight-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.spotlight-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.spotlight-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.badge-sub {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-dub {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-score {
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    gap: 4px;
}

.spotlight-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px var(--primary-glow);
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--border-hover);
}

/* Spotlight Mini Thumbnails & Navigation */
.spotlight-controls {
    position: absolute;
    bottom: 24px;
    left: 48px;
    right: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.spotlight-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotlight-thumb-btn {
    width: 44px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

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

.spotlight-thumb-btn.active,
.spotlight-thumb-btn:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

.spotlight-pager {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.pager-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2px 4px;
    transition: color var(--transition-fast);
}

.pager-btn:hover {
    color: var(--text-white);
}

/* ==========================================================================
   QUICK CATEGORY BUTTONS (SCREENSHOT 1)
   ========================================================================== */
.quick-categories-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px auto 30px;
}

.quick-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.quick-category-pill:hover,
.quick-category-pill.active {
    background: var(--bg-surface-elevated);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   TOP 10 TODAY (SCREENSHOT 2)
   ========================================================================== */
.top10-section {
    margin-bottom: 50px;
}

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

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

.section-subtitle {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 400;
    margin-top: 2px;
}

.top10-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.top10-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.top10-card:hover {
    transform: translateY(-6px);
}

.top10-card-inner {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
}

.top10-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.top10-card:hover .top10-poster {
    transform: scale(1.06);
}

/* Stylized Big Rank Number (Matches Screenshot 2) */
.rank-overlay-number {
    position: absolute;
    bottom: -15px;
    left: -8px;
    font-family: var(--font-heading);
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 1;
    z-index: 2;
    color: transparent;
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.85);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 94, 137, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.top10-title {
    margin-top: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   FRESH ON HIANIME - TABS & GRID (SCREENSHOTS 2 & 3)
   ========================================================================== */
.fresh-section {
    margin-bottom: 60px;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: #fff;
}

.anime-card-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.anime-card {
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.anime-card:hover {
    transform: translateY(-6px);
}

.anime-card-poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    margin-bottom: 10px;
}

.anime-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.anime-card:hover .anime-card-poster {
    transform: scale(1.06);
}

/* Rating badge top-left */
.card-badge-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge-rating i {
    color: var(--accent-yellow);
    font-size: 0.7rem;
}

/* Bottom episode badges */
.card-badge-episodes {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-ep-sub {
    background: rgba(16, 185, 129, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.badge-ep-dub {
    background: rgba(59, 130, 246, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.anime-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

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

.anime-card-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-center-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

/* ==========================================================================
   THE CHARTS - 4 COLUMNS (SCREENSHOTS 4 & 5)
   ========================================================================== */
.the-charts-section {
    margin-bottom: 60px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.chart-column {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.chart-column-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform var(--transition-fast);
}

.chart-item:hover {
    transform: translateX(4px);
}

.chart-rank {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.chart-thumb {
    width: 50px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    background: var(--bg-surface-2);
}

.chart-info {
    flex: 1;
    min-width: 0;
}

.chart-anime-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.chart-item:hover .chart-anime-title {
    color: var(--primary);
}

.chart-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.chart-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 18px;
    transition: transform var(--transition-fast);
}

.chart-footer-link:hover {
    transform: translateX(4px);
}

/* ==========================================================================
   FAN FAVOURITES SECTION (SCREENSHOT 5)
   ========================================================================== */
.fan-favourites-section {
    margin-bottom: 60px;
}

.fan-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* ==========================================================================
   BROWSE BY GENRE (SCREENSHOT 6)
   ========================================================================== */
.genre-section {
    margin-bottom: 60px;
}

.genre-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.genre-tag-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.genre-tag-pill:hover {
    background: var(--bg-surface-hover);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   A-Z FILTER BAR (SCREENSHOT 6 & SCREENSHOT 9)
   ========================================================================== */
.az-bar-wrap {
    margin: 40px auto;
}

.az-bar-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    gap: 4px;
    overflow-x: auto;
}

.az-letter-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.az-letter-btn.active,
.az-letter-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================================
   SINGLE ANIME / SERIES DETAILS PAGE (SCREENSHOTS 6, 7, 8)
   ========================================================================== */
.anime-detail-header {
    margin: 30px auto 40px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 36px;
    align-items: flex-start;
}

.detail-poster-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

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

.detail-main-info {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.detail-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.detail-action-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-pill-action {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-pill-action:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.detail-synopsis {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 26px;
}

/* Social Share Bar */
.share-anime-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.share-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.share-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-share-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.social-share-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Sidebar "AT A GLANCE" Card */
.at-a-glance-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.glance-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 20px;
}

.glance-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.glance-label {
    color: var(--text-dim);
}

.glance-value {
    color: var(--text-white);
    font-weight: 600;
    text-align: right;
}

.glance-value.highlight {
    color: var(--primary);
}

.glance-genres-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

/* Seasons & Movies Watch Order Slider */
.seasons-movies-wrap {
    margin: 40px auto;
}

.seasons-slider {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.season-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    min-width: 200px;
    transition: all var(--transition-fast);
}

.season-card.active {
    border-color: var(--primary);
    background: rgba(255, 94, 137, 0.08);
}

.season-card-thumb {
    width: 44px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.season-card-info h5 {
    font-size: 0.85rem;
    color: var(--text-white);
}

.season-card-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.badge-you-are-here {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

/* Episodes Selector (Numbered Buttons) */
.episodes-selector-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 50px;
}

.episodes-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.ep-legend {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.ep-legend .legend-dub {
    color: var(--accent-blue);
    font-weight: 600;
}

.ep-legend .legend-filler {
    color: var(--accent-orange);
    font-weight: 600;
}

.ep-search-input {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    color: var(--text-white);
    font-size: 0.85rem;
    outline: none;
}

.ep-range-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.ep-range-btn {
    padding: 6px 14px;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.ep-range-btn.active,
.ep-range-btn:hover {
    background: var(--primary);
    color: #fff;
}

.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
}

.ep-number-btn {
    position: relative;
    height: 38px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.ep-number-btn:hover,
.ep-number-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 94, 137, 0.35);
}

/* Blue dot on top-right for Dub out */
.ep-number-btn.has-dub::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}

/* Orange border/fill for Filler episodes */
.ep-number-btn.is-filler {
    border-color: rgba(255, 152, 0, 0.5);
    background: rgba(255, 152, 0, 0.12);
    color: var(--accent-orange);
}

.ep-number-btn.is-filler:hover {
    background: var(--accent-orange);
    color: #fff;
}

/* ==========================================================================
   SINGLE EPISODE / WATCH PLAYER PAGE (SCREENSHOTS 13, 14, 15)
   ========================================================================== */
.watch-page-wrap {
    margin: 24px auto 50px;
}

.watch-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.watch-player-layout.wide-mode {
    grid-template-columns: 1fr;
}

.watch-player-layout.wide-mode .player-screen-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.watch-player-layout.wide-mode .watch-episodes-sidebar {
    max-height: 320px;
    margin-top: 16px;
}

.player-main-col {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.player-screen-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.player-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.player-big-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 0 30px var(--primary-glow);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.player-big-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Controls Bar Below Player */
.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-top: 14px;
    gap: 14px;
}

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

/* Toggle Switch Styles */
.switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
}

.switch-label .switch-input {
    display: none;
}

.switch-slider {
    width: 36px;
    height: 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    position: relative;
    transition: background var(--transition-fast);
}

.switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast);
}

.switch-input:checked + .switch-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.switch-input:checked + .switch-slider::after {
    transform: translateX(16px);
}

.badge-new-pill {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

/* Server Selector Bar */
.server-select-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-top: 14px;
}

.server-type-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.server-btn {
    padding: 6px 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.server-btn.active,
.server-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Watch Page Episodes Sidebar */
.watch-episodes-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    max-height: 520px;
}

.watch-episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

#watchSidebarEpGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 38px;
    align-content: flex-start;
    gap: 8px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
}

#watchSidebarEpGrid::-webkit-scrollbar {
    width: 5px;
}
#watchSidebarEpGrid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}
#watchSidebarEpGrid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
#watchSidebarEpGrid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Mini Anime Card Below Player (Screenshot 14 & 15) */
.mini-anime-card {
    display: flex;
    gap: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 30px;
}

.mini-anime-thumb {
    width: 110px;
    height: 155px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.mini-anime-details h3 {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.mini-anime-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ==========================================================================
   FOOTER (SCREENSHOTS 5, 8, 12, 15)
   ========================================================================== */
.site-footer {
    background: #08080c;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 320px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 18px;
}

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

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

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

.footer-disclaimer {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Scroll To Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-layout {
        grid-template-columns: 240px 1fr;
    }
    .at-a-glance-card {
        grid-column: 1 / -1;
    }
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }
    .top10-grid,
    .anime-card-grid,
    .fan-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .watch-player-layout {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top10-grid,
    .anime-card-grid,
    .fan-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .spotlight-content {
        padding: 30px 20px;
    }
    .spotlight-title {
        font-size: 2rem;
    }
    .rank-overlay-number {
        font-size: 4.5rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top10-grid,
    .anime-card-grid,
    .fan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lights Off Overlay Mode */
.lights-dim-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lights-dim-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Toast Notifications */
.hianime-toast {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 10000;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hianime-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* My Anime Slide-in Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.my-anime-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.my-anime-drawer.active {
    right: 0;
}

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

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    color: #fff;
    background: var(--primary);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.watchlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.watchlist-item:hover {
    transform: translateX(4px);
}

.watchlist-thumb {
    width: 48px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* Clickable cursor for interactive cards */
.anime-card, .top10-card, .chart-item, .season-card, .ep-number-btn, .quick-category-pill {
    cursor: pointer;
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER NAVIGATION
   ========================================================================== */
.mobile-nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-white);
    font-size: 1.15rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.mobile-nav-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 290px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    z-index: 10002;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.active {
    left: 0;
}

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

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    margin-bottom: 4px;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: #fff;
    background: var(--bg-surface-hover);
}

.mobile-menu-links a.active i {
    color: var(--primary);
}

.mobile-menu-links a i {
    width: 20px;
    text-align: center;
    color: var(--text-dim);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .top10-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* 2. Tablets (max-width: 991px) */
@media (max-width: 991px) {
    .container {
        padding: 0 16px;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .header-nav {
        display: none !important;
    }
    
    .header-inner {
        gap: 12px;
    }
    
    .header-search-wrap {
        max-width: none;
        flex: 1;
        min-width: 0;
    }
    
    .hero-spotlight {
        height: 420px;
        margin-bottom: 24px;
    }
    
    .spotlight-content {
        max-width: 90%;
        padding: 24px 20px;
    }
    
    .spotlight-title {
        font-size: 1.8rem;
    }
    
    .anime-card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    
    .detail-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .detail-poster-wrap {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .watch-player-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .watch-episodes-sidebar {
        width: 100%;
        max-height: 380px;
    }
    
    #watchSidebarEpGrid {
        grid-template-columns: repeat(6, 1fr);
        max-height: 290px;
    }
}

/* 3. Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .site-header {
        height: 58px;
    }
    
    .header-inner {
        gap: 8px;
        width: 100%;
    }
    
    .site-logo {
        font-size: 1.35rem;
    }
    
    .site-logo img {
        height: 28px !important;
    }
    
    .header-search-wrap {
        flex: 1;
        min-width: 0;
    }
    
    .header-search-box {
        padding: 2px 4px 2px 10px;
    }
    
    .search-input {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    
    .search-filter-btn {
        display: none !important;
    }
    
    .search-submit-btn {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }
    
    .header-tools {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .tool-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }
    
    .btn-random-pick {
        display: none !important;
    }
    
    .lang-toggle {
        padding: 2px;
    }
    
    .lang-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .btn-my-anime {
        padding: 6px 9px;
        font-size: 0.85rem;
    }
    
    .btn-my-anime .my-anime-text,
    .btn-my-anime span {
        display: none !important;
    }
    
    /* Hero Spotlight Mobile */
    .hero-spotlight {
        height: 380px;
        border-radius: var(--radius-md);
        margin-bottom: 20px;
    }
    
    .spotlight-content {
        max-width: 100%;
        padding: 18px 14px;
    }
    
    .spotlight-badge {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    
    .spotlight-title {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }
    
    .spotlight-meta {
        font-size: 0.78rem;
        gap: 6px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .spotlight-desc {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .spotlight-actions {
        gap: 8px;
    }
    
    .spotlight-actions .btn-primary,
    .spotlight-actions .btn-secondary {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
    
    .spotlight-thumbs {
        display: none !important;
    }
    
    .spotlight-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .spotlight-pager {
        font-size: 0.8rem;
    }
    
    /* Quick Categories Horizontal Scroll */
    .quick-categories-bar {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 8px;
        padding-bottom: 6px;
        margin-bottom: 22px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .quick-categories-bar::-webkit-scrollbar {
        display: none;
    }
    
    .quick-category-pill {
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 0.82rem;
    }
    
    /* Section Headings */
    .section-head {
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    /* Top 10 Today Grid: 2 clean columns */
    .top10-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .top10-card-inner {
        aspect-ratio: 2 / 3;
        border-radius: var(--radius-sm);
    }
    
    .top10-poster {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .rank-overlay-number {
        font-size: 3.8rem !important;
        bottom: -6px !important;
        left: -3px !important;
        -webkit-text-stroke: 1.8px rgba(255, 255, 255, 0.85);
    }
    
    .top10-title {
        font-size: 0.85rem;
        margin-top: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Anime Card Grids: 2 columns on mobile */
    .anime-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .anime-card-poster-wrap {
        aspect-ratio: 2 / 3;
    }
    
    .anime-card-title {
        font-size: 0.82rem;
        line-height: 1.35;
    }
    
    .anime-card-sub {
        font-size: 0.72rem;
    }
    
    /* Charts Grid: 1 column */
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .chart-column {
        padding: 16px;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .az-bar-capsule {
        padding: 4px;
        gap: 2px;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }
    
    .az-letter-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
}

/* 4. Very Small Phones (max-width: 400px) */
@media (max-width: 400px) {
    .site-logo {
        font-size: 1.2rem;
    }
    
    .site-header {
        height: 54px;
    }
    
    .spotlight-title {
        font-size: 1.25rem;
    }
    
    .rank-overlay-number {
        font-size: 3.2rem !important;
    }
}

/* ==========================================================================
   HiAnime Pagination Styles (Homepage & Archives)
   ========================================================================== */
.hianime-pagination,
.navigation.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto;
}

.navigation.pagination {
    margin-top: 36px;
    text-align: center;
}

.navigation.pagination .screen-reader-text {
    display: none;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--bg-surface-elevated, #1f2129);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-sm, 8px);
    color: var(--text-muted, #9ca3af);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast, 0.2s ease);
    cursor: pointer;
    user-select: none;
}

.page-numbers:hover {
    background: var(--primary, #ff5c8a);
    border-color: var(--primary, #ff5c8a);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 92, 138, 0.35);
}

.page-numbers.current {
    background: var(--primary, #ff5c8a);
    border-color: var(--primary, #ff5c8a);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(255, 92, 138, 0.45);
    cursor: default;
}

.page-numbers.current:hover {
    transform: none;
}

.page-numbers.dots {
    background: transparent;
    border: none;
    color: var(--text-dim, #6b7280);
    padding: 0 6px;
    min-width: auto;
    cursor: default;
}

.page-numbers.dots:hover {
    background: transparent;
    border: none;
    color: var(--text-dim, #6b7280);
    transform: none;
    box-shadow: none;
}

.page-numbers.prev,
.page-numbers.next {
    font-size: 0.82rem;
    padding: 0 16px;
}

/* Light Theme overrides for Pagination */
[data-theme="light"] .page-numbers {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    color: #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .page-numbers:hover {
    background: var(--primary, #ff5c8a);
    border-color: var(--primary, #ff5c8a);
    color: #ffffff;
}

[data-theme="light"] .page-numbers.current {
    background: var(--primary, #ff5c8a);
    border-color: var(--primary, #ff5c8a);
    color: #ffffff;
}

[data-theme="light"] .page-numbers.dots {
    background: transparent;
    border: none;
    color: #9ca3af;
}

/* ==========================================================================
   Anikoto Estimated Schedule Styles (Cloned from https://anikototv.to/home)
   ========================================================================== */
#schedule.anikoto-schedule-card,
section#schedule {
    border-radius: 8px;
    overflow: hidden;
    background: #0d1520;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

#schedule .head {
    background: #101c2a;
    padding: 24px 30px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#schedule .head .title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#schedule .head .title .now {
    font-size: 0.95rem;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.3px;
}

#schedule .head .title .timenow {
    color: #94a3b8;
    font-family: monospace, 'Courier New', Courier;
}

#schedule .head .days {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

#schedule .head .days .prev,
#schedule .head .days .next {
    width: 36px;
    height: 52px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

#schedule .head .days .prev:hover,
#schedule .head .days .next:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

#schedule .head .days .items-wrap {
    flex-grow: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

#schedule .head .days .items-wrap::-webkit-scrollbar {
    display: none;
}

#schedule .head .days .items {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-width: 600px;
}

#schedule .head .days .day {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 6px 10px 10px;
    position: relative;
    user-select: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#schedule .head .days .day:hover {
    background: rgba(255, 255, 255, 0.03);
}

#schedule .head .days .day .inner .date {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

#schedule .head .days .day .inner .wday {
    font-size: 1.4rem;
    font-weight: 800;
    color: #8da2bb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

#schedule .head .days .day.active .inner .date {
    color: #ffffff;
}

#schedule .head .days .day.active .inner .wday {
    color: #ffffff;
    font-weight: 900;
}

#schedule .head .days .day.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary, #ff5c8a);
    box-shadow: 0 0 8px rgba(255, 92, 138, 0.6);
    border-radius: 2px;
}

#schedule .body {
    background: #0d1520;
    position: relative;
}

#schedule .body .items {
    padding: 12px 0;
    transition: opacity 0.2s ease;
}

#schedule .body .items a.item {
    width: 100%;
    display: flex;
    align-items: center;
    color: #a0b1c5;
    padding: 12px 36px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

#schedule .body .items a.item:nth-child(n+8) {
    display: none;
}

#schedule .body.expand .items a.item:nth-child(n+8) {
    display: flex;
}

#schedule .body .items a.item:hover {
    background: #142030;
}

#schedule .body .items a.item:hover .title {
    color: var(--primary, #ff5c8a);
}

#schedule .body .items a.item:hover .ep {
    background: var(--primary, #ff5c8a);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 92, 138, 0.4);
}

#schedule .body .items a.item .time {
    font-family: 'Bebas Neue', 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #556c8a;
    min-width: 65px;
    margin-right: 24px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

#schedule .body .items a.item .title {
    flex-grow: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: #a0b1c5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
    transition: color 0.2s ease;
}

#schedule .body .items a.item .ep {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    background: #172537;
    color: #38bdf8;
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#schedule .body .items a.item .ep i {
    font-size: 0.72rem;
}

#schedule .body .items a.item.old {
    color: #515f75;
}

#schedule .body .items a.item.old .time {
    color: #3b495c;
}

#schedule .body .items a.item.old .ep {
    background: #131c29;
    color: #4b6282;
}

#schedule .body .more {
    background: #111b29;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    padding: 13px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    user-select: none;
}

#schedule .body .more::before {
    content: "Show more ▼";
}

#schedule .body .more:hover {
    color: #cbd5e1;
    background: #142030;
}

#schedule .body.expand .more::before {
    content: "Show less ▲";
}

/* Light Theme Overrides for Schedule */
[data-theme="light"] #schedule.anikoto-schedule-card,
[data-theme="light"] section#schedule {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #schedule .head {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #schedule .head .title {
    color: #0f172a;
}

[data-theme="light"] #schedule .head .days .day .inner .wday {
    color: #475569;
}

[data-theme="light"] #schedule .head .days .day.active .inner .wday {
    color: #0f172a;
}

[data-theme="light"] #schedule .body {
    background: #ffffff;
}

[data-theme="light"] #schedule .body .items a.item {
    color: #334155;
    border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] #schedule .body .items a.item:hover {
    background: #f1f5f9;
}

[data-theme="light"] #schedule .body .items a.item .time {
    color: #64748b;
}

[data-theme="light"] #schedule .body .items a.item .title {
    color: #1e293b;
}

[data-theme="light"] #schedule .body .items a.item .ep {
    background: #e0f2fe;
    color: #0284c7;
}

[data-theme="light"] #schedule .body .more {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
    color: #475569;
}

/* Mobile Responsive for Schedule */
@media (max-width: 768px) {
    #schedule .head {
        padding: 16px 14px 10px;
    }
    
    #schedule .head .title {
        font-size: 1.15rem;
    }
    
    #schedule .body .items a.item {
        padding: 10px 14px;
        flex-wrap: wrap;
        row-gap: 6px;
    }
    
    #schedule .body .items a.item .time {
        order: 1;
        font-size: 1.25rem;
        margin-right: 0;
    }
    
    #schedule .body .items a.item .ep {
        order: 2;
        margin-left: auto;
        min-width: auto;
        padding: 4px 12px;
        font-size: 0.78rem;
    }
    
    #schedule .body .items a.item .title {
        order: 3;
        width: 100%;
        padding-right: 0;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   PERFORMANCE & INSTANT RENDERING ENHANCEMENTS (Fast Image & Page Loading)
   ========================================================================== */
.anime-card-poster-wrap,
.detail-poster-wrap,
.top10-card-inner,
.player-screen-wrap {
    background-color: #12131c;
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.3) 100%);
    contain: layout paint style;
}

.anime-card-poster,
.top10-poster,
.detail-poster,
.chart-thumb,
.season-card-thumb,
.sc-item-poster {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Fast image reveal without layout jumps */
.anime-card-poster.is-loaded,
.top10-poster.is-loaded,
.detail-poster.is-loaded,
.chart-thumb.is-loaded {
    opacity: 1;
}

/* Modern Browser Content-Visibility for Sub-Second DOM Paint */
.anime-card-grid,
.charts-grid,
.top10-carousel,
.seasons-slider,
.fan-grid {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}
