:root {
    --bg: #070b18;
    --panel: #10172a;
    --panel-2: #151e35;
    --text: #f6f7fb;
    --muted: #a7b0c4;
    --line: rgba(255, 255, 255, 0.1);
    --violet: #8069ff;
    --violet-2: #ad63ff;
    --gold: #f6c766;
    --cyan: #54d7ff;
    --radius: 18px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: radial-gradient(circle at 72% 0%, rgba(93, 70, 220, 0.16), transparent 26rem), var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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;
}

.ui-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(7, 11, 24, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-shell {
    display: grid;
    grid-template-columns: auto 1fr minmax(190px, 250px);
    align-items: center;
    gap: 24px;
    width: min(1400px, calc(100% - 48px));
    min-height: 76px;
    margin: auto;
}

.brand img {
    width: 186px;
    height: 44px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #ffffff;
    background: rgba(128, 105, 255, 0.18);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.search-box input {
    width: 100%;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
}

.search-box input::placeholder {
    color: #7e889f;
}

.menu-toggle {
    display: none;
}

.page-shell {
    width: min(1400px, calc(100% - 48px));
    margin: auto;
}

.home-main {
    padding: 28px 0 72px;
}

.inner-main {
    padding: 28px 0 72px;
}

.hero {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s 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(5, 8, 19, 0.98) 0%, rgba(5, 8, 19, 0.78) 40%, rgba(5, 8, 19, 0.12) 78%), linear-gradient(0deg, rgba(5, 8, 19, 0.72), transparent 50%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: 7%;
    bottom: 16%;
    width: min(590px, 65%);
}

.hero-tag,
.quality,
.status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet), var(--violet-2));
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tag {
    padding: 6px 12px;
}

.hero-meta {
    margin: 18px 0 2px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero h2 {
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-desc {
    display: -webkit-box;
    max-width: 550px;
    margin: 18px 0 26px;
    overflow: hidden;
    color: #d9ddea;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
}

.button-primary {
    color: #070b18;
    background: linear-gradient(135deg, #ffffff, #d8dcff);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: rgba(8, 12, 26, 0.58);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 32px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-dots button.is-active {
    width: 28px;
    background: #ffffff;
}

.quick-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 18px 0 56px;
}

.quick-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    color: #dfe2ed;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.content-section,
.update-timeline,
.upcoming-band,
.about-section,
.episode-section,
.stills-section,
.plot-panel {
    margin-top: 68px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2,
.upcoming-band h2,
.about-section h2,
.plot-panel h2 {
    margin: 3px 0 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.section-heading > a {
    color: var(--muted);
    font-size: 14px;
}

.section-kicker,
.eyebrow {
    color: var(--violet-2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.poster-card {
    min-width: 0;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.poster-card:hover {
    border-color: rgba(128, 105, 255, 0.65);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #171e30;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-card:hover .poster-link img {
    transform: scale(1.035);
}

.quality,
.status {
    position: absolute;
    top: 12px;
    padding: 4px 8px;
    font-size: 12px;
}

.quality {
    left: 12px;
}

.status {
    right: 12px;
    max-width: 56%;
    overflow: hidden;
    color: #08101a;
    background: var(--gold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: #c4cada;
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.text-link {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}

.section-cinema .poster-card:nth-child(2n),
.section-anime .poster-card:nth-child(odd) {
    background: linear-gradient(160deg, #161a34, #10172a);
}

.section-tv {
    padding: 32px;
    background: linear-gradient(135deg, rgba(84, 215, 255, 0.08), transparent 45%);
    border: 1px solid rgba(84, 215, 255, 0.14);
    border-radius: 24px;
}

.section-score .quality {
    background: linear-gradient(135deg, #f5c057, #ff8a4d);
}

.section-variety {
    padding-top: 28px;
    border-top: 1px solid rgba(246, 199, 102, 0.28);
}

.section-short .poster-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.section-short .poster-card {
    border-radius: 30px 30px 14px 14px;
}

.section-doc {
    padding: 32px;
    background: #0d1b22;
    border-radius: 24px;
}

.update-timeline {
    padding: 34px;
    background: linear-gradient(115deg, #141a33, #0b1021);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.timeline-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.timeline-list a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.timeline-list time {
    grid-row: span 2;
    color: var(--cyan);
    font-size: 20px;
    font-weight: 800;
}

.timeline-list span {
    color: var(--muted);
    font-size: 13px;
}

.rank-band {
    padding: 36px;
    background: linear-gradient(135deg, rgba(128, 105, 255, 0.16), rgba(246, 199, 102, 0.06));
    border: 1px solid rgba(128, 105, 255, 0.25);
    border-radius: 24px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px 30px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 44px 1fr auto 42px;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
}

.rank-no {
    color: var(--gold);
    font-size: 21px;
    font-weight: 900;
}

.rank-list li > span:nth-child(3) {
    color: var(--muted);
    font-size: 13px;
}

.rank-list strong {
    color: var(--cyan);
}

.upcoming-band {
    padding: 38px;
    background: linear-gradient(120deg, #211944, #101830);
    border-radius: 24px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.upcoming-grid article {
    padding: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.upcoming-grid strong {
    color: var(--gold);
    font-size: 28px;
}

.upcoming-grid h3 {
    margin: 9px 0 2px;
}

.upcoming-grid p {
    margin: 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 54px;
    padding: 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-section p {
    margin: 0;
    color: #c6cada;
}

.mobile-callout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto 70px;
    padding: 36px;
    background: linear-gradient(120deg, #6b4ff0, #9c53e8 50%, #da708b);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.mobile-art img {
    border-radius: 18px;
}

.mobile-copy {
    max-width: 720px;
}

.mobile-copy .eyebrow {
    color: #fff1be;
}

.mobile-copy h2 {
    margin: 3px 0 8px;
    font-size: 34px;
}

.mobile-copy p {
    margin: 0 0 18px;
}

.site-footer {
    padding: 54px max(24px, calc((100% - 1400px) / 2));
    background: #050813;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 0.7fr 1fr;
    gap: 44px;
}

.footer-grid p {
    max-width: 440px;
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-grid > div > a {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 42px;
    padding-top: 24px;
    color: #7f889b;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.channel-intro,
.rank-hero {
    position: relative;
    overflow: hidden;
    padding: 46px;
    background: linear-gradient(115deg, #171e3b, #11172a 62%, #261d46);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.channel-intro {
    display: flex;
    align-items: center;
    gap: 28px;
}

.channel-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet), var(--violet-2));
    border-radius: 22px;
    font-size: 36px;
}

.channel-intro h1,
.rank-hero h1 {
    margin: 2px 0 6px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.1;
}

.channel-intro p,
.rank-hero p {
    max-width: 720px;
    margin: 0;
    color: #c3c9d8;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 18px 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.filter-panel > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-panel button,
.filter-panel select {
    padding: 7px 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.filter-panel button.is-active {
    color: #ffffff;
    background: var(--violet);
}

.filter-panel label {
    color: var(--muted);
    font-size: 14px;
}

.channel-feature {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: 330px;
    margin-top: 30px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.channel-feature > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-feature > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
}

.channel-feature h2 {
    margin: 12px 0 5px;
    font-size: 36px;
}

.channel-feature p {
    color: var(--muted);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--violet);
    border-radius: 12px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 330px) 1fr;
    gap: 44px;
    padding: 38px;
    background: linear-gradient(135deg, rgba(128, 105, 255, 0.12), rgba(16, 23, 42, 0.98));
    border: 1px solid var(--line);
    border-radius: 24px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 14px 0 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
}

.alias {
    margin: 8px 0 22px;
    color: var(--muted);
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin: 0 0 20px;
}

.facts div {
    display: grid;
    grid-template-columns: 90px 1fr;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
}

.detail-summary {
    max-width: 820px;
    color: #ccd1de;
}

.episode-section,
.plot-panel {
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-grid a {
    min-width: 116px;
    padding: 10px 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 11px;
}

.episode-grid a:hover,
.episode-grid a.is-active {
    color: #ffffff;
    background: var(--violet);
}

.stills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stills-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--panel);
    border-radius: 16px;
}

.recommendations .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-heading {
    margin-bottom: 22px;
}

.player-heading > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 14px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4f72;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 79, 114, 0.15);
}

.player-heading h1 {
    margin: 5px 0 0;
    font-size: clamp(28px, 4vw, 48px);
}

.video-frame {
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(128, 105, 255, 0.45);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-notice {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    color: var(--muted);
    background: #0c1120;
    font-size: 14px;
}

.play-notice span {
    color: var(--gold);
    font-weight: 700;
}

.player-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    margin-top: 24px;
    color: var(--muted);
}

.player-nav > :last-child {
    text-align: right;
}

.rank-hero {
    text-align: center;
}

.rank-hero p {
    margin: auto;
}

.rank-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.mini-rank {
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mini-rank ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mini-rank li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.mini-rank li span {
    color: var(--gold);
    font-weight: 800;
}

.mini-rank li strong {
    color: var(--cyan);
}

.is-search-hidden,
.is-filter-hidden {
    display: none !important;
}
