:root {
    --color-bg: #fff7ed;
    --color-bg-soft: #fffbf7;
    --color-panel: #ffffff;
    --color-ink: #172033;
    --color-muted: #64748b;
    --color-line: rgba(15, 23, 42, 0.1);
    --color-orange: #f97316;
    --color-pink: #ec4899;
    --color-rose: #fb7185;
    --color-dark: #0f172a;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 16px 38px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.12), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 46%, #fff7ed 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.94));
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.22);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav,
.mobile-nav {
    align-items: center;
    gap: 8px;
}

.desktop-nav {
    display: flex;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    flex-direction: column;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-orange);
    background: #ffffff;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #fff;
}

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

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.28) 100%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(255, 247, 237, 1), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 380px);
    align-items: center;
    gap: 42px;
    padding: 92px 0 124px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero-title {
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.hero-title span {
    display: inline-block;
    padding: 0 12px 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-desc {
    max-width: 700px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-meta span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    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: var(--color-orange);
    background: #fff;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.26);
}

.btn-dark {
    color: #fff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.24);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

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

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 55%);
}

.hero-poster-title {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 20px;
    font-weight: 900;
}

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

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

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

.section {
    padding: 64px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 26px;
}

.section-title {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-desc {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    padding: 14px;
    margin-bottom: 24px;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.search-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--color-ink);
    background: #fff;
    outline: none;
}

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

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

.filter-chip {
    min-height: 40px;
    border: 1px solid rgba(249, 115, 22, 0.24);
    border-radius: 999px;
    padding: 0 14px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-card.is-hidden {
    display: none;
}

.card-cover {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

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

.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), transparent 58%);
    opacity: 0.86;
}

.card-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    font-size: 12px;
    font-weight: 900;
}

.card-heat {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-title {
    margin: 0 0 8px;
    color: var(--color-ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.card-text {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.card-meta span {
    border-radius: 999px;
    padding: 5px 8px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr 112px;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

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

.rank-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 950;
}

.rank-meta {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
}

.rank-thumb img {
    width: 112px;
    height: 70px;
    object-fit: cover;
}

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

.category-tile {
    min-height: 156px;
    padding: 20px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 52%),
        linear-gradient(135deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(236, 72, 153, 0.24);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 950;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
    font-size: 14px;
}

.page-hero {
    padding: 70px 0 38px;
}

.page-hero-card {
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(28px, 5vw, 56px);
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 36%),
        linear-gradient(135deg, #0f172a, #7c2d12 48%, #9d174d);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    margin: 16px 0 16px;
    max-width: 880px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 950;
}

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

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

.detail-card {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 34px;
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 34%),
        linear-gradient(135deg, #0f172a, #7c2d12 50%, #9d174d);
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.detail-desc {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.85;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.player-section {
    padding: 26px 0 50px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 5;
}

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

.play-core {
    display: grid;
    place-items: center;
    gap: 14px;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 20px 44px rgba(236, 72, 153, 0.38);
    font-size: 34px;
    padding-left: 5px;
}

.play-text {
    font-size: 18px;
    font-weight: 950;
}

.content-panel {
    padding: 34px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.content-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 950;
}

.content-panel p {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.95;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-list span {
    border-radius: 999px;
    padding: 7px 11px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.cta-band {
    margin: 40px 0 0;
    padding: 42px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 38%),
        linear-gradient(135deg, var(--color-orange), var(--color-pink));
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
}

.cta-band p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
}

.site-footer {
    margin-top: 64px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.footer-text {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

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

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

    .menu-button {
        display: block;
    }

    .mobile-nav .nav-link {
        width: 100%;
        text-align: center;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content {
        padding: 58px 0 112px;
    }

    .hero-title,
    .detail-title {
        letter-spacing: -0.04em;
    }

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

    .movie-grid,
    .movie-grid.compact,
    .rank-list,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 48px 1fr;
    }

    .rank-thumb {
        display: none;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .content-panel,
    .cta-band {
        padding: 24px;
    }

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