/* ==========================================================================
   纸上剧场 — editorial short-drama template
   External stylesheet: all layout, components and responsive rules live here.
   ========================================================================== */

:root {
    --paper: #f3eee4;
    --paper-deep: #e9e0d1;
    --paper-light: #fbf8f1;
    --surface: #fffdf8;
    --ink: #211d18;
    --ink-soft: #453f37;
    --muted: #6f665a;
    --line: #d8ccba;
    --line-strong: #b7a78f;
    --accent: #b23c2b;
    --accent-deep: #8d291d;
    --accent-soft: #f3ded7;
    --gold: #a2762e;
    --green: #3d6a55;
    --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --shell: 1180px;
    --radius: 3px;
    --shadow: 0 18px 50px rgba(67, 51, 32, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 2%, rgba(178, 60, 43, 0.06), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(162, 118, 46, 0.07), transparent 24rem),
        var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 58, 38, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 58, 38, 0.025) 1px, transparent 1px);
    background-size: 100% 34px, 34px 100%;
    content: "";
    mask-image: linear-gradient(to bottom, #000, transparent 68%);
    pointer-events: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
    margin-top: 0;
}

::selection {
    background: var(--accent);
    color: #fff9f2;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.site-main {
    min-height: 58vh;
}

.shell {
    width: min(calc(100% - 64px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 300;
    top: 10px;
    left: 50%;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--paper-light);
    font-size: 13px;
    font-weight: 700;
    transform: translate(-50%, -180%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

/* Typography helpers */
.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 18px;
    height: 1px;
    margin-right: 9px;
    background: currentColor;
    content: "";
    vertical-align: middle;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.section-heading--compact {
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.section-heading h2,
.side-heading h2,
.side-panel h2,
.fact-card h2,
.feature-block h3,
.empty-note__title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.section-aside {
    flex: 0 0 auto;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 11.5px;
    letter-spacing: 0.06em;
}

.section-more {
    flex: 0 0 auto;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: 12px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.section-more:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 6px;
    border-radius: 50%;
    background: var(--line-strong);
    vertical-align: middle;
}

.text-link {
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.text-link:hover {
    color: var(--accent-deep);
}

.text-link--muted {
    color: var(--muted);
}

.text-link--muted:hover {
    color: var(--ink);
}

.inline-note {
    margin: 0;
    padding: 18px 0;
    color: var(--muted);
    font-size: 13px;
}

/* Buttons */
.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: 0.03em;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--solid {
    background: var(--accent);
    color: #fff9f2;
}

.button--solid:hover {
    background: var(--accent-deep);
}

.button--line {
    border-color: var(--line-strong);
    color: var(--ink);
}

.button--line:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
}

.button--small {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 11.5px;
}

.button--full {
    width: 100%;
}

.button.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

/* Poster */
.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 45%),
        linear-gradient(160deg, #b8a994, #6f675c 70%, #514b42);
    isolation: isolate;
}

.poster-frame::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 16, 12, 0.5), transparent 48%);
    content: "";
    pointer-events: none;
}

.poster-frame img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-fallback {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    color: rgba(255, 250, 242, 0.24);
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.poster-frame--row {
    aspect-ratio: 3 / 4;
}

.poster-frame--detail {
    aspect-ratio: 3 / 4;
}

.poster-frame--now {
    aspect-ratio: 3 / 4;
}

.poster-tag {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: rgba(243, 238, 228, 0.94);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Topline and header */
.topline {
    background: var(--ink);
    color: #b9afa1;
}

.topline-inner {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topline p {
    margin: 0;
    font-size: 9.5px;
    letter-spacing: 0.12em;
}

.topline-issue {
    color: #e7ddd0;
    font-weight: 650;
}

.topline-date {
    color: #8f8578;
}

.site-header {
    position: relative;
    z-index: 40;
    background: rgba(243, 238, 228, 0.94);
    backdrop-filter: blur(12px);
}

.masthead {
    display: flex;
    min-height: 90px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background-image: url("logo.svg");
    background-position: center;
    background-size: cover;
    box-shadow: 0 3px 0 rgba(33, 29, 24, 0.15);
}

.brand-text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.brand-name {
    overflow: hidden;
    max-width: 100%;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-sub {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.4;
}

.app-entry {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-entry:hover,
.app-entry.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
}

.nav-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.52);
}

.nav-band-inner {
    display: flex;
    min-height: 47px;
    align-items: center;
    gap: 24px;
}

.main-nav {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 12px 17px;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 550;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:first-child {
    padding-left: 0;
}

.nav-link::after {
    position: absolute;
    right: 17px;
    bottom: -1px;
    left: 17px;
    height: 2px;
    background: transparent;
    content: "";
    transition: background 0.2s ease;
}

.nav-link:first-child::after {
    left: 0;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.is-active {
    color: var(--ink);
    font-weight: 700;
}

.nav-link.is-active::after {
    background: var(--accent);
}

.nav-note {
    flex: 0 0 auto;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 11.5px;
}

/* Breadcrumb */
.breadcrumb {
    padding-top: 18px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 11px;
    list-style: none;
}

.breadcrumb-item {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    margin: 0 8px;
    color: var(--line-strong);
    content: "/";
}

.breadcrumb-item a {
    overflow: hidden;
    max-width: 15em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-item a:hover {
    color: var(--accent);
}

.breadcrumb-item.is-current span {
    color: var(--ink-soft);
}

/* Home intro */
.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.78fr);
    gap: clamp(42px, 6vw, 88px);
    align-items: center;
    padding-top: clamp(46px, 6vw, 78px);
    padding-bottom: clamp(46px, 6vw, 74px);
}

.intro-copy {
    min-width: 0;
}

.home-title {
    max-width: 10em;
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: clamp(3.4rem, 7vw, 5.9rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.04;
    text-wrap: balance;
}

.home-title em {
    display: inline;
    color: var(--accent);
    font-style: normal;
    background: linear-gradient(transparent 76%, rgba(178, 60, 43, 0.16) 76%);
}

.home-lede {
    max-width: 34em;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(14.5px, 1.5vw, 16.5px);
    line-height: 1.9;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 42px;
    margin: 36px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
}

.home-stats div {
    display: grid;
    gap: 2px;
}

.home-stats dt {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.home-stats dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.home-stats dd span {
    margin-left: 4px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
}

/* Feature */
.feature {
    position: relative;
    min-width: 0;
}

.feature-card {
    position: relative;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 12px 12px 0 var(--paper-deep);
}

.feature-card__poster {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.feature-card__poster > a {
    display: block;
}

.poster-frame--feature {
    aspect-ratio: 4 / 5;
}

.feature-stamp {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 10px;
    background: var(--accent);
    color: #fff8f0;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.feature-card__body {
    padding: 20px 22px 22px;
}

.feature-card__kicker {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.feature-card__title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    letter-spacing: -0.035em;
    line-height: 1.3;
}

.feature-card__title a:hover {
    color: var(--accent);
}

.feature-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10.5px;
}

.feature-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.feature-empty {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 12px 12px 0 var(--paper-deep);
    text-align: center;
}

.feature-empty > span {
    color: var(--line-strong);
    font-family: var(--serif);
    font-size: 6rem;
    line-height: 1;
}

.feature-empty p {
    margin: 16px 0 4px;
    font-family: var(--serif);
    font-size: 18px;
}

.feature-empty small {
    color: var(--muted);
    font-size: 11px;
}

.rule {
    height: 7px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line-strong);
}

/* Home columns */
.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.62fr);
    gap: clamp(36px, 5vw, 66px);
    padding-top: 48px;
    padding-bottom: 48px;
}

.drama-list {
    border-top: 1px solid var(--ink);
}

.drama-row {
    display: grid;
    grid-template-columns: 34px 78px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.drama-row:hover {
    background: rgba(255, 253, 248, 0.55);
}

.drama-row__index {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.drama-row__poster {
    min-width: 0;
}

.poster-frame--row {
    border: 1px solid var(--line);
}

.drama-row__body {
    min-width: 0;
}

.drama-row__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.drama-row__kicker a {
    color: var(--accent);
}

.drama-row__kicker a:hover {
    text-decoration: underline;
}

.drama-row__title {
    overflow: hidden;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drama-row__title a:hover {
    color: var(--accent);
}

.drama-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10.5px;
}

.drama-row__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 13px;
}

.row-play {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 650;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.row-play:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff8f2;
}

.row-more {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.row-more:hover {
    color: var(--accent);
}

/* Side panels */
.home-side {
    min-width: 0;
}

.side-panel + .side-panel {
    margin-top: 38px;
}

.side-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 13px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--ink);
}

.side-heading .section-kicker {
    margin: 0 0 3px;
}

.side-heading h2,
.side-panel > h2 {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.side-panel > .section-kicker {
    margin-bottom: 5px;
}

.hot-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hot-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.hot-item__rank {
    color: var(--line-strong);
    font-family: var(--serif);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.hot-item:nth-child(-n + 3) .hot-item__rank {
    color: var(--accent);
}

.hot-item__body {
    min-width: 0;
}

.hot-item__body h3 {
    overflow: hidden;
    margin: 0;
    font-family: var(--serif);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-item__body h3 a:hover {
    color: var(--accent);
}

.hot-item__body p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 9.5px;
}

.hot-item__play {
    color: var(--accent);
    font-size: 9.5px;
    font-weight: 650;
}

.hot-item__play:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

.category-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.category-index a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11.5px;
    transition: color 0.2s ease;
}

.category-index a:hover {
    color: var(--accent);
}

.category-index small {
    color: var(--muted);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

/* App banner */
.app-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin-top: 18px;
    padding: 34px 38px;
    background: var(--ink);
    color: #eee5d8;
}

.app-banner h2 {
    margin: 0 0 5px;
    color: #fff8ed;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    letter-spacing: -0.035em;
}

.app-banner p:not(.section-kicker) {
    margin: 0;
    color: #bdb2a4;
    font-size: 12px;
}

.app-banner .section-kicker {
    color: #d28e7f;
}

.app-banner .button--solid {
    flex: 0 0 auto;
    background: var(--paper-light);
    color: var(--ink);
}

.app-banner .button--solid:hover {
    background: var(--accent);
    color: #fff9f2;
}

/* SEO panel */
.seo-panel {
    margin-top: 48px;
    margin-bottom: 60px;
    padding: clamp(30px, 4vw, 44px);
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.64);
}

.seo-panel h2 {
    max-width: 20em;
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.seo-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.seo-copy p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.95;
}

/* Cards */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px 18px;
}

.drama-card {
    min-width: 0;
}

.drama-card__poster {
    position: relative;
    border: 1px solid var(--line);
    background: var(--paper-deep);
}

.drama-card__poster > a {
    display: block;
}

.card-play {
    position: absolute;
    z-index: 4;
    right: 9px;
    bottom: 9px;
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(243, 238, 228, 0.94);
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease;
}

.card-play:hover {
    background: var(--accent);
    color: #fff8f2;
}

.drama-card__body {
    padding-top: 9px;
}

.drama-card__title {
    margin: 0;
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.45;
}

.drama-card__title a:hover {
    color: var(--accent);
}

.drama-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9.5px;
}

.drama-card__meta a {
    color: var(--accent);
}

/* Archive pages */
.archive-page,
.tag-page {
    padding-bottom: 1px;
}

.archive-head {
    padding-top: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.archive-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.archive-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1.1;
    text-wrap: balance;
}

.archive-title > span {
    margin-left: 12px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.22em;
    font-weight: 650;
    letter-spacing: 0.12em;
    vertical-align: middle;
}

.archive-title--tag > span:first-child {
    margin: 0 6px 0 0;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 0.72em;
    letter-spacing: 0;
}

.archive-title--tag > span:last-child {
    margin-left: 12px;
}

.archive-intro {
    max-width: 47em;
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.9;
}

.archive-intro strong {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 1.18em;
}

.archive-count {
    flex: 0 0 auto;
    margin: 0 0 4px;
    color: var(--accent);
    font-family: var(--serif);
    font-size: clamp(3.8rem, 8vw, 6.4rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 0.9;
}

.archive-count span {
    margin-left: 5px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
}

.archive-count--tag {
    font-size: clamp(3rem, 6vw, 5rem);
}

.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 25px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.filter-link {
    padding: 10px 13px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 11.5px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.filter-link:first-child {
    padding-left: 0;
}

.filter-link:hover {
    color: var(--ink);
}

.filter-link.is-active {
    border-bottom-color: var(--accent);
    color: var(--ink);
    font-weight: 700;
}

.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.58fr);
    gap: clamp(34px, 5vw, 62px);
    padding-top: 40px;
}

.archive-main {
    min-width: 0;
}

.archive-side {
    min-width: 0;
}

.archive-side .side-panel {
    padding: 20px 0 24px;
    border-top: 2px solid var(--ink);
}

.archive-side .side-panel:first-child {
    padding-top: 0;
    border-top: 0;
}

.side-panel > h2,
.fact-card > h2 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.side-copy {
    margin: 0 0 12px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.9;
}

.side-copy--small {
    color: var(--muted);
    font-size: 10.5px;
}

.side-links {
    display: grid;
    gap: 0;
}

.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11.5px;
}

.side-links a:hover {
    color: var(--accent);
}

.side-links small {
    color: var(--muted);
    font-size: 9px;
}

/* Detail */
.detail-page {
    padding-bottom: 1px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 62px);
    align-items: start;
    padding-top: 36px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}

.detail-cover {
    position: relative;
    padding-right: 14px;
}

.detail-cover .poster-frame {
    border: 1px solid var(--line);
    box-shadow: 14px 14px 0 var(--paper-deep);
}

.detail-cover__count {
    position: absolute;
    right: 0;
    bottom: 18px;
    padding: 6px 11px;
    background: var(--accent);
    color: #fff8f2;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.detail-copy {
    min-width: 0;
    padding-top: 14px;
}

.detail-title {
    max-width: 11em;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.2vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1.12;
    text-wrap: balance;
}

.detail-lead {
    max-width: 42em;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.9;
}

.detail-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 26px 0 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-quick div {
    min-width: 0;
    padding: 0 14px;
    border-left: 1px solid var(--line);
}

.detail-quick div:first-child {
    padding-left: 0;
    border-left: 0;
}

.detail-quick dt {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.detail-quick dd {
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-quick dd a {
    color: var(--accent);
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
    gap: clamp(34px, 5vw, 60px);
    padding-top: 34px;
}

.detail-main {
    min-width: 0;
}

.content-section {
    padding: 0 0 32px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.content-section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.content-section .section-heading {
    margin-bottom: 19px;
}

.prose {
    max-width: 52em;
}

.prose p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 2;
}

.detail-main .drama-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-side {
    min-width: 0;
}

.fact-card {
    padding: 22px 20px;
    border: 1px solid var(--line);
    background: var(--paper-light);
}

.fact-list {
    margin: 0;
}

.fact-list div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.fact-list dt {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.fact-list dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.detail-side .side-panel {
    padding-top: 22px;
    margin-top: 26px;
    border-top: 2px solid var(--ink);
}

/* Episode list */
.episode-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.episode-pill {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.52);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.episode-pill:hover {
    border-color: var(--ink);
    background: var(--paper-light);
}

.episode-pill.is-current {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.episode-pill.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.episode-pill__num {
    flex: 0 0 auto;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.episode-pill__label {
    overflow: hidden;
    min-width: 0;
    color: var(--ink-soft);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.episode-pill__source {
    overflow: hidden;
    margin-left: auto;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Play page */
.play-page {
    padding-bottom: 1px;
}

.play-head {
    padding-top: 32px;
    padding-bottom: 24px;
}

.play-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.15;
    text-wrap: balance;
}

.play-title span {
    display: inline-block;
    margin-left: 12px;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 0.26em;
    font-weight: 650;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

.play-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 13px;
    color: var(--muted);
    font-size: 10.5px;
}

.play-meta a {
    color: var(--accent);
}

.play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: clamp(30px, 4vw, 48px);
    padding-top: 4px;
}

.play-main {
    min-width: 0;
}

.player-card {
    border: 1px solid #0d0b09;
    background: #0d0b09;
}

.player-frame {
    position: relative;
    display: flex;
    aspect-ratio: 16 / 9;
    align-items: center;
    justify-content: center;
    background: #070605;
}

.player-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #070605;
    object-fit: contain;
}

.player-error {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 22px;
    background: rgba(10, 8, 6, 0.94);
    color: #d8cbbb;
    text-align: center;
}

.player-error[hidden] {
    display: none;
}

.player-error strong {
    color: #fff4e6;
    font-size: 13px;
}

.player-error span {
    color: #b2a493;
    font-size: 10.5px;
}

.player-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #b2a493;
}

.player-missing > span {
    color: #5f5549;
    font-family: var(--serif);
    font-size: 4rem;
    line-height: 1;
}

.player-missing p {
    margin: 0;
    color: #e9ddcd;
    font-family: var(--serif);
    font-size: 17px;
}

.player-missing small {
    font-size: 10.5px;
}

.player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-now,
.player-source {
    margin: 0;
}

.player-now {
    color: #e9ddcd;
    font-size: 11px;
}

.player-now strong {
    color: #fff7eb;
}

.player-source {
    margin-top: 2px;
    color: #948777;
    font-size: 9px;
}

.player-links {
    display: flex;
    flex: 0 0 auto;
    gap: 13px;
}

.player-links a {
    color: #cbbba6;
    font-size: 10px;
}

.player-links a:hover {
    color: #fff2e0;
}

.player-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.player-prev-next a,
.player-prev-next span {
    color: #cbbba6;
    font-size: 10.5px;
}

.player-prev-next a:hover {
    color: #fff2e0;
}

.player-prev-next .is-disabled {
    color: #62584c;
}

.play-main .content-section {
    margin-top: 28px;
}

.play-side {
    min-width: 0;
}

.now-card {
    border: 1px solid var(--line);
    background: var(--paper-light);
}

.now-card__cover {
    padding: 14px 14px 0;
}

.now-card__cover .poster-frame {
    border: 1px solid var(--line);
}

.now-card__body {
    padding: 16px 16px 18px;
}

.now-card__body .section-kicker {
    margin-bottom: 4px;
}

.now-card__body h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.now-card__name {
    margin: 4px 0 14px;
    color: var(--muted);
    font-size: 11px;
}

.now-facts {
    margin: 0 0 15px;
}

.now-facts div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}

.now-facts dt {
    color: var(--muted);
    font-size: 9.5px;
}

.now-facts dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 10px;
}

.play-side .side-panel {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}

.play-main .drama-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tag */
.archive-head--tag .archive-title {
    max-width: 13em;
}

/* Pager */
.pager-block {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.pager-caption {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pager a,
.pager span {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid transparent;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pager a:hover {
    border-color: var(--line-strong);
    background: var(--paper-light);
}

.pager-number.is-current {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff8f2;
    font-weight: 700;
}

.pager-arrow {
    gap: 5px;
    padding: 0 10px;
    border-color: var(--line) !important;
    letter-spacing: 0.02em;
}

.pager-arrow.is-disabled {
    color: var(--line-strong);
    opacity: 0.65;
}

.pager-gap {
    min-width: 18px;
    color: var(--line-strong);
    letter-spacing: 0.06em;
}

.pager-fallback {
    display: flex;
    justify-content: center;
}

.pager-fallback .pagination,
.pager-fallback .pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager-fallback a,
.pager-fallback span {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid var(--line);
    font-size: 10.5px;
}

.pager-fallback .current,
.pager-fallback .active,
.pager-fallback [aria-current="page"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff8f2;
    font-weight: 700;
}

/* Empty state */
.empty-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0 0 24px;
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.52);
}

.empty-note__mark {
    flex: 0 0 auto;
    color: var(--line-strong);
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.9;
}

.empty-note__title {
    margin: 0 0 5px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.empty-note__text {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}

/* App page */
.app-page {
    padding-bottom: 1px;
}

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    padding-top: clamp(44px, 6vw, 76px);
    padding-bottom: clamp(44px, 6vw, 70px);
    border-bottom: 1px solid var(--line);
}

.app-title {
    max-width: 9em;
    margin: 0 0 22px;
    font-family: var(--serif);
    font-size: clamp(3rem, 6.5vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.065em;
    line-height: 1.08;
    text-wrap: balance;
}

.app-title em {
    color: var(--accent);
    font-style: normal;
}

.app-lead {
    max-width: 35em;
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.95;
}

.app-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.app-points li {
    padding: 5px 9px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 9.5px;
}

.app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.app-ios-hint {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.app-ios-hint span {
    display: block;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin: 18px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9.5px;
}

.app-hero__visual {
    position: relative;
    display: flex;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.paper-phone {
    position: relative;
    width: min(100%, 292px);
    padding: 8px;
    border: 1px solid #0f0d0b;
    border-radius: 32px;
    background: #17130f;
    box-shadow: 18px 18px 0 var(--paper-deep);
}

.paper-phone__notch {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 50%;
    width: 63px;
    height: 17px;
    border-radius: 999px;
    background: #17130f;
    transform: translateX(-50%);
}

.paper-phone__screen {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    padding: 28px 16px 14px;
    border-radius: 25px;
    background: #f6f0e4;
}

.phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #73695b;
    font-size: 8px;
    font-weight: 700;
}

.phone-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
}

.phone-brand__mark {
    width: 21px;
    height: 21px;
    background-image: url("logo.svg");
    background-position: center;
    background-size: cover;
}

.phone-search {
    margin-top: 13px;
    padding: 8px 10px;
    border: 1px solid #ded2be;
    color: #9b8f7f;
    font-size: 7.5px;
}

.phone-feature {
    margin-top: 12px;
    padding: 16px;
    background:
        linear-gradient(130deg, rgba(178, 60, 43, 0.95), rgba(94, 31, 23, 0.96)),
        #8e3021;
    color: #fff7ed;
}

.phone-feature > span {
    font-size: 7px;
    letter-spacing: 0.13em;
}

.phone-feature strong {
    display: block;
    margin-top: 7px;
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.phone-feature small {
    display: block;
    margin-top: 13px;
    color: #f0c9bb;
    font-size: 7px;
}

.phone-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 17px;
    font-size: 8.5px;
}

.phone-row-head span {
    color: #9b8f7f;
    font-size: 6.5px;
}

.phone-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 7px;
}

.phone-list span {
    display: block;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #d7c7b1, #a4937e);
}

.phone-list span:nth-child(2) {
    background: linear-gradient(145deg, #c2b5a1, #82725e);
}

.phone-list span:nth-child(3) {
    background: linear-gradient(145deg, #d7c0b5, #9e7468);
}

.phone-tabbar {
    display: flex;
    justify-content: space-between;
    margin-top: 19px;
    padding-top: 9px;
    border-top: 1px solid #ded2be;
    color: #9b8f7f;
    font-size: 6.5px;
}

.phone-tabbar span:first-child {
    color: var(--accent);
}

.app-note {
    position: absolute;
    padding: 6px 9px;
    border: 1px solid var(--line-strong);
    background: var(--paper-light);
    color: var(--ink-soft);
    font-family: var(--serif);
    font-size: 10px;
    box-shadow: 3px 3px 0 var(--paper-deep);
}

.app-note--top {
    top: 13%;
    right: 1%;
}

.app-note--bottom {
    bottom: 12%;
    left: 0;
}

.app-features,
.app-steps,
.app-faq,
.app-cta {
    margin-top: 52px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.feature-block {
    min-height: 190px;
    padding: 22px 22px 26px;
    border-left: 1px solid var(--line);
}

.feature-block:first-child {
    border-left: 0;
    padding-left: 0;
}

.feature-block__no {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1;
}

.feature-block h3 {
    margin: 18px 0 8px;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.feature-block p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.step-list li {
    padding: 24px;
    border-left: 1px solid var(--line);
}

.step-list li:first-child {
    border-left: 0;
}

.step-list__no {
    color: var(--line-strong);
    font-family: var(--serif);
    font-size: 42px;
    line-height: 1;
}

.step-list h3 {
    margin: 16px 0 6px;
    font-family: var(--serif);
    font-size: 1.2rem;
}

.step-list p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.9;
}

.faq-list {
    border-top: 1px solid var(--ink);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 15px 32px 15px 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 4px;
    color: var(--accent);
    content: "+";
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    max-width: 58em;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.95;
}

.app-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 36px;
    background: var(--ink);
    color: #eee5d8;
}

.app-cta h2 {
    margin: 0 0 4px;
    color: #fff8ed;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.035em;
}

.app-cta p:not(.section-kicker) {
    margin: 0;
    color: #bdb2a4;
    font-size: 11.5px;
}

.app-cta .section-kicker {
    color: #d28e7f;
}

.app-cta .button--solid {
    flex: 0 0 auto;
    background: var(--paper-light);
    color: var(--ink);
}

.app-cta .button--solid:hover {
    background: var(--accent);
    color: #fff8f2;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding-top: 44px;
    background: var(--ink);
    color: #c8beb0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.62fr));
    gap: 48px;
}

.brand--footer .brand-name {
    color: #fff8ed;
}

.brand--footer .brand-sub {
    color: #a29786;
}

.footer-desc {
    max-width: 30em;
    margin: 18px 0 16px;
    color: #a99e90;
    font-size: 11.5px;
    line-height: 1.9;
}

.footer-app {
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid #6f6558;
    color: #e0d4c3;
    font-size: 10.5px;
}

.footer-app:hover {
    border-color: var(--accent);
    color: #fff4e5;
}

.footer-title {
    margin: 0 0 14px;
    color: #a29786;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
}

.footer-links a {
    color: #cbbfb0;
    font-size: 11px;
}

.footer-links a:hover {
    color: #fff4e5;
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    margin-top: 40px;
    padding: 16px 0 22px;
    border-top: 1px solid #3b352e;
}

.footer-bottom p {
    margin: 0;
    color: #9b9081;
    font-size: 9px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1100px) {
    .home-intro {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
        gap: 44px;
    }

    .drama-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-block:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .feature-block {
        border-top: 1px solid var(--line);
    }

    .feature-block:nth-child(-n + 2) {
        border-top: 0;
    }
}

@media (max-width: 950px) {
    .home-intro {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-title {
        max-width: 11em;
    }

    .feature {
        max-width: 440px;
    }

    .home-columns,
    .archive-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .side-panel + .side-panel {
        margin-top: 0;
    }

    .archive-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .archive-side .side-panel {
        padding-top: 18px;
    }

    .detail-hero {
        grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
        gap: 34px;
    }

    .detail-layout,
    .play-layout {
        grid-template-columns: 1fr;
    }

    .detail-side,
    .play-side {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    .play-side {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    }

    .detail-side .side-panel,
    .play-side .side-panel {
        margin-top: 0;
    }

    .app-hero {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .app-hero__visual {
        min-height: 0;
        justify-content: flex-start;
        padding-left: clamp(10px, 8vw, 80px);
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(calc(100% - 40px), var(--shell));
    }

    .topline-date,
    .nav-note {
        display: none;
    }

    .masthead {
        min-height: 76px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .nav-band-inner {
        min-height: 43px;
    }

    .nav-link {
        padding: 10px 13px;
    }

    .home-title {
        font-size: clamp(3rem, 10vw, 4.6rem);
    }

    .home-stats {
        gap: 30px;
    }

    .drama-row {
        grid-template-columns: 30px 70px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .drama-row__title {
        white-space: normal;
    }

    .row-more {
        display: none;
    }

    .app-banner,
    .app-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .seo-copy {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .archive-head__row {
        gap: 20px;
    }

    .archive-count {
        font-size: 4.2rem;
    }

    .archive-count--tag {
        display: none;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(100%, 300px);
        margin-inline: auto;
    }

    .detail-title {
        max-width: none;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

    .detail-side .side-panel,
    .play-side .side-panel {
        margin-top: 6px;
    }

    .episode-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .play-side {
        display: block;
    }

    .now-card {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .now-card__cover {
        padding: 12px;
    }

    .now-card__body {
        padding: 14px 14px 16px;
    }

    .feature-grid,
    .step-list {
        grid-template-columns: 1fr;
    }

    .feature-block,
    .feature-block:nth-child(3) {
        padding: 20px 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .feature-block:nth-child(-n + 2) {
        border-top: 1px solid var(--line);
    }

    .feature-block:first-child {
        border-top: 0;
    }

    .step-list li {
        padding: 18px 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .step-list li:first-child {
        border-top: 0;
    }

    .app-hero__visual {
        justify-content: center;
        padding-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .shell {
        width: min(calc(100% - 30px), var(--shell));
    }

    .topline-inner {
        min-height: 28px;
    }

    .topline p {
        font-size: 8px;
    }

    .masthead {
        gap: 14px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        max-width: 8em;
        font-size: 18px;
    }

    .brand-sub {
        font-size: 6.5px;
        letter-spacing: 0.16em;
    }

    .app-entry {
        padding: 8px 10px;
        font-size: 10px;
    }

    .app-entry span {
        display: none;
    }

    .nav-link {
        padding: 9px 12px;
        font-size: 11.5px;
    }

    .breadcrumb {
        padding-top: 13px;
    }

    .breadcrumb-list {
        font-size: 9.5px;
    }

    .home-intro {
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .home-title {
        margin-bottom: 18px;
        font-size: clamp(2.7rem, 12vw, 3.7rem);
    }

    .home-lede {
        font-size: 13px;
    }

    .home-actions .button {
        flex: 1 1 auto;
    }

    .home-stats {
        gap: 24px;
        margin-top: 28px;
    }

    .home-stats dd {
        font-size: 23px;
    }

    .feature-card {
        box-shadow: 8px 8px 0 var(--paper-deep);
    }

    .home-columns {
        padding-top: 36px;
        padding-bottom: 34px;
    }

    .home-side,
    .archive-side {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .side-panel + .side-panel {
        margin-top: 0;
    }

    .drama-row {
        grid-template-columns: 26px 64px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 0;
    }

    .drama-row__actions {
        display: none;
    }

    .drama-row__index {
        font-size: 15px;
    }

    .drama-row__title {
        font-size: 14px;
    }

    .drama-row__meta {
        gap: 7px;
        font-size: 9px;
    }

    .drama-grid,
    .play-main .drama-grid,
    .detail-main .drama-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .app-banner {
        padding: 24px 20px;
    }

    .app-banner .button {
        width: 100%;
    }

    .seo-panel {
        margin-top: 36px;
        margin-bottom: 40px;
        padding: 24px 18px;
    }

    .seo-copy p {
        font-size: 12px;
    }

    .archive-head {
        padding-top: 25px;
        padding-bottom: 24px;
    }

    .archive-title {
        font-size: clamp(2.5rem, 12vw, 3.6rem);
    }

    .archive-title > span {
        font-size: 0.24em;
    }

    .archive-intro {
        font-size: 12px;
    }

    .archive-count {
        display: none;
    }

    .filter-nav {
        margin-top: 18px;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .filter-nav::-webkit-scrollbar {
        display: none;
    }

    .filter-link {
        flex: 0 0 auto;
        padding: 9px 11px;
        font-size: 10.5px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 16px;
    }

    .section-heading h2 {
        font-size: 1.65rem;
    }

    .section-aside {
        margin: 0;
    }

    .detail-hero {
        padding-top: 24px;
        padding-bottom: 30px;
    }

    .detail-cover {
        width: min(100%, 240px);
    }

    .detail-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .detail-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 0;
    }

    .detail-quick div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .detail-quick div:nth-child(n + 3) {
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }

    .detail-actions .button {
        flex: 1 1 auto;
    }

    .detail-layout {
        padding-top: 24px;
    }

    .content-section {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .episode-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .episode-pill {
        min-height: 38px;
        padding: 7px 8px;
    }

    .episode-pill__source {
        display: none;
    }

    .play-head {
        padding-top: 22px;
        padding-bottom: 18px;
    }

    .play-title {
        font-size: clamp(2rem, 8.5vw, 2.8rem);
    }

    .play-title span {
        display: block;
        margin: 5px 0 0;
        font-size: 11px;
    }

    .player-frame {
        aspect-ratio: 4 / 3;
    }

    .player-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .player-links {
        width: 100%;
        justify-content: space-between;
    }

    .now-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .now-card__body h2 {
        font-size: 1.25rem;
    }

    .now-card__name {
        margin-bottom: 8px;
    }

    .app-hero {
        padding-top: 32px;
        padding-bottom: 38px;
    }

    .app-hero__visual {
        padding-right: 0;
        padding-left: 0;
    }

    .app-title {
        font-size: clamp(2.7rem, 12vw, 3.8rem);
    }

    .paper-phone {
        width: min(88vw, 280px);
    }

    .app-note--top {
        top: 6%;
        right: 0;
    }

    .app-note--bottom {
        bottom: 5%;
        left: 0;
    }

    .app-cta {
        padding: 24px 20px;
    }

    .app-cta .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        margin-top: 26px;
    }

    .pager-block {
        margin-top: 28px;
    }

    .pager-arrow {
        min-width: 30px;
        padding: 0 8px;
        gap: 0;
    }

    .pager a.pager-arrow,
    .pager span.pager-arrow {
        gap: 0;
        padding: 0 8px;
        font-size: 0;
    }

    .pager-arrow span {
        font-size: 15px;
    }

    .pager a,
    .pager span {
        min-width: 31px;
        height: 31px;
        padding: 0 7px;
        font-size: 10px;
    }

    .pager a.pager-arrow,
    .pager span.pager-arrow {
        min-width: 31px;
        padding: 0 8px;
        font-size: 0;
    }

    .pager a.pager-arrow span,
    .pager span.pager-arrow span {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .drama-grid,
    .play-main .drama-grid,
    .detail-main .drama-grid {
        grid-template-columns: 1fr;
    }

    .drama-card__poster {
        max-width: 220px;
    }

    .home-actions,
    .detail-actions,
    .app-actions {
        flex-direction: column;
    }

    .home-actions .button,
    .detail-actions .button,
    .app-actions .button {
        width: 100%;
    }

    .episode-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
