:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #f97316;
    --orange-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --surface-soft: #fff1f2;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff1f2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 247, 237, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    color: var(--rose);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-logo::before,
.footer-logo::before {
    content: "";
    width: 34px;
    height: 34px;
    margin-right: 9px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.32);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--rose);
    background: #ffffff;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 280px;
    padding: 5px;
    border: 1px solid rgba(225, 29, 72, 0.16);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(225, 29, 72, 0.09);
}

.header-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    outline: none;
    color: var(--ink);
    background: transparent;
}

.header-search button,
.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 34px rgba(225, 29, 72, 0.24);
}

.header-search button {
    padding: 9px 16px;
}

.primary-btn {
    padding: 14px 22px;
}

.ghost-btn {
    padding: 13px 21px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
}

.header-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--rose);
}

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-track,
.hero-slide,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 1.2s ease;
    transform: scale(1.04);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-shade {
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.16), transparent 26%),
        linear-gradient(90deg, rgba(190, 18, 60, 0.94), rgba(249, 115, 22, 0.76) 46%, rgba(17, 24, 39, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    color: #ffffff;
}

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

.hero-kicker,
.section-title p,
.ranking-head p,
.sub-hero p,
.highlight-inner p {
    margin: 0 0 12px;
    color: var(--rose);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #ffe4e6;
}

.hero h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    margin-top: 14px;
    color: #ffe4e6;
}

.hero-copy > p:not(.hero-kicker) {
    max-width: 660px;
    margin: 24px 0 0;
    color: #fff7ed;
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 24px;
}

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

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

.movie-tags span {
    color: var(--rose);
    background: #fff1f2;
}

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

.hero-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 58px;
    z-index: 5;
    width: 340px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.32);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}

.hero-panel a {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-panel a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(3px);
}

.hero-panel img {
    width: 62px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
}

.hero-panel span {
    font-weight: 800;
    line-height: 1.35;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 7;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(14px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.hero-dots button.is-active {
    width: 36px;
    background: #ffffff;
}

.section {
    padding: 76px 0;
}

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

.section-title.centered {
    display: block;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-title.compact-title {
    display: block;
}

.section-title h2,
.ranking-head h2,
.highlight-inner h2,
.detail-content h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-title a,
.section-title span {
    color: var(--muted);
    font-weight: 700;
}

.section-title a:hover {
    color: var(--rose);
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(17, 24, 39, 0.16);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.movie-card.compact .movie-poster {
    aspect-ratio: 3 / 4;
}

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

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

.movie-type,
.movie-score {
    position: absolute;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-type {
    left: 14px;
    background: rgba(225, 29, 72, 0.88);
}

.movie-score {
    right: 14px;
    background: rgba(245, 158, 11, 0.92);
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--rose);
    font-size: 13px;
    font-weight: 850;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
    transition: color 0.2s ease;
}

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

.movie-line {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 26px;
    border: 1px solid rgba(225, 29, 72, 0.08);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-glow {
    position: absolute;
    right: -36px;
    top: -36px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.24), rgba(249, 115, 22, 0.24));
}

.category-card strong {
    position: relative;
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.category-card em {
    position: absolute;
    left: 26px;
    bottom: 24px;
    color: var(--rose);
    font-style: normal;
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
}

.ranking-box {
    position: sticky;
    top: 100px;
    padding: 22px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-head {
    margin-bottom: 18px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 36px 58px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.ranking-item:last-child {
    border-bottom: 0;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-size: 13px;
    font-weight: 900;
}

.ranking-item img {
    width: 58px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff1f2;
}

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

.rank-info strong {
    color: var(--ink);
    font-weight: 900;
    line-height: 1.35;
}

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

.rank-score {
    color: #f59e0b;
    font-weight: 950;
}

.highlight-band {
    padding: 64px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

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

.highlight-inner p,
.highlight-inner h2 {
    color: #ffffff;
}

.highlight-inner .primary-btn {
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(17, 24, 39, 0.16);
}

.sub-hero {
    padding: 88px 0 72px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
        linear-gradient(135deg, var(--rose), var(--orange));
}

.sub-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.sub-hero p,
.sub-hero span {
    color: #fff7ed;
}

.sub-hero span {
    display: block;
    max-width: 760px;
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    padding: 24px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.filter-heading strong {
    font-size: 24px;
    font-weight: 950;
}

.filter-heading button {
    padding: 9px 16px;
    border: 1px solid rgba(225, 29, 72, 0.14);
    border-radius: 999px;
    color: var(--rose);
    background: #fff1f2;
    font-weight: 850;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 180px;
    gap: 14px;
    margin-bottom: 26px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    outline: none;
    color: var(--ink);
    background: #fff7ed;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.empty-state {
    display: none;
    margin: 0 0 24px;
    padding: 18px;
    border-radius: 18px;
    color: var(--rose);
    background: #fff1f2;
    font-weight: 850;
}

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

.ranking-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
}

.page-ranking {
    position: static;
}

.detail-top {
    padding: 34px 0 70px;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding: 18px 0 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

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

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.48), rgba(225, 29, 72, 0.38));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 50%;
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(17, 24, 39, 0.32);
    font-size: 34px;
}

.player-overlay strong {
    font-size: 20px;
}

.detail-info-card {
    padding: 18px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-info-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    object-fit: cover;
    background: #fff1f2;
}

.detail-info-card p {
    margin: 18px 0 8px;
    color: var(--rose);
    font-weight: 900;
}

.detail-info-card h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.detail-info-card > div > span {
    display: block;
    color: var(--muted);
    line-height: 1.65;
}

.detail-tags {
    margin: 18px 0;
}

.block-btn {
    width: 100%;
    margin-top: 18px;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: -34px;
}

.detail-content article {
    padding: 30px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.detail-content p {
    color: #374151;
    font-size: 16px;
    line-height: 1.95;
}

.detail-content .lead-text {
    color: var(--rose);
    font-weight: 850;
}

.site-footer {
    margin-top: 70px;
    padding: 56px 0 0;
    color: #374151;
    background: #111827;
}

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

.footer-logo {
    color: #ffffff;
}

.site-footer p {
    max-width: 520px;
    color: #d1d5db;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a:not(.footer-logo) {
    display: inline-flex;
    margin: 0 14px 10px 0;
    color: #d1d5db;
    font-weight: 700;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

    .hero-panel {
        display: none;
    }

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

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

    .ranking-box {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 66px;
    }

    .site-nav {
        position: fixed;
        inset: 66px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 14px 16px;
    }

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .hero {
        height: 590px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy > p:not(.hero-kicker) {
        font-size: 17px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 54px 0;
    }

    .section-title,
    .highlight-inner {
        display: block;
    }

    .section-title a,
    .highlight-inner .primary-btn {
        margin-top: 16px;
    }

    .movie-grid.four-col,
    .movie-grid.three-col,
    .category-grid,
    .category-grid.large,
    .ranking-page-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .sub-hero {
        padding: 64px 0 54px;
    }

    .detail-info-card {
        display: grid;
        grid-template-columns: 130px 1fr;
        gap: 16px;
    }

    .detail-info-card img {
        border-radius: 18px;
    }

    .detail-info-card h1 {
        font-size: 24px;
    }
}

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

    .site-logo,
    .footer-logo {
        font-size: 21px;
    }

    .hero {
        height: 560px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-card-body,
    .detail-content article,
    .filter-panel {
        padding: 18px;
    }

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