:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --pink: #ec4899;
    --red: #ef4444;
    --shadow: 0 22px 50px rgba(124, 45, 18, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.22), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.18), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 52%, #fff7ed 100%);
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(124, 45, 18, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.36);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a,
.mobile-menu a,
.footer-links a {
    transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
    color: var(--orange);
}

.mobile-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--orange);
    background: #fff7ed;
    cursor: pointer;
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 72px 0 56px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.92)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.36), transparent 18rem);
}

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

.hero::before {
    width: 360px;
    height: 360px;
    left: -140px;
    top: 80px;
    background: rgba(255, 255, 255, 0.45);
}

.hero::after {
    width: 420px;
    height: 420px;
    right: -160px;
    bottom: -140px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-slider {
    position: relative;
    z-index: 1;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 54px;
    min-height: 520px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.65s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.92);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span,
.tag-line span,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: var(--orange);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(124, 45, 18, 0.18);
}

.btn-gradient {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.24);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
}

.hero-art {
    position: relative;
    min-height: 500px;
}

.hero-poster {
    position: absolute;
    inset: 0 0 54px 54px;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 34px 80px rgba(124, 45, 18, 0.35);
    transform: rotate(2deg);
}

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

.hero-card {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(380px, 86%);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 60px rgba(124, 45, 18, 0.28);
}

.hero-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.hero-card span {
    color: rgba(255, 255, 255, 0.84);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

main {
    position: relative;
}

.section {
    padding: 70px 0;
}

.section-tight {
    padding: 42px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-head p,
.page-hero p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-more {
    display: inline-flex;
    color: var(--orange);
    font-weight: 900;
}

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

.movie-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(124, 45, 18, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.34);
}

.movie-info {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.pill {
    color: var(--orange);
    background: #ffedd5;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--orange);
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rating-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.tag-line span,
.detail-tags span {
    color: #9a3412;
    background: #fff7ed;
}

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

.movie-card-horizontal .poster-link {
    aspect-ratio: auto;
    min-height: 230px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -44px;
    width: 145px;
    height: 145px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p,
.category-card span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 16px;
    background: #ffffff;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.filter-select {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 16px;
    color: var(--text);
    background: #ffffff;
}

.result-count {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

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

.page-hero-card {
    overflow: hidden;
    padding: 44px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.32), transparent 18rem),
        linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 800;
}

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

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

.player-card,
.detail-panel,
.review-panel,
.text-panel {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.28), rgba(0, 0, 0, 0.52));
    cursor: pointer;
}

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

.play-button-core {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 38px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 24px 50px rgba(236, 72, 153, 0.36);
    transition: transform 0.25s ease;
}

.play-overlay:hover .play-button-core {
    transform: scale(1.08);
}

.player-title {
    padding: 22px 24px;
}

.player-title h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.player-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-panel {
    padding: 28px;
}

.detail-poster {
    overflow: hidden;
    margin-bottom: 22px;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

.detail-title h1 {
    margin-bottom: 14px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.detail-meta div {
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.detail-meta span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta strong {
    display: block;
    margin-top: 2px;
}

.text-panel,
.review-panel {
    padding: 30px;
    margin-top: 28px;
}

.text-panel h2,
.review-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.text-panel p,
.review-panel p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

.empty-state {
    display: none;
    padding: 48px;
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

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

.index-list {
    columns: 4 220px;
    column-gap: 28px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.index-list a {
    display: block;
    break-inside: avoid;
    margin: 0 0 10px;
    color: #374151;
    font-weight: 700;
}

.index-list a:hover {
    color: var(--orange);
}

.site-footer {
    margin-top: 70px;
    padding: 54px 0;
    border-top: 1px solid rgba(249, 115, 22, 0.16);
    background: rgba(255, 255, 255, 0.74);
}

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

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 16px;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-art {
        min-height: 420px;
    }

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

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

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

    .brand {
        font-size: 19px;
    }

    .hero {
        min-height: 620px;
        padding-top: 46px;
    }

    .hero-slide {
        min-height: auto;
        gap: 28px;
    }

    .hero-art {
        min-height: 360px;
    }

    .hero-poster {
        inset: 0 0 44px 28px;
        border-radius: 26px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: block;
    }

    .section-more {
        margin-top: 14px;
    }

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

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

    .movie-card-horizontal .poster-link {
        min-height: 190px;
    }

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

    .page-hero-card {
        padding: 30px;
    }

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

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

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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