:root {
    color-scheme: dark;
    --bg: #101216;
    --panel: #191d23;
    --line: #2a2f36;
    --text: #f4f5f6;
    --muted: #9aA1ac;
    --accent: #b1f56b;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

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

button, input, select {
    font: inherit;
}

button, .button {
    cursor: pointer;
}

button, input, select, .button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    padding: 10px 16px;
}

button:hover, .button:hover {
    border-color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

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

.wrap {
    width: min(1320px, calc(100% - 80px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #101216;
}

.topbar {
    min-height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand img {
    width: 42px;
    height: 42px;
}

.brand h1, .brand strong {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.6px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-top: 3px;
}

.search-form {
    display: flex;
    width: min(420px, 36vw);
    border-radius: 30px;
    background: #20242b;
    padding: 3px 6px 3px 18px;
    align-items: center;
}

.search-form input {
    border: 0;
    background: transparent;
    width: 100%;
    min-width: 0;
    padding: 8px;
    font-size: 14px;
}

.search-form button {
    padding: 7px 12px;
    background: transparent;
    border: 0;
}

.header-note {
    color: var(--muted);
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}

.navigation {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    scrollbar-width: none;
}

.navigation a {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
    padding: 17px 0;
    color: #b8bec6;
    font-size: 15px;
    border-bottom: 2px solid transparent;
}

.navigation a.active {
    color: var(--accent);
    border-color: var(--accent);
}

.navigation a:hover, footer a:hover {
    color: var(--accent);
}

.hero {
    position: relative;
    height: 520px;
    margin-top: 26px;
    border-radius: 16px;
    overflow: hidden;
    background: #252d35;
}

.slide {
    position: absolute;
    inset: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 22, 0.96), rgba(10, 16, 22, 0.45) 53%, rgba(10, 16, 22, 0.08)), linear-gradient(0deg, rgba(10, 16, 22, 0.8), transparent 50%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 62px 58px;
    width: 62%;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
}

.hero h2 {
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.15;
    letter-spacing: 3px;
    margin: 25px 0 14px;
}

.hero .tagline {
    color: #e3e7ed;
    font-size: 19px;
    margin: 0 0 15px;
}

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

.hero .meta {
    color: #c7ced6;
}

.hero-summary {
    max-width: 500px;
    color: #b7bec6;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
}

.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #15210d;
}

.hero-controls {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-controls button {
    display: grid;
    place-items: center;
    padding: 8px;
    background: #15202c9e;
    border-color: #ffffff40;
}

.hero-controls .dot {
    padding: 0;
    width: 7px;
    height: 7px;
    border-radius: 8px;
    background: #9aa2ab;
    border: 0;
}

.hero-controls .dot[aria-current='true'] {
    width: 24px;
    background: var(--accent);
}

.quick-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
    padding: 18px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #15191f;
}

.quick-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-right: 1px solid var(--line);
}

.quick-bar a:last-child {
    border: 0;
}

.quick-bar .icon {
    color: var(--accent);
    width: 26px;
    height: 26px;
}

.quick-bar strong {
    display: block;
    font-size: 15px;
}

.quick-bar small {
    color: var(--muted);
    font-size: 12px;
}

.section {
    margin: 44px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 25px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading h2 .icon {
    color: var(--accent);
    width: 23px;
    height: 23px;
}

.section-heading a {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 18px;
}

.card {
    min-width: 0;
}

.poster {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 9px;
    background: #252e36;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.poster::after {
    content: '';
    position: absolute;
    inset: 65% 0 0;
    background: linear-gradient(transparent, #000c);
}

.poster:hover img {
    transform: scale(1.045);
}

.quality {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 1px 7px;
    font-size: 12px;
    border-radius: 4px;
    background: #111c;
    border: 1px solid #ffffff32;
}

.status {
    position: absolute;
    bottom: 9px;
    right: 10px;
    color: #e6e9eb;
    z-index: 1;
    font-size: 12px;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 11px 0 3px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.card h3:hover {
    color: var(--accent);
}

.card .meta {
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .caption {
    color: #8c939e;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 3px 0 0;
}

.card .synopsis {
    font-size: 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
    margin: 8px 0 0;
}

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

.rank-panel {
    padding: 26px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(140deg, #222c2c, #191d23 65%);
}

.rank-panel:nth-child(2) {
    background: linear-gradient(140deg, #2b2632, #191d23 65%);
}

.rank-panel:nth-child(3) {
    background: linear-gradient(140deg, #2e2b22, #191d23 65%);
}

.rank-panel h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

.rank-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 16px;
}

.rank-num {
    font-size: 23px;
    font-style: italic;
    font-weight: 700;
    color: var(--accent);
    width: 30px;
}

.rank-row small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.feature {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    background: #1c242b;
    border-radius: 14px;
    overflow: hidden;
}

.feature img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-copy {
    padding: 38px;
}

.feature h2 {
    font-size: 30px;
    margin: 14px 0;
}

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

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

.update-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
    background: var(--panel);
    border-radius: 9px;
}

.update-item time {
    color: var(--accent);
    font-size: 14px;
}

.update-item small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.about-strip {
    border-top: 1px solid var(--line);
    padding-top: 32px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.about-strip h2 {
    margin: 0;
    font-size: 26px;
}

.about-strip p {
    margin: 0;
    color: var(--muted);
}

.mobile-banner {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
    padding: 30px 40px;
    margin-top: 50px;
    margin-bottom: 40px;
    border-radius: 14px;
    border: 1px solid #354735;
    background: linear-gradient(120deg, #233024, #19201c);
}

.mobile-banner img {
    width: 68px;
    height: 68px;
}

.mobile-banner h2 {
    margin: 0 0 5px;
    font-size: 23px;
}

.mobile-banner p {
    color: #abb8ad;
    margin: 0;
    font-size: 14px;
}

.mobile-banner .actions {
    margin: 0;
}

.site-footer {
    background: #0b0d10;
    border-top: 1px solid #20242a;
    padding: 40px 0 24px;
}

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

.site-footer p, .site-footer a {
    font-size: 14px;
    color: var(--muted);
}

.site-footer nav a {
    display: block;
    margin: 7px 0;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #20242a;
    color: #737b87;
    font-size: 12px;
}

.breadcrumb {
    color: var(--muted);
    margin: 28px 0;
    font-size: 14px;
}

.page-heading h1 {
    font-size: 36px;
    margin: 0 0 10px;
}

.page-heading p {
    color: var(--muted);
    max-width: 800px;
}

.filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 28px 0;
}

.filterbar button[aria-pressed='true'] {
    background: var(--accent);
    color: #15210d;
}

.filterbar select {
    margin-left: auto;
}

.detail-lead {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 44px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(110deg, #222c33, #171c22 85%);
}

.detail-lead > img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.detail-lead h1 {
    font-size: 38px;
    margin: 0 0 5px;
}

.detail-lead dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    font-size: 14px;
    gap: 4px 10px;
}

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

.detail-lead dd {
    margin: 0;
}

.episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.episodes a {
    min-width: 110px;
}

.episodes a[aria-current='page'] {
    color: var(--accent);
    border-color: var(--accent);
}

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

.stills img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    background: var(--panel);
}

.notice {
    color: #b7c3ce;
    border-left: 3px solid var(--accent);
    background: #1b232a;
    padding: 16px 20px;
    font-size: 14px;
}

.prose {
    max-width: 900px;
    color: #bec6d0;
}

.prose h2 {
    color: var(--text);
    margin-top: 32px;
}

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

.empty {
    padding: 35px;
    background: var(--panel);
    color: var(--muted);
    border-radius: 12px;
}

.more-row {
    text-align: center;
    margin-top: 28px;
}

.failed-image {
    font-size: 14px;
    color: #d6dde4;
    padding: 12px;
    background: #26313a;
}

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #16220e;
    padding: 13px 22px;
    border-radius: 10px;
    z-index: 10;
    width: max-content;
    max-width: calc(100% - 32px);
    box-shadow: 0 10px 45px #0006;
}
