:root {
    color-scheme: light;
    --bg: #fff7f8;
    --panel: #ffffff;
    --panel-soft: #fff1f2;
    --text: #27272a;
    --muted: #71717a;
    --line: rgba(244, 63, 94, 0.18);
    --brand: #f43f5e;
    --brand-dark: #e11d48;
    --brand-soft: #ffe4e6;
    --orange: #fb923c;
    --gold: #fbbf24;
    --shadow: 0 22px 60px rgba(159, 18, 57, 0.16);
    --radius: 22px;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 0, rgba(244, 63, 94, 0.18), transparent 32rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.94), rgba(251, 113, 133, 0.94), rgba(251, 146, 60, 0.94));
    box-shadow: 0 12px 34px rgba(225, 29, 72, 0.26);
    backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.brand-text {
    font-size: 24px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.nav-link {
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-weight: 700;
    transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.header-search,
.hero-search,
.page-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.hero-search input,
.page-search input,
.filter-search-line input {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 11px 16px;
}

.header-search input::placeholder,
.hero-search input::placeholder,
.page-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.hero-search button,
.page-search button,
.filter-search-line button {
    border: 0;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ffffff;
    padding: 10px 16px;
    font-weight: 800;
}

.header-search input {
    width: 250px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    min-height: 610px;
    background: #18181b;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 360px;
    gap: 48px;
    align-items: center;
    padding: 96px max(32px, calc((100vw - var(--shell)) / 2)) 140px;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.62s ease, transform 0.62s ease;
    pointer-events: none;
}

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

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

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 7px 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    backdrop-filter: blur(14px);
}

.hero-copy h1 {
    margin: 20px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.hero-actions,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.24s ease;
}

.primary-button {
    background: linear-gradient(90deg, var(--brand), var(--orange));
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.28);
    padding: 13px 22px;
}

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

.ghost-button {
    padding: 12px 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.ghost-button.dark {
    color: var(--brand-dark);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.hero-poster {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    border-radius: 34px;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-poster span,
.poster-play,
.play-overlay span {
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.88);
    box-shadow: 0 16px 40px rgba(225, 29, 72, 0.34);
}

.hero-poster span {
    width: 78px;
    height: 78px;
    font-size: 30px;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: 0.24s ease;
}

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

.hero-search-panel {
    position: relative;
    z-index: 6;
    margin-top: -54px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search input,
.page-search input,
.filter-search-line input {
    flex: 1;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
}

.hero-search input::placeholder,
.page-search input::placeholder,
.filter-search-line input::placeholder {
    color: var(--muted);
}

.hero-search button,
.page-search button,
.filter-search-line button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--orange));
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-categories a,
.filter-chips button,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 7px 12px;
    font-weight: 800;
    font-size: 13px;
}

.content-section {
    margin-top: 70px;
}

.no-top-space {
    margin-top: 28px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link,
.text-button {
    color: var(--brand-dark);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--line);
    padding: 10px 16px;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 34px rgba(159, 18, 57, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(159, 18, 57, 0.15);
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background-color: #fecdd3;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.movie-card-wide .poster-frame {
    aspect-ratio: auto;
    min-height: 210px;
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(24, 24, 27, 0.72));
    opacity: 0.78;
}

.quality-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    font-size: 12px;
    padding: 5px 9px;
}

.quality-badge {
    left: 12px;
    background: rgba(244, 63, 94, 0.9);
}

.rank-badge {
    right: 12px;
    background: rgba(251, 191, 36, 0.95);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: #fda4af;
}

.movie-card h3 {
    margin: 8px 0 7px;
    font-size: 18px;
    line-height: 1.28;
}

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

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

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

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

.category-tile,
.category-overview-block,
.ranking-card,
.filter-panel,
.detail-article,
.detail-side-card,
.page-hero,
.player-section {
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(159, 18, 57, 0.08);
}

.category-cover,
.category-overview-cover {
    display: flex;
    align-items: flex-end;
    min-height: 160px;
    padding: 18px;
    border-radius: 18px;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    font-weight: 900;
    font-size: 24px;
}

.category-tile {
    padding: 12px;
}

.category-tile p,
.category-overview-head p,
.detail-article p,
.page-hero p {
    color: var(--muted);
}

.category-mini-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-mini-links a,
.footer-links a,
.detail-side-card a {
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 7px 11px;
    font-weight: 800;
    font-size: 13px;
}

.ranking-card {
    position: sticky;
    top: 94px;
    padding: 22px;
}

.ranking-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ranking-card-title h2 {
    margin: 0;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    transition: 0.24s ease;
}

.rank-row:hover {
    background: var(--brand-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--orange));
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: var(--brand-dark);
    font-weight: 900;
    text-align: right;
}

.page-main {
    padding-top: 42px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 46px;
    background:
        linear-gradient(120deg, rgba(244, 63, 94, 0.96), rgba(251, 146, 60, 0.9)),
        #f43f5e;
    color: #ffffff;
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 790px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.page-hero .page-search {
    max-width: 760px;
    margin-top: 24px;
}

.category-overview-list {
    display: grid;
    gap: 28px;
    margin-top: 32px;
}

.category-overview-block {
    padding: 22px;
}

.category-overview-head {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 0;
    font-size: 30px;
}

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

.filter-panel {
    margin-top: 26px;
    padding: 18px;
}

.filter-search-line {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.filter-chips button {
    border: 0;
    transition: 0.22s ease;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--orange));
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 30px;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--muted);
    text-align: center;
}

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

.podium-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
    margin-top: 28px;
}

.podium-card {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    border-radius: 28px;
    background-position: center;
    background-size: cover;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.podium-card span {
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    padding: 6px 11px;
    font-weight: 900;
}

.podium-card h2 {
    margin: 12px 0 8px;
    font-size: 30px;
}

.podium-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb a {
    color: var(--brand-dark);
}

.detail-main {
    padding-bottom: 28px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.detail-poster {
    min-height: 480px;
    border-radius: 30px;
    background-color: #fecdd3;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.detail-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(244, 63, 94, 0.95), rgba(251, 146, 60, 0.88)),
        #f43f5e;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.detail-intro h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-one-line {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-intro .tag-row span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

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

.detail-meta-list div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
}

.detail-meta-list dt {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.detail-meta-list dd {
    margin: 2px 0 0;
    font-weight: 900;
}

.player-section {
    margin-top: 32px;
    padding: 16px;
    background: #18181b;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #09090b;
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #09090b;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.26), rgba(9, 9, 11, 0.72));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    font-size: 28px;
}

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

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    margin-top: 32px;
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 24px;
    font-size: 17px;
}

.detail-side-card {
    padding: 24px;
    height: fit-content;
}

.detail-side-card a {
    display: flex;
    margin-top: 10px;
}

.related-section {
    margin-top: 42px;
}

.site-footer {
    margin-top: 88px;
    color: #ffffff;
    background: linear-gradient(90deg, #e11d48, #f43f5e, #fb923c);
}

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

.footer-brand {
    font-size: 28px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.78);
}

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

.footer-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

@media (max-width: 1100px) {
    .movie-grid-featured,
    .category-preview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

    .ranking-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

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

    .nav-menu {
        display: none;
        order: 5;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        padding: 10px;
    }

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

    .header-search {
        order: 6;
        width: 100%;
    }

    .header-search input {
        flex: 1;
        width: auto;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 70px;
    }

    .hero-poster {
        min-height: 280px;
    }

    .hero-search,
    .page-search,
    .filter-search-line {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .movie-grid-featured,
    .category-grid,
    .category-preview-grid,
    .ranking-grid,
    .podium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-head,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        min-height: 420px;
    }

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

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

@media (max-width: 560px) {
    .site-shell {
        width: min(100% - 22px, var(--shell));
    }

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

    .hero-slide,
    .page-hero,
    .detail-intro {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero-copy h1,
    .detail-intro h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .movie-grid,
    .movie-grid-featured,
    .category-grid,
    .category-preview-grid,
    .ranking-grid,
    .podium-grid {
        grid-template-columns: 1fr;
    }

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

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

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