:root {
    color-scheme: light;
    --bg: #fff7f4;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text: #221821;
    --muted: #766d76;
    --line: rgba(226, 199, 191, 0.72);
    --rose: #fb7185;
    --rose-deep: #e11d48;
    --orange: #fb923c;
    --gold: #facc15;
    --shadow: 0 24px 80px rgba(144, 45, 62, 0.16);
    --radius: 26px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(251, 146, 60, 0.18), transparent 30rem),
        radial-gradient(circle at 90% 18%, rgba(251, 113, 133, 0.16), transparent 34rem),
        linear-gradient(180deg, #fffaf7 0%, #fff1ed 46%, #fff9f6 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 42px rgba(120, 70, 70, 0.12);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.08) rotate(4deg);
}

.logo-text {
    font-size: 22px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #5f5660;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.header-search input,
.mobile-search input,
.filter-bar input {
    border: 0;
    outline: 0;
    min-width: 210px;
    padding: 10px 12px;
    background: transparent;
    color: var(--text);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-deep), var(--orange));
    font-weight: 800;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #160f18;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.hero-slide.is-active {
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
    filter: saturate(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 36%, rgba(251, 146, 60, 0.38), transparent 20rem),
        linear-gradient(180deg, rgba(20, 14, 23, 0.1), rgba(20, 14, 23, 0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 54px;
    color: #ffffff;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rose-deep);
    background: rgba(255, 230, 224, 0.82);
    border: 1px solid rgba(251, 113, 133, 0.22);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffe4e6;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.detail-tags,
.tag-row,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span,
.filter-chips button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.13);
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-deep), var(--orange));
    box-shadow: 0 16px 38px rgba(225, 29, 72, 0.3);
}

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

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

.hero-poster {
    position: relative;
    display: block;
    padding: 12px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 26px;
}

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

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

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

.quick-panel,
.section-block,
.page-main,
.site-footer .footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-panel {
    margin-top: -58px;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-card h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0;
    letter-spacing: -0.05em;
}

.quick-card h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.quick-card p,
.page-hero p,
.content-card p {
    color: var(--muted);
    line-height: 1.9;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.quick-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 16px;
    background: #ffffff;
    font-weight: 900;
    color: #5a3b42;
}

.section-block {
    margin-top: 54px;
}

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

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading a {
    color: var(--rose-deep);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(120, 70, 70, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 70px rgba(120, 70, 70, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.22), rgba(251, 146, 60, 0.16));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.24s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.62));
}

.card-play {
    position: absolute;
    z-index: 2;
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.card-rank {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rose-deep);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    color: #7a4b52;
    background: #fff1ed;
    border-color: rgba(251, 113, 133, 0.18);
}

.soft-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
}

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

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 28px;
    background: #20151f;
    box-shadow: 0 18px 52px rgba(97, 36, 46, 0.18);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
    transition: transform 0.24s ease;
}

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

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(25, 18, 25, 0.1), rgba(25, 18, 25, 0.86));
}

.category-card-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px;
    color: #ffffff;
}

.category-card-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
}

.category-card-content em {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.65;
}

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

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

.rank-list a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
}

.rank-list span,
.ranking-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    font-weight: 900;
}

.rank-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

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

.page-hero {
    overflow: hidden;
    padding: 54px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 24%, rgba(251, 146, 60, 0.2), transparent 22rem),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
}

.filter-bar {
    max-width: 660px;
    margin-top: 24px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(120, 70, 70, 0.08);
}

.filter-bar.wide {
    max-width: 780px;
}

.filter-bar input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
}

.filter-chips {
    margin-top: 16px;
}

.filter-chips button {
    color: #7a3d48;
    background: #ffffff;
    border-color: var(--line);
}

.ranking-layout {
    max-width: 980px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 52px 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(120, 70, 70, 0.09);
}

.ranking-cover img {
    width: 96px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.ranking-item h2 {
    margin: 8px 0;
    font-size: 24px;
}

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

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    min-height: 520px;
    padding: 38px;
    border-radius: 36px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 30px 80px rgba(60, 30, 38, 0.24);
    color: #ffffff;
}

.detail-poster {
    padding: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta {
    margin: 22px 0;
    color: #ffe4e6;
}

.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
    margin-bottom: 26px;
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #100c12;
    box-shadow: 0 26px 80px rgba(60, 30, 38, 0.25);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #100c12;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    font-size: 26px;
}

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

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 20px;
    margin-top: 42px;
}

.content-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(120, 70, 70, 0.08);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
}

.content-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.content-card dt {
    color: var(--muted);
    font-weight: 900;
}

.content-card dd {
    margin: 0;
    font-weight: 800;
}

.compact-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 58px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card strong,
.compact-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.is-hidden {
    display: none !important;
}

.site-footer {
    margin-top: 76px;
    padding: 42px 0;
    color: #fff4f4;
    background: #1c121b;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 580px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: flex-start;
    justify-content: flex-end;
}

.footer-links a {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
}

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

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

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

    .rank-panel {
        position: static;
    }
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 44px 0 82px;
    }

    .hero-poster {
        width: min(300px, 76vw);
        margin: 0 auto;
    }

    .quick-panel,
    .detail-hero,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .quick-links {
        justify-content: flex-start;
    }

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

    .page-hero {
        padding: 32px;
    }

    .detail-poster {
        max-width: 320px;
    }
}

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

    .logo-text {
        font-size: 19px;
    }

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .quick-panel,
    .soft-panel,
    .page-hero,
    .detail-hero,
    .content-card {
        padding: 22px;
        border-radius: 24px;
    }

    .movie-grid,
    .featured-grid,
    .slim-grid,
    .related-grid,
    .catalog-grid,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        flex-direction: column;
    }
}
