@charset "utf-8";

:root {
    --page-bg: #fafaf9;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1c1917;
    --muted: #78716c;
    --line: #e7e5e4;
    --brand: #d97706;
    --brand-dark: #92400e;
    --brand-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(41, 37, 36, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(231, 229, 228, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #92400e);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.32);
}

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

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

.brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.nav-link {
    color: #57534e;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-dark);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
}

.header-search input,
.big-search input,
.filter-form input,
.filter-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 9px 14px;
}

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

.header-search button,
.big-search button,
.filter-form button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.big-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 12px 28px rgba(180, 83, 9, 0.26);
}

.header-search button {
    padding: 9px 15px;
}

.header-search button:hover,
.big-search button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #f5f5f4;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #44403c;
    border-radius: 999px;
}

.hero {
    position: relative;
    height: clamp(520px, 62vw, 720px);
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transform: scale(1.025);
    transition: opacity 0.7s ease, transform 1.1s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(251, 191, 36, 0.25), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.eyebrow.dark {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.hero h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 72px);
}

.hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.sub-hero-meta,
.movie-meta-line,
.detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-top: 26px;
}

.hero-meta span,
.sub-hero-meta span,
.detail-meta-list span {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span,
.sub-hero-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.primary-button,
.ghost-button {
    min-height: 48px;
    padding: 0 24px;
}

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

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

.hero-dot {
    width: 38px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
    background: #fbbf24;
}

.home-search-band {
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.home-search-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 26px;
    align-items: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.home-search-inner h2,
.section-heading h2,
.detail-article h2,
.detail-aside h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.home-search-inner p,
.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.big-search {
    display: flex;
    gap: 10px;
}

.big-search input {
    min-height: 52px;
    padding: 0 18px;
}

.big-search button {
    padding: 0 22px;
}

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

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

.section-heading > a {
    color: var(--brand-dark);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

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

.movie-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid rgba(231, 229, 228, 0.86);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 18px 42px rgba(41, 37, 36, 0.13);
}

.movie-cover,
.rank-cover,
.detail-poster,
.category-collage figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.4), transparent 32%),
        linear-gradient(135deg, #1f2937, #7c2d12);
}

.movie-cover {
    aspect-ratio: 16 / 10;
}

.movie-cover img,
.rank-cover img,
.detail-poster img,
.category-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.category-tile:hover .category-collage img,
.category-overview-card:hover .category-collage img {
    transform: scale(1.08);
}

.cover-missing::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    background:
        radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.36), transparent 30%),
        linear-gradient(135deg, #111827, #92400e);
}

.cover-duration,
.cover-year {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cover-duration {
    right: 10px;
}

.cover-year {
    left: 10px;
}

.movie-card-body {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 16px;
}

.movie-card-compact .movie-card-body {
    min-height: 154px;
    padding: 14px;
}

.movie-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    display: -webkit-box;
    margin: 9px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    margin-top: auto;
    padding-top: 12px;
    color: #a8a29e;
    font-size: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile,
.category-overview-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile > div:last-child,
.category-overview-body {
    padding: 16px;
}

.category-tile h3,
.category-overview-body h2 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
}

.category-tile p,
.category-overview-body p {
    margin: 8px 0;
    color: var(--muted);
    font-size: 14px;
}

.category-tile span,
.category-overview-body > span {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.category-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 88px 88px;
    gap: 2px;
}

.category-collage figure:first-child {
    grid-row: span 2;
}

.category-collage.large {
    grid-template-rows: 130px 130px;
}

.category-collage figure {
    min-height: 0;
}

.sub-hero {
    position: relative;
    padding: 76px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.28), transparent 30%),
        linear-gradient(135deg, #78350f, #111827);
}

.amber-hero {
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.28), transparent 25%),
        linear-gradient(135deg, #b45309, #78350f);
}

.dark-hero {
    background:
        radial-gradient(circle at 72% 16%, rgba(245, 158, 11, 0.34), transparent 26%),
        linear-gradient(135deg, #111827, #451a03);
}

.search-hero {
    background:
        radial-gradient(circle at 70% 10%, rgba(251, 191, 36, 0.25), transparent 28%),
        linear-gradient(135deg, #292524, #7c2d12);
}

.category-hero {
    background:
        radial-gradient(circle at 80% 12%, rgba(251, 191, 36, 0.25), transparent 28%),
        linear-gradient(135deg, #78350f, #1c1917);
}

.sub-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 5vw, 58px);
}

.sub-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.sub-hero-meta {
    margin-top: 22px;
}

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

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

.filter-panel {
    margin-top: 34px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(41, 37, 36, 0.08);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 190px auto;
    gap: 14px;
    align-items: end;
}

.filter-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-form input,
.filter-form select {
    min-height: 46px;
    padding: 0 14px;
}

.filter-form button {
    min-height: 46px;
    padding: 0 18px;
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.filter-count {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

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

.rank-item {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.06);
}

.rank-item a {
    display: grid;
    grid-template-columns: 68px 130px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.rank-number {
    color: var(--brand-dark);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.rank-body h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}

.rank-body p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4.1;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
    max-width: 860px;
    color: #ffffff;
    font-size: clamp(36px, 5.2vw, 64px);
}

.detail-one-line {
    max-width: 820px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-meta-list {
    margin-top: 22px;
}

.detail-meta-list span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.large-tags span {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.82);
}

.player-section {
    padding-top: 54px;
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-player.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.play-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.35);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    margin: 0;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 2px #000000;
}

.detail-text-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 46px;
}

.detail-article,
.detail-aside {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(41, 37, 36, 0.06);
}

.detail-article {
    padding: 28px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 12px 0 0;
    color: #57534e;
    font-size: 16px;
}

.detail-aside {
    align-self: start;
    padding: 22px;
}

.aside-links,
.sample-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aside-links a,
.sample-links a,
.footer-links a {
    padding: 7px 10px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

.info-list div {
    padding: 12px;
    background: #fafaf9;
    border-radius: 14px;
}

.info-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

.site-footer {
    margin-top: 70px;
    padding: 44px 0;
    color: #d6d3d1;
    background: #1c1917;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

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

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

[data-movie-card].is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: 68px;
        padding: 10px 0;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 0 4px;
    }

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

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

    .hero {
        min-height: 560px;
    }

    .home-search-inner,
    .detail-hero-grid,
    .detail-text-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-poster {
        width: min(280px, 80vw);
    }
}

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

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

    .hero h1 {
        font-size: 34px;
    }

    .hero p,
    .detail-one-line,
    .sub-hero p {
        font-size: 16px;
    }

    .home-search-inner,
    .filter-panel,
    .detail-article,
    .detail-aside {
        padding: 18px;
    }

    .big-search {
        flex-direction: column;
    }

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

    .rank-item a {
        grid-template-columns: 48px 96px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-body p {
        display: none;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
