* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 249, 0.9);
    border-bottom: 1px solid rgba(214, 211, 209, 0.75);
    backdrop-filter: blur(16px);
}

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

.logo,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.32);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    color: #57534e;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a.is-active {
    color: #92400e;
    background: #fef3c7;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fef3c7;
    color: #92400e;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide,
.hero-bg,
.hero-shade,
.detail-backdrop,
.detail-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg,
.detail-backdrop {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 45%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 30px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.hero h2,
.detail-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p,
.detail-copy p,
.page-hero p {
    max-width: 720px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.84);
}

.hero-tags,
.detail-tags,
.card-meta,
.chip-row,
.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-meta span,
.chip-row a,
.category-card div span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #78350f;
    background: #fef3c7;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #111827;
    background: #fbbf24;
    box-shadow: 0 16px 40px rgba(251, 191, 36, 0.35);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.btn-ghost.dark {
    color: #292524;
    border-color: #d6d3d1;
    background: rgba(255, 255, 255, 0.72);
}

.btn-plain {
    color: #ffffff;
}

.hero-control-wrap {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(270px, 420px) auto;
    gap: 18px;
    align-items: end;
}

.hero-search {
    padding: 16px;
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.hero-search label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.hero-search div,
.filter-bar {
    display: flex;
    gap: 10px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d6d3d1;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    color: #292524;
    background: #ffffff;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-link {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    color: #111827;
    font-weight: 800;
    background: #fbbf24;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 28px;
    border-radius: 999px;
    background: #fbbf24;
}

.hero-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, border 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
    transform: translateY(-2px);
    border-color: #fbbf24;
}

.hero-thumb img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    overflow: hidden;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.section-block {
    padding: 54px 0;
}

.intro-block {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.section-block h2,
.section-head h2,
.rank-panel h2,
.side-recommend h2,
.detail-article h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-block p {
    color: #57534e;
}

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

.section-head > a {
    color: #92400e;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(41, 37, 36, 0.14);
}

.card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #1c1917;
}

.card-cover {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .card-cover {
    transform: scale(1.06);
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: #fbbf24;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111827;
    background: #fbbf24;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #78716c;
    font-size: 14px;
}

.card-meta span {
    color: #57534e;
    background: #f5f5f4;
}

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

.rank-panel,
.side-recommend,
.detail-article,
.category-card,
.player-box,
.filter-bar,
.empty-state {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(41, 37, 36, 0.08);
}

.rank-panel,
.side-recommend,
.detail-article,
.empty-state {
    padding: 22px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-item {
    display: grid;
    grid-template-columns: auto 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fafaf9;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-item:hover {
    transform: translateX(3px);
    background: #fef3c7;
}

.mini-rank {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #92400e;
    background: #fde68a;
    font-weight: 800;
}

.mini-item img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.mini-item strong,
.mini-item em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-item em {
    margin-top: 4px;
    color: #78716c;
    font-size: 13px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, #92400e, #1c1917 42%, #0c0a09);
}

.page-hero {
    padding: 92px 0 76px;
}

.slim-hero {
    min-height: 300px;
}

.page-actions {
    margin-top: 18px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.category-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 64px rgba(41, 37, 36, 0.14);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 16px;
}

.filter-bar {
    margin-bottom: 24px;
    padding: 16px;
}

.empty-state {
    margin-bottom: 20px;
    color: #92400e;
    background: #fffbeb;
}

.rank-list-page {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(41, 37, 36, 0.07);
}

.rank-row p {
    margin: 0;
}

.rank-row > a {
    color: #92400e;
    font-weight: 800;
}

.detail-hero {
    min-height: 560px;
}

.detail-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.22)), linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 45%);
}

.detail-hero-inner {
    position: relative;
    min-height: 560px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 56px 0;
}

.detail-poster img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
}

.breadcrumb a {
    color: #fbbf24;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.16), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

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

.play-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: #fbbf24;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 20px 54px rgba(251, 191, 36, 0.34);
}

.play-trigger span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fbbf24;
    background: #111827;
}

.player-status {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
}

.detail-article p {
    color: #57534e;
    font-size: 17px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e7e5e4;
}

.info-list dt {
    color: #78716c;
}

.info-list dd {
    margin: 0;
    font-weight: 700;
}

.site-footer {
    margin-top: 46px;
    color: #d6d3d1;
    background: linear-gradient(135deg, #1c1917, #292524);
}

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

.site-footer p {
    max-width: 520px;
    color: #a8a29e;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #a8a29e;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: #a8a29e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filtered-out {
    display: none !important;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .mobile-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: 680px;
    }

    .hero-control-wrap {
        grid-template-columns: 1fr;
    }

    .hero-rail {
        display: none;
    }

    .intro-block,
    .split-layout,
    .detail-layout,
    .detail-hero-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        min-height: auto;
    }

    .detail-poster {
        max-width: 440px;
    }

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

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

    .header-inner {
        height: 64px;
    }

    .logo strong {
        font-size: 18px;
    }

    .hero {
        min-height: 720px;
    }

    .hero h1,
    .hero h2,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 38px;
    }

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

    .hero-control-wrap {
        bottom: 16px;
    }

    .hero-search div,
    .filter-bar,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

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

    .section-block {
        padding: 36px 0;
    }

    .page-hero {
        padding: 70px 0 56px;
    }
}
