:root {
    color-scheme: light;
    --bg: #fff7ed;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fed7aa;
    --line: rgba(251, 146, 60, 0.24);
    --orange: #f97316;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --shadow: 0 24px 70px rgba(124, 45, 18, 0.14);
    --radius: 28px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 5%, rgba(251, 146, 60, 0.20), transparent 28rem),
        radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.18), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 38%, #fff7ed 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 34px rgba(154, 52, 18, 0.06);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.35);
}

.brand-text {
    font-size: 1.28rem;
    background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
    -webkit-background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-nav-link {
    color: #4b5563;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ea580c;
    background: #ffedd5;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid var(--line);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #7c2d12;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.mobile-nav-link {
    padding: 12px 16px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.66) 45%, rgba(17, 24, 39, 0.22) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    z-index: -2;
}

.hero-backdrop::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(249, 115, 22, 0.42), transparent 24rem),
        radial-gradient(circle at 75% 20%, rgba(244, 63, 94, 0.28), transparent 28rem),
        linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.75));
    z-index: -1;
}

.hero-content {
    width: min(1200px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 58px;
    align-items: center;
    padding: 80px 0 88px;
}

.hero-copy {
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.hero h1,
.detail-copy h1,
.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 720px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.06rem;
    line-height: 1.9;
}

.hero-tags,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 0.86rem;
    font-weight: 700;
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.32);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.ghost-btn.dark {
    color: #9a3412;
    background: #fff7ed;
    border-color: var(--line);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(124, 45, 18, 0.20);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 14px -18px -18px 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(244, 63, 94, 0.32));
    border-radius: 34px;
    z-index: -1;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #fdba74, #fb7185);
}

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

.hero-dot {
    width: 32px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 54px;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.search-band {
    position: relative;
    z-index: 5;
    margin-top: -44px;
}

.search-band-inner,
.warm-panel,
.catalog-entry {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(18px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 26px;
}

.search-band h2 {
    margin-top: 8px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.home-search,
.filter-search {
    display: flex;
    gap: 12px;
}

.home-search input,
.filter-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #7c2d12;
    background: #fff7ed;
    outline: none;
}

.home-search input:focus,
.filter-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.home-search button,
.filter-buttons button {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.content-section {
    width: min(1200px, calc(100% - 32px));
    margin: 72px auto;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-heading > span {
    width: 7px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--orange), var(--rose), var(--amber));
}

.section-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin-top: 6px;
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(154, 52, 18, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.48);
    box-shadow: 0 24px 58px rgba(154, 52, 18, 0.16);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 38%),
        linear-gradient(135deg, #fdba74, #fb7185 55%, #f59e0b);
}

.poster-frame img,
.rank-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-frame img.is-missing,
.rank-cover img.is-missing,
.detail-poster img.is-missing,
.hero-poster img.is-missing {
    display: none;
}

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 10px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.56);
    backdrop-filter: blur(12px);
}

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

.movie-card h3 {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin-top: 12px;
    color: #ea580c;
    font-size: 0.82rem;
    font-weight: 800;
}

.warm-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.22), transparent 24rem),
        linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.92));
}

.panel-copy h2 {
    margin-top: 14px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.panel-copy p {
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.9;
}

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

.category-mini-grid a,
.category-tile,
.catalog-entry {
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
}

.category-mini-grid strong,
.category-tile strong {
    display: block;
    color: #9a3412;
    font-size: 1.2rem;
    font-weight: 950;
}

.category-mini-grid span,
.category-tile span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 64px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    border-color: rgba(249, 115, 22, 0.48);
}

.rank-number {
    color: #f97316;
    font-size: 1.6rem;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    overflow: hidden;
    width: 64px;
    height: 86px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fdba74, #fb7185);
}

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

.rank-info strong {
    color: #111827;
    font-size: 1.04rem;
    font-weight: 900;
}

.rank-info em {
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
}

.rank-arrow {
    color: #ea580c;
    font-weight: 900;
}

.section-action,
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.page-main {
    padding-bottom: 12px;
}

.page-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 38px auto 0;
    padding: clamp(34px, 7vw, 72px);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.72), transparent 28rem),
        radial-gradient(circle at 85% 0%, rgba(244, 63, 94, 0.58), transparent 28rem),
        linear-gradient(135deg, #111827, #7c2d12 70%, #9a3412);
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 780px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
}

.small-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.filter-toolbar {
    width: min(1200px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    min-height: 44px;
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid var(--line);
}

.filter-buttons button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 18px;
    border-radius: 999px;
    color: #9a3412;
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(154, 52, 18, 0.08);
}

.pill-link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.empty-state {
    margin-top: 32px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
}

.detail-main {
    padding-bottom: 40px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
}

.detail-content {
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 54px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    background: linear-gradient(135deg, #fdba74, #fb7185);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.detail-one-line {
    max-width: 740px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.85;
}

.player-section {
    width: min(1100px, calc(100% - 32px));
    margin: -70px auto 0;
    position: relative;
    z-index: 8;
}

.compact-heading {
    padding: 22px 0 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.player-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.26), transparent 20rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.72));
    pointer-events: auto;
}

.player-trigger.is-hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 22px 52px rgba(244, 63, 94, 0.34);
    font-size: 2rem;
}

.player-trigger strong {
    font-size: 1.15rem;
}

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

.detail-text article,
.text-page article {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-text h2,
.text-page h2 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.detail-text p,
.text-page p {
    margin-top: 14px;
    color: #4b5563;
    line-height: 2;
}

.text-page article {
    max-width: 880px;
    margin: 0 auto;
}

.site-footer {
    margin-top: 88px;
    color: #e5e7eb;
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.24), transparent 28rem),
        linear-gradient(135deg, #111827, #3b0f16 55%, #7c2d12);
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
}

.site-footer h2 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 1.05rem;
    font-weight: 900;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.95rem;
}

.site-footer a {
    display: block;
    margin-top: 8px;
}

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

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    display: inline-flex;
    margin-top: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

    .hero-content,
    .detail-content,
    .warm-panel,
    .search-band-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 320px;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .hero,
    .hero-slider,
    .hero-content,
    .detail-hero,
    .detail-content {
        min-height: auto;
    }

    .hero-content,
    .detail-content {
        padding: 64px 0 96px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 230px;
    }

    .hero-summary,
    .detail-one-line {
        font-size: 0.96rem;
    }

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

    .filter-toolbar,
    .detail-text,
    .rank-row,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .rank-row {
        align-items: start;
    }

    .rank-arrow {
        display: none;
    }

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

    .detail-content {
        gap: 28px;
    }

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

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