:root {
    color-scheme: light;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --blue: #3b82f6;
    --teal: #14b8a6;
    --green: #22c55e;
    --red: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 55px rgba(15, 23, 42, 0.18);
    --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", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 30%, #fffbeb 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
    font-size: 14px;
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link {
    font-weight: 650;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--orange);
}

.header-search {
    width: 300px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: var(--white);
}

.header-search input,
.mobile-search input,
.page-search input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--gray-800);
}

.header-search input {
    padding: 8px 6px 8px 14px;
}

.header-search button,
.mobile-search button,
.page-search button {
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange);
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search button:hover,
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--gray-700);
    font-size: 28px;
    margin-left: auto;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

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

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

.mobile-nav {
    display: grid;
    gap: 4px;
    padding: 14px 0;
}

.mobile-nav-link {
    padding: 10px 0;
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-nav-link.is-active {
    color: var(--orange);
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
}

.mobile-search input,
.page-search input,
.filter-input {
    min-height: 44px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 0 16px;
    background: var(--white);
}

.hero-section {
    padding: 32px 0 18px;
}

.hero-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow-lg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 1.1s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 64px);
    right: clamp(24px, 8vw, 96px);
    bottom: clamp(34px, 8vw, 72px);
    max-width: 760px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-content h1,
.page-hero h1,
.ranking-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.hero-content p,
.page-hero p,
.ranking-hero p {
    max-width: 760px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
}

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

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

.btn-primary {
    color: var(--white);
    background: var(--orange);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.btn-primary.full {
    width: 100%;
}

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

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.38);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    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-dot.is-active {
    width: 28px;
    background: var(--white);
}

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

.compact-top {
    padding-top: 22px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 820;
    color: var(--gray-800);
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--gray-600);
}

.section-more {
    color: var(--orange);
    font-weight: 750;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
}

.card-grid-item {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

.card-grid-item:hover .poster-link img,
.category-card-cover:hover img,
.compact-card:hover img,
.ranking-feature:hover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--white);
    background: rgba(249, 115, 22, 0.92);
    font-size: 12px;
    font-weight: 750;
}

.card-body {
    padding: 14px;
}

.card-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gray-800);
    font-weight: 760;
    transition: color 0.2s ease;
}

.card-title:hover,
.compact-card:hover strong,
.ranking-row:hover strong,
.category-card-large a:hover {
    color: var(--orange);
}

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

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--orange-dark);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 650;
}

.card-meta {
    justify-content: space-between;
    margin-top: 12px;
    color: var(--gray-500);
    font-size: 13px;
}

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

.category-tile {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile strong {
    color: var(--gray-800);
    font-size: 20px;
}

.category-tile p {
    color: var(--gray-600);
    font-size: 14px;
}

.category-tile small {
    display: grid;
    gap: 5px;
    color: var(--orange-dark);
    font-size: 12px;
}

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

.rank-card,
.ranking-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
    padding: 10px;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover,
.ranking-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.rank-card img,
.ranking-row img {
    width: 72px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-main,
.ranking-info {
    display: grid;
    min-width: 0;
}

.rank-main strong,
.ranking-info strong {
    overflow: hidden;
    color: var(--gray-800);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main em,
.ranking-info em {
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta,
.ranking-tags {
    color: var(--gray-500);
    font-size: 13px;
    white-space: nowrap;
}

.page-hero,
.ranking-hero {
    padding: 54px 0;
    color: var(--white);
}

.orange-hero {
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.blue-hero {
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.74);
}

.breadcrumb.light a:hover {
    color: var(--white);
}

.page-hero .breadcrumb {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

.page-hero h1,
.ranking-hero h1 {
    margin-bottom: 12px;
}

.filter-box {
    width: min(560px, 100%);
    margin-top: 26px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.category-card-cover {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: #111827;
}

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

.category-card-cover span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--white);
    background: var(--orange);
    font-weight: 750;
}

.category-card-large > div {
    padding: 22px;
}

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card-large p {
    margin: 0 0 14px;
    color: var(--gray-600);
}

.category-card-large ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-card-large li a {
    color: var(--gray-700);
}

.ranking-hero {
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.65), transparent 30%), linear-gradient(135deg, #111827, #1f2937 58%, #431407);
}

.ranking-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 42px;
    align-items: center;
}

.ranking-feature {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.ranking-feature img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ranking-feature strong,
.ranking-feature span {
    display: block;
    padding: 0 20px;
}

.ranking-feature strong {
    padding-top: 18px;
    color: var(--white);
    font-size: 24px;
}

.ranking-feature span {
    padding-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
}

.ranking-row {
    grid-template-columns: 48px 78px 1fr auto;
}

.ranking-index {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 800;
}

.page-search {
    width: min(680px, 100%);
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

.page-search input {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.96);
}

.search-status {
    margin-bottom: 22px;
    color: var(--gray-600);
    font-weight: 700;
}

.detail-wrap {
    padding: 28px 0 48px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
    font-size: 30px;
    padding-left: 5px;
}

.video-player.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
}

.detail-card {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 34px);
}

.detail-card h1 {
    margin: 0 0 14px;
    color: var(--gray-800);
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.14;
}

.detail-card .detail-meta {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-card .detail-meta span {
    color: var(--gray-600);
    background: var(--gray-100);
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--gray-800);
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 16px;
    color: var(--gray-600);
}

.lead-text {
    color: var(--gray-700) !important;
    font-size: 18px;
    font-weight: 650;
}

.review-box {
    margin-top: 24px;
    border-radius: 18px;
    padding: 22px;
    background: var(--gray-50);
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 18px;
}

.poster-side img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 92px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.compact-card span {
    display: grid;
    min-width: 0;
}

.compact-card strong {
    overflow: hidden;
    color: var(--gray-800);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 38px;
    border-top: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding: 38px 0;
}

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

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--gray-600);
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: var(--gray-800);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 16px;
    color: var(--gray-500);
    text-align: center;
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        height: 430px;
    }

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

    .category-list-grid,
    .ranking-hero-inner,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

    .category-card-large {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero-section {
        padding-top: 18px;
    }

    .hero-carousel {
        height: 390px;
        border-radius: 22px;
    }

    .hero-control {
        display: none;
    }

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

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

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

    .poster-link {
        height: 178px;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-card,
    .ranking-row {
        grid-template-columns: 64px 1fr;
    }

    .ranking-index,
    .rank-meta,
    .ranking-tags {
        display: none;
    }

    .ranking-row img {
        width: 64px;
        height: 50px;
    }

    .poster-side img {
        height: 300px;
    }
}
