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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--ink);
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
}

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

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--orange-dark);
}

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

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

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

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(18px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.32;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.3), transparent 28%),
        linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(239, 68, 68, 0.86) 48%, rgba(17, 24, 39, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 420px;
    align-items: center;
    gap: 54px;
    color: white;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #fff7ed;
    font-size: clamp(18px, 2.2vw, 25px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--orange-dark);
    background: #fff7ed;
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

.detail-tags span {
    color: #9a3412;
    background: #ffedd5;
}

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

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

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.34);
}

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

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

.hero-dots button {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: white;
}

.search-panel {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 560px);
    align-items: center;
    gap: 20px;
    margin-top: -48px;
    padding: 24px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
}

.inner-search {
    margin-top: 28px;
}

.search-panel h2 {
    margin: 8px 0 0;
    font-size: clamp(22px, 3vw, 34px);
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
}

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

.search-box button {
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: var(--orange);
    font-weight: 900;
    cursor: pointer;
}

.page-section {
    padding: 66px 0;
}

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

.section-head span {
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.12;
}

.section-head a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
}

.section-head.light span,
.section-head.light h2 {
    color: white;
}

.section-head.light a {
    color: white;
    background: rgba(255, 255, 255, 0.18);
}

.section-head.compact {
    align-items: center;
    margin-bottom: 16px;
}

.section-head.compact h2 {
    font-size: 20px;
}

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.movie-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

.cover-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.cover-badge,
.rank-mark {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.cover-badge {
    right: 12px;
    padding: 5px 9px;
    background: rgba(17, 24, 39, 0.74);
}

.rank-mark {
    left: 12px;
    padding: 5px 10px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.movie-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-info h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.rank-band {
    background: linear-gradient(135deg, #111827, #7c2d12 52%, #ef4444);
}

.category-area {
    background: linear-gradient(135deg, #fff7ed, #eef2ff);
}

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

.category-strip {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

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

.small-item {
    display: grid;
    grid-template-columns: auto 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.small-rank {
    min-width: 28px;
    color: var(--orange-dark);
    text-align: center;
}

.small-item img {
    width: 74px;
    height: 94px;
    border-radius: 12px;
    object-fit: cover;
    background: #ffedd5;
}

.small-item h3 {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.small-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.sub-hero {
    padding: 78px 0 84px;
    color: white;
    background:
        radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.26), transparent 24%),
        linear-gradient(135deg, var(--orange), var(--red) 52%, #111827);
}

.sub-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px, 5.8vw, 70px);
    line-height: 1.04;
}

.sub-hero p {
    max-width: 740px;
    margin: 0;
    color: #fff7ed;
    font-size: 19px;
}

.sub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.sub-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 28px;
    padding: 26px;
    color: white;
    box-shadow: var(--shadow);
}

.category-card-bg,
.category-card-shade {
    position: absolute;
    inset: 0;
}

.category-card-bg {
    background-position: center;
    background-size: cover;
    transition: transform 0.35s ease;
}

.category-card:hover .category-card-bg {
    transform: scale(1.06);
}

.category-card-shade {
    background: linear-gradient(to top, rgba(17, 24, 39, 0.88), rgba(249, 115, 22, 0.28));
}

.category-card > div:last-child {
    position: relative;
    z-index: 2;
}

.category-card span {
    color: #fed7aa;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.category-card h2 {
    margin: 6px 0 8px;
    font-size: 34px;
}

.category-card p {
    max-width: 520px;
    margin: 0 0 14px;
    color: #fff7ed;
}

.category-card strong {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.compact-list-section {
    padding-top: 0;
}

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

.detail-wrap {
    padding: 34px 0 74px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange-dark);
    font-weight: 800;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12), rgba(0, 0, 0, 0.38));
    cursor: pointer;
}

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

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.34);
    font-size: 34px;
}

.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 22px;
}

.player-controls button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: #111827;
    font-weight: 800;
    cursor: pointer;
}

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

.detail-card + .detail-card {
    margin-top: 24px;
}

.detail-card h1 {
    margin: 16px 0 10px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 800;
}

.detail-card blockquote {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-left: 5px solid var(--orange);
    border-radius: 16px;
    color: #7c2d12;
    background: #fff7ed;
    font-size: 18px;
    font-weight: 800;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 16px;
}

.poster-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #ffedd5;
    box-shadow: var(--shadow);
}

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

.side-card {
    margin-top: 20px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.orange-card {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.orange-card p {
    color: var(--muted);
}

.site-footer {
    color: #d1d5db;
    background: var(--footer);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding: 48px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

.site-footer p,
.site-footer ul {
    margin: 0;
    padding: 0;
}

.site-footer li {
    list-style: none;
    margin-top: 8px;
}

.site-footer a:hover {
    color: #fdba74;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

.search-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

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

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

    .side-column {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 20px;
    }

    .side-card {
        margin-top: 0;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .brand {
        font-size: 20px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 760px;
    }

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

    .hero-poster {
        max-width: 280px;
        margin: 0 auto;
    }

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

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

    .category-layout,
    .category-card-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .side-column {
        display: block;
    }

    .side-card {
        margin-top: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

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

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

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

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

    .hero-actions,
    .search-box {
        grid-template-columns: 1fr;
        display: grid;
    }

    .movie-grid,
    .rank-grid,
    .full-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .small-item {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }

    .small-item img {
        width: 64px;
        height: 82px;
    }

    .detail-card,
    .side-card {
        padding: 18px;
        border-radius: 18px;
    }
}
