:root {
    --bg: #0b0d12;
    --surface: #121722;
    --surface-2: #171d29;
    --card: #1b2230;
    --text: #f5f7fb;
    --muted: #aeb8c8;
    --line: rgba(255, 255, 255, 0.1);
    --orange: #ff6b35;
    --orange-2: #ff8c42;
    --teal: #33d1c6;
    --radius: 18px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 8%, rgba(51, 209, 198, 0.08), transparent 30%), radial-gradient(circle at 88% 10%, rgba(255, 107, 53, 0.1), transparent 28%);
    z-index: -1;
}

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

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

button,
input {
    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;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 20px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--orange);
    border-radius: 10px;
    color: white;
}

.skip-link:focus {
    top: 12px;
}

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

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

.header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
    align-items: center;
}

.brand img,
.footer-logo {
    width: 164px;
    height: 48px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.main-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.main-nav .ui-icon {
    width: 16px;
    height: 16px;
}

.header-search {
    width: 190px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.header-search input {
    min-width: 0;
    width: 100%;
    padding: 9px 4px 9px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.header-search button {
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
}

.hero-shell {
    padding: 38px 0 18px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 34px;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-kicker {
    color: var(--orange-2);
}

.hero-copy h1 {
    margin: 0;
    max-width: 650px;
    font-size: clamp(38px, 5.4vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 a {
    background: linear-gradient(120deg, #ffffff 0%, #ffffff 50%, #ffad79 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.hero-search,
.search-page-form {
    display: flex;
    gap: 10px;
    max-width: 620px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}

.hero-search input,
.search-page-form input {
    min-width: 0;
    flex: 1;
    padding: 10px 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: white;
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.22);
}

.button.secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.trend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

.trend-links a {
    color: #dce3ed;
}

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

.hero-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 26%, rgba(6, 7, 10, 0.92) 92%);
}

.hero-feature img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
}

.hero-overlay {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px;
}

.hero-overlay h2 {
    margin: 12px 0 4px;
    font-size: clamp(28px, 3vw, 42px);
}

.hero-overlay p {
    margin: 0 0 16px;
    color: #d7deea;
}

.watch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(51, 209, 198, 0.12);
    color: #79eee5;
    font-size: 12px;
    font-weight: 800;
}

.pill.hot {
    background: rgba(255, 107, 53, 0.2);
    color: #ffb18f;
}

.section {
    padding: 52px 0;
}

.section.tinted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012));
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.heading-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.heading-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 107, 53, 0.28);
    border-radius: 13px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange-2);
}

.heading-icon.large {
    width: 58px;
    height: 58px;
}

.heading-icon.large .ui-icon {
    width: 28px;
    height: 28px;
}

.section-heading h2,
.page-hero h1,
.article-content h2,
.not-found h1 {
    margin: 0;
    line-height: 1.25;
}

.section-heading h2 {
    font-size: clamp(25px, 3vw, 36px);
}

.text-link {
    color: #ffb18f;
    font-weight: 800;
    white-space: nowrap;
}

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

.category-chip {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-chip:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.category-emoji {
    font-size: 24px;
}

.category-chip strong {
    margin-top: 4px;
}

.category-chip small {
    color: var(--muted);
    line-height: 1.45;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(380px, 0.7fr);
    gap: 24px;
}

.rank-feature {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.rank-feature .poster-wrap {
    min-height: 360px;
}

.rank-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    list-style: none;
}

.rank-list li {
    min-height: 64px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-number {
    color: var(--orange-2);
    font-size: 20px;
    font-weight: 900;
}

.rank-list a {
    min-width: 0;
}

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

.rank-list small {
    color: var(--muted);
}

.rank-score {
    font-weight: 800;
}

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

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

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

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #253047, #151923);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.show-card:hover .poster-wrap img {
    transform: scale(1.04);
}

.poster-wrap.broken::after,
.article-poster.broken::after,
.hero-feature.broken::after {
    content: "图片暂时无法加载";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: linear-gradient(135deg, #253047, #151923);
}

.score {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(7, 9, 13, 0.82);
    color: #ffd06d;
    font-weight: 900;
}

.play-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.9);
    color: white;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.meta-row,
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

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

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

.card-foot {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.card-foot a {
    color: #ffb18f;
}

.updates-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.updates-board > a {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.updates-board > a:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.updates-board time {
    color: var(--orange-2);
    font-weight: 800;
}

.update-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-episode {
    color: var(--muted);
    font-size: 14px;
}

.genre-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 16px;
}

.genre-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-image: linear-gradient(180deg, rgba(8, 10, 14, 0.18), rgba(8, 10, 14, 0.92)), var(--tile-bg);
    background-position: center;
    background-size: cover;
}

.genre-tile.tile-1,
.genre-tile.tile-4 {
    grid-column: span 2;
}

.genre-tile h3 {
    margin: 5px 0;
    font-size: 24px;
}

.genre-tile p {
    max-width: 480px;
    margin: 0;
    color: #d5dce6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.genre-count {
    color: #ffd0bd;
    font-size: 13px;
    font-weight: 800;
}

.ai-section {
    padding-top: 64px;
}

.ai-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 44px;
    padding-bottom: 44px;
    padding-left: 44px;
    padding-right: 44px;
    border: 1px solid rgba(51, 209, 198, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(51, 209, 198, 0.1), rgba(82, 168, 255, 0.06) 50%, rgba(255, 107, 53, 0.08));
}

.ai-copy h2 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 44px);
}

.ai-copy > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.mood-picker {
    align-self: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(11, 13, 18, 0.6);
}

.mood-picker > p:first-child {
    margin-top: 0;
    font-weight: 800;
}

.mood-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mood-buttons button {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    color: white;
    cursor: pointer;
}

.mood-buttons button:hover,
.mood-buttons button.selected {
    border-color: var(--teal);
    color: #91f5ed;
}

.mood-result {
    min-height: 28px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.mood-result a {
    color: var(--orange-2);
    font-weight: 800;
}

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

.week-grid a {
    min-height: 158px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.week-grid a.today {
    border-color: rgba(255, 107, 53, 0.55);
    background: linear-gradient(160deg, rgba(255, 107, 53, 0.14), var(--surface));
}

.week-grid span,
.week-grid small {
    color: var(--muted);
}

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

.collection-card {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: end;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.collection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(6, 7, 10, 0.92));
}

.collection-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.collection-card > div {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.collection-card span {
    color: var(--orange-2);
    font-size: 13px;
    font-weight: 800;
}

.collection-card h3 {
    margin: 6px 0;
    font-size: 23px;
}

.collection-card p {
    margin: 0;
    color: #d4dbe6;
}

.guide-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 46px;
    align-items: start;
}

.guide-lead {
    color: var(--muted);
}

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

.guide-steps > div {
    min-height: 210px;
    padding: 22px;
    border-top: 3px solid var(--orange);
    border-radius: 0 0 15px 15px;
    background: var(--surface);
}

.guide-steps span {
    color: rgba(255, 255, 255, 0.22);
    font-size: 34px;
    font-weight: 900;
}

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

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

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

.faq-layout > div:first-child h2 {
    margin: 0;
    font-size: 36px;
}

.faq-layout > div:first-child p:last-child {
    color: var(--muted);
}

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

.faq-item button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border: 0;
    background: transparent;
    color: white;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.faq-item button span:last-child {
    color: var(--orange-2);
    font-size: 22px;
}

.faq-answer p {
    margin: 0;
    padding: 0 34px 18px 0;
    color: var(--muted);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 44px;
    padding-right: 44px;
    border: 1px solid rgba(255, 107, 53, 0.24);
    border-radius: 24px;
    background: linear-gradient(125deg, #251914, #141923 55%, #102421);
}

.cta-panel h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
}

.cta-panel p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.site-footer {
    margin-top: 48px;
    padding: 48px 0 24px;
    border-top: 1px solid var(--line);
    background: #080a0e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.65fr 0.65fr;
    gap: 60px;
}

.footer-grid p {
    max-width: 560px;
    color: var(--muted);
}

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

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin: 7px 0;
    color: var(--muted);
}

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

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

.breadcrumb a:hover {
    color: var(--orange-2);
}

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

.page-hero.compact {
    padding: 46px 0 26px;
}

.page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 44px;
    padding-right: 44px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent, var(--orange));
    border-radius: 20px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent, var(--orange)) 12%, var(--surface)), var(--surface));
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.page-hero p:last-child {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.page-hero-mark {
    font-size: 74px;
    opacity: 0.8;
}

.channel-note {
    padding-top: 16px;
}

.note-panel {
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 34px;
    padding-right: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.note-panel h2 {
    margin-top: 0;
}

.note-panel p {
    color: var(--muted);
}

.article-hero {
    padding: 34px 0 52px;
}

.article-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 46px;
    align-items: center;
}

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

.article-poster img {
    width: 100%;
    height: 100%;
}

.article-intro h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.1;
}

.article-hook {
    margin: 18px 0;
    color: #ffc1a5;
    font-size: 19px;
}

.article-intro > p:not(.eyebrow):last-of-type {
    color: var(--muted);
}

.article-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.article-facts span {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 12px;
}

.article-facts strong {
    display: block;
    color: white;
    font-size: 18px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 48px;
    align-items: start;
}

.article-content {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.article-content h2 {
    margin: 8px 0 18px;
    font-size: 27px;
}

.article-content h2:not(:first-child) {
    margin-top: 36px;
}

.article-content p {
    color: #c5ceda;
    font-size: 17px;
}

.watch-note {
    margin-top: 34px;
    padding: 20px;
    border-left: 3px solid var(--teal);
    border-radius: 0 12px 12px 0;
    background: rgba(51, 209, 198, 0.07);
}

.watch-note h3,
.watch-note p {
    margin-top: 0;
}

.watch-note p {
    margin-bottom: 0;
    font-size: 15px;
}

.article-aside {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.article-aside h2 {
    margin-top: 0;
    font-size: 20px;
}

.article-aside dl {
    margin: 0 0 18px;
}

.article-aside dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.article-aside dt {
    color: var(--muted);
}

.article-aside dd {
    margin: 0;
    text-align: right;
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

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

.post-nav a:last-child {
    text-align: right;
}

.post-nav span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.related-section {
    padding-bottom: 0;
}

.search-hero {
    text-align: center;
}

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

.search-page-form {
    margin: 26px auto 0;
    text-align: left;
}

.search-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
}

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

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

.empty-state {
    padding: 60px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state > span {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--orange-2);
}

.empty-state p {
    color: var(--muted);
}

.prose-card {
    max-width: 900px;
    padding-top: 38px;
    padding-bottom: 38px;
    padding-left: 44px;
    padding-right: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

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

.prose-card h2 {
    margin: 0 0 10px;
    font-size: 25px;
}

.prose-card p {
    margin: 0;
    color: #c5ceda;
    font-size: 17px;
}

.not-found {
    min-height: 68vh;
    display: grid;
    place-items: center;
    padding: 70px 0;
}

.not-found-inner {
    text-align: center;
}

.error-code {
    display: block;
    background: linear-gradient(130deg, var(--orange), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(100px, 20vw, 220px);
    font-weight: 900;
    line-height: 0.9;
}

.not-found h1 {
    margin-top: 12px;
    font-size: clamp(30px, 5vw, 52px);
}

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

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

@media (max-width: 1180px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .header-search {
        display: none;
    }

    .category-rail {
        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));
    }
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 68px;
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        max-height: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        overflow: hidden;
        padding: 0 20px;
        background: #0b0d12;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }

    .main-nav.open {
        max-height: 520px;
        padding-top: 14px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--line);
    }

    .hero-grid,
    .ranking-layout,
    .article-hero-grid,
    .article-layout,
    .guide-grid,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 20px 0 0;
    }

    .hero-feature {
        min-height: 430px;
    }

    .rank-feature {
        grid-template-columns: 1fr;
    }

    .rank-feature .poster-wrap {
        min-height: auto;
    }

    .updates-board {
        grid-template-columns: 1fr;
    }

    .updates-board > a:nth-child(odd) {
        border-right: 0;
    }

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

    .ai-panel,
    .collection-grid {
        grid-template-columns: 1fr;
    }

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

    .article-layout {
        gap: 24px;
    }

    .article-aside {
        position: static;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

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

    .section {
        padding: 38px 0;
    }

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

    .hero-feature {
        min-height: 380px;
    }

    .hero-overlay {
        padding: 22px;
    }

    .hero-search {
        align-items: stretch;
        flex-direction: column;
    }

    .category-rail,
    .card-grid.four,
    .card-grid.three,
    .guide-steps,
    .collection-grid,
    .post-nav,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-chip {
        min-height: 108px;
    }

    .updates-board > a {
        grid-template-columns: 52px minmax(0, 1fr) auto;
    }

    .updates-board .pill {
        display: none;
    }

    .genre-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .genre-tile.tile-1,
    .genre-tile.tile-4 {
        grid-column: span 1;
    }

    .ai-panel,
    .cta-panel,
    .page-hero-inner,
    .prose-card {
        padding-top: 28px;
        padding-bottom: 28px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .mood-buttons,
    .article-facts {
        grid-template-columns: 1fr;
    }

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

    .cta-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

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

    .page-hero-mark {
        display: none;
    }

    .article-content {
        padding: 24px 20px;
    }

    .post-nav a:last-child {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
