/* ============================================
   AGC Dracin - Main Stylesheet v2.0
   ============================================ */

/* Offset navbar + topbar ad height */
:root {
    --navbar-height: 64px;
    --topbar-height: 52px;
    --total-header: calc(var(--navbar-height) + var(--topbar-height));
}

/* CSS Variables */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ff6b6b;
    --accent: #f39c12;
    --accent-light: #f1c40f;
    --gold: #ffd700;

    /* Dark Theme (default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6c6c80;
    --border-color: #2a2a3e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --border-color: #e0e0e8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --gradient-hero: linear-gradient(135deg, #f5f5f8 0%, #e8e8f0 50%, #f5f5f8 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}

/* ============================================
   LIGHT THEME OVERRIDES (Mode Terang - Menu & Navbar)
   ============================================ */
[data-theme="light"] #navbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logo,
[data-theme="light"] .logo-text,
[data-theme="light"] .site-brand-name {
    color: #1a1a2e;
}

[data-theme="light"] .nav-link {
    color: #1a1a2e !important;
    font-weight: 600;
}

[data-theme="light"] .nav-link i {
    color: #4a4a60;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    background: rgba(231, 76, 60, 0.12);
    color: var(--primary) !important;
}

[data-theme="light"] .nav-link:hover i,
[data-theme="light"] .nav-link.active i {
    color: var(--primary) !important;
}

[data-theme="light"] .search-btn,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .mobile-menu-btn {
    color: #1a1a2e;
}

[data-theme="light"] .search-btn:hover,
[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .mobile-menu-btn:hover {
    background: rgba(231, 76, 60, 0.12);
    color: var(--primary);
}

[data-theme="light"] .search-box.active input {
    background: #ffffff;
    color: #1a1a2e;
    border: 1px solid var(--border-color);
}

/* Drawer Menu Mobile di Mode Terang */
[data-theme="light"] .mobile-menu {
    background: #ffffff;
    color: #1a1a2e;
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-header {
    color: #1a1a2e;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .mobile-menu-header button {
    color: #1a1a2e;
}

[data-theme="light"] .mobile-menu-links a {
    color: #1a1a2e !important;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

[data-theme="light"] .mobile-menu-links a i {
    color: var(--primary);
}

[data-theme="light"] .mobile-menu-links a:hover {
    color: var(--primary) !important;
    background: rgba(231, 76, 60, 0.08);
}

/* Detail Hero tetap kontras di Mode Terang */
.detail-content {
    color: #ffffff;
}

.detail-content .detail-title {
    color: #ffffff;
}

.detail-content .detail-synopsis h3,
.detail-content .detail-cast h3 {
    color: #ffffff;
}

.detail-content .detail-synopsis p {
    color: rgba(255, 255, 255, 0.85);
}

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

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

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; background: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ============================================
   Preloader
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.dragon-loader {
    font-size: 4rem;
    animation: dragonBounce 1.5s ease-in-out infinite;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.8rem 0 0.2rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes dragonBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    padding: 0.75rem 0;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-icon {
    font-size: 2rem;
    animation: dragonFloat 3s ease-in-out infinite;
}

@keyframes dragonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: var(--text-primary);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(231, 76, 60, 0.15);
    color: var(--primary);
}

.nav-link.active {
    font-weight: 600;
}

.nav-link i {
    margin-right: 0.3rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-box.active input {
    width: 250px;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
}

.search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--primary);
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

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

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

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

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

.search-result-item img {
    width: 45px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

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

.search-no-result {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(231, 76, 60, 0.15);
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 2000;
    transition: left 0.3s ease;
    padding: 1.5rem;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.mobile-menu-header button {
    margin-left: auto;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.4);
}

.hero-slide-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    padding: 0 5%;
    max-width: 700px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-chinese-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

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

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-rating {
    color: var(--gold) !important;
    font-weight: 600;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
}

.btn-outline {
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(231, 76, 60, 0.1);
}

.hero-controls {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.hero-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--primary);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 2.5rem 1.5rem;
}

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

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: var(--primary);
}

.see-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s ease;
}

.see-all:hover {
    gap: 0.6rem;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-title h1 i {
    color: var(--primary);
}

.page-title p {
    color: var(--text-secondary);
}

/* ============================================
   Drama Card Grid
   ============================================ */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.drama-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.drama-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.drama-card-poster {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
}

.drama-card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.drama-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: var(--gradient-card);
    pointer-events: none;
}

.drama-card-badge {
    position: absolute;
    top: 1.1rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    z-index: 3;
    pointer-events: none;
}

.badge {
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    display: inline-block;
    width: fit-content;
    transition: all 0.25s ease;
}

.badge-sub {
    background: rgba(39, 174, 96, 0.45);
    border: 1px solid rgba(46, 204, 113, 0.45);
    color: #ffffff;
}

.badge-episode {
    background: rgba(231, 76, 60, 0.45);
    border: 1px solid rgba(231, 76, 60, 0.45);
    color: #ffffff;
}

.badge-quality {
    background: rgba(41, 128, 185, 0.45);
    border: 1px solid rgba(52, 152, 219, 0.45);
    color: #ffffff;
}

.badge-new {
    background: rgba(243, 156, 18, 0.45);
    border: 1px solid rgba(243, 156, 18, 0.45);
    color: #ffffff;
}

.badge-completed {
    background: rgba(142, 68, 173, 0.45);
    border: 1px solid rgba(155, 89, 182, 0.45);
    color: #ffffff;
}

.drama-card-rating {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 4;
}

.drama-card-bookmark {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0.85;
    z-index: 5;
}

.drama-card:hover .drama-card-bookmark {
    opacity: 1;
    transform: scale(1.08);
}

.drama-card-bookmark.active,
.drama-card-bookmark:hover {
    background: var(--primary);
    opacity: 1;
}

.drama-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
}

.drama-card:hover .drama-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.drama-card-info {
    padding: 0.85rem;
}

.drama-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    height: 2.7em;
}

.drama-card-chinese {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.drama-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* ============================================
   Genre Grid
   ============================================ */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.genre-card {
    position: relative;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.genre-card:hover::before {
    left: 100%;
}

.genre-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.2);
}

.genre-card.active {
    border-color: var(--primary);
    background: rgba(231, 76, 60, 0.1);
}

.genre-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.genre-card-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.genre-card-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-bar select:focus {
    border-color: var(--primary);
}

/* ============================================
   Detail Page
   ============================================ */
.detail-hero {
    position: relative;
    min-height: 480px;
    padding: 2.5rem 0 2rem;
}

.detail-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.3);
    z-index: 0;
}

.detail-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, var(--bg-primary));
}

.detail-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2rem;
    padding: 0 5%;
}

.detail-poster {
    flex-shrink: 0;
    width: 250px;
}

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

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.detail-chinese-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-card);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.detail-meta-item i {
    color: var(--primary);
}

.detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.genre-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(231, 76, 60, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: var(--primary);
    color: white;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
    color: var(--gold);
    font-size: 1.2rem;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
}

.rating-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-synopsis {
    margin-bottom: 1.5rem;
}

.detail-synopsis h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

.detail-cast {
    margin-bottom: 1.5rem;
}

.detail-cast h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cast-item {
    padding: 0.3rem 0.8rem;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.85rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Episodes List */
.episodes-section {
    padding: 2rem 5%;
}

.episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.episodes-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
}

.episode-btn {
    position: relative;
    padding: 0.5rem 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.episode-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.episode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.episode-btn.watched {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   Footer
   ============================================ */
#footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

/* Jaringan Nonton Links di Footer */
#footerColNetwork ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

#footerColNetwork ul li a i.external-link-icon {
    font-size: 0.65rem;
    opacity: 0.45;
    margin-left: auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#footerColNetwork ul li a:hover i.external-link-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.disclaimer {
    font-size: 0.75rem !important;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* ============================================
   Back to Top & Toast
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
    white-space: nowrap;
}

.toast i {
    color: var(--primary);
}

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

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

/* ============================================
   Page transitions
   ============================================ */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
    animation: pageIn 0.4s ease;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   ADDITIONS v2.0
   ============================================ */

/* Navbar top offset when topbar ad is visible */
#navbar {
    top: 0;
    transition: top 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Offset main content below fixed headers */
#mainContent {
    padding-top: 0; /* pages with hero handle their own spacing */
}

/* Topbar offset for navbar */
.has-topbar #navbar { top: 52px; }

/* A-Z search filter */
.search-filter-wrap {
    flex: 1;
    min-width: 180px;
}

.search-filter-wrap input {
    width: 100%;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-filter-wrap input:focus {
    border-color: var(--primary);
}

/* Keyboard shortcut badges */
kbd {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    margin: 0 0.1rem;
}

/* watched episode button */
.episode-btn.watched {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ecc71;
    color: #2ecc71;
}

.watch-ep-btn.watched {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ecc71;
    color: #2ecc71;
}

/* Detail page scrollable episodes on mobile */
@media (max-width: 768px) {
    .episodes-grid {
        max-height: 280px;
        overflow-y: auto;
    }
}

/* Hero section padding-top to clear fixed header */
.hero-section {
    padding-top: 0; /* bg image covers full area */
}

.hero-slide-content {
    padding-bottom: 4rem;
}

/* Page title extra top padding for non-hero pages */
.page-title {
    padding-top: 6rem !important;
}

/* Shimmer loading placeholder (optional future use) */
@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 2000px 100%;
    animation: shimmer 1.5s infinite;
}

/* Ad-adjacent section spacing adjustment */
.ad-slot--after-hero + .section,
.ad-slot--after-hero + .container {
    padding-top: 1rem;
}

/* ============================================
   SITEMAP & DRAMA DIRECTORY STYLES
   ============================================ */
.sitemap-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Stat Cards */
.sitemap-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sitemap-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.sitemap-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.sitemap-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(231, 76, 60, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.sitemap-stat-info {
    display: flex;
    flex-direction: column;
}

.sitemap-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.sitemap-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tabs & Filter Bar */
.sitemap-tabs-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.sitemap-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sitemap-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sitemap-tab:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.sitemap-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}

.sitemap-filter-box {
    position: relative;
    min-width: 280px;
    flex: 1;
    max-width: 360px;
}

.sitemap-filter-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sitemap-filter-box input {
    width: 100%;
    padding: 0.5rem 0.85rem 0.5rem 2.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.sitemap-filter-box input:focus {
    border-color: var(--primary);
}

/* Alphabet Jump Bar */
.sitemap-letter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.sitemap-letter-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sitemap-letter-btn.has-data:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.sitemap-letter-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
    border-color: transparent;
}

/* Group Card */
.sitemap-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sitemap-group-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.sitemap-letter-circle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sitemap-genre-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sitemap-letter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sitemap-letter-count {
    margin-left: auto;
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Rows */
.sitemap-rows-wrap {
    display: flex;
    flex-direction: column;
}

.sitemap-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.sitemap-row:last-child {
    border-bottom: none;
}

.sitemap-row:hover {
    background: rgba(231, 76, 60, 0.04);
}

.sitemap-row-thumb {
    width: 48px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.sitemap-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.sitemap-row-thumb:hover img {
    transform: scale(1.08);
}

.sitemap-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sitemap-row-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sitemap-row-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sitemap-row-title:hover {
    color: var(--primary);
}

.sitemap-row-cn {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sitemap-row-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sitemap-meta-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sitemap-row-cast {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sitemap-row-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

.sitemap-tag {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
}

.sitemap-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sitemap-act-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.sitemap-act-btn.btn-detail {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.sitemap-act-btn.btn-detail:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sitemap-act-btn.btn-play {
    background: var(--primary);
    color: #fff;
}

.sitemap-act-btn.btn-play:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}

@media (max-width: 680px) {
    .sitemap-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .sitemap-row-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .sitemap-tabs-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .sitemap-filter-box {
        max-width: 100%;
    }
}

/* ============================================
   JARINGAN SITUS STREAMING (SISTER SITES) STYLES
   ============================================ */

/* 1. Showcase Section di Beranda */
.network-sites-section {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.network-header-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width: 1024px) {
    .network-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .network-grid {
        grid-template-columns: 1fr;
    }
}

.network-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s ease;
    box-shadow: var(--shadow);
}

.network-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #e84393, #0984e3, #fdcb6e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.network-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.network-card:hover::before {
    opacity: 1;
}

.network-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.network-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.network-card:hover .network-card-icon {
    transform: scale(1.1) rotate(4deg);
}

.network-card-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.network-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

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

.network-card-title .external-indicator {
    font-size: 0.72rem;
    opacity: 0.5;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.network-card:hover .network-card-title .external-indicator {
    opacity: 1;
    transform: translate(2px, -2px);
}

.network-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.network-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.network-card-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.network-card:hover .network-card-action {
    gap: 0.6rem;
}

/* 2. Cross-Promotion Widget di Detail Drama */
.detail-network-promo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.detail-network-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-network-promo-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.detail-network-promo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-network-promo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.network-promo-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.network-promo-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.2);
}

.network-promo-pill .pill-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
}

.network-promo-pill .pill-arrow {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.network-promo-pill:hover .pill-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* 3. Mobile Menu Network Links */
.mobile-menu-network {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.mobile-menu-divider {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-network-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.mobile-network-link:hover {
    background: rgba(231, 76, 60, 0.08);
    color: var(--primary);
}

.mobile-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
}

/* Mode Terang (Light Mode) adjustments */
[data-theme="light"] .network-card {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .network-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .detail-network-promo {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .network-promo-pill {
    background: #f8f9fa;
    color: #1a1a2e;
}

[data-theme="light"] .mobile-network-link {
    color: #1a1a2e !important;
}

[data-theme="light"] .mobile-network-link:hover {
    color: var(--primary) !important;
    background: rgba(231, 76, 60, 0.08);
}
