/* nd-legacy-extract */
/* nd-layout.css — DIPINDAH APA ADANYA dari layouts/exoplayer-base.blade.php
   baris 355-1584 (Fase 2 redesign UI 2026-10: ekstrak tanpa mendesain).
   Pada tahap ini TIDAK ada satu selector/nilai pun yang diubah.
   Tokenisasi warna dilakukan di Fase 3. */
        :root {
            --base-bg: var(--nd-s0);
            --base-line: var(--nd-line);
            --base-text: var(--nd-t1);
            --base-muted: var(--nd-t3);
            --base-accent: var(--nd-accent-400);
        }
        * {
            box-sizing: border-box;
        }
        body {
            margin: 0;
            color: var(--base-text);
            background: var(--base-bg);
            font-family: "Segoe UI", Tahoma, sans-serif;
        }
        .topbar {
            position: sticky;
            top: 0;
            z-index: 40;
            background: var(--nd-glass);
            border-bottom: 1px solid var(--base-line);
            backdrop-filter: blur(6px);
        }
        .topbar-inner {
            max-width: 1360px;
            margin: 0 auto;
            padding: 12px 16px;
            --topbar-inline-padding: 16px;
            display: grid;
            gap: 12px;
        }
        .topbar-main {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
        }
        .brand {
            display: flex;
            align-items: center;
            white-space: nowrap;
        }
        .brand img {
            height: 55px;
            width: auto;
            display: block;
        }
        .hamburger {
            display: none;
            border: 1px solid var(--base-line);
            background: var(--nd-s2);
            border-radius: 10px;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
            color: var(--base-text);
            cursor: pointer;
            flex: 0 0 40px;
        }
        .hamburger i {
            font-size: 16px;
        }
        /* Topbar mobile 1-baris (pola YouTube): search jadi IKON di samping hamburger; di-tap →
           input melebar menimpa logo (mode is-search-open) dengan tombol kembali di kiri.
           Dua tombol ini hanya hidup di <=640px (lihat media query); desktop/tablet tetap. */
        .search-toggle,
        .global-search-back {
            display: none;
            border: 1px solid var(--base-line);
            background: var(--nd-s2);
            border-radius: 10px;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
            color: var(--base-text);
            cursor: pointer;
            flex: 0 0 40px;
        }
        .search-toggle i,
        .global-search-back i {
            font-size: 16px;
        }
        .global-search {
            position: relative;
            /* Selalu isi ruang sisa antara logo dan tombol navigasi. */
            flex: 1 1 auto;
            min-width: 0;
            margin-right: 0;
        }
        .global-search-form {
            position: relative;
            display: grid;
            grid-template-columns: 1fr 44px;
            border: 1px solid var(--nd-line);
            border-radius: 10px;
            overflow: hidden;
            background: var(--nd-s2);
        }
        .global-search-input {
            border: none;
            outline: none;
            height: 40px;
            padding: 0 86px 0 12px;
            font-size: 14px;
            background: var(--nd-s2);
            color: var(--nd-t1);
        }
        .global-search-clear {
            position: absolute;
            top: 0;
            right: 44px;
            bottom: 0;
            width: 38px;
            border: none;
            border-left: 1px solid var(--nd-line-subtle);
            background: var(--nd-s2);
            color: var(--nd-danger);
            font-size: 16px;
            font-weight: 900;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        .global-search-clear.is-visible {
            display: inline-flex;
        }
        .global-search-input::placeholder {
            color: var(--nd-t3);
        }
        .global-search-btn {
            border: none;
            border-left: 1px solid var(--nd-line-subtle);
            background: var(--nd-s2);
            color: var(--nd-t2);
            cursor: pointer;
        }
        .global-search-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--nd-s4);
            border: 1px solid var(--base-line);
            border-radius: 12px;
            box-shadow: 0 16px 30px rgba(27, 34, 53, 0.14);
            max-height: 420px;
            overflow-y: auto;
            overflow-x: hidden;
            z-index: 120;
            display: none;
        }
        .global-search-dropdown.open {
            display: block;
        }
        .global-search-item {
            display: grid;
            grid-template-columns: 46px 1fr;
            gap: 10px;
            padding: 9px 10px;
            text-decoration: none;
            color: var(--nd-t1);
            border-bottom: 1px solid var(--nd-line-subtle);
            min-width: 0;
            overflow: hidden;
        }
        .global-search-item:last-child {
            border-bottom: none;
        }
        .global-search-item:hover,
        .global-search-item.active {
            background: var(--nd-s5);
        }
        .global-search-thumb,
        .global-search-thumb-fallback {
            width: 46px;
            height: 62px;
            border-radius: 8px;
            object-fit: cover;
            background: var(--nd-ph-bg);
        }
        .global-search-thumb-fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--nd-t1);
            font-size: 18px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--nd-ph-bg), var(--nd-s3));
        }
        .global-search-title {
            font-size: 14px;
            line-height: 1.3;
            font-weight: 800;
            margin-bottom: 2px;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .global-search-title-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 2px;
        }
        .global-search-local-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border-radius: 999px;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
            color: var(--nd-t-on-accent);
            background: var(--nd-success-solid);
            box-shadow: 0 1px 2px rgba(17, 24, 39, 0.18);
            flex: 0 0 18px;
        }
        .global-search-meta {
            min-width: 0;
        }
        .global-search-desc {
            font-size: 12px;
            line-height: 1.35;
            color: var(--nd-t2);
            min-width: 0;
            overflow-wrap: anywhere;
            word-break: break-word;
            white-space: normal;
        }
        .global-search-highlight {
            background: var(--nd-gold-tint);
            color: var(--nd-t1);
            border-radius: 3px;
            padding: 0 1px;
            font-weight: 800;
        }
        .global-search-empty {
            padding: 12px;
            color: var(--nd-t2);
            font-size: 13px;
            text-align: center;
        }
        .global-search-loading {
            padding: 12px;
            color: var(--nd-t2);
            font-size: 13px;
            text-align: center;
            font-weight: 700;
        }
        .global-search-more-row {
            position: sticky;
            bottom: 0;
            padding: 8px;
            border-top: 1px solid var(--nd-line-subtle);
            background: linear-gradient(180deg, var(--nd-glass) 0%, var(--nd-s4) 26%);
            z-index: 2;
        }
        .global-search-more-btn {
            width: 100%;
            border: 1px solid var(--nd-line);
            border-radius: 10px;
            background: var(--nd-s3);
            color: var(--nd-t1);
            font-size: 12px;
            font-weight: 800;
            line-height: 1.25;
            padding: 9px 10px;
            cursor: pointer;
        }
        .global-search-more-btn:hover {
            border-color: var(--nd-line-strong);
            background: var(--nd-s5);
        }
        .menu {
            display: flex;
            gap: 14px;
            color: var(--base-muted);
            font-size: 14px;
            font-weight: 700;
            white-space: nowrap;
            align-items: center;
            flex-wrap: nowrap;
            flex: 0 0 auto;
            /* max-width dipakai untuk animasi collapse saat mode search-active.
               overflow tetap visible agar panel dropdown (Tag/Genre/Bahasa) tidak
               terpotong; overflow:hidden hanya diaktifkan saat collapse. */
            max-width: 80vw;
            overflow: visible;
            transition: max-width 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.28s ease;
        }
        .menu a {
            text-decoration: none;
            color: inherit;
        }
        .menu a.active,
        .menu details.active > summary {
            color: var(--nd-accent-ink);
        }
        .menu details {
            position: relative;
        }
        .menu details > summary {
            list-style: none;
            cursor: pointer;
            user-select: none;
            color: inherit;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: color 150ms ease;
        }
        .menu details > summary:hover {
            color: var(--base-ink, var(--nd-t1));
        }
        .menu details > summary::-webkit-details-marker {
            display: none;
        }
        /* Caret chevron yang berputar saat panel terbuka */
        .menu details > summary::after {
            content: '';
            width: 6px;
            height: 6px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(45deg);
            margin-top: -3px;
            opacity: 0.5;
            transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 200ms ease;
        }
        .menu details[open] > summary::after {
            transform: rotate(-135deg);
            margin-top: 2px;
            opacity: 0.9;
        }
        .menu-dropdown-panel {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            min-width: 220px;
            max-width: min(300px, calc(100vw - 24px));
            background: var(--nd-s4);
            border: 1px solid var(--base-line);
            border-radius: 14px;
            box-shadow: 0 16px 40px rgba(20, 27, 45, 0.16), 0 2px 8px rgba(20, 27, 45, 0.06);
            padding: 7px;
            display: grid;
            gap: 1px;
            max-height: min(64vh, 360px);
            overflow-y: auto;
            overscroll-behavior: contain;
            z-index: 120;
            scrollbar-width: thin;
            scrollbar-color: var(--nd-line-strong) transparent;
        }
        .menu-dropdown-panel::-webkit-scrollbar {
            width: 8px;
        }
        .menu-dropdown-panel::-webkit-scrollbar-thumb {
            background: var(--nd-line-strong);
            border-radius: 999px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        /* Animasi buka (native <details> tak animasi panel by default) */
        .menu details[open] > .menu-dropdown-panel {
            animation: menuPanelIn 170ms cubic-bezier(0.22, 0.61, 0.36, 1);
        }
        @keyframes menuPanelIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .menu-dropdown-panel a {
            display: flex;
            align-items: center;
            gap: 8px;
            border-radius: 10px;
            padding: 9px 11px;
            font-size: 13px;
            font-weight: 600;
            color: var(--nd-t2);
            text-decoration: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
            transition: background 130ms ease, color 130ms ease, padding-left 130ms ease;
        }
        .menu-dropdown-panel a:hover {
            background: var(--nd-s5);
            color: var(--nd-t1);
            padding-left: 14px;
        }
        .menu-dropdown-panel a.active {
            background: var(--nd-accent-tint);
            color: var(--nd-accent-ink);
        }
        .menu-dropdown-panel a.active::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--nd-accent-ink);
            flex: 0 0 auto;
        }

        /* ── Mode "search-active" (di atas breakpoint mobile) ──────────────────
           Saat user benar-benar mencari (debounce terpicu & XHR di-hit), menu
           horizontal di-collapse ke hamburger sehingga search box memenuhi 100%
           lebar. Transisi max-width + opacity membuat search box melebar mulus
           mengikuti menu yang menyusut. */
        .hamburger {
            opacity: 1;
            transition: opacity 0.28s ease;
        }
        @media (min-width: 981px) {
            .topbar.search-active .menu {
                max-width: 0;
                opacity: 0;
                overflow: hidden;
                pointer-events: none;
            }
            .topbar.search-active .hamburger {
                display: inline-flex;
            }
            .topbar.search-active.is-open .menu {
                max-width: min(280px, calc(100vw - 32px));
                opacity: 1;
                pointer-events: auto;
                overflow: visible;
                position: absolute;
                top: calc(100% + 10px);
                right: 0;
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
                background: var(--nd-s4);
                border: 1px solid var(--base-line);
                border-radius: 12px;
                box-shadow: 0 14px 30px rgba(27, 34, 53, 0.16);
                padding: 10px;
                z-index: 95;
            }
            .topbar.search-active.is-open .menu details {
                width: 100%;
            }
            .topbar.search-active.is-open .menu > a {
                display: block;
                width: 100%;
                padding: 8px 6px;
                border-radius: 8px;
            }
            .topbar.search-active.is-open .menu details > summary {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                padding: 8px 6px;
                border-radius: 8px;
            }
            .topbar.search-active.is-open .menu details > summary::after {
                margin-top: 0;
            }
            .topbar.search-active.is-open .menu > a:hover,
            .topbar.search-active.is-open .menu details > summary:hover {
                background: var(--nd-s5);
            }
            .topbar.search-active.is-open .menu-dropdown-panel {
                position: static;
                min-width: 0;
                max-width: none;
                box-shadow: none;
                border: 1px solid var(--base-line);
                background: var(--nd-s3);
                border-radius: 10px;
                padding: 6px;
                margin-top: 2px;
                max-height: 240px;
            }
            .topbar.search-active.is-open .menu details[open] > .menu-dropdown-panel {
                animation: none;
            }
        }
        @media (max-width: 980px) {
            .topbar-main {
                flex-wrap: wrap;
            }
            .global-search {
                order: 2;
                flex: 1 1 0;
                width: auto;
                min-width: 0;
                margin-right: 0;
            }
            .hamburger {
                display: inline-flex;
                order: 3;
                margin-left: 0;
            }
            .menu {
                display: none;
                order: 4;
                flex-basis: 100%;
                width: 100%;
                margin-left: 0;
                border-top: 1px solid var(--base-line);
                padding-top: 10px;
                gap: 10px;
                flex-direction: column;
                align-items: stretch;
            }
            .topbar.is-open .menu {
                display: flex;
            }
            .brand img {
                height: 44px;
            }
            .global-search-input {
                height: 38px;
                font-size: 13px;
            }
            .global-search-clear {
                height: 38px;
            }
            .global-search-btn {
                height: 38px;
            }
            .menu details {
                width: 100%;
            }
            .menu > a {
                display: block;
                width: 100%;
                padding: 8px 2px;
            }
            .menu details > summary {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                padding: 10px 4px;
            }
            .menu details > summary::after {
                margin-top: 0;
            }
            .menu-dropdown-panel {
                position: static;
                min-width: 0;
                max-width: none;
                box-shadow: none;
                border: 1px solid var(--base-line);
                border-radius: 12px;
                background: var(--nd-s3);
                margin: 4px 0 2px;
                padding: 6px;
                max-height: 280px;
            }
            .menu details[open] > .menu-dropdown-panel {
                animation: none;
            }
            .menu-dropdown-panel a {
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
        }
        @media (max-width: 640px) {
            .topbar-main {
                align-items: center;
            }
            .brand {
                order: 1;
            }
            /* SATU BARIS: logo … [ikon search] [hamburger]. Input search default DISEMBUNYIKAN
               (dulu flex-basis 100% → jatuh ke baris kedua). */
            .search-toggle {
                display: inline-flex;
                order: 2;
                margin-left: auto;
            }
            .hamburger {
                order: 3;
                margin-left: 0;
            }
            .global-search {
                display: none;
            }
            /* Mode cari terbuka: logo + kedua tombol disembunyikan, search mengisi seluruh baris
               dengan tombol kembali di kiri. */
            .topbar-main.is-search-open .brand,
            .topbar-main.is-search-open .search-toggle,
            .topbar-main.is-search-open .hamburger {
                display: none;
            }
            .topbar-main.is-search-open .global-search {
                display: flex;
                align-items: center;
                gap: 8px;
                order: 1;
                flex: 1 1 auto;
                min-width: 0;
                /* static → containing block dropdown = .topbar-main, sehingga offset
                   -var(--topbar-inline-padding) tetap full-bleed selebar viewport. */
                position: static;
            }
            .topbar-main.is-search-open .global-search-back {
                display: inline-flex;
            }
            .topbar-main.is-search-open .global-search-form {
                flex: 1 1 auto;
                min-width: 0;
            }
            .global-search-dropdown {
                position: absolute;
                left: calc(var(--topbar-inline-padding) * -1);
                right: calc(var(--topbar-inline-padding) * -1);
                top: calc(100% + 8px);
                width: auto;
                height: var(--global-search-dropdown-height, calc(100dvh - 108px));
                max-height: var(--global-search-dropdown-height, calc(100dvh - 108px));
                padding-bottom: env(safe-area-inset-bottom, 0px);
                border-radius: 0;
            }
            .global-search-item {
                grid-template-columns: 38px 1fr;
                gap: 8px;
                padding: 8px 9px;
                width: 100%;
            }
            .global-search-thumb,
            .global-search-thumb-fallback {
                width: 38px;
                height: 50px;
                border-radius: 7px;
            }
            .global-search-title {
                font-size: 13px;
                margin-bottom: 0;
                display: -webkit-box;
                -webkit-line-clamp: 1;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            .global-search-desc {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                min-height: calc(1.35em * 2);
            }
            .global-search-meta {
                min-height: calc(1.3em + (1.35em * 2));
            }
        }
        .adsense-wrap {
            max-width: 1360px;
            margin: 12px auto;
            padding: 0 16px;
        }
        .adsense-box {
            background: var(--nd-s1);
            border: 1px solid var(--base-line);
            border-radius: 10px;
            padding: 10px;
            min-height: 80px;
        }
        .site-footer-wrap {
            max-width: 1360px;
            margin: 14px auto 24px;
            padding: 0 16px;
        }
        .site-footer {
            border-radius: 16px;
            border: 1px solid var(--nd-line);
            background:
                radial-gradient(120% 140% at 0% 0%, rgba(255, 77, 109, 0.18) 0%, rgba(255, 77, 109, 0) 45%),
                radial-gradient(140% 130% at 100% 100%, rgba(78, 126, 255, 0.14) 0%, rgba(78, 126, 255, 0) 48%),
                linear-gradient(160deg, var(--nd-s1) 0%, var(--nd-s2) 52%, var(--nd-s3) 100%);  /* slab footer = panel (s1) menanjak, BUKAN s0 (itu kanvas halaman). 2 radial di atas = glow aksen + aurora BERALFA; tak ada token accent/info beralfa → rgba DIPERTAHANKAN */
            color: var(--nd-t2);
            box-shadow: 0 18px 42px rgba(8, 11, 19, 0.28);
            overflow: hidden;
        }
        .site-footer-lead {
            padding: 18px 16px 0;
        }
        .site-footer-seo-hero {
            border: 1px solid var(--nd-line-subtle);
            border-radius: 16px;
            padding: 16px 18px;
            background:
                radial-gradient(110% 140% at 0% 0%, rgba(255, 77, 109, 0.18) 0%, rgba(255, 77, 109, 0) 46%),
                linear-gradient(160deg, var(--nd-s2) 0%, var(--nd-s3) 100%);  /* radial glow aksen beralfa di atas: DIPERTAHANKAN (alasan sama) */
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);  /* sheen putih tipis, bukan garis; tak ada token warna-sheen → DIPERTAHANKAN */
        }
        .site-footer-seo-hero h1 {
            margin: 0;
            color: var(--nd-t1);
            font-size: 28px;
            line-height: 1.15;
            font-weight: 900;
            letter-spacing: -0.02em;
        }
        .site-footer-seo-hero p {
            margin: 10px 0 0;
            color: var(--nd-t2);
            font-size: 14px;
            line-height: 1.6;
            max-width: 760px;
        }
        .site-footer-top {
            padding: 16px;
            display: grid;
            grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(0, 1fr));
            gap: 14px;
        }
        .site-footer-col h4 {
            margin: 0 0 8px;
            font-size: 14px;
            font-weight: 900;
            color: var(--nd-t1);
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }
        .site-footer-brand-logo {
            display: inline-flex;
            align-items: center;
            margin-bottom: 10px;
        }
        .site-footer-brand-logo img {
            height: 46px;
            width: auto;
            display: block;
        }
        .site-footer-brand p {
            margin: 0 0 10px;
            color: var(--nd-t2);
            font-size: 13px;
            line-height: 1.55;
        }
        .site-footer-links,
        .site-footer-contact {
            display: grid;
            gap: 6px;
        }
        .site-footer-links a,
        .site-footer-contact a {
            color: var(--nd-t2);
            text-decoration: none;
            font-size: 13px;
            line-height: 1.4;
        }
        .site-footer-links a:hover,
        .site-footer-contact a:hover {
            color: var(--nd-accent-ink);
            text-decoration: underline;
        }
        .site-footer-contact span {
            color: var(--nd-t2);
            font-size: 13px;
            line-height: 1.4;
        }
        .site-footer-social {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        .site-footer-social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--nd-s3);
            color: var(--nd-t2);
            font-size: 15px;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;
        }
        .site-footer-social a:hover {
            background: var(--nd-accent);  /* FILL pakai --nd-accent (ikon putih 4.93/5.60); --nd-accent-400 adalah token TEKS → putih di atasnya cuma 2.74 */
            color: var(--nd-t-on-accent);
        }
        .site-footer-tag-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }
        .site-footer-tag-cloud a {
            border-radius: 999px;
            border: 1px solid var(--nd-line);
            background: var(--nd-s3);
            color: var(--nd-t2);
            font-size: 11px;
            font-weight: 700;
            text-decoration: none;
            padding: 5px 9px;
            line-height: 1;
        }
        .site-footer-tag-cloud a:hover {
            border-color: var(--nd-accent-400);
            color: var(--nd-accent-ink);
        }
        .site-footer-stats {
            padding: 0 16px 14px;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
        }
        .site-footer-stat {
            border: 1px solid var(--nd-line-subtle);
            border-radius: 12px;
            background: var(--nd-s2);
            padding: 10px;
        }
        .site-footer-stat-label {
            font-size: 11px;
            color: var(--nd-t3);
            margin-bottom: 4px;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }
        .site-footer-stat-value {
            font-size: 16px;
            color: var(--nd-t1);
            font-weight: 900;
            line-height: 1.2;
        }
        .site-footer-bottom {
            border-top: 1px solid var(--nd-line-subtle);
            padding: 10px 16px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            color: var(--nd-t3);
            font-size: 12px;
            line-height: 1.5;
        }
        .site-footer-bottom-links {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }
        .site-footer-bottom-links a {
            color: var(--nd-t2);
            text-decoration: none;
            font-weight: 700;
        }
        .site-footer-bottom-links a:hover {
            color: var(--nd-accent-ink);
            text-decoration: underline;
        }
        .site-footer-hidden {
            display: none !important;
        }
        .share-buttons {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin: 12px 0;
        }
        .share-buttons-label {
            font-size: 13px;
            color: var(--base-muted);
            font-weight: 600;
        }
        .share-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--share-color, var(--nd-t4));  /* --share-color di-set inline per-brand sosial (WAJIB dipertahankan); fallback netral = t4 */
            color: var(--nd-t-on-accent);
            font-size: 15px;
            text-decoration: none;
            transition: opacity 0.2s;
        }
        .share-btn:hover {
            opacity: 0.82;
        }
        @media (max-width: 1120px) {
            .site-footer-top {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .site-footer-stats {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (max-width: 640px) {
            .site-footer-wrap {
                margin-top: 12px;
                margin-bottom: 16px;
                padding: 0 10px;
            }
            .site-footer-lead {
                padding: 14px 14px 0;
            }
            .site-footer-seo-hero {
                padding: 14px;
            }
            .site-footer-seo-hero h1 {
                font-size: 22px;
            }
            .site-footer-top {
                grid-template-columns: 1fr;
                padding: 14px;
            }
            .site-footer-stats {
                padding: 0 14px 12px;
                grid-template-columns: 1fr 1fr;
            }
            .site-footer-bottom {
                padding: 10px 14px 12px;
                flex-direction: column;
                align-items: flex-start;
            }
        }
        .last-watch-popup {
            position: fixed;
            right: 14px;
            bottom: 14px;
            z-index: 180;
            width: min(340px, calc(100vw - 24px));
            border: 1px solid var(--nd-line);
            border-radius: 14px;
            background: var(--nd-s4);
            box-shadow: 0 16px 40px rgba(26, 33, 52, 0.18);
            overflow: hidden;
            transform: translateY(20px);
            opacity: 0;
            pointer-events: none;
            transition: transform .22s ease, opacity .22s ease;
        }
        .last-watch-popup.is-open {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }
        .last-watch-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px 8px;
            border-bottom: 1px solid var(--nd-line-subtle);
            font-size: 12px;
            font-weight: 800;
            color: var(--nd-t2);
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }
        .last-watch-close {
            border: none;
            background: transparent;
            color: var(--nd-t2);
            cursor: pointer;
            width: 24px;
            height: 24px;
            border-radius: 6px;
        }
        .last-watch-close:hover {
            background: var(--nd-s5);
            color: var(--nd-t1);
        }
        .last-watch-link {
            display: grid;
            grid-template-columns: 74px 1fr;
            gap: 10px;
            padding: 10px 12px 12px;
            text-decoration: none;
            color: inherit;
        }
        .last-watch-thumb,
        .last-watch-thumb-fallback {
            width: 74px;
            height: 98px;
            border-radius: 10px;
            object-fit: cover;
            background: var(--nd-ph-bg);
        }
        .last-watch-thumb {
            display: none;
        }
        .last-watch-thumb-fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--nd-t1);
            font-size: 26px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--nd-ph-bg), var(--nd-s3));
        }
        .last-watch-title {
            font-size: 15px;
            line-height: 1.3;
            font-weight: 800;
            color: var(--nd-t1);
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .last-watch-meta {
            font-size: 12px;
            color: var(--nd-t2);
            margin-bottom: 10px;
        }
        .last-watch-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 999px;
            border: 1px solid var(--nd-accent-500);
            padding: 6px 11px;
            background: var(--nd-accent);
            color: var(--nd-t-on-accent);
            font-size: 12px;
            font-weight: 800;
        }
        @media (max-width: 640px) {
            .last-watch-popup {
                right: 10px;
                bottom: 10px;
                width: min(320px, calc(100vw - 20px));
            }
        }
        .watch-history-fab {
            position: fixed;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 181;
            width: 42px;
            height: 42px;
            border: 1px solid var(--nd-line-strong);
            border-radius: 999px;
            background: var(--nd-glass);
            color: var(--nd-t1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 12px 28px rgba(9, 15, 28, 0.36);
        }
        .watch-history-fab:hover {
            background: var(--nd-s3);
        }
        .watch-history-popup {
            position: fixed;
            right: 62px;
            top: 50%;
            transform: translateY(-50%) scale(0.98);
            z-index: 181;
            width: min(360px, calc(100vw - 88px));
            max-height: min(72vh, 680px);
            border: 1px solid var(--nd-line);
            border-radius: 14px;
            background: var(--nd-s4);
            box-shadow: 0 18px 44px rgba(26, 33, 52, 0.2);
            display: flex;
            flex-direction: column;
            opacity: 0;
            pointer-events: none;
            transition: transform .2s ease, opacity .2s ease;
            overflow: hidden;
        }
        .watch-history-popup.is-open {
            transform: translateY(-50%) scale(1);
            opacity: 1;
            pointer-events: auto;
        }
        .watch-history-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 11px 12px 9px;
            border-bottom: 1px solid var(--nd-line-subtle);
            font-size: 12px;
            font-weight: 800;
            color: var(--nd-t2);
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }
        .watch-history-close {
            border: none;
            background: transparent;
            color: var(--nd-t2);
            cursor: pointer;
            width: 24px;
            height: 24px;
            border-radius: 6px;
        }
        .watch-history-close:hover {
            background: var(--nd-s5);
            color: var(--nd-t1);
        }
        .watch-history-list {
            padding: 10px 12px 12px;
            overflow: auto;
            display: grid;
            gap: 8px;
        }
        .watch-history-item-wrap {
            position: relative;
        }
        .watch-history-item {
            display: grid;
            grid-template-columns: 56px 1fr;
            gap: 10px;
            text-decoration: none;
            border: 1px solid var(--nd-line-subtle);
            border-radius: 10px;
            padding: 8px;
            color: inherit;
            background: var(--nd-s3);
        }
        .watch-history-item:hover {
            border-color: var(--nd-line);
            background: var(--nd-s5);
        }
        .watch-history-item-remove {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 20px;
            height: 20px;
            border: 1px solid var(--nd-line);
            border-radius: 999px;
            background: var(--nd-s1);
            color: var(--nd-t3);
            font-size: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all .12s ease;
            z-index: 2;
        }
        .watch-history-item-remove:hover {
            background: var(--nd-danger-tint);
            border-color: var(--nd-danger);
            color: var(--nd-danger);
        }
        .watch-history-thumb,
        .watch-history-thumb-fallback {
            width: 56px;
            height: 74px;
            border-radius: 8px;
            object-fit: cover;
            background: var(--nd-ph-bg);
        }
        .watch-history-thumb-fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--nd-t1);
            font-size: 18px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--nd-ph-bg), var(--nd-s3));
        }
        .watch-history-title {
            font-size: 13px;
            line-height: 1.3;
            font-weight: 800;
            color: var(--nd-t1);
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .watch-history-meta,
        .watch-history-time {
            font-size: 11px;
            color: var(--nd-t2);
            line-height: 1.35;
        }
        .watch-history-empty {
            border: 1px dashed var(--nd-line);
            border-radius: 10px;
            padding: 14px;
            color: var(--nd-t2);
            font-size: 12px;
            text-align: center;
            background: var(--nd-s3);
        }
        @media (max-width: 900px) {
            .watch-history-fab {
                right: 10px;
                width: 40px;
                height: 40px;
            }
            .watch-history-popup {
                right: 56px;
                width: min(320px, calc(100vw - 72px));
                max-height: min(66vh, 560px);
            }
        }
    /* ── Global image fallback ──────────────────────────────────────────────────
       Saat gambar gagal load, JS mengganti <img> dengan <div class="nd-img-fallback …">
       yang mewarisi kelas asli img (sehingga ukuran/border-radius tetap sama).
       Properti visual (background, flex) di-override di sini. */
    /* `!important` DILEPAS dari latar: gradien abu ini mengalahkan latar berwarna
       turunan judul milik nd-card.css (blok FALLBACK POSTER), sehingga SETIAP kartu
       yang posternya gagal muat terbaca sebagai kotak mati. Deklarasinya tetap ada
       sebagai dasar; aturan `body.nd-ui .nd-img-fallback` yang lebih spesifik di
       nd-card.css yang sekarang menang (terang maupun gelap). */
    .nd-img-fallback {
        background: linear-gradient(135deg, var(--nd-ph-bg) 0%, var(--nd-s3) 100%);
        object-fit: unset !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--nd-t1) !important;
        font-weight: 800 !important;
        font-size: clamp(11px, 4%, 26px) !important;
        letter-spacing: 0.04em !important;
        user-select: none !important;
        flex-shrink: 0 !important;
    }
