:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-primary: #ea580c;
    --color-primary-dark: #c2410c;
    --color-secondary: #dc2626;
    --color-gold: #facc15;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 35px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --header-height: 76px;
}

* {
    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(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-text);
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.30);
}

.logo-text {
    font-size: 18px;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.nav-dropdown-panel a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-panel a:hover {
    color: var(--color-primary);
    background: #fff7ed;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    border: 0;
    cursor: pointer;
    background: transparent;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 170px;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    display: flex;
    border-radius: 12px;
    white-space: nowrap;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-primary);
}

.hero-section {
    position: relative;
    min-height: 640px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 48%, #7f1d1d 100%);
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.38), transparent 30%),
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.06));
}

.hero-carousel {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 58px;
    padding: 82px 0 102px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

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

.eyebrow {
    color: var(--color-primary);
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

.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: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    color: var(--color-primary-dark);
    background: #fff7ed;
}

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

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

.primary-button {
    color: var(--color-primary);
    background: #fff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-action:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.ghost-button.light {
    color: var(--color-primary);
    background: #fff7ed;
    border-color: #fed7aa;
}

.hero-poster {
    position: relative;
    isolation: isolate;
    display: block;
    border-radius: 34px;
    transform: rotate(2.2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #fb923c, #dc2626);
}

.hero-poster-glow {
    position: absolute;
    inset: 12px -16px -20px 16px;
    z-index: -1;
    border-radius: 34px;
    background: rgba(250, 204, 21, 0.32);
    filter: blur(22px);
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 46px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    cursor: pointer;
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.38) !important;
}

.hero-dot.is-active {
    width: 30px !important;
    border-radius: 999px !important;
    background: #fff !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -46px;
    position: relative;
    z-index: 2;
}

.stat-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.stat-card strong {
    display: block;
    color: var(--color-primary);
    font-size: 34px;
    line-height: 1;
}

.stat-card span {
    color: var(--color-muted);
    font-weight: 650;
}

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

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

.section-heading h2,
.sub-hero h1,
.detail-copy h1,
.player-heading h2,
.info-card h2 {
    margin: 0;
    color: var(--color-text);
    line-height: 1.15;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-action,
.text-button {
    color: var(--color-primary);
    background: #fff7ed;
}

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

.category-tile {
    position: relative;
    display: block;
    min-height: 240px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;
    background: #111827;
    box-shadow: var(--shadow-card);
}

.category-cover {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05)), var(--cover-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

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

.category-content {
    position: absolute;
    inset: auto 18px 18px;
    display: grid;
    gap: 5px;
}

.category-content strong {
    font-size: 22px;
}

.category-content small,
.category-content em {
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c, #dc2626);
}

.poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 54%);
}

.poster-label,
.rank-badge,
.play-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-label {
    top: 12px;
    left: 12px;
    min-height: 28px;
    padding: 0 10px;
    color: #fff;
    background: rgba(234, 88, 12, 0.92);
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-height: 28px;
    padding: 0 10px;
    color: #78350f;
    background: var(--color-gold);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    min-height: 32px;
    padding: 0 12px;
    color: var(--color-primary);
    background: #fff;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 650;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
    color: #cbd5e1;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--color-primary);
}

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

.compact-card .movie-card-body {
    padding: 14px;
}

.compact-card h3 {
    font-size: 15px;
}

.compact-card p {
    min-height: 42px;
    font-size: 13px;
}

.sub-hero {
    padding: 72px 0 36px;
}

.sub-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 6vw, 58px);
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--color-muted);
    font-size: 18px;
}

.category-page-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.category-overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #fb923c, #dc2626);
}

.category-overview-body {
    padding: 28px;
}

.category-overview-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-body p {
    color: var(--color-muted);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.inline-links a {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.filter-panel {
    padding-bottom: 70px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 190px;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.filter-row label {
    display: grid;
    gap: 8px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 750;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    color: var(--color-text);
    background: #f9fafb;
    outline: none;
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.filter-count {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-weight: 700;
}

.ranking-table-section {
    padding-bottom: 36px;
}

.table-wrap {
    overflow: auto;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ranking-table th,
.ranking-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
}

.ranking-table th {
    color: #7c2d12;
    background: #fff7ed;
}

.ranking-table a {
    font-weight: 800;
}

.ranking-table a:hover {
    color: var(--color-primary);
}

.detail-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.90)), var(--detail-cover);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    transform: scale(1.05);
}

.detail-hero-inner {
    position: relative;
    padding: 38px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    object-fit: cover;
    background: linear-gradient(135deg, #fb923c, #dc2626);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
    color: #fff;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -0.04em;
}

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

.player-block {
    padding: 54px 0 30px;
}

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

.source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: #ffedd5;
    font-weight: 800;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: var(--shadow-soft);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.70), rgba(127, 29, 29, 0.66));
    cursor: pointer;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: var(--color-primary);
    background: #fff;
    font-size: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.player-overlay strong {
    font-size: 26px;
}

.player-overlay small {
    max-width: 80%;
    color: rgba(255, 255, 255, 0.82);
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0 30px;
}

.info-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.info-card h2 {
    margin-bottom: 16px;
    font-size: 25px;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-line);
}

.info-card dt {
    color: var(--color-muted);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
}

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

.site-footer {
    margin-top: 30px;
    padding: 44px 0;
    color: rgba(255, 255, 255, 0.76);
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
}

.footer-logo {
    color: #fff;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(234, 88, 12, 0.30);
}

[data-card].is-hidden {
    display: none;
}

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

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

@media (max-width: 860px) {
    :root {
        --header-height: 68px;
    }

    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--color-line);
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow-card);
    }

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

    .nav-dropdown-panel {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 4px 0 0 12px;
    }

    .hero-section,
    .hero-carousel {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 52px 0 110px;
    }

    .hero-poster {
        width: min(320px, 82vw);
        transform: rotate(0deg);
    }

    .stats-grid,
    .category-overview-grid,
    .detail-info-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

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

    .category-page-hero,
    .section-heading,
    .player-heading {
        align-items: start;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .logo-text {
        font-size: 16px;
    }

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

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

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        font-size: 13px;
    }

    .detail-copy h1 {
        font-size: 34px;
    }

    .detail-one-line {
        font-size: 17px;
    }
}
