/* Static movie site styles */
:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --surface: #ffffff;
    --surface-strong: #fff3e6;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --gold: #f59e0b;
    --shadow: 0 20px 55px rgba(124, 45, 18, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.92);
    border-bottom: 1px solid rgba(251, 146, 60, 0.24);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.brand-name {
    font-size: 22px;
    letter-spacing: -0.03em;
}

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

.desktop-nav a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--brand-dark);
}

.header-search {
    width: 300px;
    height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.09);
}

.header-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 14px;
    background: transparent;
}

.header-search button,
.hero-search button,
.search-page-box button,
.filter-box button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.search-page-box button:hover,
.filter-box button:hover,
.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.22);
}

.header-search button {
    height: 100%;
    padding: 0 16px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(124, 45, 18, 0.1);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mobile-panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 800;
}

.mobile-panel a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

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

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(251, 146, 60, 0.22), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.28), transparent 28%),
        linear-gradient(135deg, #fff7ed 0%, #fff 48%, #ffedd5 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    align-items: center;
    gap: 48px;
}

.hero-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.3;
    animation: pulseOrb 6s ease-in-out infinite;
}

.hero-orb-one {
    left: 5%;
    top: 16%;
    background: #fb923c;
}

.hero-orb-two {
    right: 8%;
    bottom: 12%;
    background: #f59e0b;
    animation-delay: 1.5s;
}

@keyframes pulseOrb {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.16);
    }
}

.eyebrow,
.section-head span,
.page-hero span,
.rank-panel-head span,
.player-head span {
    display: inline-flex;
    align-items: center;
    color: var(--brand-dark);
    background: rgba(255, 237, 213, 0.76);
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 720px;
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 19px;
}

.hero-search,
.search-page-box {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-search input,
.search-page-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 14px;
    background: transparent;
}

.hero-search button,
.search-page-box button {
    border-radius: 999px;
    padding: 12px 20px;
}

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

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

.primary-action,
.card-link {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.secondary-action,
.hero-mini-link {
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid var(--line);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stats span {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 16px;
}

.hero-stats strong {
    color: var(--brand-dark);
    font-size: 22px;
}

.hero-visual {
    position: relative;
}

.hero-slider-window {
    position: relative;
    min-height: 560px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(124, 45, 18, 0.22);
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fb923c, #7c2d12);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.8));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    color: #ffffff;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.hero-slide h2 {
    margin: 12px 0 8px;
    font-size: 34px;
    line-height: 1.16;
}

.hero-slide p {
    color: rgba(255, 255, 255, 0.86);
}

.hero-slide a {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 16px;
    color: var(--brand-dark);
    background: #ffffff;
    border-radius: 999px;
    font-weight: 900;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fdba74;
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 32px;
    background: var(--brand);
}

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

.section-white,
.section-soft {
    width: 100%;
    padding-left: max(16px, calc((100% - 1220px) / 2));
    padding-right: max(16px, calc((100% - 1220px) / 2));
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
}

.section-head {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-head.align-left {
    margin-left: 0;
    text-align: left;
}

.section-head h2,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

.category-card,
.overview-card,
.side-card,
.content-card,
.player-card,
.rank-panel,
.movie-card,
.ranking-card {
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(124, 45, 18, 0.08);
}

.category-card,
.overview-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-count,
.overview-topline {
    color: var(--brand-dark);
    font-weight: 900;
}

.category-card h3,
.overview-card h2 {
    margin: 12px 0 8px;
    font-size: 22px;
}

.category-card p,
.overview-card p,
.movie-card p,
.ranking-info p,
.content-card p {
    color: var(--muted);
}

.category-card small {
    display: block;
    color: #9a3412;
}

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

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-poster,
.ranking-cover,
.detail-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c, #7c2d12);
}

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

.movie-card:hover .movie-poster img,
.ranking-card:hover .ranking-cover img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.74);
    border-radius: 999px;
    font-weight: 900;
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.ranking-info h2 a:hover,
.overview-samples a:hover,
.side-links a:hover {
    color: var(--brand-dark);
}

.movie-card .tag-list span,
.detail-tags span {
    color: #9a3412;
    background: var(--brand-soft);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-panel-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.rank-panel-head h2 {
    width: 100%;
    margin: 0;
    font-size: 28px;
}

.rank-panel-head a {
    color: var(--brand-dark);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
}

.rank-num,
.ranking-number {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 12px;
    text-align: center;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.rank-score {
    color: var(--brand-dark);
    font-weight: 900;
}

.page-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 58px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 146, 60, 0.22), transparent 32%),
        linear-gradient(135deg, #fff7ed, #ffffff 46%, #ffedd5);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.filter-box,
.search-page-box {
    width: min(960px, 100%);
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, 160px) 110px;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
}

.compact-filter {
    grid-template-columns: minmax(240px, 1fr) 110px;
}

.filter-search input,
.filter-box select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 0 12px;
    background: #fffaf4;
}

.filter-box button {
    min-height: 46px;
    border-radius: 14px;
}

.filter-count {
    margin: 0 0 22px;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.search-page-box {
    grid-template-columns: minmax(240px, 1fr) 120px;
}

.overview-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.overview-samples {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.overview-samples a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #4b5563;
    font-weight: 700;
}

.ranking-list-page {
    display: grid;
    gap: 16px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-number {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 8px 10px;
}

.ranking-info {
    padding: 20px;
}

.ranking-info h2 {
    margin: 8px 0;
}

.ranking-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--brand-dark);
    font-weight: 900;
}

.breadcrumb {
    width: min(1220px, calc(100% - 32px));
    margin: 26px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-hero,
.detail-layout {
    width: min(1220px, calc(100% - 32px));
    margin: 22px auto;
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 20% 15%, rgba(251, 146, 60, 0.26), transparent 26%),
        linear-gradient(135deg, #fff7ed, #ffffff 52%, #ffedd5);
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.detail-poster {
    border-radius: 26px;
    box-shadow: 0 20px 40px rgba(124, 45, 18, 0.18);
}

.detail-copy p {
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 20px;
}

.player-card,
.content-card,
.side-card {
    padding: 22px;
}

.player-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.player-head h2,
.content-card h2,
.side-card h2 {
    margin: 8px 0 0;
}

.player-head a {
    color: var(--brand-dark);
    font-weight: 900;
}

.video-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: 22px;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.35), rgba(15, 23, 42, 0.74));
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.play-cover.is-hidden {
    display: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.34);
    font-size: 30px;
}

.player-status {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.content-card p {
    font-size: 17px;
}

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

.side-card dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    margin: 16px 0 0;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 800;
}

.side-links {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.side-links a {
    padding: 12px;
    border-radius: 14px;
    background: #fff7ed;
    font-weight: 800;
}

.related-section {
    margin-top: 28px;
}

[data-cover-image].is-missing {
    display: none;
}

.is-hidden-card {
    display: none !important;
}

.site-footer {
    margin-top: 48px;
    padding: 44px 0;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #1f2937);
}

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

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h3 {
    color: #ffffff;
    margin-top: 0;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

    .hero-inner,
    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 56px 0;
    }

    .hero-visual {
        max-width: 620px;
    }

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-slider-window {
        min-height: 460px;
    }

    .page-hero,
    .detail-hero {
        padding: 28px;
        grid-template-columns: 1fr;
    }

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

    .category-grid,
    .overview-grid,
    .movie-grid,
    .compact-grid,
    .all-movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 20px, 1220px);
    }

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

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-search,
    .search-page-box {
        border-radius: 22px;
        flex-direction: column;
    }

    .hero-search input,
    .search-page-box input {
        min-height: 44px;
    }

    .hero-slider-window {
        min-height: 420px;
    }

    .movie-grid,
    .compact-grid,
    .all-movie-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .ranking-info {
        padding: 14px;
    }

    .detail-hero {
        margin-top: 16px;
    }

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