* {
    box-sizing: border-box;
}

:root {
    --orange: #f97316;
    --orange-soft: #fff7ed;
    --pink: #ec4899;
    --rose: #fb7185;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    --soft-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 46%, #fff1f2 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(90deg, #fb923c 0%, #f472b6 54%, #fb7185 100%);
    box-shadow: 0 14px 35px rgba(190, 24, 93, 0.22);
}

.main-nav {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    transform: translateY(1px);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    padding: 9px 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--orange);
    background: var(--white);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--white);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(110deg, #f97316, #ec4899, #fb7185);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(127, 29, 29, 0.70) 50%, rgba(244, 63, 94, 0.34) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(251, 146, 60, 0.55), transparent 28%),
        radial-gradient(circle at 80% 75%, rgba(236, 72, 153, 0.45), transparent 32%);
}

.hero-content {
    position: relative;
    max-width: var(--max-width);
    min-height: 640px;
    margin: 0 auto;
    padding: 70px 20px 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 56px;
    align-items: center;
}

.hero-copy {
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

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

.hero p,
.page-hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.85;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

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

.btn-primary,
.btn-ghost,
.more-link,
.filter-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: var(--orange);
    background: var(--white);
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.more-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.27);
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.28), rgba(253, 242, 248, 0.12));
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 5;
}

.hero-controls button {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 999px;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    opacity: 0.55;
}

.hero-dot.is-active {
    width: 34px;
    opacity: 1;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 92px;
    z-index: 6;
    width: min(720px, calc(100% - 36px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: none;
    color: var(--slate-900);
    background: var(--white);
    border-radius: 999px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 18px;
}

.hero-search button {
    border: 0;
    min-width: 96px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--orange), var(--pink));
    font-weight: 900;
}

.section-block,
.category-band,
.category-preview {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 70px 20px;
}

.soft-section {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.82), rgba(253, 242, 248, 0.78));
}

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

.section-heading h2 {
    margin: 10px 0 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-heading p {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--slate-600);
    line-height: 1.8;
}

.section-kicker {
    color: var(--orange);
    background: rgba(249, 115, 22, 0.10);
    backdrop-filter: none;
}

.more-link {
    color: var(--orange);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    white-space: nowrap;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

.four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(236, 72, 153, 0.14));
}

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

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.48) 100%);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--slate-100);
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.7;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list span {
    color: var(--orange);
    background: var(--orange-soft);
}

.rank-section {
    max-width: 1220px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 96px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-4px);
    background: #fff7ed;
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-size: 20px;
    font-weight: 900;
}

.rank-info {
    min-width: 0;
}

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

.rank-info strong {
    overflow: hidden;
    color: var(--slate-900);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info span {
    display: -webkit-box;
    margin-top: 4px;
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-info em {
    margin-top: 7px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.rank-thumb {
    height: 68px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(236, 72, 153, 0.14));
}

.rank-thumb img {
    height: 100%;
    object-fit: cover;
}

.category-band {
    max-width: none;
    padding-inline: max(20px, calc((100vw - var(--max-width)) / 2));
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.82), rgba(252, 231, 243, 0.82));
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: var(--radius-lg);
    color: var(--white);
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.82)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero,
.detail-hero {
    max-width: var(--max-width);
    margin: 34px auto 0;
    padding: 64px 20px;
    border-radius: var(--radius-xl);
}

.compact-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.20), transparent 28%),
        linear-gradient(120deg, #f97316 0%, #ec4899 56%, #fb7185 100%);
    box-shadow: var(--shadow);
}

.compact-hero p {
    margin-bottom: 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 30px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--soft-shadow);
}

.search-filter {
    grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    box-shadow: inset 0 0 0 1px var(--slate-200);
}

.breadcrumb {
    max-width: var(--max-width);
    margin: 28px auto 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--slate-600);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(125deg, rgba(15, 23, 42, 0.96), rgba(190, 24, 93, 0.88), rgba(249, 115, 22, 0.84));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(236, 72, 153, 0.18));
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.player-section {
    max-width: var(--max-width);
    margin: 52px auto;
    padding: 0 20px;
}

.player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.player-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.05em;
}

.player-heading span {
    color: var(--orange);
    font-weight: 900;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--slate-950);
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.player-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.26), rgba(15, 23, 42, 0.62));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-mask span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 20px 50px rgba(236, 72, 153, 0.42);
    font-size: 36px;
}

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

.detail-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.story-card,
.info-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.story-card h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 25px;
    letter-spacing: -0.04em;
}

.story-card p {
    margin: 0;
    color: var(--slate-700);
    font-size: 16px;
    line-height: 2;
}

.info-card {
    grid-row: span 2;
}

.info-card dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0 0 22px;
}

.info-card dt {
    color: var(--slate-500);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 700;
}

.site-footer {
    margin-top: 70px;
    color: var(--white);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 54%, #0f172a 100%);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner h2 {
    margin: 0 0 12px;
    font-size: 27px;
    background: linear-gradient(90deg, #fdba74, #f9a8d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-inner p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

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

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

.copyright {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px 26px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 1080px) {
    .three-cols,
    .four-cols,
    .rank-page-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 30px;
    }

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

    .info-card {
        grid-row: auto;
    }

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

@media (max-width: 760px) {
    .main-nav {
        height: auto;
        min-height: 64px;
        align-items: flex-start;
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 22px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 14px;
    }

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

    .nav-links a {
        background: rgba(255, 255, 255, 0.14);
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 42px;
        padding-bottom: 170px;
    }

    .hero-poster {
        max-width: 220px;
        margin: 0 auto;
    }

    .hero-search {
        bottom: 86px;
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
    }

    .hero-controls {
        bottom: 28px;
    }

    .section-heading,
    .footer-inner,
    .player-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .three-cols,
    .four-cols,
    .rank-grid,
    .rank-page-grid,
    .category-grid,
    .filter-bar,
    .search-filter,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 240px;
        margin: 0 auto;
    }

    .rank-row {
        grid-template-columns: 44px minmax(0, 1fr) 82px;
    }
}

@media (max-width: 460px) {
    .section-block,
    .category-preview,
    .player-section,
    .detail-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-hero,
    .detail-hero {
        margin-top: 18px;
        border-radius: 0;
    }

    .rank-thumb {
        display: none;
    }

    .rank-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }
}
