:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --pink: #ec4899;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --dark: #111827;
    --dark-card: #1f2937;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #f3f4f6;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--orange), var(--red));
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.32);
    font-size: 14px;
    padding-left: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #374151;
    font-weight: 700;
}

.nav-links > a,
.nav-dropdown > a {
    padding: 21px 0;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 190px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
}

.nav-dropdown-menu a:hover {
    background: #fff7ed;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--orange);
}

main {
    min-height: 60vh;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    padding-top: 66px;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #ef4444 48%, #ec4899);
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(127, 29, 29, 0.66), rgba(15, 23, 42, 0.5)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.18) 2px, transparent 0);
    background-size: 58px 58px;
    opacity: 0.22;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 584px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: 56px;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.08em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

.movie-tags span {
    background: #fff7ed;
    color: var(--orange-dark);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.32);
}

.hero-copy .btn-primary {
    color: var(--orange-dark);
    background: #ffffff;
}

.btn-ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.btn-mini {
    padding: 8px 16px;
    color: #ffffff;
    background: var(--orange);
    font-size: 14px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.66);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.section {
    padding: 72px 0;
}

.section-white {
    background: #ffffff;
}

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

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

.section-head-inline {
    margin-bottom: 20px;
}

.section-kicker {
    color: var(--orange);
    margin-bottom: 6px;
}

.section-head h2,
.split-layout h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.section-head p,
.split-layout p {
    margin: 10px 0 0;
    color: var(--muted);
}

.section-dark .section-head p,
.section-dark .split-layout p {
    color: #d1d5db;
}

.section-more {
    color: var(--orange);
    font-weight: 900;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.section-dark .movie-card {
    background: #1f2937;
    box-shadow: none;
}

.movie-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #1f2937;
}

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

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .movie-thumb::after {
    opacity: 1;
}

.movie-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    font-weight: 800;
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: 0.24s ease;
    padding-left: 3px;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: var(--ink);
    font-weight: 900;
    font-size: 17px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.section-dark .movie-title {
    color: #ffffff;
}

.movie-title:hover {
    color: var(--orange);
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.section-dark .movie-line {
    color: #d1d5db;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.movie-tags {
    margin-top: 12px;
}

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

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

.category-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius);
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #fed7aa;
    box-shadow: var(--shadow);
}

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
}

.category-card strong {
    color: var(--orange-dark);
    font-size: 20px;
}

.category-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 42px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.rank-card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

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

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

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

.rank-copy em {
    margin-top: 4px;
    color: #d1d5db;
    font-style: normal;
    font-size: 13px;
}

.rank-badge {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    font-weight: 900;
}

.page-hero {
    padding: 130px 0 70px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #7f1d1d 48%, #f97316);
}

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

.compact-hero h1 {
    max-width: 900px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

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

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

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.search-box {
    position: relative;
    display: block;
}

.search-box span {
    position: absolute;
    left: 18px;
    top: 50%;
    color: var(--muted);
    transform: translateY(-50%);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 70px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: var(--orange-dark);
    background: #fff7ed;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.is-active {
    color: #ffffff;
    background: var(--orange);
    border-color: var(--orange);
}

.category-overview {
    display: grid;
    gap: 34px;
}

.category-overview-block {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 118px 54px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.ranking-poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
}

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

.ranking-index {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.ranking-copy a {
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 900;
    font-size: 19px;
}

.ranking-copy p {
    margin: 0 0 8px;
    color: var(--muted);
}

.detail-hero {
    padding: 112px 0 56px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.6), transparent 32%), linear-gradient(135deg, #111827, #1f2937 52%, #7f1d1d);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
    gap: 34px;
    align-items: center;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    font-weight: 900;
    font-size: 20px;
}

.play-overlay.is-hidden {
    display: none;
}

.play-overlay-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.36);
    padding-left: 5px;
    font-size: 30px;
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.05em;
}

.detail-info p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
}

.detail-meta {
    margin-bottom: 16px;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.detail-copy article {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

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

.detail-copy p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    color: #d1d5db;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 12px;
}

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

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

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

.footer-links a:hover {
    color: #ffffff;
}

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

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 16px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: grid;
        gap: 8px;
    }

    .nav-links > a,
    .nav-dropdown > a {
        display: block;
        padding: 10px 0;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 4px 0 0 12px;
    }

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

    .hero-content {
        padding: 56px 0 90px;
    }

    .hero-poster {
        display: none;
    }

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

    .ranking-row {
        grid-template-columns: 96px 42px 1fr;
    }

    .ranking-row .btn-mini {
        grid-column: 1 / -1;
    }
}

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

    .brand {
        font-size: 20px;
    }

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

    .hero-copy h1 {
        font-size: 40px;
    }

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

    .hero-actions,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .section {
        padding: 50px 0;
    }

    .page-hero {
        padding: 112px 0 54px;
    }

    .ranking-row {
        grid-template-columns: 84px 1fr;
        gap: 12px;
    }

    .ranking-index {
        position: absolute;
        margin-left: 8px;
        margin-top: 8px;
    }

    .ranking-copy,
    .ranking-row .btn-mini {
        grid-column: 1 / -1;
    }
}
