:root {
    --bg: #eef1f5;
    --bg-strong: #dde4ea;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #f9fbfd;
    --ink: #10161f;
    --ink-soft: #23303f;
    --muted: #66768a;
    --line: rgba(34, 46, 64, 0.1);
    --accent: #ff6a3d;
    --accent-strong: #d44d24;
    --accent-soft: #ffd8c9;
    --secondary: #12304a;
    --secondary-soft: #dce7f3;
    --shadow: 0 24px 60px rgba(18, 34, 56, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 106, 61, 0.18), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(18, 48, 74, 0.18), transparent 20%),
        linear-gradient(180deg, #f5f7fa 0%, #edf1f5 52%, #e7edf3 100%);
}

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

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

button,
select,
input,
textarea {
    outline: none;
}

.site-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.site-shell::before,
.site-shell::after {
    content: "";
    position: fixed;
    z-index: 0;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
}

.site-shell::before {
    width: 320px;
    height: 320px;
    top: 110px;
    right: -80px;
    background: rgba(255, 106, 61, 0.14);
}

.site-shell::after {
    width: 280px;
    height: 280px;
    bottom: 80px;
    left: -60px;
    background: rgba(18, 48, 74, 0.1);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 18px 20px 26px;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(13, 30, 48, 0.98), rgba(29, 57, 83, 0.96) 42%, rgba(255, 106, 61, 0.92) 100%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.08), transparent);
    clip-path: ellipse(96% 78% at 50% 18%);
}

.hero__mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.24;
    mix-blend-mode: screen;
    clip-path: ellipse(96% 78% at 50% 18%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.82fr);
    align-items: stretch;
}

.hero__copy,
.hero__showcase {
    position: relative;
}

.hero__copy {
    padding: 18px 8px 18px 0;
}

.hero__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero__brand,
.hero__status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__brand {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
}

.hero__status {
    background: rgba(255, 216, 201, 0.18);
    color: #ffe7dd;
}

.eyebrow,
.section-heading__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 245, 236, 0.8);
}

.hero h1 {
    margin: 0;
    max-width: 8ch;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #fffaf1;
}

.hero__description {
    max-width: 560px;
    margin: 14px 0 0;
    color: rgba(238, 246, 255, 0.8);
    font-size: 0.98rem;
    line-height: 1.65;
}

.hero__ticker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero__ticker span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(245, 250, 255, 0.84);
    font-size: 0.84rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    font-weight: 600;
}

.button:hover,
.button:focus-visible,
.video-card__action:hover,
.video-card__action:focus-visible,
.pagination-bar button:hover,
.pagination-bar button:focus-visible,
.detail-drawer__close:hover,
.detail-drawer__close:focus-visible,
.watch-source-switch:hover,
.watch-source-switch:focus-visible,
.category-card__button:hover,
.category-card__button:focus-visible,
.tag-card__button:hover,
.tag-card__button:focus-visible {
    transform: translateY(-1px);
}

.button--primary {
    background: linear-gradient(135deg, #ff8259, #ff5f36);
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 106, 61, 0.32);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #f4f8fd;
    border-color: rgba(255, 255, 255, 0.18);
}

.hero__showcase {
    display: grid;
    gap: 12px;
    padding-top: 2px;
}

.hero__posterwall {
    position: relative;
    min-height: 250px;
}

.hero__poster {
    position: absolute;
    width: 48%;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 177, 140, 0.42), rgba(23, 35, 49, 0.92));
    background-size: cover;
    background-position: center;
    box-shadow: 0 26px 60px rgba(9, 14, 20, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.hero__poster::after {
    content: attr(data-title);
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    font-size: 0.96rem;
    line-height: 1;
    color: #fff6ec;
    z-index: 1;
}

.hero__poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 12, 18, 0.04), rgba(9, 12, 18, 0.72) 78%);
}

.hero__poster--back {
    top: 18px;
    left: 4%;
    transform: rotate(-10deg);
}

.hero__poster--mid {
    top: 0;
    right: 4%;
    transform: rotate(9deg);
}

.hero__poster--front {
    left: 25%;
    bottom: 0;
    z-index: 1;
}

.hero__showcase-card,
.hero__metric {
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(248, 251, 254, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__showcase-card--accent {
    background: linear-gradient(145deg, rgba(18, 48, 74, 0.92), rgba(14, 30, 48, 0.92));
    color: #eef5ff;
}

.hero__showcase-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero__showcase-card--accent p {
    color: rgba(217, 231, 247, 0.74);
}

.hero__showcase-label,
.hero__metric span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__showcase-card--accent .hero__showcase-label {
    color: rgba(217, 231, 247, 0.72);
}

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

.hero__showcase-card strong,
.hero__metric strong {
    font-size: 1.12rem;
}

.panel-card,
.toolbar,
.block-column,
.video-card,
.detail-content,
.detail-drawer__panel,
.category-card,
.tag-card,
.guestbook-card,
.guestbook-form,
.watch-layout,
.watch-player-stage,
.watch-sidebar section,
.status,
.empty-state {
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.panel-card {
    padding: 20px 22px;
    border-radius: 28px;
    background: rgba(248, 251, 254, 0.9);
}

.panel-card--quote {
    background: linear-gradient(145deg, rgba(18, 48, 74, 0.92), rgba(14, 30, 48, 0.92));
    color: #eef5ff;
    border-color: rgba(255, 255, 255, 0.08);
}

.panel-card--quote .panel-card__label {
    color: rgba(217, 231, 247, 0.72);
}

.panel-card__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.panel-card strong {
    font-size: 1.15rem;
}

.main-layout {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 56px;
    position: relative;
    z-index: 1;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: -18px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(18, 48, 74, 0.08);
    box-shadow: var(--shadow);
}

.site-nav__link {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(243, 247, 252, 0.95);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-weight: 600;
}

.site-nav__link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), #204869);
    border-color: transparent;
}

.toolbar {
    margin-top: 0;
    position: relative;
    z-index: 2;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    border-radius: 34px;
    padding: 18px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 253, 0.84));
}

body[data-route="home"] .hero {
    padding-bottom: 10px;
}

body[data-route="home"] .hero__inner {
    grid-template-columns: 1fr;
}

body[data-route="home"] .hero__showcase,
body[data-route="home"] .hero__ticker {
    display: none;
}

body[data-route="home"] .hero__copy {
    padding-bottom: 10px;
}

body[data-route="home"] .hero__actions {
    margin-top: 14px;
}

body[data-route="home"] .hero__actions .button {
    padding: 10px 16px;
}

body[data-route="home"] .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.4rem, 5vw, 4rem);
}

body[data-route="home"] .hero__description {
    max-width: 680px;
}

body[data-route="home"] .site-nav {
    margin-top: -8px;
}

body[data-route="home"] .toolbar {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.78fr);
    padding: 14px 18px;
    border-radius: 24px;
    background: rgba(11, 18, 26, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-route="home"] .toolbar label {
    color: rgba(230, 237, 246, 0.64);
}

body[data-route="home"] .search-input input,
body[data-route="home"] .toolbar select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f6f9fc;
}

body[data-route="home"] .search-input input::placeholder {
    color: rgba(230, 237, 246, 0.42);
}

.toolbar label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.search-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-input input,
.toolbar select,
.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    background: var(--surface-strong);
    color: var(--ink);
}

.search-input button,
.pagination-bar button,
.video-card__action,
.detail-drawer__close,
.guestbook-form button,
.watch-action,
.category-card__button,
.tag-card__button,
.watch-source-switch {
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #ff8a63);
    color: #fff8f1;
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
}

.toolbar__filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: end;
}

.content-section {
    padding-top: 24px;
}

.route-view {
    display: none;
}

.route-view.is-active {
    display: block;
}

.section-heading {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.03em;
}

.section-heading__eyebrow {
    color: var(--secondary);
}

.section-heading__meta {
    margin: 0;
    color: var(--muted);
}

.block-grid,
.category-grid,
.tag-grid,
.video-grid,
.guestbook-list,
.watch-related {
    display: grid;
    gap: 18px;
}

.home-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.78fr);
    gap: 18px;
    margin: -28px 0 26px;
    position: relative;
    z-index: 2;
}

.home-spotlight,
.home-quicklist,
.shelf-block {
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.home-spotlight {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    border-radius: 36px;
    display: grid;
    align-items: end;
    background: rgba(10, 15, 22, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(8, 11, 16, 0.28);
}

.home-spotlight__cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-spotlight__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 17, 22, 0.06), rgba(13, 17, 22, 0.92) 76%),
        linear-gradient(90deg, rgba(13, 17, 22, 0.74), rgba(13, 17, 22, 0.14) 58%, rgba(13, 17, 22, 0.4));
}

.home-spotlight__body {
    position: relative;
    z-index: 1;
    padding: 34px;
    color: #fff8ef;
    max-width: 62%;
}

.home-spotlight::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(7, 11, 16, 0.84));
}

.home-spotlight__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-spotlight__kicker {
    display: block;
    margin-top: 14px;
    color: rgba(255, 235, 220, 0.84);
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-spotlight__body h3 {
    margin: 16px 0 10px;
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.home-spotlight__scoreline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.home-spotlight__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffb15f, #ff6f47);
    color: #1f120d;
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(255, 111, 71, 0.28);
}

.home-spotlight__summary {
    color: rgba(245, 249, 253, 0.82);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
}

.home-spotlight__body p {
    margin: 0;
    color: rgba(255, 248, 239, 0.78);
    line-height: 1.75;
}

.home-spotlight__meta,
.home-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.home-spotlight__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.home-spotlight__fact {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 252, 255, 0.84);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.home-spotlight__meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-spotlight__ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff7ef;
}

.home-spotlight__actions .button {
    min-width: 132px;
    justify-content: center;
}

.home-spotlight__actions .button--primary {
    box-shadow: 0 16px 34px rgba(255, 106, 61, 0.34);
}

.home-quicklist {
    border-radius: 30px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(17, 25, 34, 0.96), rgba(24, 36, 48, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef4fb;
    box-shadow: 0 30px 70px rgba(8, 12, 18, 0.24);
}

.home-quicklist__header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: end;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
}

.home-quicklist__header span {
    font-size: 0.84rem;
    color: rgba(226, 236, 245, 0.6);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-quicklist__header strong {
    font-size: 1.24rem;
}

.home-quicklist__items {
    display: grid;
    gap: 8px;
    padding-top: 14px;
}

.home-quicklist__item {
    display: grid;
    grid-template-columns: auto 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: transform 180ms ease, color 180ms ease;
}

.home-quicklist__item:hover,
.home-quicklist__item:focus-visible {
    transform: translateX(4px);
}

.home-quicklist__item:last-child {
    border-bottom: none;
}

.home-quicklist__rank {
    font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--accent);
}

.home-quicklist__thumb {
    display: block;
    width: 74px;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.home-quicklist__text {
    display: grid;
    gap: 6px;
}

.home-quicklist__text strong {
    font-size: 1.06rem;
    line-height: 1.18;
    color: #fbfdff;
}

.home-quicklist__text span {
    color: rgba(225, 235, 244, 0.62);
    font-size: 0.88rem;
}

.home-shelves {
    display: grid;
    gap: 24px;
}

.shelf-block {
    border-radius: 30px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(11, 18, 26, 0.96), rgba(19, 29, 40, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f2f7fc;
}

.shelf-block__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.shelf-block__head h3 {
    margin: 0;
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    font-size: 1.72rem;
    line-height: 0.98;
}

.shelf-block__head .block-column__subtitle {
    color: rgba(220, 232, 244, 0.6);
}

.shelf-block__more {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #edf5fc;
    cursor: pointer;
}

.shelf-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.shelf-card {
    display: grid;
    gap: 10px;
}

.shelf-card__cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    border: none;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(16, 22, 31, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease;
    position: relative;
}

.shelf-card__cover::before {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #fff5eb;
}

.shelf-card__cover::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(8, 11, 15, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.shelf-card__cover:hover,
.shelf-card__cover:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(16, 22, 31, 0.2);
}

.shelf-card__body {
    display: grid;
    gap: 7px;
}

.shelf-card__body strong {
    font-size: 1rem;
    line-height: 1.18;
    color: #f6fbff;
}

.shelf-card__body span {
    color: rgba(218, 230, 242, 0.62);
    font-size: 0.86rem;
}

.shelf-card__progress {
    position: relative;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.shelf-card__progress::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--progress, 42%);
    border-radius: inherit;
    background: linear-gradient(90deg, #ff6a3d, #ffb15f);
}

.block-grid,
.category-grid,
.watch-related {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tag-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
    gap: 20px;
}

.chip-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 26px;
    background: rgba(10, 16, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(8, 12, 18, 0.18);
}

.chip-rail__item,
.watch-source,
.watch-stat {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary);
    padding: 10px 14px;
}

.chip-rail__item {
    cursor: pointer;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f3f8fc;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.chip-rail__item:hover,
.chip-rail__item:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 106, 61, 0.18);
    border-color: rgba(255, 106, 61, 0.34);
}

body[data-route="home"] .section-heading h2 {
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    letter-spacing: -0.04em;
}

.block-column,
.category-card,
.tag-card,
.guestbook-card,
.watch-sidebar section,
.watch-player-stage {
    border-radius: 28px;
    padding: 22px;
}

.block-column,
.category-card,
.tag-card,
.guestbook-card,
.video-card,
.watch-related-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.block-column:hover,
.category-card:hover,
.tag-card:hover,
.guestbook-card:hover,
.video-card:hover,
.watch-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(18, 34, 56, 0.14);
    border-color: rgba(18, 48, 74, 0.16);
}

.block-column h3,
.category-card h3,
.tag-card h3,
.watch-sidebar h3,
.detail-content h2 {
    margin: 0;
}

.block-column__subtitle,
.category-card p,
.tag-card p,
.guestbook-card p,
.watch-summary,
.watch-sidebar p,
.detail-content p,
.form-status {
    color: var(--muted);
    line-height: 1.7;
}

.block-column ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.block-column li {
    border-top: 1px solid rgba(18, 48, 74, 0.08);
    padding-top: 12px;
}

.block-column button {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.category-card__meta,
.tag-card__head,
.guestbook-card__meta,
.watch-meta,
.watch-actions,
.watch-sources,
.watch-source-switches,
.watch-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-card__meta {
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.tag-card__head,
.guestbook-card__meta {
    justify-content: space-between;
    align-items: center;
}

.tag-card__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex: none;
    box-shadow: 0 0 0 4px rgba(18, 48, 74, 0.06);
}

.video-card {
    overflow: hidden;
    border-radius: 28px;
    display: grid;
    background: linear-gradient(180deg, rgba(12, 18, 25, 0.98), rgba(19, 29, 40, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.video-card::before {
    content: attr(data-index);
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(7, 9, 13, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff7ef;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.video-card__cover {
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #274968, #ff7a4d);
    background-size: cover;
    background-position: center;
    position: relative;
}

.video-card__cover:hover,
.video-card__cover:focus-visible {
    filter: saturate(1.06);
}

.video-card__cover::before {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 1;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #fff7ef;
}

.video-card__cover::after {
    content: "";
    position: absolute;
    inset: auto 14px 14px auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 9, 13, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.video-card__body {
    display: grid;
    gap: 8px;
    padding: 0 14px 16px;
    margin-top: -78px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 18, 25, 0), rgba(12, 18, 25, 0.9) 28%, rgba(12, 18, 25, 0.98));
}

.video-card:hover .video-card__body,
.video-card:focus-within .video-card__body {
    background: linear-gradient(180deg, rgba(12, 18, 25, 0), rgba(12, 18, 25, 0.94) 22%, rgba(12, 18, 25, 1));
}

.video-card__category {
    display: inline-block;
    margin-bottom: 2px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f0f6fc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-card__title {
    margin: 0;
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    font-size: 1.26rem;
    line-height: 1.02;
    min-height: 2.1em;
    letter-spacing: -0.02em;
    color: #fbfdff;
}

.video-card__meta {
    min-height: 48px;
    margin: 0;
    color: rgba(220, 231, 241, 0.64);
    line-height: 1.45;
    font-size: 0.9rem;
}

.video-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.video-card:hover .video-card__actions,
.video-card:focus-within .video-card__actions {
    opacity: 1;
    transform: translateY(0);
}

.video-card__action--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f6fc;
}

body[data-route="videos"] .video-card__body {
    margin-top: -92px;
    min-height: 174px;
}

body[data-route="videos"] .video-card__title {
    font-size: 1.4rem;
    min-height: 2em;
}

body[data-route="videos"] .video-card__meta {
    min-height: 34px;
    font-size: 0.84rem;
}

body[data-route="videos"] .video-card__actions {
    grid-template-columns: 1fr;
}

body[data-route="videos"] .video-card__action--ghost {
    display: none;
}

body[data-route="videos"] .video-card:hover {
    transform: translateY(-6px) scale(1.018);
}

body[data-route="videos"] .section-heading,
body[data-route="home"] .section-heading {
    align-items: center;
}

body[data-route="videos"] .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    gap: 22px 18px;
}

body[data-route="videos"] .content-section,
body[data-route="home"] .content-section {
    padding-top: 18px;
}

.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.pagination-bar--left {
    justify-content: flex-start;
}

.pagination-bar button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.guestbook-layout,
.watch-layout {
    display: grid;
    gap: 18px;
}

.guestbook-layout {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.watch-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    align-items: start;
}

.watch-player-stage {
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, rgba(13, 30, 48, 0.95), rgba(25, 49, 73, 0.98));
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 70px rgba(10, 14, 20, 0.28);
}

.watch-headline {
    display: grid;
    gap: 14px;
}

.watch-headline__eyebrow {
    margin: 0 0 10px;
    color: rgba(227, 238, 248, 0.66);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.watch-player-stage h2 {
    margin: 0;
    color: #f5f8fc;
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.watch-stats--headline {
    gap: 8px;
}

.watch-player-embed {
    width: 100%;
    min-height: min(56vw, 520px);
    border: none;
    border-radius: 22px;
    background: #0f1822;
}

.watch-player-embed--video {
    background: #1b120d;
}

.watch-player-fallback {
    min-height: 320px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 106, 61, 0.18), rgba(16, 22, 31, 0.82)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
    color: #fff8f1;
}

.watch-sidebar section {
    background: rgba(255, 250, 242, 0.75);
}

.watch-summary {
    margin: 0;
    color: rgba(234, 242, 251, 0.78);
}

.watch-source-switch {
    background: rgba(255, 255, 255, 0.08);
    color: #eef5ff;
}

.watch-source-switch.is-active {
    background: linear-gradient(135deg, var(--accent), #ff8d69);
    color: #fff;
}

.watch-actions {
    margin-top: 8px;
}

.watch-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.watch-info-list {
    display: grid;
    gap: 10px;
}

.watch-info-list p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(18, 48, 74, 0.08);
}

.watch-info-list span {
    color: var(--muted);
}

.watch-info-list strong {
    text-align: right;
}

.watch-related-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    padding: 14px;
}

.watch-related-card__cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    border: none;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.watch-related-card__body {
    display: grid;
    gap: 8px;
    align-content: start;
}

.watch-related-card h4 {
    margin: 0;
    font-family: "Arial Narrow", "Avenir Next Condensed", "PingFang SC", sans-serif;
    font-size: 1.12rem;
    line-height: 1;
}

.watch-related-card p,
.guestbook-card__reply {
    color: var(--muted);
    line-height: 1.7;
}

.guestbook-card__reply {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.detail-drawer {
    position: fixed;
    inset: 0;
    display: none;
}

.detail-drawer.is-open {
    display: block;
}

.detail-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 24, 0.42);
}

.detail-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    padding: 20px;
    border-radius: 32px 0 0 32px;
    overflow-y: auto;
    animation: slide-in 220ms ease;
    background: rgba(251, 253, 255, 0.96);
}

.detail-content dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
}

.detail-content dt {
    color: var(--muted);
}

.detail-content dd {
    margin: 0;
}

.detail-content__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 20px;
}

.detail-content__meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 48, 74, 0.08);
    color: var(--secondary);
}

.status,
.empty-state {
    padding: 18px 20px;
    border-radius: 22px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
}

@keyframes slide-in {
    from {
        transform: translateX(24px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 920px) {
    .hero__inner,
    .toolbar,
    .home-stage,
    .guestbook-layout,
    .watch-layout {
        grid-template-columns: 1fr;
    }

    .home-spotlight__body {
        max-width: none;
    }

    body[data-route="home"] .toolbar {
        grid-template-columns: 1fr;
    }

    .home-stage {
        margin-top: 0;
    }

    .home-spotlight {
        min-height: 460px;
    }

    .home-spotlight__body {
        max-width: none;
        padding: 24px;
    }

    .home-quicklist__item {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }

    .home-quicklist__thumb {
        width: 64px;
    }

    .video-card__actions {
        opacity: 1;
        transform: none;
    }

    .hero__showcase-grid {
        grid-template-columns: 1fr;
    }

    .hero__posterwall {
        min-height: 280px;
    }

    .watch-sidebar {
        position: static;
    }

    .site-nav {
        margin-top: -8px;
    }

    .toolbar__filters,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 32px;
    }

    .hero__ticker {
        display: grid;
    }

    .hero__actions,
    .search-input,
    .video-card__actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .watch-related-card {
        grid-template-columns: 1fr;
    }

    .detail-drawer__panel {
        border-radius: 28px 28px 0 0;
        width: 100%;
        top: auto;
        bottom: 0;
        max-height: 86vh;
    }
}