:root {
    color-scheme: dark;
    --bg: #0c1112;
    --panel: #141c1d;
    --line: #283234;
    --ink: #f0f4f3;
    --muted: #99a7a8;
    --accent: #47dfad;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

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

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

button, input, select {
    font: inherit;
}

button, select {
    cursor: pointer;
}

button, input, select {
    color: inherit;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

button {
    padding: 8px 14px;
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

button:hover:not(:disabled), a:hover {
    color: var(--accent);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

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

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    line-height: 1.35;
}

h2 {
    font-size: 26px;
    letter-spacing: -.5px;
}

h3 {
    font-size: 17px;
}

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

.icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    flex-shrink: 0;
}

.header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}

.brand, .brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
}

.brand-note {
    color: var(--muted);
    font-size: 14px;
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.search-form {
    display: flex;
    margin-left: auto;
    align-items: center;
    width: min(350px, 30vw);
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 24px;
    padding: 2px 8px 2px 18px;
}

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

.search-form button {
    border: 0;
    background: transparent;
    padding: 7px;
    color: var(--muted);
}

.history-link {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 58px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 14px 0;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    color: #aeb9ba;
}

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

.nav .updates-link {
    margin-left: auto;
    font-size: 14px;
}

.live-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #162726;
}

.hero-slide {
    position: relative;
    aspect-ratio: 16 / 7;
    min-height: 470px;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    color: #b6c6c6;
    background: #253737;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 20, .98), rgba(8, 18, 20, .7) 38%, rgba(8, 18, 20, .05) 76%), linear-gradient(0deg, rgba(8, 18, 20, .88), transparent 55%);
}

.hero-copy {
    position: relative;
    padding: 52px 48px 80px;
    width: 58%;
}

.hero-label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-copy h2 {
    font-size: clamp(36px, 4.5vw, 64px);
    letter-spacing: 2px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-tagline {
    font-size: 21px;
    color: #d5dfdf;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-meta {
    color: #c3d0d0;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-meta b {
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #768580;
    border-radius: 4px;
    padding: 0 5px;
}

.hero-description {
    color: #b1c1c0;
    max-width: 460px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 23px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #05251a;
    font-weight: 600;
    font-size: 15px;
}

.button:hover {
    color: #05251a !important;
    background: #8cf1cd;
}

.button.secondary {
    background: #ffffff0b;
    color: #e4edeb;
    border-color: #526562;
}

.button.secondary:hover {
    color: var(--accent) !important;
    background: #24443a;
}

.hero-controls {
    position: absolute;
    left: 48px;
    bottom: 24px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-controls > button {
    background: transparent;
    border-color: #ffffff25;
    padding: 3px 10px;
}

.dots {
    display: flex;
    gap: 8px;
}

.dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    background: #768781;
    border: 0;
    border-radius: 8px;
}

.dots button[aria-pressed="true"] {
    background: var(--accent);
    width: 26px;
}

.hero-caption {
    position: absolute;
    right: 30px;
    bottom: 29px;
    color: #c3d0cc;
    font-size: 12px;
    letter-spacing: 2px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0 48px;
}

.quick-links a {
    display: flex;
    gap: 18px;
    align-items: center;
    background: #141c1d;
    border: 1px solid #202d2c;
    border-radius: 10px;
    padding: 20px;
}

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

.quick-links h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.quick-links p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.quick-links span {
    margin-left: auto;
    color: var(--muted);
}

.section {
    margin: 52px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 23px;
}

.section-head h2, .rank-intro h2, .update-strip h2, .rank-columns h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

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

.eyebrow {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.more, .section-head > span {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.card {
    min-width: 0;
}

.poster {
    display: block;
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #233130;
    border-radius: 10px;
    margin-bottom: 14px;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
    color: #cedbd5;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, #000a);
    pointer-events: none;
}

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

.quality, .poster-status {
    position: absolute;
    z-index: 1;
    font-size: 12px;
}

.quality {
    right: 9px;
    top: 9px;
    background: #091410b8;
    padding: 0 6px;
    border-radius: 4px;
    color: #e4ece7;
}

.poster-status {
    left: 10px;
    right: 10px;
    bottom: 9px;
    text-align: right;
    color: #e3eae7;
}

.hover-play {
    display: grid;
    place-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #04271b;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0;
    z-index: 2;
}

.poster:hover .hover-play, .poster:focus-visible .hover-play {
    opacity: 1;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span {
    color: #798a88;
}

.tagline {
    font-size: 12px;
    color: #93a09b;
    margin: 5px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-synopsis {
    display: none;
}

.filter-results .card-synopsis, .searchable .card-synopsis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    height: 3.4em;
    margin-top: 10px;
}

.update-strip {
    border-block: 1px solid var(--line);
    padding: 28px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 24px;
}

.update-strip h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.update-strip p, .update-strip small {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 0;
}

.update-strip h3 {
    font-size: 16px;
    margin: 5px 0;
}

.rank-section {
    background: #12201d;
    border: 1px solid #28443a;
    border-radius: 14px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 60px;
}

.rank-intro p {
    color: #a9bbb3;
    margin-top: 22px;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #ffffff13;
}

.rank-number {
    font-size: 25px;
    font-style: italic;
    color: var(--accent);
    min-width: 37px;
}

.rank-row h3 {
    margin: 0 0 3px;
    font-size: 16px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.rank-tag {
    margin-left: auto;
    color: #85c2a9;
    font-size: 12px;
    white-space: nowrap;
}

.about-band {
    max-width: 900px;
    padding-block: 14px;
}

.about-band p, .muted {
    color: var(--muted);
}

.mobile-band {
    display: flex;
    gap: 30px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-block: 38px;
}

.mobile-band h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.mobile-band p, .mobile-band small {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.app-mark {
    background: var(--accent);
    border-radius: 20px;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    color: #073828;
    flex-shrink: 0;
}

.app-mark .icon {
    width: 40px;
    height: 40px;
}

.mobile-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 370px;
}

.footer {
    background: #090d0e;
    border-top: 1px solid var(--line);
    padding-top: 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 35px;
}

.footer h3 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer p {
    color: #7f8e8c;
    font-size: 13px;
    margin-top: 17px;
}

.footer-grid > div > a:not(.brand), .footer-links a {
    display: block;
    font-size: 13px;
    color: #8c9b97;
    margin: 10px 0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.footer-links a {
    margin-top: 0;
}

.copyright {
    display: flex;
    justify-content: space-between;
    color: #71817d;
    font-size: 12px;
    border-top: 1px solid #1c2523;
    padding-block: 20px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    margin: 30px 0;
}

.page-heading {
    margin: 52px 0 36px;
    max-width: 850px;
}

.page-heading h1 {
    font-size: 42px;
    margin-bottom: 18px;
}

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

.category-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    gap: 30px;
    align-items: center;
}

.category-pick img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #243832;
}

.category-pick > div {
    padding: 24px 32px 24px 0;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-block: 1px solid var(--line);
    padding: 20px 0;
}

.filter-bar button[aria-pressed="true"] {
    color: var(--accent);
    background: #17372b;
    border-color: #366f59;
}

.result-count {
    color: var(--muted);
    font-size: 14px;
    margin-top: 20px;
}

select {
    padding: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 38px 0;
    font-size: 14px;
    color: var(--muted);
}

.pagination p {
    margin: 0;
}

.pagination span {
    padding: 5px 16px;
    border-radius: 5px;
    background: #284536;
    color: var(--accent);
}

.detail-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 44px;
    background: #141e1d;
    padding: 36px;
    border-radius: 14px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #2c3f35;
    border-radius: 10px;
}

.detail-hero h1 {
    font-size: 40px;
    margin-bottom: 7px;
}

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

.detail-tagline {
    color: #afd2c0;
    font-size: 20px;
}

.metadata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 22px;
    font-size: 14px;
    margin-bottom: 28px;
}

.metadata dt {
    color: #849990;
    font-size: 12px;
}

.metadata dd {
    margin: 0;
}

.synopsis {
    max-width: 1050px;
}

.synopsis p {
    line-height: 2;
    color: #b3c0ba;
}

.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.episode {
    border: 1px solid #34463f;
    background: #17231e;
    padding: 9px 22px;
    border-radius: 7px;
    font-size: 14px;
}

.episode.selected {
    border-color: var(--accent);
    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: #25362c;
}

.neighbor-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
}

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

.rank-columns section {
    background: var(--panel);
    padding: 24px;
    border-radius: 12px;
}

.rank-columns .rank-tag {
    display: none;
}

.rank-columns .rank-row > .icon {
    margin-left: auto;
}

.large-search {
    width: 100%;
    padding: 16px 22px;
    font-size: 17px;
}

.prose {
    max-width: 850px;
    min-height: 300px;
}

.prose p {
    line-height: 2.1;
    color: #b0c0b8;
    margin-bottom: 30px;
}

.prose [data-favorites], .prose [data-history] {
    margin-bottom: 30px;
}

.saved-row {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #d3fbe9;
    color: #103323;
    border-radius: 10px;
    padding: 13px 25px;
    max-width: calc(100% - 32px);
    box-shadow: 0 8px 40px #0007;
}

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

[hidden] {
    display: none !important;
}
