:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --orange-soft: #fff7ed;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

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

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 8px 22px rgba(234, 88, 12, 0.36);
}

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

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

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fb923c;
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input {
    border: 0;
    outline: 0;
    color: inherit;
}

.header-search input {
    width: 230px;
    padding: 10px 12px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    color: #ffffff;
    background: var(--orange);
    padding: 10px 16px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    width: 42px;
    height: 42px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px 18px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-search {
    display: flex;
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.34);
}

.mobile-search input {
    width: 100%;
    padding: 12px;
    color: #ffffff;
    background: transparent;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(234, 88, 12, 0.28), transparent 32%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(135deg, #1e293b 0%, #334155 48%, #0f172a 100%);
    padding: 72px 0 86px;
}

.hero-frame {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fb923c;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.hero h1 {
    margin: 0 0 12px;
    max-width: 740px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 0 0 16px;
    color: #fb923c;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.15;
}

.hero p {
    max-width: 660px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: 18px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #9a3412;
    background: var(--orange-soft);
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags .tag {
    color: #fed7aa;
    background: rgba(234, 88, 12, 0.22);
    border-color: rgba(251, 146, 60, 0.34);
}

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

.primary-button,
.ghost-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 20px;
    min-height: 46px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.primary-button:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.outline-button {
    color: var(--orange);
    background: #ffffff;
    border: 1px solid #fed7aa;
}

.outline-button:hover {
    color: #ffffff;
    background: var(--orange);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 520px;
    margin-top: 34px;
}

.hero-stats span {
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.hero-stats strong {
    display: block;
    color: #fb923c;
    font-size: 28px;
    line-height: 1.1;
}

.hero-stats em {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-style: normal;
    font-size: 13px;
}

.hero-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 26px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.hero-media:hover img {
    transform: scale(1.09);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.72));
}

.hero-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 14px 36px rgba(234, 88, 12, 0.44);
    font-size: 28px;
}

.hero-card-title {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 22px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: -42px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 44px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
    background: #fb923c;
}

.content-section {
    padding: 72px 0;
    background: #ffffff;
}

.soft-bg {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

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

.section-head h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.15;
}

.section-head p {
    margin: 10px 0 0;
    max-width: 680px;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    color: var(--orange);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f172a;
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 18px;
}

.card-body h2,
.rank-info h2 {
    margin: 0 0 8px;
    color: var(--slate-800);
    font-size: 19px;
    line-height: 1.32;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.category-overview a:hover {
    color: var(--orange);
}

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

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.card-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #f1f5f9;
}

.card-body .tag-row {
    margin-top: 14px;
}

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

.category-tile,
.category-overview {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon,
.category-cover span {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    background: var(--orange);
}

.category-tile h2,
.category-overview h2 {
    margin: 0 0 10px;
    color: var(--slate-800);
    font-size: 22px;
}

.category-tile p,
.category-overview p {
    margin: 0 0 16px;
    color: var(--muted);
}

.category-tile strong {
    color: var(--orange);
}

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

.category-overview {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    min-height: 0;
}

.category-overview ul {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.category-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #fff7ed;
}

.category-cover span {
    margin: 0;
}

.blue .category-icon,
.blue .category-cover span {
    background: #2563eb;
}

.red .category-icon,
.red .category-cover span {
    background: #dc2626;
}

.pink .category-icon,
.pink .category-cover span {
    background: #db2777;
}

.purple .category-icon,
.purple .category-cover span {
    background: #9333ea;
}

.green .category-icon,
.green .category-cover span {
    background: #16a34a;
}

.slate .category-icon,
.slate .category-cover span {
    background: #475569;
}

.amber .category-icon,
.amber .category-cover span {
    background: #d97706;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 160px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #0f172a;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 16%, rgba(234, 88, 12, 0.22), transparent 34%),
        linear-gradient(135deg, var(--slate-800), var(--slate-700), var(--slate-900));
    padding: 64px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.category-hero.orange,
.category-hero.amber {
    background: linear-gradient(135deg, #7c2d12, #c2410c, #0f172a);
}

.category-hero.blue {
    background: linear-gradient(135deg, #172554, #1d4ed8, #0f172a);
}

.category-hero.red {
    background: linear-gradient(135deg, #450a0a, #b91c1c, #0f172a);
}

.category-hero.pink {
    background: linear-gradient(135deg, #500724, #be185d, #0f172a);
}

.category-hero.purple {
    background: linear-gradient(135deg, #3b0764, #7e22ce, #0f172a);
}

.category-hero.green {
    background: linear-gradient(135deg, #052e16, #15803d, #0f172a);
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel.slim {
    justify-content: flex-start;
}

.filter-panel label {
    flex: 1;
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 800;
}

.filter-panel input,
.big-search input {
    width: 100%;
    border-radius: 14px;
    padding: 13px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-filters button {
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 9px 13px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
}

.quick-filters button:hover,
.quick-filters button.is-active {
    color: #ffffff;
    background: var(--orange);
}

.big-search {
    display: flex;
    max-width: 680px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.big-search input {
    border-radius: 0;
}

.no-results {
    margin: 24px 0 0;
    padding: 18px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--border);
    text-align: center;
}

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

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background: #0f172a;
    border: 4px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 760px;
    margin: 0 0 22px;
    color: #d1d5db;
    font-size: 18px;
}

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

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

.detail-copy .primary-button {
    margin-top: 26px;
}

.player-section {
    padding: 68px 0 40px;
    background: #020617;
    color: #ffffff;
}

.player-section h2 {
    margin: 0 0 22px;
    font-size: clamp(26px, 3vw, 36px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(234, 88, 12, 0.34), rgba(0, 0, 0, 0.5));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 14px 36px rgba(234, 88, 12, 0.46);
    font-size: 34px;
}

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

.detail-content {
    background: #ffffff;
}

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

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

.detail-text-grid h2 {
    margin: 0 0 14px;
    color: var(--slate-800);
    font-size: 26px;
}

.detail-text-grid p {
    margin: 0;
    color: #475569;
}

.movie-card.compact .card-desc {
    min-height: 0;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 36px;
    padding: 54px 0;
}

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

.site-footer p {
    margin: 12px 0 0;
    color: #94a3b8;
}

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

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

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    text-align: center;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-slider {
        min-height: 780px;
    }

    .hero-slide,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-media {
        max-width: 720px;
    }

    .movie-grid.three-col,
    .movie-grid.four-col,
    .category-grid,
    .category-overview-grid,
    .detail-text-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .hero {
        padding: 46px 0 70px;
    }

    .hero-slider {
        min-height: 860px;
    }

    .hero-slide {
        gap: 30px;
    }

    .hero-stats,
    .movie-grid.three-col,
    .movie-grid.four-col,
    .category-grid,
    .category-overview-grid,
    .detail-text-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-controls {
        bottom: -32px;
    }

    .section-head,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 44px 92px minmax(0, 1fr);
    }

    .rank-row .outline-button {
        grid-column: 2 / -1;
    }

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

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

    .big-search {
        flex-direction: column;
    }

    .big-search button {
        min-height: 46px;
    }
}
