:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --amber: #f59e0b;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(239, 68, 68, 0.15);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(251, 146, 60, 0.22), transparent 30rem),
        radial-gradient(circle at 88% 10%, rgba(236, 72, 153, 0.16), transparent 26rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 38%, #fff7ed 100%);
    line-height: 1.6;
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    color: #fff;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.25);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text strong,
.footer-logo {
    display: block;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-text small {
    display: block;
    margin-top: -2px;
    font-size: 12px;
    opacity: 0.9;
}

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

.desktop-nav a,
.header-search button,
.hero-actions a,
.btn {
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.desktop-nav a:hover,
.header-search button:hover,
.hero-actions a:hover,
.btn:hover {
    transform: translateY(-2px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.header-search input {
    width: 220px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 8px 10px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.btn-primary {
    border: 0;
    color: #f97316;
    background: #fff;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 900;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    background: rgba(127, 29, 29, 0.18);
    backdrop-filter: blur(14px);
}

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

.mobile-panel nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 0 18px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(239, 68, 68, 0.94) 48%, rgba(236, 72, 153, 0.92)),
        #ef4444;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.45;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    left: -120px;
    top: 40px;
    background: rgba(255, 255, 255, 0.18);
}

.hero::after {
    width: 460px;
    height: 460px;
    right: -160px;
    bottom: -180px;
    background: rgba(255, 255, 255, 0.14);
}

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

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

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

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 48px;
    min-height: 620px;
    padding: 76px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
}

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

.hero-meta span,
.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    background: rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
}

.btn-primary {
    color: #ef4444;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster-wrap {
    position: relative;
    justify-self: end;
    width: min(390px, 100%);
}

.hero-poster-glow {
    position: absolute;
    inset: 20px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(35px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.38);
    transform: rotate(2deg);
}

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

.hero-card-note {
    position: absolute;
    left: -28px;
    bottom: 26px;
    max-width: 250px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    color: #7c2d12;
    box-shadow: 0 18px 35px rgba(124, 45, 18, 0.18);
}

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

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

.hero-dots button.active {
    background: #fff;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: rgba(255, 255, 255, 0.56);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.05em;
    color: var(--dark);
}

.section-desc {
    margin: 10px 0 0;
    max-width: 720px;
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(236, 72, 153, 0.22));
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(17, 24, 39, 0.65));
}

.poster-badge {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 3.6em;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span,
.meta-pill {
    color: #9a3412;
    background: #ffedd5;
}

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

.category-card {
    display: block;
    min-height: 150px;
    padding: 22px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
    box-shadow: var(--shadow);
    transition: transform 0.18s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card strong {
    display: block;
    font-size: 24px;
}

.category-card span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 74px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.07);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 950;
}

.rank-item img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(249, 115, 22, 0.24);
    outline: 0;
    border-radius: 999px;
    background: #fff;
    padding: 12px 16px;
    color: var(--ink);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 700;
}

.detail-hero {
    padding: 48px 0 64px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(236, 72, 153, 0.9));
    color: #fff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 38px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 60px rgba(17, 24, 39, 0.28);
}

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-info .lead {
    margin: 18px 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta .meta-pill {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

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

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(236, 72, 153, 0.26));
    cursor: pointer;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 35px rgba(236, 72, 153, 0.35);
    font-size: 30px;
}

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

.content-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
}

.content-card p {
    margin: 0 0 16px;
    color: #374151;
}

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

.side-card {
    position: sticky;
    top: 100px;
}

.site-footer {
    padding: 52px 0;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #fff;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #fff;
}

.site-footer p {
    margin: 12px 0 0;
    max-width: 520px;
}

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

.footer-links a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 24px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

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

    .header-search input {
        width: 160px;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-inner,
    .detail-layout,
    .two-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster-wrap {
        justify-self: start;
        width: min(330px, 90%);
    }

    .hero-card-note {
        left: 18px;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        min-height: 66px;
    }

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

    .hero-slider,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        padding: 44px 0 86px;
    }

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

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

    .movie-card p {
        font-size: 13px;
    }

    .section-head {
        display: block;
    }

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

    .detail-hero {
        padding: 32px 0 46px;
    }

    .content-card {
        padding: 20px;
    }
}
