html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #f3f4f6;
    background: #111827;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid #1f2937;
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.22);
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(90deg, #f59e0b, #fb923c, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-subtitle {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #d1d5db;
    font-size: 15px;
}

.main-nav a,
.mobile-panel a {
    transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
    color: #f59e0b;
}

.header-search {
    min-width: 270px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    border: 1px solid #374151;
    border-radius: 999px;
    background: #1f2937;
    color: #f3f4f6;
    padding: 11px 48px 11px 18px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.search-box button {
    position: absolute;
    right: 7px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: #f59e0b;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #1f2937;
    color: #f3f4f6;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 16px 0 22px;
    border-top: 1px solid #1f2937;
}

.mobile-links {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    color: #d1d5db;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #030712;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #111827 0%, rgba(17, 24, 39, 0.82) 24%, rgba(17, 24, 39, 0.48) 54%, rgba(3, 7, 18, 0.16) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding-bottom: 72px;
}

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

.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 12px;
}

.eyebrow span:not(:first-child) {
    color: #d1d5db;
    font-weight: 500;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero p {
    margin: 0 0 28px;
    max-width: 690px;
    color: #d1d5db;
    font-size: 18px;
}

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

.button-primary,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #d97706, #f97316);
    box-shadow: 0 12px 34px rgba(217, 119, 6, 0.28);
}

.button-secondary,
.button-ghost {
    color: #f3f4f6;
    background: rgba(31, 41, 55, 0.72);
    border: 1px solid #374151;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 25px;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #f59e0b;
}

.section {
    padding: 70px 0 0;
}

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

.section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f59e0b;
    font-weight: 800;
}

.section-title {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    color: #ffffff;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: #9ca3af;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 22px;
    background: rgba(31, 41, 55, 0.62);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.55);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #030712;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.9), rgba(3, 7, 18, 0));
}

.card-badge,
.card-year,
.rank-number {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    color: #111827;
    background: #f59e0b;
}

.card-year {
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    color: #f3f4f6;
    background: rgba(17, 24, 39, 0.78);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0;
    overflow: hidden;
    color: #9ca3af;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.card-meta span,
.detail-meta span,
.tag-pill {
    padding: 5px 9px;
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.2);
    font-size: 12px;
}

.horizontal-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 2px 20px;
    scroll-snap-type: x mandatory;
}

.horizontal-strip .movie-card {
    flex: 0 0 252px;
    scroll-snap-align: start;
}

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

.category-card {
    min-height: 164px;
    border: 1px solid rgba(217, 119, 6, 0.18);
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(249, 115, 22, 0.08) 45%, rgba(31, 41, 55, 0.64));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 119, 6, 0.48);
}

.category-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 21px;
}

.category-card p {
    margin: 0 0 18px;
    color: #aeb6c3;
    font-size: 14px;
}

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

.ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 12px;
    background: rgba(31, 41, 55, 0.58);
}

.ranking-item img {
    width: 96px;
    height: 132px;
    border-radius: 15px;
    object-fit: cover;
}

.rank-number {
    left: 8px;
    top: 8px;
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #111827;
    background: #f59e0b;
}

.ranking-info h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 19px;
}

.ranking-info p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
    gap: 12px;
    margin: 28px 0 30px;
    padding: 16px;
    border: 1px solid #1f2937;
    border-radius: 22px;
    background: rgba(31, 41, 55, 0.56);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #374151;
    border-radius: 14px;
    background: #111827;
    color: #f3f4f6;
    padding: 12px 14px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #d97706;
}

.page-hero {
    padding: 68px 0 24px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 34%), linear-gradient(180deg, rgba(31, 41, 55, 0.58), rgba(17, 24, 39, 0));
}

.page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #b8c0cc;
    font-size: 17px;
}

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

.breadcrumb a {
    color: #f59e0b;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    background: #030712;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-copy .one-line {
    max-width: 850px;
    margin: 0 0 22px;
    color: #d1d5db;
    font-size: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.22), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #d97706, #f97316);
    box-shadow: 0 18px 52px rgba(217, 119, 6, 0.42);
    font-size: 34px;
}

.prose-card {
    border: 1px solid #1f2937;
    border-radius: 24px;
    padding: 26px;
    background: rgba(31, 41, 55, 0.58);
}

.prose-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 28px;
}

.prose-card p {
    margin: 0 0 16px;
    color: #cbd5e1;
}

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

.site-footer {
    margin-top: 86px;
    border-top: 1px solid #1f2937;
    background: #0b1120;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0;
    color: #9ca3af;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.empty-state {
    display: none;
    border: 1px solid #1f2937;
    border-radius: 18px;
    padding: 30px;
    color: #9ca3af;
    background: rgba(31, 41, 55, 0.58);
    text-align: center;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-search {
        min-width: 230px;
    }
}

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

    .mobile-toggle {
        display: block;
    }

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

    .hero {
        min-height: 560px;
        height: 76vh;
    }

    .hero-arrow {
        display: none;
    }

    .section-header,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .ranking-list,
    .detail-layout {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        gap: 22px;
    }

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

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

    .logo-subtitle {
        display: none;
    }

    .logo-title {
        font-size: 20px;
    }

    .hero-content {
        padding-bottom: 56px;
    }

    .hero p {
        font-size: 16px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .ranking-list,
    .detail-layout,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 82px 1fr;
    }

    .ranking-item img {
        width: 82px;
        height: 112px;
    }

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

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