:root {
    --page-bg: #fff7ed;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --line-soft: #fed7aa;
    --orange: #f97316;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.16), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

main {
    min-height: 60vh;
}

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

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.brand-text strong,
.footer-brand {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ea580c, #e11d48);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
    transition: all 0.22s ease;
}

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-panel input {
    border: 1px solid #fdba74;
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 15px;
    color: #111827;
    outline: none;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    padding: 10px 16px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.24);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #ea580c;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid #ffedd5;
}

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

.mobile-search {
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
}

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

.page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 20px;
}

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

.section-kicker {
    color: #ea580c;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 850;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 720px;
    line-height: 1.8;
}

.section-link {
    color: #ea580c;
    font-weight: 780;
    white-space: nowrap;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    filter: saturate(1.05) contrast(1.06);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.74) 45%, rgba(17, 24, 39, 0.26) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.90) 0%, rgba(17, 24, 39, 0.05) 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 640px;
    padding: 96px 20px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
    gap: 42px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 900;
    max-width: 760px;
}

.hero-text p {
    margin-top: 22px;
    max-width: 690px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 12px;
    backdrop-filter: blur(8px);
}

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

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

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

.btn-light {
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

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

.btn-primary:hover,
.btn-ghost:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

.hero-poster-card {
    position: relative;
    border-radius: 28px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    object-fit: cover;
    background: linear-gradient(135deg, #fb923c, #fb7185);
}

.hero-poster-label {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(12px);
}

.hero-poster-label strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 8;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

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

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: -32px;
    position: relative;
    z-index: 10;
}

.quick-cats a,
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    color: #9a3412;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: var(--shadow-card);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-cats a:hover,
.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(253, 186, 116, 0.45);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fb923c;
    box-shadow: var(--shadow-soft);
}

.movie-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecdd3);
    aspect-ratio: 2 / 3;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.image-hidden {
    opacity: 0;
}

.play-corner,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.28);
}

.play-corner {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 42px;
    height: 34px;
    border-radius: 999px;
    padding: 0 10px;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #ea580c;
}

.movie-meta {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    margin-top: 10px;
    min-height: 46px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.movie-tags span,
.detail-tags span {
    color: #9a3412;
    background: #ffedd5;
    padding: 5px 9px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
}

.movie-card-horizontal .movie-thumb {
    aspect-ratio: 2 / 3;
    height: 100%;
}

.movie-card-horizontal .movie-title {
    min-height: auto;
}

.band {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(253, 186, 116, 0.28);
    border-bottom: 1px solid rgba(253, 186, 116, 0.28);
}

.gradient-band {
    background: linear-gradient(135deg, #fff7ed, #ffe4e6);
}

.cta-band {
    margin: 40px auto 0;
    max-width: 1200px;
    border-radius: 28px;
    padding: 52px 24px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: var(--shadow-soft);
}

.cta-band h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.filter-bar,
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #fed7aa;
    box-shadow: var(--shadow-card);
}

.filter-bar input {
    flex: 1 1 280px;
}

.filter-bar select {
    min-width: 160px;
}

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

.category-card {
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid #fed7aa;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 23px;
    font-weight: 900;
}

.category-card span {
    color: #6b7280;
    line-height: 1.7;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 76px 110px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(253, 186, 116, 0.42);
    box-shadow: var(--shadow-card);
}

.rank-num {
    color: #ea580c;
    font-size: 26px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-content h2 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
}

.rank-content p {
    color: #6b7280;
    line-height: 1.7;
}

.detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 54px;
}

.breadcrumb {
    display: inline-flex;
    margin-bottom: 20px;
    color: #6b7280;
    font-weight: 700;
}

.breadcrumb:hover {
    color: #ea580c;
}

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

.detail-main,
.detail-side,
.detail-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(253, 186, 116, 0.42);
    box-shadow: var(--shadow-card);
}

.detail-card {
    padding: 26px;
    margin-top: 22px;
}

.detail-card h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.detail-meta span,
.detail-meta a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.detail-copy {
    border-top: 1px solid #fed7aa;
    padding-top: 22px;
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 900;
}

.detail-copy p {
    color: #4b5563;
    line-height: 1.95;
    margin-bottom: 16px;
}

.review-box {
    padding: 20px;
    border-radius: 18px;
    color: #431407;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

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

.player-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.08), rgba(2, 6, 23, 0.74)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18));
}

.player-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 22px 50px rgba(244, 63, 94, 0.38);
}

.player-layer-title {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    text-align: left;
    font-size: 24px;
    font-weight: 900;
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 20px;
}

.detail-side h2 {
    margin-bottom: 16px;
    font-size: 23px;
    font-weight: 900;
}

.search-panel {
    align-items: stretch;
}

.search-panel input {
    flex: 1 1 320px;
    border-radius: 18px;
    font-size: 18px;
}

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

.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: #6b7280;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #fed7aa;
}

.site-footer {
    margin-top: 50px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-inner p {
    margin-top: 14px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-inner h2 {
    font-size: 18px;
    font-weight: 850;
    margin-bottom: 14px;
}

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

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

.footer-links a:hover {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.34);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

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

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

    .hero-poster-card {
        max-width: 360px;
    }

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

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

    .detail-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .main-nav,
    .header-search {
        display: none;
    }

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

    .brand-text strong {
        font-size: 19px;
    }

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 74px;
        padding-bottom: 72px;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 14px;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-desc {
        display: none;
    }

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

    .rank-row .btn-primary {
        grid-column: 2 / 4;
    }

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

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.compact,
    .search-results,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .hero-actions {
        display: grid;
    }

    .player-button {
        width: 68px;
        height: 68px;
    }
}
