/* === VN landing pages (list + details) ========================== */
/* Cosmos (dark) styling by default; body.theme-serene switches to
   the snow-paper treatment. --vn-accent comes from the work data. */

.vn-page { max-width: 960px; }

.vn-eyebrow {
    margin: 0 0 14px;
    font: 500 11px/1 Inter, sans-serif;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--ob-soft);
}

.vn-empty { color: var(--ob-muted); }

/* ── index ──────────────────────────────────────────────── */
.vn-index-head { margin-bottom: 40px; }

.vn-index-head h1 {
    margin: 0 0 14px;
    font: 700 clamp(30px, 4.6vw, 42px)/1.3 "Gowun Batang", serif;
    color: var(--ob-text);
}

.vn-index-sub {
    margin: 0;
    color: var(--ob-muted);
    font-weight: 300;
}

.vn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.vn-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ob-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--ob-glass);
    text-decoration: none;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.vn-card:hover,
.vn-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ob-border-strong);
    box-shadow: var(--ob-shadow);
}

.vn-card-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    max-height: 340px;
    overflow: hidden;
    background: #0a0d12;
}

.vn-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vn-card-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font: 700 44px/1 "Gowun Batang", serif;
    color: var(--vn-accent, #b84632);
}

.vn-card-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 9, 14, .72);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
}

.vn-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px 18px;
    border-top: 2px solid var(--vn-accent, #b84632);
}

.vn-card-title {
    font: 700 1.08rem/1.5 "Gowun Batang", serif;
    color: var(--ob-text);
}

.vn-card-sub {
    font-size: .86rem;
    color: var(--ob-muted);
}

.vn-card-meta {
    margin-top: 4px;
    font-size: .78rem;
    color: var(--ob-soft);
}

/* ── details ────────────────────────────────────────────── */
.vn-details {
    display: flex;
    gap: clamp(26px, 5vw, 52px);
    align-items: flex-start;
}

.vn-details-cover {
    flex: 0 0 clamp(200px, 26vw, 280px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ob-border-strong);
    box-shadow: var(--ob-shadow);
    background: #0a0d12;
}

.vn-details-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.vn-details-body { min-width: 0; }

.vn-details-title {
    margin: 0 0 8px;
    font: 700 clamp(28px, 4.4vw, 40px)/1.35 "Gowun Batang", serif;
    color: var(--ob-text);
}

.vn-details-subtitle {
    margin: 0 0 14px;
    font-size: 1rem;
    color: var(--ob-muted);
}

.vn-details-meta {
    margin: 0 0 14px;
    font-size: .88rem;
    color: var(--ob-soft);
}

.vn-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
}

.vn-tags li {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--ob-border);
    font-size: .78rem;
    color: var(--ob-muted);
}

.vn-details-synopsis {
    margin: 0 0 20px;
    max-width: 56ch;
    font-weight: 300;
    line-height: 2;
    color: var(--ob-muted);
    word-break: keep-all;
}

.vn-episode-chip {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 14px 18px;
    border: 1px solid var(--ob-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    margin-bottom: 20px;
}

.vn-episode-chip-label {
    font: 700 11px/1 Inter, sans-serif;
    letter-spacing: .18em;
    color: var(--vn-accent, #b84632);
    flex: 0 0 auto;
}

.vn-episode-chip-title {
    display: block;
    font-weight: 600;
    color: var(--ob-text);
}

.vn-episode-chip-sub {
    display: block;
    margin-top: 3px;
    font-size: .84rem;
    color: var(--ob-muted);
}

.vn-details-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 26px;
    font-size: .82rem;
    color: var(--ob-soft);
}

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

.vn-play-button {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: 999px;
    background: var(--vn-accent, #b84632);
    color: #fff;
    font: 500 .95rem/1 "Noto Sans KR", sans-serif;
    letter-spacing: .04em;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
    transition: transform .25s ease, filter .25s ease;
}

.vn-play-button:hover,
.vn-play-button:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.vn-play-resume {
    background: transparent;
    border: 1px solid var(--ob-border-strong);
    color: var(--ob-text);
    box-shadow: none;
}

.vn-play-resume:hover,
.vn-play-resume:focus-visible { color: var(--ob-text); }

/* ── serene overrides ───────────────────────────────────── */
body.theme-serene .vn-eyebrow { color: var(--sn-mist); }
body.theme-serene .vn-empty { color: var(--sn-mist); }
body.theme-serene .vn-index-head h1,
body.theme-serene .vn-details-title,
body.theme-serene .vn-card-title { color: var(--sn-ink); }
body.theme-serene .vn-index-sub,
body.theme-serene .vn-details-subtitle,
body.theme-serene .vn-details-synopsis,
body.theme-serene .vn-card-sub { color: var(--sn-body); }
body.theme-serene .vn-details-meta,
body.theme-serene .vn-card-meta,
body.theme-serene .vn-details-facts { color: var(--sn-faint); }

body.theme-serene .vn-card {
    border-color: var(--sn-line);
    background: var(--sn-card);
}

body.theme-serene .vn-card:hover,
body.theme-serene .vn-card:focus-visible {
    border-color: var(--sn-line-strong);
    box-shadow: 0 18px 44px rgba(35, 42, 53, .1);
}

body.theme-serene .vn-details-cover {
    border-color: var(--sn-line-strong);
    box-shadow: 0 18px 44px rgba(35, 42, 53, .12);
}

body.theme-serene .vn-tags li {
    border-color: var(--sn-line-strong);
    color: var(--sn-faint);
}

body.theme-serene .vn-episode-chip {
    border-color: var(--sn-line);
    background: var(--sn-card);
}

body.theme-serene .vn-episode-chip-title { color: var(--sn-ink); }
body.theme-serene .vn-episode-chip-sub { color: var(--sn-body); }

body.theme-serene .vn-play-resume {
    border-color: var(--sn-line-strong);
    color: var(--sn-ink);
}

/* ── small screens ──────────────────────────────────────── */
@media (max-width: 720px) {
    .vn-details { flex-direction: column; }
    .vn-details-cover { flex: none; width: min(240px, 70vw); }
}
