:root {
    --color-amber: #d97706;
    --color-orange: #f97316;
    --color-gold: #f59e0b;
    --color-rose: #e11d48;
    --color-dark: #111827;
    --color-muted: #6b7280;
    --color-soft: #f8fafc;
    --color-line: #e5e7eb;
    --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-hover: 0 24px 60px rgba(217, 119, 6, 0.22);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-dark);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 32%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #d97706 0%, #f97316 48%, #d97706 100%);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.32);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--color-amber);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 8px 22px rgba(17, 24, 39, 0.18);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    opacity: 0.92;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    opacity: 1;
    color: #fffbeb;
}

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

.header-search input,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    padding: 11px 46px 11px 18px;
}

.header-search input::placeholder,
.search-panel input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.search-panel button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px 12px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
}

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

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

.hero-slide {
    display: none;
    position: relative;
    min-height: 600px;
}

.hero-slide.is-active {
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
    transform: scale(1.04);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.35), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 48%, rgba(17, 24, 39, 0.18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.78) 0%, transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
    align-items: center;
    gap: 44px;
    padding: 72px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    padding: 7px 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.hero-text {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 800;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 16px 38px rgba(249, 115, 22, 0.36);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-dark {
    color: #ffffff;
    background: #111827;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.18);
}

.hero-poster-wrap {
    position: relative;
}

.hero-poster {
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 4 / 5;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2.5deg);
}

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

.hero-card-float {
    position: absolute;
    left: -28px;
    bottom: 34px;
    width: min(250px, 74%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(18px);
    padding: 18px;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.22);
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 32px;
    border-radius: 999px;
    background: #f59e0b;
}

.section {
    padding: 56px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 46px;
    height: 5px;
    margin-right: 14px;
    vertical-align: 0.25em;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #e11d48);
}

.section-subtitle {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 24px;
    color: #111827;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #111827;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.card-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 17px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.card-desc {
    margin: 0;
    color: #6b7280;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
}

.card-meta span {
    border-radius: 999px;
    background: #fff7ed;
    padding: 5px 9px;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
}

.feature-large {
    min-height: 520px;
}

.feature-large .card-cover {
    aspect-ratio: 16 / 10;
}

.feature-stack {
    display: grid;
    gap: 18px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 88px 1fr auto;
    gap: 16px;
    align-items: center;
    border-radius: 22px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 44px rgba(217, 119, 6, 0.16);
}

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

.rank-thumb {
    overflow: hidden;
    width: 88px;
    height: 68px;
    border-radius: 16px;
    background: #111827;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 950;
}

.rank-info p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.55;
}

.rank-heat {
    color: #b45309;
    font-weight: 950;
    white-space: nowrap;
}

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

.category-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #f97316 58%, #f59e0b);
    padding: 22px;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(249, 115, 22, 0.32);
}

.category-card h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-top,
.search-top,
.detail-top {
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.45), transparent 24%),
        linear-gradient(135deg, #111827 0%, #7c2d12 50%, #f97316 100%);
    padding: 74px 0 60px;
}

.category-top h1,
.search-top h1,
.detail-top h1 {
    margin: 0;
    max-width: 920px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.category-top p,
.search-top p,
.detail-top p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
}

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

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    padding: 10px 15px;
    font-weight: 900;
    cursor: pointer;
}

.filter-button.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.search-panel {
    position: relative;
    max-width: 760px;
    margin-top: 28px;
}

.search-panel input {
    min-height: 58px;
    font-size: 18px;
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.content-card {
    border-radius: 28px;
    background: #ffffff;
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 950;
}

.content-card p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 16px;
    line-height: 1.95;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #030712;
    box-shadow: 0 30px 76px rgba(17, 24, 39, 0.34);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.18));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.play-button {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 22px 52px rgba(249, 115, 22, 0.38);
    cursor: pointer;
    font-size: 34px;
}

.play-title {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 22px;
    font-size: 22px;
    font-weight: 950;
}

.footer {
    margin-top: 48px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
    gap: 28px;
}

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

.footer p,
.footer a {
    color: #9ca3af;
    line-height: 1.8;
}

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

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    text-align: center;
    color: #6b7280;
}

.empty-state {
    display: none;
    border-radius: 24px;
    color: #92400e;
    background: #fffbeb;
    padding: 24px;
    font-weight: 900;
}

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

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

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

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

    .hero-poster-wrap {
        display: none;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 62px;
    }

    .logo {
        font-size: 24px;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: 540px;
    }

    .hero-content {
        padding: 52px 0 72px;
    }

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

    .hero-text,
    .category-top p,
    .search-top p,
    .detail-top p {
        font-size: 16px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 42px 74px 1fr;
    }

    .rank-heat {
        grid-column: 2 / -1;
    }

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

@media (max-width: 500px) {
    .page-shell,
    .header-inner,
    .mobile-nav,
    .footer-inner,
    .hero-content {
        width: min(100% - 22px, 1180px);
    }

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

    .content-card {
        padding: 22px;
    }

    .play-button {
        width: 74px;
        height: 74px;
    }
}
