:root {
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-100: #ffedd5;
    --amber-50: #fffbeb;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 8px 22px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 16px 40px rgba(17, 24, 39, 0.12);
    --shadow-lg: 0 24px 70px rgba(17, 24, 39, 0.22);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    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(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange-600), var(--orange-500));
    box-shadow: 0 12px 30px rgba(194, 65, 12, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--orange-600);
    background: var(--white);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 600;
}

.nav-link {
    opacity: 0.94;
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--orange-100);
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--white);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.hero-stage {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.22), transparent 38%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(3, 7, 18, 0.58) 44%, rgba(3, 7, 18, 0.18)),
        linear-gradient(0deg, rgba(3, 7, 18, 0.75), transparent 55%);
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1180px, calc(100% - 40px));
    transform: translate(-50%, -50%);
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: var(--orange-100);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-tags {
    margin-top: 24px;
}

.tag,
.card-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--orange-700);
    background: var(--orange-100);
    font-size: 12px;
    font-weight: 700;
}

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

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

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

.btn-primary {
    color: var(--white);
    background: var(--orange-600);
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
    background: var(--orange-700);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

.full-width {
    width: 100%;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    transform: translateY(-50%);
    font-size: 38px;
    line-height: 1;
}

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

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.search-entrance,
.page-shell,
.content-section {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.search-entrance {
    position: relative;
    z-index: 5;
    margin-top: -34px;
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    color: var(--gray-900);
    outline: 0;
    background: var(--gray-50);
}

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

.search-form button {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-600);
    font-weight: 800;
}

.page-search-form {
    max-width: 760px;
    margin-top: 28px;
}

.content-section {
    padding: 52px 0 0;
}

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

.section-head h2,
.article-section h2,
.detail-article h2,
.detail-side h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 900;
}

.section-head p,
.category-card p,
.article-section p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.75;
}

.section-more,
.text-link {
    color: var(--orange-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

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

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--orange-100), var(--gray-200));
}

.card-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease, opacity 220ms ease;
}

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

.score-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}

.score-badge {
    top: 12px;
    right: 12px;
    min-width: 44px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

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

.card-content {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.card-content h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-content h2 a:hover {
    color: var(--orange-600);
}

.card-content p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-tags {
    gap: 6px;
}

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

.category-tile {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.84), rgba(3, 7, 18, 0.1));
}

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 18px;
}

.category-tile span {
    margin-top: 82px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.category-tile:hover img {
    transform: scale(1.08);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 58px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    min-width: 34px;
    color: var(--orange-600);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 58px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--orange-100);
}

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

.rank-main strong {
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
}

.rank-main em {
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
}

.rank-score {
    color: var(--orange-600);
    font-weight: 900;
}

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

.feature-panel,
.article-section,
.detail-article,
.detail-side {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.feature-panel {
    padding: 30px;
    background:
        radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.16), transparent 35%),
        linear-gradient(135deg, var(--white), var(--amber-50));
}

.feature-panel h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 900;
}

.feature-panel p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.8;
}

.feature-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.feature-links a {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--orange-700);
    background: var(--orange-100);
    font-weight: 800;
}

.page-shell {
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: var(--orange-600);
}

.page-hero {
    overflow: hidden;
    border-radius: 28px;
    color: var(--white);
    background:
        radial-gradient(circle at 88% 14%, rgba(249, 115, 22, 0.36), transparent 38%),
        linear-gradient(135deg, var(--gray-900), var(--gray-800));
    box-shadow: var(--shadow-md);
}

.small-hero {
    padding: clamp(32px, 7vw, 72px);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    display: grid;
    grid-template-columns: 168px 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.category-card-cover {
    display: block;
    overflow: hidden;
    height: 220px;
    border-radius: var(--radius-md);
    background: var(--orange-100);
}

.category-card-cover img {
    height: 100%;
    object-fit: cover;
}

.category-card h2 {
    margin: 8px 0 10px;
    font-size: 26px;
    font-weight: 900;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-samples a {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--orange-700);
    background: var(--orange-100);
    font-size: 13px;
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.32), transparent 34%),
        linear-gradient(135deg, var(--gray-950), var(--gray-800));
    box-shadow: var(--shadow-md);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.detail-one-line {
    max-width: 860px;
    margin: 18px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.player-section {
    margin-top: 28px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--gray-950);
    box-shadow: var(--shadow-lg);
}

.movie-video {
    aspect-ratio: 16 / 9;
    min-height: 260px;
    object-fit: contain;
    background: var(--gray-950);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.7), rgba(3, 7, 18, 0.2));
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    border-radius: 999px;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.play-overlay strong {
    font-size: 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin-top: 28px;
}

.detail-article,
.detail-side,
.article-section {
    padding: 26px;
}

.detail-article p,
.article-section p {
    margin: 0 0 20px;
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 86px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 11px 14px;
    margin: 18px 0 24px;
}

.detail-side dt {
    color: var(--gray-500);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.55;
}

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

.article-section {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer {
    margin-top: 72px;
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 26px;
}

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

.footer-brand {
    color: var(--white);
}

.site-footer p,
.site-footer li {
    color: var(--gray-300);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 17px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: var(--orange-500);
}

.footer-copy {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (max-width: 1120px) {
    .nav-menu {
        position: fixed;
        inset: 64px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        max-height: calc(100vh - 64px);
        overflow: auto;
        padding: 18px 24px 28px;
        background: linear-gradient(180deg, var(--orange-600), var(--orange-500));
        box-shadow: var(--shadow-md);
    }

    .nav-menu.is-open {
        display: flex;
    }

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

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

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

    .two-column-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

    .full-rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner,
    .search-entrance,
    .page-shell,
    .content-section,
    .footer-inner {
        width: min(100% - 28px, 1280px);
        padding-left: 0;
        padding-right: 0;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-stage {
        height: 560px;
    }

    .hero-content {
        width: calc(100% - 32px);
    }

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

    .hero-control {
        display: none;
    }

    .search-form {
        border-radius: 22px;
    }

    .search-form input,
    .search-form button {
        width: 100%;
    }

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

    .category-card,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .category-card-cover {
        height: 260px;
    }

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

    .rank-row {
        grid-template-columns: auto 50px 1fr;
    }

    .rank-score {
        display: none;
    }
}

@media (max-width: 520px) {
    .card-grid,
    .category-grid,
    .category-card-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .small-hero,
    .detail-hero,
    .detail-article,
    .detail-side,
    .article-section {
        padding: 22px;
        border-radius: 20px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }
}
