:root {
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-line: #f3e7dd;
    --color-soft: #fff7ed;
    --color-pink-soft: #fdf2f8;
    --color-purple-soft: #faf5ff;
    --color-orange: #f97316;
    --color-orange-dark: #ea580c;
    --color-pink: #ec4899;
    --color-purple: #8b5cf6;
    --shadow-soft: 0 18px 50px rgba(249, 115, 22, 0.16);
    --shadow-card: 0 16px 40px rgba(31, 41, 55, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 55%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(249, 115, 22, 0.08);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.30);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(6deg);
}

.brand-text {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-pink));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--color-orange);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #374151;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: #ffffff;
    border-top: 1px solid var(--color-line);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 700;
}

.mobile-nav a:hover {
    color: var(--color-orange);
    background: #fff7ed;
}

.main-space {
    padding-top: 76px;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 76px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, #fb923c 0%, #ec4899 54%, #8b5cf6 100%);
}

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

.hero::before {
    width: 320px;
    height: 320px;
    right: -80px;
    top: 160px;
    background: rgba(255, 255, 255, 0.20);
}

.hero::after {
    width: 240px;
    height: 240px;
    left: -90px;
    bottom: 120px;
    background: rgba(255, 255, 255, 0.18);
}

.hero-stage {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    z-index: 2;
}

.hero-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 56px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6.6vw, 86px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 670px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.90);
    font-size: clamp(17px, 2vw, 23px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
}

.button-primary {
    color: var(--color-orange);
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(31, 41, 55, 0.20);
}

.button-primary:hover {
    background: #fff7ed;
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(14px);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-poster {
    position: absolute;
    inset: 0 0 auto auto;
    width: min(420px, 85%);
    aspect-ratio: 3 / 4;
    border: 12px solid rgba(255, 255, 255, 0.20);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(88, 28, 135, 0.38);
    background: rgba(255, 255, 255, 0.16);
    transform: rotate(3deg);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-slide.is-active .hero-poster img {
    transform: scale(1.04);
}

.hero-mini-card {
    position: absolute;
    left: 0;
    bottom: 58px;
    width: min(330px, 82%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 54px rgba(31, 41, 55, 0.26);
    backdrop-filter: blur(22px);
}

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

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

.hero-dots {
    position: absolute;
    left: max(16px, calc((100vw - var(--container)) / 2));
    bottom: 36px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

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

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent, #ffffff);
    z-index: 1;
}

.section {
    padding: 78px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed, #fdf2f8 60%, #faf5ff);
}

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

.eyebrow {
    margin: 0 0 8px;
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section h1,
.section h2,
.page-title {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-desc,
.page-desc {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 18px;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.16);
}

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.card-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-year {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--color-orange-dark);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.12);
    font-size: 13px;
    font-weight: 900;
}

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

.card-title {
    display: -webkit-box;
    min-height: 56px;
    overflow: hidden;
    color: #111827;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.card-title:hover {
    color: var(--color-orange);
}

.card-body p {
    display: -webkit-box;
    min-height: 54px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #4b5563;
    font-size: 14px;
    font-weight: 800;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-list span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #6b21a8;
    background: #faf5ff;
    font-size: 12px;
    font-weight: 800;
}

.compact-card .card-title {
    min-height: auto;
    font-size: 18px;
}

.compact-card .card-body p {
    min-height: 42px;
    -webkit-line-clamp: 2;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 30px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink) 62%, var(--color-purple));
    box-shadow: var(--shadow-soft);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -52px;
    top: -50px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.1;
}

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

.category-tile span {
    display: inline-flex;
    margin-top: 18px;
    font-weight: 900;
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 14px;
    align-items: end;
    margin: 30px 0 34px;
    padding: 18px;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(14px);
}

.tool-panel label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 900;
}

.tool-panel input,
.tool-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0 14px;
    outline: 0;
    background: #ffffff;
    color: #111827;
}

.tool-panel input:focus,
.tool-panel select:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-count {
    min-width: 120px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--color-orange-dark);
    background: #fff7ed;
    font-weight: 900;
    text-align: center;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 64px 90px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(249, 115, 22, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-item:hover {
    transform: translateX(6px);
    box-shadow: 0 20px 48px rgba(31, 41, 55, 0.14);
}

.ranking-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
    font-weight: 900;
}

.ranking-item img {
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-info {
    display: grid;
    gap: 4px;
}

.ranking-info strong {
    color: #111827;
    font-size: 18px;
}

.ranking-info em {
    color: var(--color-muted);
    font-style: normal;
    font-size: 14px;
}

.ranking-score {
    color: var(--color-orange-dark);
    font-weight: 900;
}

.page-hero {
    padding: 136px 0 52px;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 30%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #fb923c, #ec4899 58%, #8b5cf6);
}

.page-hero .page-title,
.page-hero .page-desc,
.page-hero .eyebrow {
    color: #ffffff;
}

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

.detail-shell {
    padding: 52px 0 78px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 104px;
    overflow: hidden;
    border-radius: 30px;
    background: #ffedd5;
    box-shadow: var(--shadow-card);
}

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

.detail-card {
    padding: 30px;
    border: 1px solid rgba(249, 115, 22, 0.10);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 900;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
}

.detail-section p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.player-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 34px;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.60));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    color: var(--color-orange);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    font-size: 38px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    transform: scale(1.08);
    background: #ffffff;
}

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

.empty-state {
    display: none;
    padding: 32px;
    border-radius: 24px;
    color: var(--color-muted);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-card);
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 54px 0 90px;
    }

    .hero-visual {
        min-height: 460px;
        max-width: 620px;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .header-inner {
        height: 68px;
    }

    .main-space,
    .hero {
        padding-top: 68px;
    }

    .hero-stage {
        min-height: auto;
    }

    .hero-slide {
        padding: 40px 0 110px;
    }

    .hero h1,
    .hero h2 {
        letter-spacing: -0.035em;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-poster {
        width: 82%;
        border-width: 8px;
        border-radius: 26px;
    }

    .hero-mini-card {
        bottom: 28px;
        width: 76%;
        padding: 18px;
        border-radius: 22px;
    }

    .hero-dots {
        bottom: 28px;
    }

    .section {
        padding: 54px 0;
    }

    .section-head {
        display: block;
    }

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

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

    .ranking-item {
        grid-template-columns: 44px 72px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 3;
    }

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

    .detail-poster {
        position: relative;
        top: auto;
    }

    .detail-card {
        padding: 22px;
    }

    .page-hero {
        padding-top: 116px;
    }
}

@media (max-width: 520px) {
    .movie-grid {
        gap: 18px;
    }

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

    .button {
        width: 100%;
    }

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

    .play-button {
        width: 74px;
        height: 74px;
        font-size: 30px;
    }
}
