/* ========================================================
   🌸 Ashame Fansub — Modern Minimalist Design System
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&family=Noto+Sans:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    /* Night Mode (Default: OLED True Black) */
    --bg-color: #0f1a2f;
    --surface-color: #0f0f12;
    --surface-color-elevated: #16161a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.22);
    --text-primary: #ededed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-blue: #0ea5e9;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --color-trakteer: #e02424;
    --color-ongoing: #10b981;
    --color-tamat: #64748b;
    --color-merah-menyala: #890000;

    --header-bg: rgba(12, 12, 15, 0.75);
    --header-border: rgba(255, 255, 255, 0.1);
    --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(14, 165, 233, 0.12);

    /* Typography */
    --font-heading: 'Mochiy Pop One', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    --font-footer: 'Nunito', sans-serif;
    --font-jp: 'UD Digi Kyokasho NP-B', 'Noto Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition-fast: 0.18s ease;
    --transition-smooth: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Screen Reader Only (Accessible SEO Heading) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Day Mode (Clean White) */
body.SwitchMode {
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --surface-color-elevated: #ffffff;
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-purple: #8b5cf6;

    --header-bg: rgba(255, 255, 255, 0.82);
    --header-border: rgba(0, 0, 0, 0.08);
    --header-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);

    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(14, 165, 233, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    /* Jarak aman agar konten tidak terhalang floating navbar */
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

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

button,
input {
    font-family: inherit;
}

/* Container Wrapper */
.main-wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    flex: 1;
}

/* Placeholder space for floating header */
#header-spacer {
    display: none;
}

/* ========================================================
   🌟 FLOATING GLASS HEADER
   ======================================================== */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 94%);
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--header-border);
    border-radius: var(--radius-full);
    box-shadow: var(--header-shadow);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.header.hide {
    top: -110px;
}

/* Brand Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-smooth);
}

.logo-container:hover .logo {
    transform: scale(1.08) rotate(-4deg);
}

.nama-blog {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

body.SwitchMode .nav-menu a:hover,
body.SwitchMode .nav-menu a.active {
    background: rgba(0, 0, 0, 0.06);
}

/* Header Actions (Search & Theme Switcher) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.search-box input {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 16px 7px 36px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    outline: none;
    width: 170px;
    transition: width var(--transition-smooth), border-color var(--transition-fast), background-color var(--transition-fast);
}

.search-box input:focus {
    width: 230px;
    border-color: var(--accent-blue);
    background: var(--surface-color-elevated);
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-smooth), border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.theme-toggle-btn:hover {
    transform: rotate(20deg) scale(1.08);
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.theme-icon {
    display: block;
    transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

/* Night Mode (Default): Tampilkan Matahari Amber, Sembunyikan Bulan */
.theme-icon.icon-sun {
    display: block;
    color: #fbbf24;
}

.theme-icon.icon-moon {
    display: none;
    color: #6366f1;
}

/* Day Mode (body.SwitchMode): Sembunyikan Matahari, Tampilkan Bulan */
body.SwitchMode .theme-icon.icon-sun {
    display: none;
}

body.SwitchMode .theme-icon.icon-moon {
    display: block;
    color: #4f46e5;
}

body.SwitchMode .theme-toggle-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================================
   HERO SPOTLIGHT (Rilis Terbaru Paling Atas)
   ======================================================== */
.hero-spotlight {
    position: relative;
    margin: 20px 0 40px;
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-spotlight:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--card-shadow-hover);
}

.hero-banner-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 340px;
}

.hero-thumbnail-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.hero-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-spotlight:hover .hero-thumbnail-wrap img {
    transform: scale(1.04);
}

.hero-badge-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.badge-featured {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.badge-episode {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-content {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--surface-color);
}

/* ========================================================
   ✨ Ambient Light / Glow Effect untuk Hero Content
   ======================================================== */
.hero-ambient-backdrop {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    background-size: cover;
    background-position: center;
    filter: blur(65px) saturate(200%);
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
    transform: translate3d(0, 0, 0);
    transition: opacity var(--transition-smooth, 0.3s ease);
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 18, 0.45) 0%, rgba(15, 15, 18, 0.2) 100%);
    pointer-events: none;
    z-index: 0;
}

body.SwitchMode .hero-ambient-backdrop {
    opacity: 0.20;
    filter: blur(75px) saturate(160%);
}

body.SwitchMode .hero-content::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.hero-category,
.hero-title,
.hero-sub-title,
.hero-synopsis,
.hero-actions {
    position: relative;
    z-index: 1;
}

.hero-category {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    cursor: default;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 6px;
    cursor: default;
}

.hero-sub-title {
    font-family: var(--font-jp);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.hero-synopsis {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #0284c7;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-color-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    animation-name: kedut-kedut;
    animation-duration: 1.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes kedut-kedut {

    0%,
    40% {
        transform: rotate(0deg) scale(1);
    }

    50%,
    90% {
        transform: rotate(0deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.btn-secondary:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    background-color: var(--color-trakteer);
    animation: none;
}

.btn-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-color-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-tutorial:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    background-color: var(--accent-purple);
}

/* ========================================================
   🏷️ CATEGORY FILTER PILLS (Ala YouTube)
   ======================================================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 30px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    /* Firefox */
}

.filter-bar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-chip {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    user-select: none;
}

.filter-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
    background: var(--surface-color-elevated);
}

.filter-chip.active {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    font-weight: 700;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 60px;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}




/* ========================================================
   📺 YOUTUBE-STYLE 16:9 GRID
   ======================================================== */
.kotak-konten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px 16px;
    padding: 24px 50px 60px;
}

.kotak-konten-beranda {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px 16px;
    padding: 20px 0 50px;
    width: 100%;
}


/* YouTube Video Card */
.card {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: var(--card-shadow-hover);
}

/* 16:9 Thumbnail Container */
.card-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.card-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumbnail-container img {
    transform: scale(1.06);
}

/* ========================================================
   ✨ Ambient Light / Glow Effect untuk Card Thumbnail
   ======================================================== */
.card {
    position: relative;
}

.card-glow-backdrop {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(200%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transform: scale(1.08) translate3d(0, 0, 0);
    transition: opacity 0.4s ease;
}

.card:hover .card-glow-backdrop {
    opacity: 0.55;
}

body.SwitchMode .card:hover .card-glow-backdrop {
    opacity: 0.28;
    filter: blur(32px) saturate(160%);
}

/* Badges on Thumbnail */
.card-badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.badge-tag {
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.02em;
}

.badge-tag.tag-series {
    border-left: 3px solid var(--accent-blue);
}

.badge-tag.tag-movie {
    border-left: 3px solid var(--accent-purple);
}

.badge-tag.tag-showroom {
    border-left: 3px solid var(--accent-pink);
}

.card-badge-bottom {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
}

.badge-status {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    color: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.badge-status.ongoing {
    color: #34d399;
}

.badge-status.tamat {
    color: #94a3b8;
}

/* Card Body & Title (Umum / Default) */
.card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ========================================================
   ✨ KHUSUS KARTU BERANDA (Teks Tidak Terpotong & Pas)
   ======================================================== */
.kotak-konten-beranda .card-body {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kotak-konten-beranda .card-title {
    padding: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




/* Fallback & support for simple/legacy card markup */
.card>a {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card>a>img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover>a>img {
    transform: scale(1.06);
}

.card .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--accent-blue);
    letter-spacing: 0.02em;
    z-index: 2;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    padding: 12px 14px 14px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--accent-blue);
}

.card-metadata {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.card-metadata span {
    display: inline-flex;
    align-items: center;
}

.card-metadata .dot-separator {
    color: var(--text-muted);
}

/* ========================================================
   🤝 PARTNER GRID
   ======================================================== */
.section-title-partner {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin: 40px 0 30px;
    color: var(--text-primary);
}

.kotak-partner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.kotak-partner .card {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.kotak-partner .card a {
    width: 100%;
    height: 100%;
    display: block;
}

.kotak-partner .card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.kotak-partner .card:hover img {
    transform: scale(1.08);
}

/* ========================================================
   ⚓ MINIMALIST FOOTER
   ======================================================== */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 24px 0;
    font-family: var(--font-footer);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
    cursor: default;
}

#footer {
    margin-top: auto;
    width: 100%;
}

.isi-footer {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.isi-footer a {
    color: var(--text-primary);
    font-weight: 600;
}

.isi-footer a:hover {
    color: var(--accent-blue);
}

/* ========================================================
   📱 RESPONSIVE BREAKPOINTS (Mobile-First Polish)
   ======================================================== */
@media (max-width: 900px) {
    .hero-banner-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 24px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .section-title {
        margin-top: 20px;
        margin-left: 35px;
    }

    .kotak-partner {
        grid-template-columns: 1fr;
        max-width: 480px;
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 130px;
    }

    .header {
        top: 12px;
        width: 95%;
        border-radius: var(--radius-lg);
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
        gap: 4px;
    }

    .nav-menu a {
        font-size: 0.82rem;
        padding: 4px 8px;
    }

    .search-box input {
        width: 120px;
    }

    .search-box input:focus {
        width: 150px;
    }

    .kotak-konten {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .isi-footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .kotak-konten {
        grid-template-columns: 1fr;
    }

    .nama-blog {
        font-size: 1.1rem;
    }

    .search-box {
        display: flex;
        /* Compact on very small screens */
    }
}

/* ========================================================
   🚀 Auto Scroll-To-Top Button (Hides when Idle)
   ======================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 110px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 995;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.scroll-top-btn:active {
    transform: translateY(0) scale(0.95);
}

body.SwitchMode .scroll-top-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.SwitchMode .scroll-top-btn:hover {
    border-color: var(--accent-pink);
    color: #db2777;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.2);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 22px;
        right: 22px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .scroll-top-btn {
        bottom: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
    }

    .scroll-top-btn svg {
        width: 19px;
        height: 19px;
    }
}

/* ========================================================
   🌸 Showroom — Nogizaka46 Vibe
   ======================================================== */

/* Hero Banner di halaman index showroom */
.showroom-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 16px 500px 24px;
    padding: 10px 28px;
    text-align: center;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1050 40%, #4a1060 70%, #2d0a3a 100%);
    border: 1px solid rgba(206, 147, 216, 0.25);
    box-shadow: 0 8px 40px rgba(140, 60, 180, 0.3);
}

/* Dekorasi lingkaran blur di belakang */
.showroom-hero::before,
.showroom-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.showroom-hero::before {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
    top: -80px;
    right: -60px;
}

.showroom-hero::after {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    bottom: -60px;
    left: -40px;
}

.showroom-hero-logo {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.showroom-hero h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 0.5rem);
    color: #f0d6ff;
    margin: 0 0 6px;
    text-shadow: 0 2px 12px rgba(206, 147, 216, 0.5);
}

.showroom-hero p {
    color: rgba(220, 180, 255, 0.75);
    font-size: 0%;
    margin: 0;
    font-family: var(--font-body);
}

/* Chip/badge di hero */
.showroom-hero-badge {
    display: inline-block;
    background: rgba(236, 72, 153, 0.2);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f9a8d4;
    font-size: 0.75rem;
    font-family: var(--font-body);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* Kartu member ayang di index showroom */
.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    gap: 16px;
    margin: 0 0 32px;
    padding: 0 120px;
    justify-content: start;
}

.member-card-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #1a0a2e;
    border: 1px solid rgba(206, 147, 216, 0.15);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    text-decoration: none;
    display: block;
}

.member-card-wrap:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px rgba(140, 60, 180, 0.3), 0 0 0 1px rgba(236, 72, 153, 0.3);
    border-color: rgba(236, 72, 153, 0.4);
}

.member-card-wrap img {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.member-card-wrap:hover img {
    transform: scale(1.07);
}

.member-card-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.member-card-info {
    padding: 12px 14px 14px;
    background: linear-gradient(to bottom, transparent, rgba(30, 10, 50, 0.95));
}

.member-card-name {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: #f0d6ff;
    margin: 0 0 4px;
}

.member-card-gen {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(236, 72, 153, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-card-gen::before {
    content: '♦';
    font-size: 0.6rem;
}

/* Light mode adjustments */
body.SwitchMode .showroom-hero {
    background: linear-gradient(135deg, #fce4ff 0%, #f3d0ff 40%, #e8c0f8 70%, #fad4f9 100%);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.12);
}

body.SwitchMode .showroom-hero h2 {
    color: #5b1f8a;
    text-shadow: none;
}

body.SwitchMode .showroom-hero p {
    color: rgba(91, 31, 138, 0.7);
}

body.SwitchMode .showroom-hero-badge {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: #be185d;
}

body.SwitchMode .member-card-wrap {
    border-color: rgba(139, 92, 246, 0.2);
    background: #fff;
}

body.SwitchMode .member-card-wrap:hover {
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(236, 72, 153, 0.25);
}

body.SwitchMode .member-card-info {
    background: linear-gradient(to bottom, transparent, rgba(255, 240, 255, 0.98));
}

body.SwitchMode .member-card-name {
    color: #3b0764;
}

/* Header profil member di halaman individual */
.showroom-member-header {
    max-width: 900px;
    margin: 24px auto 28px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.showroom-member-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(236, 72, 153, 0.7);
    box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.showroom-member-meta h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.showroom-member-meta .showroom-member-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.showroom-member-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.showroom-member-tag.nogizaka {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.35);
    color: #f9a8d4;
}

.showroom-member-tag.generation {
    background: #731e82;
    border: 1px solid #8e2b9f;
    color: #ffffff;
}

body.SwitchMode .showroom-member-tag.nogizaka {
    color: #be185d;
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.25);
}

body.SwitchMode .showroom-member-tag.generation {
    background: #731e82;
    border-color: #5c1868;
    color: #ffffff;
}

@media (max-width: 480px) {
    .showroom-hero {
        padding: 28px 20px 24px;
        margin: 16px 12px 24px;
    }

    .showroom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }

    .showroom-member-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================
   🟣 Reading Progress Bar (Top Scroll Indicator)
   ======================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 8px;
    width: 0%;
    background: #812990;
    box-shadow: 0 0 10px rgba(129, 41, 144, 0.9), 0 0 4px #812990;
    z-index: 100000;
    pointer-events: none;
    transition: width 0.08s ease-out;
}