:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-600: #ea580c;
    --red-900: #7f1d1d;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 18px 40px rgba(41, 37, 36, 0.13);
    --shadow-soft: 0 10px 30px rgba(41, 37, 36, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background: var(--stone-50);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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: 60;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-900), #9a3412 52%, var(--red-900));
    box-shadow: 0 16px 34px rgba(28, 25, 23, 0.25);
}

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

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

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--amber-900);
    background: var(--amber-500);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: 0.04em;
}

.brand-copy small {
    color: var(--amber-100);
    font-size: 12px;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-300);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: min(280px, 28vw);
}

.header-search input,
.mobile-panel input {
    width: 100%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    outline: none;
    padding: 11px 44px 11px 18px;
    backdrop-filter: blur(10px);
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
    color: rgba(255, 237, 213, 0.82);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    color: var(--amber-100);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 16px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel a {
    font-weight: 700;
    padding: 8px 0;
}

.mobile-panel form {
    display: flex;
    gap: 10px;
}

.mobile-panel button {
    border: 0;
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    padding: 0 18px;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--amber-900) 50%, #7c2d12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62) 48%, rgba(120, 53, 15, 0.33)), linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.06));
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
    padding: 96px 0 130px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 20px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 690px;
    margin: 0 0 26px;
    color: rgba(245, 245, 244, 0.9);
    font-size: 20px;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.33);
}

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

.primary-btn:hover {
    background: var(--amber-700);
    box-shadow: 0 18px 30px rgba(217, 119, 6, 0.42);
}

.ghost-btn {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--amber-900);
    background: var(--amber-300);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 900;
}

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

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

.hero-dot.is-active {
    background: var(--amber-300);
}

.quick-cats {
    background: var(--stone-100);
    padding: 30px 0;
}

.quick-cats .container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.cat-pill {
    color: var(--stone-700);
    background: var(--white);
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cat-pill:hover {
    color: var(--white);
    background: var(--amber-600);
    transform: translateY(-2px);
}

.section {
    padding: 76px 0;
}

.section.alt {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.section.warm {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-heading span {
    display: block;
    color: var(--amber-600);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 6px 0 0;
    color: var(--stone-800);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.section.alt .section-heading h2,
.section.alt .section-heading span {
    color: var(--white);
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.movie-poster {
    position: relative;
    overflow: hidden;
    background: var(--stone-200);
    aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 65%);
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-shade {
    opacity: 1;
}

.poster-badge,
.poster-action {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    top: 14px;
    right: 14px;
    color: var(--white);
    background: #dc2626;
    padding: 6px 10px;
}

.poster-action {
    left: 16px;
    bottom: 16px;
    opacity: 0;
    color: var(--stone-900);
    background: var(--amber-300);
    padding: 8px 13px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(6px);
}

.movie-card-link:hover .poster-action {
    opacity: 1;
    transform: translateY(0);
}

.movie-card-body {
    padding: 20px;
}

.movie-meta-line {
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 10px;
}

.movie-meta-line span {
    background: var(--amber-100);
    border-radius: 999px;
    padding: 4px 8px;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--stone-800);
    font-size: 19px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--amber-700);
}

.movie-card p {
    margin: 0;
    color: var(--stone-600);
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    color: var(--stone-600);
    background: var(--stone-100);
    border-radius: 7px;
    padding: 3px 7px;
    font-size: 12px;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
    gap: 30px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--stone-900);
    background: var(--amber-300);
    border-radius: 50%;
    font-weight: 900;
}

.rank-item img {
    width: 86px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    color: var(--white);
    line-height: 1.3;
}

.rank-text em {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-style: normal;
    margin-top: 3px;
}

.sub-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
    padding: 82px 0;
}

.sub-hero span {
    display: inline-block;
    color: var(--amber-100);
    font-weight: 900;
    letter-spacing: 0.12em;
}

.sub-hero h1 {
    max-width: 880px;
    margin: 12px 0 18px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
}

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

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

.category-tile {
    display: block;
    min-height: 190px;
    background: var(--white);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.category-tile span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 16px;
    font-weight: 900;
    margin-bottom: 20px;
}

.category-tile strong {
    display: block;
    color: var(--stone-800);
    font-size: 24px;
    margin-bottom: 8px;
}

.category-tile em {
    color: var(--stone-600);
    font-style: normal;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.35fr) 1fr;
    gap: 24px;
    align-items: end;
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
}

.filter-panel h2 {
    margin: 0 0 6px;
    color: var(--stone-800);
    font-size: 26px;
}

.filter-panel p {
    margin: 0;
    color: var(--stone-600);
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.42fr));
    gap: 12px;
}

.filter-controls input,
.filter-controls select,
.search-box input {
    width: 100%;
    border: 2px solid var(--amber-100);
    border-radius: 999px;
    outline: none;
    background: var(--stone-50);
    padding: 13px 16px;
}

.filter-controls input:focus,
.filter-controls select:focus,
.search-box input:focus {
    border-color: var(--amber-500);
}

.card-hidden {
    display: none;
}

.search-box {
    display: flex;
    max-width: 760px;
    gap: 12px;
    margin: 32px 0 0;
}

.search-box button {
    border: 0;
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    padding: 0 26px;
    font-weight: 900;
    cursor: pointer;
}

.search-results {
    min-height: 240px;
}

.empty-state {
    text-align: center;
    background: var(--white);
    border-radius: 24px;
    padding: 56px 20px;
    box-shadow: var(--shadow-soft);
}

.detail-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), #431407 70%);
    padding: 54px 0 78px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 36px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 26px;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.42);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    padding: 0;
    color: var(--white);
    background: #000;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover-image {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-position: center;
    background-size: cover;
    filter: saturate(1.08);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.05), rgba(0, 0, 0, 0.7));
}

.player-play {
    position: relative;
    z-index: 2;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    color: var(--amber-900);
    background: var(--amber-300);
    border-radius: 50%;
    font-size: 42px;
    box-shadow: 0 0 0 18px rgba(245, 158, 11, 0.18);
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.detail-info .lead {
    color: rgba(245, 245, 244, 0.88);
    font-size: 19px;
    margin: 0 0 24px;
}

.detail-poster-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 16px;
}

.detail-poster-card img {
    width: 110px;
    height: 145px;
    border-radius: 16px;
    object-fit: cover;
}

.detail-poster-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.detail-poster-card span {
    display: inline-block;
    color: var(--amber-100);
    margin: 2px 8px 2px 0;
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.28fr);
    gap: 28px;
    align-items: start;
}

.content-card {
    background: var(--white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 26px;
}

.content-card h2 {
    margin: 0 0 18px;
    color: var(--stone-800);
    font-size: 28px;
}

.content-card p {
    margin: 0 0 16px;
    color: var(--stone-700);
    font-size: 17px;
}

.side-card {
    background: var(--white);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 23px;
}

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

.related-link {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--stone-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
    background: var(--amber-50);
    transform: translateX(4px);
}

.related-link img {
    width: 86px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.related-link strong,
.related-link span {
    display: block;
}

.related-link strong {
    color: var(--stone-800);
    line-height: 1.32;
}

.related-link span {
    color: var(--stone-500);
    font-size: 13px;
    margin-top: 3px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: var(--stone-900);
    padding: 38px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer strong {
    display: block;
    color: var(--white);
    font-size: 24px;
    margin-bottom: 6px;
}

.site-footer p {
    margin: 0;
    max-width: 520px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--amber-300);
}

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

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

    .hero-content,
    .detail-grid,
    .content-grid,
    .rank-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .header-inner {
        min-height: 68px;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 64px 0 110px;
    }

    .hero-poster {
        max-width: 230px;
        transform: none;
    }

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

    .section {
        padding: 54px 0;
    }

    .section-heading {
        display: block;
    }

    .filter-controls,
    .search-box {
        grid-template-columns: 1fr;
        display: grid;
    }

    .search-box button {
        min-height: 48px;
    }

    .footer-grid {
        display: block;
    }

    .footer-links {
        margin-top: 18px;
    }
}
