* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0f172a;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.85);
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.logo:hover,
.footer-logo:hover,
.desktop-nav a:hover,
.mobile-panel a:hover,
.site-footer a:hover {
    color: #f59e0b;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.25);
    font-size: 13px;
}

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

.desktop-nav a,
.mobile-panel a {
    padding: 9px 13px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 650;
    transition: 0.2s ease;
}

.desktop-nav a.active,
.mobile-panel a.active {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    width: 260px;
    border: 1px solid rgba(71, 85, 105, 0.9);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.7);
}

.header-search input,
.mobile-panel input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 12px;
}

.header-search input::placeholder,
.mobile-panel input::placeholder,
.filter-panel input::placeholder {
    color: #94a3b8;
}

.header-search button,
.mobile-panel button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: #f59e0b;
    padding: 10px 14px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #1e293b;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #1e293b;
    padding: 14px 18px 18px;
    background: #0f172a;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-panel form {
    display: flex;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.4s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.86) 44%, rgba(15, 23, 42, 0.24) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 88px;
    width: min(650px, calc(100% - 48px));
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.28);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-content h1 {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 19px;
}

.hero-tags,
.detail-meta,
.card-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags a,
.hero-tags span,
.detail-meta span,
.card-tags span,
.tag-cloud span {
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid rgba(100, 116, 139, 0.35);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 650;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 24px;
    font-weight: 800;
    transition: 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: #f59e0b;
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.25);
}

.primary-btn:hover {
    background: #d97706;
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.42);
}

.ghost-btn:hover {
    border-color: rgba(245, 158, 11, 0.8);
    color: #fbbf24;
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 64px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-controls button:hover {
    background: #f59e0b;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px;
    padding: 0;
    background: rgba(226, 232, 240, 0.45) !important;
}

.hero-dot.is-active {
    width: 28px !important;
    background: #f59e0b !important;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: rgba(30, 41, 59, 0.5);
}

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

.section-head h2,
.page-hero h1,
.detail-hero-content h1,
.prose-card h2,
.side-card h2 {
    margin: 0;
    color: #ffffff;
    line-height: 1.15;
}

.section-head h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.section-head a {
    color: #fbbf24;
    font-weight: 800;
}

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

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

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #1e293b;
    border: 1px solid rgba(51, 65, 85, 0.6);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.poster-frame img,
.category-tile img,
.wide-image img,
.rank-card img,
.category-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poster-link:hover img,
.wide-link:hover img,
.rank-card a:hover img,
.category-tile:hover img,
.category-overview-card a:hover img {
    transform: scale(1.08);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
    transition: opacity 0.3s ease;
}

.poster-link:hover .poster-frame::after {
    opacity: 1;
}

.poster-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.poster-chip {
    left: 12px;
    top: 12px;
    background: rgba(245, 158, 11, 0.9);
    padding: 7px 9px;
}

.rank-badge {
    right: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.68);
    padding: 7px 10px;
}

.poster-card h3,
.wide-card h3,
.rank-card h3 {
    margin: 13px 0 6px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.poster-card a:hover h3,
.wide-card a:hover h3,
.rank-card a:hover h3 {
    color: #fbbf24;
}

.poster-card p,
.wide-card p,
.rank-card p,
.category-tile p,
.page-hero p,
.prose-card p,
.site-footer p,
.category-overview-content p {
    color: #94a3b8;
}

.card-meta {
    margin: 0 0 5px;
    font-size: 13px;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

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

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

.wide-link {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    height: 100%;
    padding: 16px;
    border: 1px solid rgba(51, 65, 85, 0.65);
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.38);
    transition: 0.2s ease;
}

.wide-link:hover,
.rank-card a:hover,
.category-overview-card a:hover,
.side-card:hover,
.prose-card:hover {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(30, 41, 59, 0.62);
}

.wide-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #1e293b;
}

.play-mark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    font-size: 30px;
    transition: opacity 0.25s ease;
}

.wide-link:hover .play-mark {
    opacity: 1;
}

.wide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tags {
    margin-top: 14px;
}

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

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

.rank-card a {
    display: grid;
    grid-template-columns: 54px 86px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 128px;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.42);
    padding: 14px;
    transition: 0.2s ease;
}

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

.rank-card img {
    width: 86px;
    height: 108px;
    border-radius: 12px;
    background: #1e293b;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 20px;
    background: #1e293b;
    border: 1px solid rgba(51, 65, 85, 0.65);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.2));
}

.category-tile div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

.category-tile span {
    display: block;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
}

.category-tile p {
    margin: 6px 0 0;
    font-size: 13px;
}

.page-hero {
    padding: 80px 0 34px;
}

.page-hero h1 {
    max-width: 880px;
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.45);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(71, 85, 105, 0.88);
    border-radius: 13px;
    outline: 0;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.82);
    padding: 12px 13px;
}

.empty-state {
    display: none;
    padding: 24px;
    border: 1px solid rgba(71, 85, 105, 0.7);
    border-radius: 18px;
    color: #cbd5e1;
    text-align: center;
    background: rgba(30, 41, 59, 0.42);
}

.empty-state.is-visible {
    display: block;
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.45);
    transition: 0.2s ease;
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    background: #0f172a;
}

.category-overview-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.category-overview-content h2 {
    margin: 14px 0 10px;
    color: #ffffff;
    font-size: 28px;
}

.detail-hero {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    background: #0f172a;
}

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

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.88) 48%, rgba(15, 23, 42, 0.38) 100%);
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 170px;
    padding-bottom: 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 18px;
}

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

.detail-hero-content h1 {
    max-width: 880px;
    font-size: clamp(36px, 5vw, 62px);
    letter-spacing: -0.04em;
}

.detail-hero-content p {
    max-width: 720px;
    margin: 18px 0 24px;
    color: #cbd5e1;
    font-size: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(51, 65, 85, 0.82);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.84));
    cursor: pointer;
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay em {
    font-style: normal;
    color: #cbd5e1;
}

.prose-card,
.side-card {
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.42);
    padding: 26px;
    transition: 0.2s ease;
}

.prose-card h2,
.side-card h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.prose-card p {
    margin: 0 0 22px;
    font-size: 16px;
}

.prose-card p:last-child {
    margin-bottom: 0;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 18px 0 22px;
}

.side-card dt {
    color: #94a3b8;
}

.side-card dd {
    margin: 0;
    color: #ffffff;
}

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

.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.85);
    background: #0f172a;
    padding: 52px 0;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.site-footer a {
    color: #94a3b8;
    transition: 0.2s ease;
}

.footer-logo {
    margin-bottom: 14px;
}

.copyright {
    color: #64748b !important;
    font-size: 13px;
}

.narrow-page {
    width: min(860px, calc(100% - 32px));
}

@media (max-width: 1120px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

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

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

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

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

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

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

@media (max-width: 760px) {
    .hero {
        height: 560px;
    }

    .hero-content {
        bottom: 92px;
    }

    .hero-controls {
        left: 24px;
        right: auto;
        bottom: 32px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p,
    .page-hero p,
    .detail-hero-content p {
        font-size: 16px;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .wide-link,
    .category-overview-card a {
        grid-template-columns: 1fr;
    }

    .wide-image {
        aspect-ratio: 16 / 10;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-card a {
        grid-template-columns: 42px 74px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-card img {
        width: 74px;
        height: 94px;
    }

    .rank-number {
        width: 36px;
        height: 36px;
    }

    .detail-hero-content {
        padding-top: 120px;
    }

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

@media (max-width: 480px) {
    .shell,
    .header-inner,
    .footer-grid,
    .narrow-page {
        width: min(100% - 22px, 1180px);
    }

    .logo,
    .footer-logo {
        font-size: 18px;
    }

    .poster-card h3 {
        font-size: 14px;
    }

    .poster-card p {
        font-size: 12px;
    }

    .page-hero h1,
    .detail-hero-content h1 {
        font-size: 34px;
    }

    .player-play {
        width: 66px;
        height: 66px;
        font-size: 24px;
    }
}
