:root {
    --accent: #f97316;
    --accent-deep: #ef4444;
    --accent-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --paper: #ffffff;
    --line: #e5e7eb;
    --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.25);
}

.header-inner {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #f97316;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
}

.nav-link {
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 16px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

main {
    min-height: 70vh;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #ffffff;
    background: #111827;
}

.hero-track {
    position: relative;
    min-height: 680px;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: saturate(1.15) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(249, 115, 22, 0.32), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.20) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 126px 24px 220px;
    margin: 0 auto;
    transform: translateX(-230px);
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.03;
    font-weight: 950;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.card-tags,
.meta-line,
.tag-cloud,
.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.card-tags span,
.meta-line span,
.tag-cloud a,
.inline-links a {
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

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

.primary-btn,
.secondary-btn,
.cta-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 26px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.cta-band a {
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

.secondary-btn {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.secondary-btn:hover,
.cta-band a:hover {
    transform: translateY(-2px);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 118px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dot.is-active {
    width: 34px;
    opacity: 1;
    background: #ffffff;
}

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    width: min(780px, calc(100% - 36px));
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 12px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    color: #ea580c;
    font-weight: 900;
    background: #ffffff;
}

.hero-mini-list {
    position: absolute;
    z-index: 4;
    right: max(24px, calc((100vw - 1240px) / 2 + 22px));
    top: 132px;
    width: 260px;
    display: grid;
    gap: 14px;
}

.hero-mini-list a {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
}

.hero-mini-list img {
    height: 56px;
    border-radius: 13px;
}

.hero-mini-list span {
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stats-band,
.content-section,
.category-strip,
.ranking-section,
.library-panel,
.category-overview,
.rank-layout,
.detail-wrap {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    transform: translateY(-38px);
    position: relative;
    z-index: 7;
}

.stats-band a {
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.stats-band strong {
    display: block;
    font-size: 30px;
    color: #f97316;
}

.stats-band span {
    color: var(--muted);
    font-weight: 700;
}

.content-section,
.category-strip,
.ranking-section,
.category-overview,
.library-panel {
    padding: 42px 0;
}

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

.section-head.centered {
    display: block;
    text-align: center;
    max-width: 760px;
}

.section-head h2,
.detail-content h1,
.page-hero h1 {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    font-weight: 950;
}

.section-head p,
.page-hero p {
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: #f97316;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.poster-wrap img {
    transition: transform 0.45s ease;
}

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

.card-badge,
.card-year,
.rank-num {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 10px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    left: 12px;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.card-year {
    right: 12px;
    background: rgba(17, 24, 39, 0.72);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #f97316;
    font-size: 34px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.34);
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-tags span {
    color: #ea580c;
    background: #ffedd5;
    font-size: 12px;
    padding: 5px 8px;
}

.category-chips,
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-chips a,
.filter-buttons button {
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ea580c;
    background: #fff7ed;
    font-weight: 900;
}

.filter-buttons button.is-active,
.category-chips a:hover {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.tone-blue {
    width: 100%;
    max-width: none;
    padding: 56px max(22px, calc((100% - 1240px) / 2));
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.tone-green {
    width: 100%;
    max-width: none;
    padding: 56px max(22px, calc((100% - 1240px) / 2));
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

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

.small-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.small-poster {
    position: relative;
    height: 82px;
    overflow: hidden;
    border-radius: 14px;
}

.rank-num {
    top: 8px;
    left: 8px;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.small-card h3,
.small-card h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-card p {
    margin: 0 0 6px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-card span {
    color: #f97316;
    font-size: 12px;
    font-weight: 800;
}

.cta-band,
.page-hero {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
}

.cta-band {
    margin-top: 42px;
    padding: 70px 22px;
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 950;
}

.cta-band p {
    margin: 0 auto 24px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
}

.page-hero {
    width: min(1240px, calc(100% - 44px));
    margin: 34px auto 0;
    padding: 62px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.9);
}

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

.category-card {
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
    color: #f97316;
    font-size: 20px;
    font-weight: 950;
}

.category-card p {
    color: var(--muted);
    line-height: 1.75;
}

.filter-bar {
    display: grid;
    gap: 18px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.search-box span {
    color: var(--muted);
    font-size: 24px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 16px 0;
}

.empty-state {
    padding: 58px;
    text-align: center;
    color: var(--muted);
    font-size: 18px;
}

.inline-links {
    margin-top: 22px;
}

.inline-links a {
    color: #ffffff;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    padding: 42px 0;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 112px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
    font-weight: 950;
}

.rank-row img {
    height: 78px;
    border-radius: 15px;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 950;
}

.rank-row p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.55;
}

.rank-row div span {
    color: #f97316;
    font-weight: 800;
}

.rank-sidebar,
.side-card {
    align-self: start;
    position: sticky;
    top: 88px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-chips.vertical {
    display: grid;
    justify-content: stretch;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb a {
    color: #f97316;
}

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

.player-card,
.detail-content,
.related-section {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
}

.player-overlay[hidden] {
    display: none;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #f97316;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 24px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.detail-content,
.related-section {
    padding: 28px;
}

.detail-content h1 {
    margin-top: 0;
}

.meta-line {
    margin: 16px 0 20px;
}

.meta-line span {
    color: #4b5563;
    background: #f3f4f6;
}

.one-line {
    margin: 0 0 24px;
    padding: 18px;
    border-left: 5px solid #f97316;
    border-radius: 16px;
    color: #7c2d12;
    background: #fff7ed;
    font-weight: 800;
    line-height: 1.8;
}

.detail-block {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

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

.detail-block p {
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.accent-block {
    margin-top: 22px;
    padding: 22px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed, #ffe4e6);
}

.tag-cloud {
    margin-top: 24px;
}

.tag-cloud a {
    color: #ea580c;
    background: #ffedd5;
}

.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.cover-card img {
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    margin-bottom: 18px;
}

.cover-card h2 {
    margin: 0 0 10px;
}

.cover-card p {
    color: var(--muted);
    line-height: 1.75;
}

.cover-card > a {
    display: inline-flex;
    margin-top: 12px;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
    font-weight: 900;
}

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

.side-list .small-card {
    grid-template-columns: 88px 1fr;
    padding: 0;
    box-shadow: none;
}

.side-list .small-poster {
    height: 66px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 50px 22px 24px;
}

.footer-grid {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    margin-bottom: 12px;
}

.site-footer p {
    line-height: 1.8;
}

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

.footer-links {
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    width: min(1240px, 100%);
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

@media (max-width: 1100px) {
    .hero-content {
        transform: none;
        margin-left: 0;
    }

    .hero-mini-list {
        display: none;
    }

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

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

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

    .rank-sidebar,
    .side-card {
        position: static;
    }
}

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

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

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

    .hero-slider,
    .hero-track {
        min-height: 640px;
    }

    .hero-content {
        padding: 92px 20px 230px;
    }

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

    .hero-search {
        display: grid;
        border-radius: 22px;
    }

    .stats-band {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .section-head {
        display: block;
    }

    .page-hero {
        padding: 34px 24px;
    }

    .rank-row {
        grid-template-columns: 42px 82px 1fr;
        gap: 12px;
    }

    .rank-row img {
        height: 66px;
    }

    .small-card {
        grid-template-columns: 92px 1fr;
    }

    .small-poster {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .stats-band,
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

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

    .detail-content,
    .related-section {
        padding: 20px;
    }
}
