:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --amber: #f59e0b;
    --orange: #ea580c;
    --dark: #111827;
    --shadow: 0 22px 60px rgba(146, 64, 14, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.26), transparent 26rem),
        radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.18), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #d97706, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
    color: #c2410c;
    background: rgba(251, 146, 60, 0.13);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 16px;
    flex-direction: column;
    gap: 6px;
}

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

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 54px;
}

.hero {
    position: relative;
    min-height: 640px;
    border-radius: 34px;
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #7c2d12, #111827 55%, #92400e);
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 36px;
    align-items: center;
    padding: 64px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: blur(1px) saturate(1.15);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 48%, rgba(146, 64, 14, 0.22)),
        radial-gradient(circle at 32% 30%, rgba(245, 158, 11, 0.28), transparent 28rem);
}

.hero-eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
    max-width: 780px;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta {
    margin-top: 20px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(234, 88, 12, 0.14);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.34);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-light {
    color: #c2410c;
    background: #fff7ed;
}

.hero-poster {
    position: relative;
    min-height: 430px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.hero-poster-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    backdrop-filter: blur(14px);
}

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 36px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.quick-search {
    margin: -46px auto 32px;
    position: relative;
    z-index: 8;
    max-width: 1010px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 26px;
    padding: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.quick-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    min-height: 50px;
    padding: 0 16px;
    outline: 0;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.section {
    margin-top: 34px;
}

.section-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

.section-kicker {
    color: #ea580c;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 6px 0 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
    max-width: 720px;
}

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

.movie-card {
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
    border-color: rgba(249, 115, 22, 0.4);
}

.movie-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(234, 88, 12, 0.22));
}

.movie-thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

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

.movie-body {
    padding: 15px 15px 17px;
}

.movie-title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.card-meta {
    margin-top: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-line {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.68;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag {
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    border-radius: 24px;
    padding: 22px;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.4), transparent 9rem),
        linear-gradient(135deg, #fff, #fff7ed);
    border: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(146, 64, 14, 0.16);
}

.category-tile strong {
    font-size: 21px;
    color: #111827;
}

.category-tile p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.18);
}

.rank-num {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-weight: 900;
}

.rank-cover img {
    width: 92px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(140px, 0.5fr));
    gap: 12px;
    margin-bottom: 22px;
}

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

.detail-poster {
    position: sticky;
    top: 96px;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-panel {
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-weight: 800;
    margin-bottom: 14px;
}

.detail-title {
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 16px 0 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta .tag {
    font-size: 13px;
}

.player-wrap {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #050816;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.32);
}

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #050816;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    border: 0;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.25), transparent 16rem),
        linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.76));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 20px 44px rgba(234, 88, 12, 0.42);
    font-size: 34px;
    padding-left: 5px;
}

.content-block {
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

.content-block h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 28px;
}

.content-block p {
    margin: 0 0 14px;
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    background: #fff;
    color: var(--muted);
    border: 1px solid rgba(251, 146, 60, 0.18);
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    border-top: 1px solid rgba(251, 146, 60, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    color: #4b5563;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: #9a3412;
    font-weight: 800;
}

@media (max-width: 1080px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 48px;
    }

    .hero-poster {
        display: none;
    }

    .detail-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

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

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

    .page-shell {
        padding: 20px 16px 42px;
    }

    .hero {
        min-height: 620px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 34px 24px 76px;
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

    .quick-search {
        margin-top: -28px;
        grid-template-columns: 1fr;
    }

    .section-card {
        padding: 20px;
        border-radius: 24px;
    }

    .section-head {
        display: block;
    }

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

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

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

    .rank-item {
        grid-template-columns: 42px 76px minmax(0, 1fr);
    }

    .rank-item .btn {
        grid-column: 2 / -1;
        width: fit-content;
    }

    .rank-cover img {
        width: 76px;
        height: 100px;
    }

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

    .detail-poster {
        position: static;
        max-width: 320px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

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

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

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