:root {
    color-scheme: light;
    --bg: #f8fafc;
    --paper: #ffffff;
    --paper-soft: #f1f5f9;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #0f172a;
    --accent: #059669;
    --accent-dark: #047857;
    --accent-soft: #d1fae5;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #059669, #065f46);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text em {
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    color: #334155;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--paper-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 16px;
    background: #ffffff;
}

.mobile-link {
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #000000;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg {
    opacity: 0.55;
    transform: scale(1.03);
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(16, 185, 129, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 66px;
    padding-bottom: 66px;
}

.hero-copy {
    max-width: 690px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 150, 105, 0.92);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.sub-hero h1,
.detail-title-row h1 {
    margin: 0;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero-copy h1 {
    max-width: 780px;
    font-size: clamp(40px, 6vw, 72px);
}

.hero-desc {
    margin: 22px 0 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.hero-tags,
.tag-row,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.secondary-button,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.search-form button {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 16px 28px rgba(5, 150, 105, 0.28);
    border: 0;
}

.primary-button:hover,
.search-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 4;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 28px;
    background: #ffffff;
}

.quick-search {
    position: relative;
    z-index: 5;
    margin-top: -42px;
}

.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.search-form {
    flex: 1;
    display: flex;
    gap: 12px;
}

.search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(5, 150, 105, 0.8);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

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

.quick-links a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-weight: 750;
}

.page-section {
    padding: 72px 0;
}

.alt-section {
    background: #ffffff;
}

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

.section-heading h2,
.content-card h2,
.player-card h2,
.side-card h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    flex: none;
    color: var(--accent-dark);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--dark);
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
    opacity: 0.74;
    transform: scale(1.06);
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    display: block;
    padding: 118px 18px 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
}

.category-tile p {
    margin: 8px 18px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.55;
}

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

.wide-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.poster-card,
.compact-card,
.rank-card,
.category-overview-card,
.content-card,
.player-card,
.side-card {
    background: var(--paper);
    border: 1px solid rgba(226, 232, 240, 0.72);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.poster-card {
    overflow: hidden;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--paper-soft);
}

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

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 14px;
}

.card-title {
    display: -webkit-box;
    min-height: 2.85em;
    overflow: hidden;
    color: var(--text);
    font-size: 16px;
    line-height: 1.42;
    font-weight: 820;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-body p,
.compact-body p,
.rank-info p,
.content-card p,
.side-card p {
    color: var(--muted);
    line-height: 1.72;
}

.card-body p {
    margin: 10px 0 12px;
    min-height: 3.4em;
    font-size: 13px;
}

.meta-row {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.meta-row span,
.meta-row a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-row span::before,
.meta-row a::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.tag-row span {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

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

.compact-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
}

.compact-thumb {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 12px;
    background: var(--paper-soft);
}

.compact-thumb img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-body p {
    margin: 8px 0 0;
    font-size: 13px;
}

.sub-page {
    min-height: 70vh;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 20%, rgba(16, 185, 129, 0.26), transparent 30%),
        linear-gradient(135deg, #020617, #064e3b 130%);
}

.sub-hero h1 {
    max-width: 760px;
    font-size: clamp(38px, 5vw, 62px);
}

.sub-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.75;
}

.small-actions {
    margin-top: 24px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 18px;
}

.category-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: var(--paper-soft);
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 13px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 160px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.large-filter {
    grid-template-columns: 1fr 190px 170px;
}

[data-search-item].is-hidden {
    display: none;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 58px 96px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #065f46);
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: var(--paper-soft);
}

.rank-info p {
    margin: 8px 0 0;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.detail-bg {
    opacity: 0.46;
    filter: blur(1px);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 38px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 46px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: end;
}

.detail-poster {
    width: 220px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.detail-title-row h1 {
    font-size: clamp(38px, 5vw, 66px);
}

.detail-title-row p:not(.eyebrow) {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.75;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.player-card,
.content-card,
.side-card {
    border-radius: 20px;
    padding: 20px;
}

.player-card h2,
.content-card h2,
.side-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #000000;
}

.detail-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding-left: 4px;
    color: #064e3b;
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.player-message {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 5;
    display: none;
    max-width: calc(100% - 32px);
    padding: 9px 12px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    font-size: 13px;
}

.player-message.show {
    display: block;
}

.content-card p {
    margin: 0;
    color: #334155;
    font-size: 16px;
}

.info-list {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px 12px;
    margin: 0 0 16px;
}

.info-list dt {
    color: var(--muted);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 750;
}

.info-list a {
    color: var(--accent-dark);
}

.full-tags {
    align-items: flex-start;
}

.side-recommend {
    display: grid;
    gap: 12px;
}

.side-recommend .compact-card {
    grid-template-columns: 96px 1fr;
    box-shadow: none;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    padding: 52px 0;
}

.footer-logo {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 520px;
    margin: 0;
    color: #94a3b8;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 18px 16px;
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .poster-grid,
    .wide-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .compact-grid,
    .rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .mobile-nav.open {
        display: grid;
        gap: 4px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .search-form,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-links {
        justify-content: center;
    }

    .poster-grid,
    .wide-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid,
    .overview-grid,
    .compact-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card {
        grid-template-columns: 150px 1fr;
    }

    .filter-bar,
    .large-filter {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        grid-template-columns: 130px 1fr;
        gap: 18px;
    }

    .detail-poster {
        width: 130px;
        border-radius: 16px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        height: 64px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 19px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 580px;
    }

    .hero-content {
        padding-top: 42px;
    }

    .hero-copy h1,
    .sub-hero h1,
    .detail-title-row h1 {
        font-size: 34px;
    }

    .hero-desc,
    .detail-title-row p:not(.eyebrow),
    .sub-hero p:not(.eyebrow) {
        font-size: 15px;
    }

    .primary-button,
    .secondary-button,
    .search-form button {
        width: 100%;
    }

    .poster-grid,
    .wide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-tile {
        min-height: 180px;
    }

    .compact-card,
    .rank-card,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .compact-thumb,
    .rank-thumb,
    .category-cover {
        aspect-ratio: 16 / 9;
    }

    .rank-number {
        position: absolute;
        margin: 10px;
        z-index: 2;
    }

    .rank-card {
        position: relative;
    }

    .detail-title-row {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 170px;
    }

    .page-section {
        padding: 48px 0;
    }
}
