:root {
    --bg: #090b12;
    --surface: #111522;
    --surface-2: #171c2b;
    --text: #f7f8fc;
    --muted: #aab0c0;
    --line: rgba(255, 255, 255, 0.10);
    --accent: #ff6b4a;
    --accent-2: #ffb36b;
    --teal: #43d7c6;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 15% 10%, rgba(255, 107, 74, 0.12), transparent 30%), radial-gradient(circle at 90% 30%, rgba(67, 215, 198, 0.08), transparent 25%);
    content: "";
}

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

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: calc(100% - 40px);
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.mini-icon {
    width: 15px;
    height: 15px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 18, 0.94);
    backdrop-filter: blur(16px);
}

.header-main {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 208px;
    height: auto;
}

.site-search {
    display: flex;
    width: min(520px, 48vw);
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    overflow: hidden;
}

.site-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 18px;
    background: transparent;
    color: var(--text);
}

.site-search button {
    width: 48px;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

.category-nav {
    border-top: 1px solid var(--line);
}

.nav-scroll {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.nav-scroll a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.nav-scroll a:hover,
.nav-scroll a.active {
    color: var(--text);
    background: rgba(255, 107, 74, 0.12);
}

.hero-shell {
    padding: 56px 0 40px;
}

.hero {
    display: grid;
    min-height: 520px;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero h1 a {
    background: linear-gradient(120deg, #ffffff 15%, #ffc5ab 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 650px;
    margin: 24px 0;
    color: var(--muted);
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.button.primary {
    background: linear-gradient(135deg, var(--accent), #ff8c52);
    color: #140906;
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.22);
}

.button.ghost {
    border-color: var(--line);
    background: var(--surface);
}

.button.light {
    background: #ffffff;
    color: #10131e;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0;
    margin: 24px 0 0;
    color: var(--muted);
    list-style: none;
}

.hero-points li::before {
    margin-right: 8px;
    color: var(--teal);
    content: "●";
}

.hero-poster {
    position: relative;
    min-height: 500px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-poster::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 7, 12, 0.95), transparent 62%);
    content: "";
}

.hero-poster > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.play-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    background: rgba(255, 107, 74, 0.9);
    color: #ffffff;
    transform: translate(-50%, -50%);
}

.hero-poster-info {
    position: absolute;
    right: 28px;
    bottom: 26px;
    left: 28px;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.hero-poster-info strong {
    font-size: 28px;
}

.hero-poster-info span {
    color: #d9dce5;
}

.section {
    padding: 58px 0;
}

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

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.title-icon {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 107, 74, 0.14);
    color: var(--accent);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.section-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.more-link,
.text-link {
    color: var(--accent-2);
    font-weight: 700;
}

.category-section {
    padding-top: 22px;
}

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

.category-tile {
    display: flex;
    min-height: 174px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    border-color: rgba(255, 107, 74, 0.5);
    transform: translateY(-4px);
}

.category-icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: var(--accent-2);
}

.category-tile small {
    display: -webkit-box;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.drama-card {
    min-width: 0;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #252a38;
    overflow: hidden;
}

.poster-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.drama-card:hover .poster-wrap > img {
    transform: scale(1.035);
}

.score,
.episode-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.score {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: rgba(9, 11, 18, 0.82);
    color: #ffd36b;
    font-weight: 700;
}

.episode-badge {
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(255, 107, 74, 0.88);
    font-size: 12px;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 1.5em;
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.card-intro {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    color: #c8ccda;
    font-size: 12px;
}

.card-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
}

.rank-shell {
    background: linear-gradient(90deg, rgba(255,107,74,0.08), rgba(67,215,198,0.05));
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
}

.ranking-copy > p {
    max-width: 460px;
    color: var(--muted);
}

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

.ranking-list li {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.rank-no {
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
}

.ranking-list h3,
.ranking-list p {
    margin: 0;
}

.ranking-list p {
    color: var(--muted);
    font-size: 13px;
}

.ranking-list > li > strong {
    color: #ffd36b;
    font-size: 20px;
}

.update-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.update-strip a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    padding: 18px;
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: var(--surface);
}

.update-strip time {
    grid-row: 1 / 3;
    color: var(--accent-2);
    font-weight: 700;
}

.update-strip span {
    color: var(--muted);
    font-size: 13px;
}

.spotlight-shell {
    padding-top: 26px;
}

.spotlight {
    display: grid;
    min-height: 470px;
    grid-template-columns: 1.15fr 0.85fr;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    overflow: hidden;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
}

.spotlight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
}

.spotlight-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
}

.spotlight-copy p {
    color: var(--muted);
}

.spotlight-copy dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0 26px;
}

.spotlight-copy dl div {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

.spotlight-copy dt {
    color: var(--muted);
    font-size: 12px;
}

.spotlight-copy dd {
    margin: 2px 0 0;
}

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

.drama-card.horizontal {
    display: grid;
    grid-template-columns: 42% 58%;
}

.drama-card.horizontal .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
}

.calendar-shell {
    background: #0d111b;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.day-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.day-card strong {
    color: var(--accent);
}

.day-card span {
    font-size: 14px;
}

.day-card time {
    color: var(--muted);
    font-size: 12px;
}

.split-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.showcase-panel {
    position: relative;
    min-height: 330px;
    padding: 42px;
    border-radius: 26px;
    overflow: hidden;
}

.showcase-panel::after {
    position: absolute;
    right: -60px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border: 44px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    content: "";
}

.costume-panel {
    background: linear-gradient(135deg, #7c294b, #d2694f);
}

.campus-panel {
    background: linear-gradient(135deg, #075c70, #2e9f8d);
}

.panel-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.14);
}

.showcase-panel h2 {
    margin: 20px 0 8px;
    font-size: 34px;
}

.showcase-panel p {
    max-width: 420px;
    margin-bottom: 26px;
}

.guide-shell {
    background: linear-gradient(180deg, transparent, rgba(255,107,74,0.06));
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.guide-steps article {
    padding: 30px;
    border-top: 3px solid var(--accent);
    border-radius: 0 0 18px 18px;
    background: var(--surface);
}

.guide-steps article > span {
    color: var(--accent);
    font-size: 32px;
    font-weight: 800;
}

.guide-steps h3 {
    margin: 8px 0;
}

.guide-steps p {
    margin: 0;
    color: var(--muted);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-story {
    position: relative;
    min-height: 360px;
    border-radius: 20px;
    overflow: hidden;
}

.feature-story::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,5,9,0.96), transparent 70%);
    content: "";
}

.feature-story img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.feature-story > div {
    position: absolute;
    right: 24px;
    bottom: 22px;
    left: 24px;
    z-index: 2;
}

.feature-story h3,
.feature-story p {
    margin: 5px 0 0;
}

.feature-story p {
    display: -webkit-box;
    color: #c9ceda;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.feature-story span {
    color: var(--accent-2);
    font-size: 12px;
}

.faq-shell {
    background: #0d111b;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 54px;
}

.faq-layout > .section-head {
    display: block;
}

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

.faq-item button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 40px 18px 0;
    color: var(--muted);
}

.faq-item.open .faq-answer {
    display: block;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

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

.page-hero {
    margin-top: 22px;
    padding: 62px 0;
    background: linear-gradient(135deg, #251724, #111a2a);
}

.page-hero-inner {
    display: flex;
    align-items: center;
    gap: 26px;
}

.page-hero-icon {
    display: flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background: rgba(255,255,255,0.1);
    color: var(--accent-2);
}

.page-hero-icon .icon {
    width: 40px;
    height: 40px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #cdd1dc;
}

.page-hero.compact {
    text-align: center;
}

.page-hero.compact p {
    margin-right: auto;
    margin-left: auto;
}

.list-layout,
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 34px;
}

.sidebar,
.detail-aside,
.prose-aside {
    height: fit-content;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.sidebar h2,
.detail-aside h2,
.prose-aside h2 {
    margin-top: 0;
    font-size: 20px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.sidebar-item > span {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,107,74,0.14);
    color: var(--accent);
    font-weight: 700;
}

.sidebar-item div {
    min-width: 0;
}

.sidebar-item strong,
.sidebar-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-item small {
    color: var(--muted);
}

.sidebar-note,
.viewer-tip {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(67,215,198,0.08);
    color: #bcece5;
}

.sidebar-note p,
.viewer-tip p {
    margin: 0;
}

.detail-hero {
    padding: 36px 0 58px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 50px;
    align-items: center;
}

.detail-poster {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: var(--surface);
    overflow: hidden;
}

.detail-poster > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.score.large {
    top: 18px;
    left: 18px;
    font-size: 18px;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.1;
}

.detail-intro {
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    padding: 5px 12px;
    border: 1px solid rgba(255,107,74,0.35);
    border-radius: 999px;
    color: var(--accent-2);
    font-size: 13px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    gap: 8px 20px;
    margin: 22px 0;
}

.meta-list div {
    display: flex;
    gap: 12px;
}

.meta-list dt {
    color: var(--muted);
}

.meta-list dd {
    margin: 0;
}

.watch-note {
    color: var(--muted);
    font-size: 12px;
}

.story-article {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.story-article h2 {
    margin-top: 0;
    font-size: 28px;
}

.story-article h3 {
    margin-top: 26px;
}

.story-article p {
    color: #c8ccda;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.episode-grid button {
    padding: 8px 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1d2230;
    color: var(--text);
    cursor: pointer;
}

.episode-grid button.active {
    border-color: var(--accent);
    color: var(--accent-2);
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.prev-next a {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.prev-next a:last-child {
    text-align: right;
}

.prev-next span,
.prev-next strong {
    display: block;
}

.prev-next span {
    color: var(--muted);
    font-size: 13px;
}

.search-page-form {
    display: flex;
    width: min(720px, 100%);
    gap: 10px;
    margin: 26px auto 0;
}

.search-page-form input {
    min-width: 0;
    flex: 1;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    background: var(--surface);
    color: var(--text);
}

.search-summary h2,
.search-summary p {
    margin: 0;
}

.search-summary {
    margin-bottom: 24px;
}

.search-summary p {
    color: var(--muted);
}

.empty-state {
    padding: 72px 20px;
    text-align: center;
}

.empty-state[hidden] {
    display: none;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--muted);
}

.prose-layout,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
}

.prose-card,
.contact-card,
.contact-form {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.prose-card section + section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.prose-card h2,
.prose-card p {
    margin-top: 0;
}

.prose-card p {
    color: #c8ccda;
}

.prose-aside a {
    display: block;
    padding: 8px 0;
    color: var(--muted);
}

.contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
}

.contact-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
}

.contact-card a {
    color: var(--accent-2);
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form h2 {
    margin-top: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: #0d1019;
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.form-status {
    min-height: 1.7em;
    margin: 0;
    color: var(--teal);
}

.not-found-main {
    display: flex;
    min-height: 64vh;
    align-items: center;
}

.not-found {
    padding: 70px 20px;
    text-align: center;
}

.error-code {
    display: block;
    background: linear-gradient(135deg, var(--accent), #ffd36b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(6rem, 18vw, 13rem);
    font-weight: 900;
    line-height: 0.9;
}

.not-found h1 {
    margin: 24px 0 8px;
}

.not-found p {
    max-width: 620px;
    margin: 0 auto 26px;
    color: var(--muted);
}

.not-found .hero-actions {
    justify-content: center;
}

.site-footer {
    padding: 54px 0 24px;
    border-top: 1px solid var(--line);
    background: #07090e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 1fr;
    gap: 40px;
}

.footer-grid h2 {
    margin-top: 0;
    font-size: 16px;
}

.footer-grid section > a {
    display: block;
    padding: 5px 0;
    color: var(--muted);
}

.footer-grid p {
    color: var(--muted);
}

.footer-brand img {
    width: 190px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    margin-top: 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

.back-top.visible {
    display: flex;
}

@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .header-main {
        flex-wrap: wrap;
        gap: 14px;
        padding: 12px 0;
    }

    .site-search {
        order: 3;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .category-nav {
        display: none;
    }

    .category-nav.open {
        display: block;
    }

    .nav-scroll {
        grid-template-columns: repeat(4, 1fr);
        padding: 8px 0;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 420px;
    }

    .hero-poster > img {
        height: 420px;
    }

    .ranking-layout,
    .spotlight,
    .faq-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-image img {
        min-height: 360px;
        max-height: 420px;
    }

    .wide-card-grid,
    .split-showcase,
    .feature-row,
    .guide-steps {
        grid-template-columns: 1fr 1fr;
    }

    .update-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-layout,
    .article-layout,
    .prose-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .detail-aside,
    .prose-aside {
        width: 100%;
    }

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

@media (max-width: 580px) {
    .container {
        width: calc(100% - 40px);
    }

    .brand img {
        width: 176px;
    }

    .nav-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-shell {
        padding-top: 36px;
    }

    .hero {
        gap: 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-poster,
    .hero-poster > img {
        min-height: 340px;
        height: 340px;
    }

    .hero-poster-info {
        align-items: start;
        flex-direction: column;
        gap: 2px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        align-items: start;
    }

    .section-head > .more-link {
        display: none;
    }

    .category-grid,
    .card-grid.four,
    .card-grid.three,
    .wide-card-grid,
    .split-showcase,
    .feature-row,
    .guide-steps,
    .update-strip,
    .week-grid,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .drama-card.horizontal {
        grid-template-columns: 1fr;
    }

    .drama-card.horizontal .poster-wrap {
        aspect-ratio: 4 / 3;
    }

    .spotlight-copy,
    .showcase-panel,
    .story-article,
    .prose-card,
    .contact-card,
    .contact-form {
        padding: 24px;
    }

    .spotlight-image img {
        min-height: 260px;
        height: 260px;
    }

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

    .day-card {
        min-height: 130px;
    }

    .page-hero {
        padding: 42px 0;
    }

    .page-hero-inner {
        align-items: start;
        flex-direction: column;
    }

    .detail-grid {
        gap: 28px;
    }

    .detail-info h1 {
        font-size: 2.6rem;
    }

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

    .search-page-form {
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}
