:root {
    --bg: #080a10;
    --surface: #111522;
    --surface-2: #171c2a;
    --text: #f7f8fb;
    --muted: #9da5b5;
    --accent: #ff3658;
    --accent-2: #ff8a3d;
    --cyan: #33d6c8;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 16px/1.65 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 15% 8%, rgba(255, 54, 88, 0.11), transparent 30%), radial-gradient(circle at 90% 25%, rgba(51, 214, 200, 0.07), transparent 28%); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.sr-only, .visually-hidden-brand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(8, 10, 16, 0.88); backdrop-filter: blur(22px); }
.header-main { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.logo-link { flex: 0 0 auto; }
.logo-link img, .footer-brand img { width: 152px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.main-nav a { display: flex; align-items: center; gap: 7px; padding: 10px 11px; border-radius: 10px; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255, 255, 255, 0.07); }
.main-nav a.active::after { content: ""; width: 4px; height: 4px; margin-left: 1px; border-radius: 50%; background: var(--accent); }
.search-form { width: 240px; display: flex; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.05); }
.search-form input { width: 100%; min-width: 0; padding: 10px 2px 10px 14px; border: 0; outline: 0; background: transparent; color: white; }
.search-form button { padding: 0 13px; border: 0; background: transparent; color: white; cursor: pointer; }
.menu-button { display: none; border: 0; background: transparent; color: white; font-size: 1.4rem; }
.hero-slider { position: relative; height: min(690px, 78vh); min-height: 560px; margin: 24px auto 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: scale(1.03); transition: opacity 0.6s ease, transform 0.8s ease, visibility 0.6s; }
.hero-slide.active { visibility: visible; opacity: 1; transform: scale(1); }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,16,.98) 4%, rgba(8,10,16,.67) 45%, rgba(8,10,16,.12) 78%), linear-gradient(0deg, rgba(8,10,16,.95), transparent 58%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 40px; }
.hero-tag, .eyebrow { display: inline-block; color: #ffc4ce; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-content h2 { max-width: 760px; margin: 14px 0 18px; font-size: clamp(3.5rem, 7vw, 6.7rem); line-height: 0.98; letter-spacing: -0.06em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,10,16,.35); font-size: 0.82rem; }
.hero-content p { max-width: 600px; margin: 21px 0 28px; color: #d9dce5; font-size: 1.05rem; }
.hero-actions, .app-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; color: white; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--accent); box-shadow: 0 12px 28px rgba(255,54,88,.24); }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.09); }
.hero-arrow { position: absolute; z-index: 4; top: 50%; width: 44px; height: 58px; border: 1px solid var(--line); border-radius: 13px; background: rgba(8,10,16,.55); color: white; font-size: 2rem; cursor: pointer; }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
.hero-dots { position: absolute; z-index: 4; right: max(24px, calc((100vw - 1380px) / 2 + 24px)); bottom: 32px; display: flex; gap: 9px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.hero-dots button.active { width: 30px; background: var(--accent); }
.pulse-strip { position: relative; z-index: 8; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -18px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(17,21,34,.92); box-shadow: var(--shadow); }
.pulse-strip div { display: flex; align-items: baseline; gap: 10px; padding: 20px 24px; border-right: 1px solid var(--line); }
.pulse-strip div:last-child { border-right: 0; }
.pulse-strip strong { color: white; font-size: 1.5rem; }
.pulse-strip span { color: var(--muted); font-size: .88rem; }
.content-section, .rank-home, .about-home, .app-banner, .recommend-section, .stills-section, .episode-section { margin-top: 88px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading > div { display: flex; align-items: center; gap: 13px; }
.section-heading p { margin: 0; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 2px 0 0; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2; }
.section-heading > a { color: var(--muted); font-size: .9rem; }
.section-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255,54,88,.12); color: var(--accent); font-size: 1.15rem; }
.poster-grid, .hot-grid, .spotlight-grid, .catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.compact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: transform .25s, border-color .25s; }
.media-card:hover { transform: translateY(-5px); border-color: rgba(255,54,88,.45); }
.poster { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--surface-2); }
.poster::after { content: "▶"; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,54,88,.9); opacity: 0; transform: translate(-50%, -42%); transition: opacity .25s, transform .25s; }
.media-card:hover .poster::after { opacity: 1; transform: translate(-50%, -50%); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.quality, .score { position: absolute; top: 10px; z-index: 2; padding: 4px 8px; border-radius: 7px; font-size: .72rem; font-weight: 900; }
.quality { left: 10px; background: var(--accent); }
.score { right: 10px; background: rgba(8,10,16,.8); color: #ffd56a; }
.card-copy { min-height: 128px; padding: 15px; display: flex; flex-direction: column; }
.card-copy h3 { margin: 0; min-height: 1.5em; overflow: hidden; font-size: 1rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.card-copy p { margin: 7px 0; overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.card-copy > div { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; color: #cfd3de; font-size: .75rem; }
.card-copy > div a { color: #ff8ea1; }
.hot-grid .media-card:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; }
.hot-grid .media-card:first-child .poster { height: 100%; aspect-ratio: auto; }
.spotlight-grid { padding: 22px; border-radius: 24px; background: linear-gradient(135deg, #151a29, #0e111a); }
.spotlight-grid .media-card { border: 0; background: transparent; }
.section-3 .section-icon { background: rgba(255,207,92,.12); color: #ffcf5c; }
.ribbon-grid { padding: 28px 28px 0; border-radius: 26px; background: linear-gradient(180deg, rgba(123,65,255,.18), transparent); }
.anime-grid .media-card:nth-child(even) { transform: translateY(18px); }
.anime-grid .media-card:nth-child(even):hover { transform: translateY(12px); }
.short-grid { gap: 10px; }
.short-grid .media-card { border-radius: 28px; }
.doc-grid .media-card { background: #101b1b; }
.rank-home { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; padding: 54px; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: linear-gradient(135deg, #211018, #101525 65%); }
.rank-copy h2 { margin: 8px 0 14px; font-size: 3.3rem; line-height: 1; }
.rank-copy p { color: #b9bfcb; }
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: grid; grid-template-columns: 40px 1fr 1fr 50px; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.rank-list li > span { color: var(--accent); font-weight: 900; }
.rank-list small { color: var(--muted); }
.rank-list strong { color: #ffd56a; text-align: right; }
.about-home { display: grid; grid-template-columns: .8fr 1.3fr auto; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-home h2 { margin: 7px 0 0; font-size: 2.35rem; line-height: 1.15; }
.about-home p { color: var(--muted); }
.about-home a { color: #ff8ea1; white-space: nowrap; }
.app-banner { position: relative; min-height: 270px; display: grid; grid-template-columns: 190px 1fr 170px; align-items: center; gap: 34px; overflow: hidden; padding: 42px 56px; border-radius: 30px; background: linear-gradient(125deg, #ff3658, #ff6c3a 55%, #7f39ff); }
.app-banner::before { content: ""; position: absolute; width: 320px; height: 320px; right: 13%; border: 60px solid rgba(255,255,255,.09); border-radius: 50%; }
.app-orbit { position: relative; z-index: 1; display: grid; place-items: center; width: 154px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 1.6rem; font-weight: 900; transform: rotate(-8deg); }
.app-copy, .app-code { position: relative; z-index: 1; }
.app-copy .eyebrow { color: white; }
.app-copy h2 { margin: 8px 0 10px; font-size: 2.5rem; line-height: 1.15; }
.app-copy p { max-width: 680px; margin: 0 0 20px; }
.app-code { width: 150px; border-radius: 22px; box-shadow: var(--shadow); }
.site-footer { margin-top: 90px; border-top: 1px solid var(--line); background: #06070b; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; padding-block: 54px; }
.footer-grid h2 { margin: 0 0 12px; font-size: .9rem; }
.footer-grid p, .footer-grid a { display: block; margin: 7px 0; color: var(--muted); font-size: .82rem; }
.footer-brand p { max-width: 360px; }
.page-main, .player-main { padding-top: 26px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; color: var(--muted); font-size: .82rem; }
.channel-head { display: grid; grid-template-columns: .75fr 1.25fr; align-items: stretch; gap: 24px; }
.channel-head > div:first-child { padding: 48px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.channel-head > div > span { color: var(--accent); font-size: .76rem; font-weight: 900; letter-spacing: .13em; }
.channel-head h1, .rank-header h1, .info-hero h1, .search-page-head h1 { margin: 8px 0 12px; font-size: clamp(3rem, 6vw, 5.8rem); line-height: 1; letter-spacing: -.055em; }
.channel-head p, .rank-header p { color: var(--muted); }
.channel-feature { position: relative; min-height: 350px; overflow: hidden; border-radius: 26px; }
.channel-feature img { width: 100%; height: 100%; object-fit: cover; }
.channel-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,16,.95), transparent 70%); }
.channel-feature div { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 28px; }
.channel-feature span { color: #ffd56a; font-size: .8rem; }
.channel-feature h2 { margin: 3px 0; font-size: 2rem; }
.channel-feature a { color: #ff8ea1; }
.filter-panel { margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.filter-row, .sort-row { display: flex; align-items: center; gap: 10px; padding: 16px 20px; }
.filter-row { border-bottom: 1px solid var(--line); }
.filter-row strong { margin-right: 8px; font-size: .88rem; }
.filter-button { padding: 7px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.filter-button.active { background: var(--accent); color: white; }
.sort-row { justify-content: space-between; color: var(--muted); font-size: .82rem; }
.sort-row select { margin-left: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #161b28; color: white; }
.channel-list { margin-top: 54px; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.pagination span, .pagination a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; }
.pagination .current { background: var(--accent); }
.detail-hero { position: relative; min-height: 660px; overflow: hidden; border-radius: 28px; }
.detail-backdrop { position: absolute; inset: 0; }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,16,.98), rgba(8,10,16,.73) 58%, rgba(8,10,16,.4)), linear-gradient(0deg, rgba(8,10,16,.98), transparent 70%); }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { position: relative; z-index: 2; min-height: 660px; display: grid; grid-template-columns: 250px 1fr; align-items: end; gap: 42px; padding: 60px; }
.detail-poster { width: 250px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.detail-copy { max-width: 800px; }
.detail-copy h1 { margin: 10px 0 0; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; letter-spacing: -.055em; }
.alias { margin: 7px 0 18px; color: var(--muted); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,10,16,.4); font-size: .78rem; }
.detail-tags span:first-child { color: #ffd56a; }
.detail-summary { margin: 22px 0; color: #d7dae3; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 30px; margin: 0 0 25px; }
.detail-facts div, .player-info dl div { display: grid; grid-template-columns: 90px 1fr; }
.detail-facts dt, .player-info dt { color: var(--muted); }
.detail-facts dd, .player-info dd { margin: 0; }
.episode-section, .stills-section, .recommend-section { padding-top: 2px; }
.episode-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.episode-grid a { display: grid; place-items: center; min-height: 48px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: .84rem; }
.episode-grid a:hover, .episode-grid a.active { border-color: var(--accent); background: rgba(255,54,88,.12); color: #ff9aaa; }
.stills-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.stills-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.rank-header, .info-hero, .search-page-head { max-width: 900px; padding: 50px 0 34px; }
.rank-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rank-board { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.rank-board header { display: flex; align-items: center; gap: 14px; padding: 22px; background: linear-gradient(90deg, rgba(255,54,88,.16), transparent); }
.rank-board header > span { font-size: 1.8rem; }
.rank-board header p { margin: 0; color: var(--muted); font-size: .75rem; }
.rank-board header h2 { margin: 0; }
.rank-board ol { margin: 0; padding: 6px 22px 18px; list-style: none; }
.rank-board li { display: grid; grid-template-columns: 40px 1fr 45px; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rank-board li > span { color: var(--accent); font-weight: 900; }
.rank-board li a { display: grid; }
.rank-board li small { color: var(--muted); }
.rank-board li b { color: #ffd56a; text-align: right; }
.info-hero p { color: var(--muted); font-size: 1.1rem; }
.info-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.info-panel div { display: flex; align-items: center; gap: 16px; }
.info-panel span { color: var(--accent); font-size: 2rem; font-weight: 900; }
.info-panel h2 { margin: 0; }
.info-panel p { margin: 0; color: var(--muted); }
.search-large { max-width: 760px; }
.search-large label { display: block; margin-bottom: 8px; color: var(--muted); }
.search-large div { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.search-large input { flex: 1; min-width: 0; padding: 15px 18px; border: 0; outline: 0; background: transparent; color: white; }
.search-large button { padding: 0 25px; border: 0; background: var(--accent); color: white; font-weight: 800; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state strong { color: white; font-size: 1.4rem; }
