:root {
    --bg: #070911;
    --surface: #101421;
    --surface-2: #151a2b;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f5f7ff;
    --muted: #a9b0c6;
    --violet: #8b5cf6;
    --cyan: #27d9ff;
    --pink: #ff4fa3;
    --yellow: #ffd66b;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.17), transparent 28rem), var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.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;
}

.section-shell,
.header-shell,
.footer-grid {
    width: min(1320px, calc(100% - 48px));
    margin-inline: auto;
}

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

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr minmax(210px, 280px);
    gap: 24px;
    align-items: center;
    min-height: 76px;
}

.brand img {
    width: 186px;
    height: 44px;
}

.main-nav {
    display: flex;
    gap: 4px;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.875rem;
    white-space: nowrap;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(139, 92, 246, 0.15);
    color: white;
}

.nav-link.is-active {
    box-shadow: inset 0 -2px var(--cyan);
}

.nav-icon,
.section-icon {
    display: inline-grid;
    place-items: center;
    color: var(--cyan);
}

.search-form {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.search-form input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 2px 10px 16px;
    background: transparent;
    color: white;
}

.search-form button {
    border: 0;
    padding: 9px 15px;
    background: transparent;
    color: var(--cyan);
    cursor: pointer;
}

.menu-toggle {
    display: none;
}

main {
    min-height: 70vh;
}

.hero {
    margin-top: 28px;
}

.hero-track {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    min-height: 430px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #0b0e18;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 650ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 6, 13, 0.97) 0%, rgba(4, 6, 13, 0.78) 36%, rgba(4, 6, 13, 0.08) 74%), linear-gradient(0deg, rgba(4, 6, 13, 0.75), transparent 45%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(28px, 6vw, 84px);
    width: min(560px, 58%);
    transform: translateY(-50%);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-meta {
    color: #dbe1f4;
    font-weight: 700;
}

.hero-meta span {
    margin-inline: 8px;
    color: var(--pink);
}

.hero-intro {
    display: -webkit-box;
    overflow: hidden;
    max-width: 52ch;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-actions,
.detail-actions,
.app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
}

.button-primary {
    background: linear-gradient(135deg, var(--violet), #6d5dfc 55%, var(--cyan));
    color: white;
    box-shadow: 0 12px 30px rgba(112, 92, 255, 0.28);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(13, 17, 29, 0.58);
    color: white;
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(8, 11, 22, 0.64);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 180ms ease;
}

.hero-dots button.is-active {
    width: 28px;
    background: var(--cyan);
}

.ticker {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.ticker > span {
    align-self: stretch;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 79, 163, 0.12);
    white-space: nowrap;
}

.ticker b { color: var(--pink); font-size: 0.75rem; }
.ticker > div { display: flex; gap: 28px; overflow: hidden; color: var(--muted); }
.ticker a { white-space: nowrap; }

.content-section,
.score-showcase,
.rank-preview,
.about-strip,
.app-panel,
.channel-list,
.episode-panel,
.story-panel,
.stills,
.type-links,
.watch-shell,
.play-info,
.quick-picks,
.rank-board,
.timeline,
.prose-grid,
.guide-steps,
.search-page {
    margin-top: 72px;
}

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

.section-heading > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-heading h2,
.section-heading p {
    margin: 0;
}

.section-heading h2 {
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.section-heading > a,
.section-heading > span,
.text-link {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 700;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.poster-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    transition: transform 200ms ease, border-color 200ms ease;
}

.poster-card:hover {
    transform: translateY(-6px);
    border-color: rgba(39, 217, 255, 0.38);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #161a28;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.quality-badge,
.status-badge {
    position: absolute;
    top: 10px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.quality-badge { left: 10px; background: rgba(39, 217, 255, 0.9); color: #061018; }
.status-badge { right: 10px; max-width: 56%; overflow: hidden; background: rgba(7, 9, 17, 0.8); text-overflow: ellipsis; white-space: nowrap; }

.card-copy {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    padding: 15px;
}

.card-copy strong {
    overflow: hidden;
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-copy > span { color: var(--muted); font-size: 0.82rem; }
.card-copy small { display: -webkit-box; overflow: hidden; margin-top: 8px; color: #c5cbe0; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.section-movies .poster-card:nth-child(even) { transform: translateY(14px); }
.section-movies .poster-card:nth-child(even):hover { transform: translateY(8px); }
.section-tv { padding: 32px; border-radius: 24px; background: linear-gradient(135deg, rgba(39, 217, 255, 0.08), transparent 50%); }
.section-variety .poster-card { border-radius: 26px 8px 26px 8px; }
.section-anime { border-top: 1px solid rgba(255, 79, 163, 0.28); padding-top: 36px; }
.section-anime .poster-frame { border-radius: 50% 50% 12px 12px / 12% 12% 12px 12px; }
.section-short .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.section-short .poster-card { background: #151326; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.1); }
.section-doc { padding: 34px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(135deg, rgba(255, 214, 107, 0.06), rgba(255, 255, 255, 0.01)); }
.section-doc .quality-badge { background: var(--yellow); }

.score-showcase {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 38px;
    padding: 42px;
    border-radius: 28px;
    background: linear-gradient(120deg, #25144c, #101725 55%, #092735);
}

.score-lead h2 { margin: 0; max-width: 12ch; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.score-lead p { color: var(--muted); }
.score-list { display: grid; gap: 10px; }
.score-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 15px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.score-list > a > span { color: var(--cyan); font-weight: 900; }
.score-list div { display: flex; flex-direction: column; }
.score-list small { color: var(--muted); }
.score-list b { color: var(--yellow); font-size: 1.25rem; }

.rank-preview { padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: #0c101b; }
.rank-preview ol, .rank-board ol { list-style: none; padding: 0; margin: 0; }
.rank-preview li a { display: grid; grid-template-columns: 58px 1fr 1fr auto; gap: 18px; align-items: center; padding: 15px 8px; border-bottom: 1px solid var(--line); }
.rank-number { color: var(--pink); font-size: 1.12rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.rank-preview li span:nth-child(3) { color: var(--muted); }
.rank-preview li b { color: var(--yellow); }

.about-strip { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 34px; align-items: center; padding: 40px; border-left: 4px solid var(--cyan); background: linear-gradient(90deg, rgba(39, 217, 255, 0.09), transparent); }
.about-strip h2 { margin: 0; line-height: 1.25; }
.about-strip p { color: var(--muted); }

.app-panel { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; margin-bottom: 72px; padding: clamp(30px, 5vw, 64px); border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 30px; background: radial-gradient(circle at 90% 15%, rgba(39, 217, 255, 0.19), transparent 28%), linear-gradient(135deg, #191232, #0b1120); }
.app-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.app-copy > p { max-width: 62ch; color: var(--muted); }
.app-code { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 15px; border-radius: 20px; background: white; color: #111424; font-weight: 800; }
.app-code img { width: 168px; aspect-ratio: 1; }
.update-tip { font-size: 0.86rem; }

.breadcrumb { display: flex; gap: 10px; align-items: center; padding-block: 24px 12px; color: var(--muted); font-size: 0.88rem; }
.breadcrumb a:hover { color: var(--cyan); }

.channel-hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 44px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(39, 217, 255, 0.05)); }
.channel-hero > div { max-width: 720px; }
.channel-symbol { color: var(--cyan); font-size: 2rem; }
.channel-hero h1, .simple-hero h1 { margin: 6px 0; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }
.channel-hero p, .simple-hero p { color: var(--muted); }
.channel-hero aside { min-width: 240px; padding: 24px; border-radius: 16px; background: rgba(7, 9, 17, 0.65); }
.channel-hero aside span, .channel-hero aside strong, .channel-hero aside a { display: block; }
.channel-hero aside span { color: var(--pink); font-size: 0.8rem; font-weight: 800; }
.channel-hero aside strong { margin-block: 7px; font-size: 1.3rem; }
.channel-hero aside a { color: var(--cyan); }

.filter-bar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row strong { margin-right: 8px; }
.filter-row button { border: 1px solid transparent; border-radius: 999px; padding: 7px 13px; background: transparent; color: var(--muted); cursor: pointer; }
.filter-row button:hover, .filter-row button.is-active { border-color: rgba(39, 217, 255, 0.35); background: rgba(39, 217, 255, 0.09); color: white; }
.sort-row { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.sort-row select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #0c101a; color: white; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.pagination span, .pagination a { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; }
.pagination span { background: var(--violet); }

.detail-hero { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(28px, 5vw, 68px); margin-top: 16px; padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(130deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.025)); }
.detail-poster { position: relative; align-self: start; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 18px; box-shadow: var(--shadow); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-poster span { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: var(--cyan); color: #081018; font-weight: 900; }
.detail-main h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.05; }
.alias { color: var(--muted); }
.detail-intro { max-width: 70ch; color: #d6dbee; font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.facts div { display: grid; grid-template-columns: 78px 1fr; padding-block: 7px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.episode-panel { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.episode-list { display: flex; flex-wrap: wrap; gap: 10px; }
.episode-list a { min-width: 92px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-align: center; background: rgba(255, 255, 255, 0.035); }
.episode-list a:hover, .episode-list a.is-active { border-color: var(--cyan); background: rgba(39, 217, 255, 0.11); color: var(--cyan); }

.story-panel { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 24px; }
.story-panel article, .story-panel aside, .type-links { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.025); }
.story-panel h2 { margin-top: 0; }
.story-panel p, .story-panel li, .type-links p { color: var(--muted); }
.story-panel ul { padding-left: 20px; }

.still-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.still-grid img { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; background: var(--surface); }

.site-footer { padding-block: 56px; border-top: 1px solid var(--line); background: #05070d; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; }
.footer-grid h2 { margin-top: 0; font-size: 1rem; }
.footer-grid a { display: block; width: fit-content; margin-block: 7px; color: var(--muted); }
.footer-grid a:hover { color: var(--cyan); }
.footer-grid p { color: var(--muted); font-size: 0.9rem; }
.footer-brand p { max-width: 42ch; }

.simple-hero { margin-top: 16px; padding: 54px; border-radius: 28px; background: linear-gradient(125deg, rgba(139, 92, 246, 0.2), rgba(39, 217, 255, 0.06)); }
.simple-hero p { max-width: 70ch; }
.rank-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rank-board article { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.rank-title { display: flex; gap: 10px; align-items: center; }
.rank-title span { color: var(--cyan); }
.rank-title h2 { font-size: 1.25rem; }
.rank-board li a { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.rank-board li div { display: flex; min-width: 0; flex-direction: column; }
.rank-board li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-board li small { color: var(--muted); }
.rank-board li b { color: var(--yellow); }

.timeline { max-width: 960px; }
.timeline article { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--cyan); font-size: 1.3rem; font-weight: 900; }
.timeline h2, .timeline p { margin: 2px 0; }
.timeline article span, .timeline p { color: var(--muted); }

.prose-grid, .guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prose-grid article, .guide-steps article { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.prose-grid p, .guide-steps p { color: var(--muted); }
.guide-steps article > span { color: var(--pink); font-size: 2rem; font-weight: 900; }

.search-page > form { max-width: 780px; margin-inline: auto; }
.search-page form label { display: block; margin-bottom: 10px; font-weight: 800; }
.search-page form > div { display: flex; gap: 10px; }
.search-page input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; background: var(--surface); color: white; }
.search-status { margin-block: 36px 18px; color: var(--cyan); font-weight: 800; }
.is-hidden { display: none !important; }
