:root {
    color-scheme: light;
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --orange: #f97316;
    --pink-soft: #fff1f2;
    --orange-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #ffe4e6;
    --bg: #fff7f6;
    --card: #ffffff;
    --shadow: 0 20px 50px rgba(190, 18, 60, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 246, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.13);
    box-shadow: 0 14px 30px rgba(190, 18, 60, 0.08);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--rose-dark);
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.32);
}

.brand-text {
    font-size: 23px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 14px;
    color: #4b5563;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.09);
}

.header-search {
    width: min(330px, 28vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.08);
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-row input,
.filter-row select {
    border: 0;
    outline: 0;
    min-width: 0;
    background: transparent;
    color: var(--text);
}

.header-search input {
    flex: 1;
    padding: 6px 8px 6px 14px;
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-row button {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 999px;
    padding: 8px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.filter-row button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(244, 63, 94, 0.22);
}

.menu-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    color: var(--rose-dark);
    background: rgba(244, 63, 94, 0.1);
    border-radius: 14px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 20px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 18px;
}

.mobile-search input {
    flex: 1;
    padding: 10px;
}

.hero-slider {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 48px;
    padding: 96px max(24px, calc((100vw - 1280px) / 2 + 24px)) 86px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 34%, rgba(249, 115, 22, 0.26), transparent 30%), linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.9));
    pointer-events: none;
}

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

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 760px;
    color: #fff;
}

.eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.92), rgba(249, 115, 22, 0.92));
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
    color: var(--rose-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    color: var(--rose-dark);
    background: #fff1f2;
    border-color: #ffe4e6;
}

.tag-row.larger span {
    padding: 8px 13px;
    font-size: 14px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(12px);
}

.btn-ghost.dark {
    color: var(--rose-dark);
    background: #fff;
    border-color: #ffe4e6;
}

.hero-poster {
    justify-self: end;
    width: min(360px, 31vw);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 32px;
    height: 8px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.44);
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 54px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.search-band,
.section-wrap,
.page-hero,
.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.65fr);
    align-items: center;
    gap: 28px;
    margin-top: -54px;
    position: relative;
    z-index: 7;
    padding-top: 0;
    padding-bottom: 0;
}

.search-band > div,
.wide-search,
.filter-panel,
.content-card,
.player-card,
.side-card,
.spotlight-panel,
.category-overview-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-band > div {
    padding: 26px 30px;
}

.search-band h2,
.content-card h2,
.side-card h2,
.spotlight-panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.search-band p,
.content-card p,
.spotlight-panel p {
    margin: 0;
    color: var(--muted);
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 12px;
}

.wide-search input {
    flex: 1;
    padding: 12px 14px;
}

.section-wrap {
    padding-top: 72px;
}

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

.section-heading.compact {
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
    color: var(--rose-dark);
    font-weight: 800;
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    color: var(--text);
    background: linear-gradient(135deg, #fff, #fff7ed);
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(190, 18, 60, 0.1);
    transition: 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-item:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(190, 18, 60, 0.16);
}

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

.category-tile small {
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(244, 63, 94, 0.11);
    border-radius: 22px;
    box-shadow: 0 15px 38px rgba(190, 18, 60, 0.1);
    transition: 0.24s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-badge,
.poster-play {
    position: absolute;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.poster-badge {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
}

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

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

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.side-card a:hover {
    color: var(--rose-dark);
}

.movie-card p {
    margin: 0 0 14px;
    min-height: 52px;
    color: var(--muted);
    font-size: 14px;
}

.movie-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span,
.rank-meta span,
.detail-meta span,
.detail-meta strong {
    padding: 4px 9px;
    background: #fff7ed;
    border-radius: 999px;
}

.detail-meta strong,
.rank-meta strong {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.movie-card .tag-row {
    margin-top: 14px;
}

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

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

.rank-list.large {
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 118px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(244, 63, 94, 0.11);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(190, 18, 60, 0.08);
    transition: 0.2s ease;
}

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

.rank-poster img {
    width: 118px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info h3 {
    margin: 0 0 6px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
}

.spotlight-panel {
    position: sticky;
    top: 100px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.96), rgba(249, 115, 22, 0.94));
    color: #fff;
}

.spotlight-panel p {
    color: rgba(255, 255, 255, 0.86);
}

.spotlight-links {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.spotlight-links a {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
}

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

.page-hero.slim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 260px;
}

.page-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.filter-panel {
    padding: 18px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px;
    gap: 12px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

.all-movies {
    padding-bottom: 72px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 72px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
    transition: 0.2s ease;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding-top: 68px;
    padding-bottom: 24px;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(190, 18, 60, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.14);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-info h1 {
    margin: 16px 0 16px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.lead {
    max-width: 820px;
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 20px;
}

.detail-info .tag-row {
    margin-top: 18px;
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    border-radius: 22px;
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    color: #fff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.72));
}

.video-shell.is-playing .play-overlay {
    display: none;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 999px;
    box-shadow: 0 18px 48px rgba(244, 63, 94, 0.34);
    font-size: 28px;
}

.content-card,
.player-card,
.side-card {
    padding: 24px;
}

.content-card p {
    font-size: 17px;
}

.detail-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

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

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 700;
}

.compact-list {
    display: grid;
    gap: 12px;
}

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

.compact-card img {
    width: 82px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card span {
    font-weight: 800;
}

.site-footer {
    margin-top: 72px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-logo .brand-text {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.footer-brand p {
    max-width: 430px;
    color: #9ca3af;
}

.footer-links h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-links div {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #d1d5db;
}

.footer-links a:hover {
    color: #fb7185;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 720px;
    }

    .hero-poster {
        justify-self: start;
        width: 260px;
    }

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .spotlight-panel,
    .detail-side {
        position: static;
    }

    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

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

    .hero-slider {
        min-height: 660px;
    }

    .hero-slide {
        padding: 82px 18px 70px;
        gap: 26px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 12vw, 56px);
    }

    .search-band {
        grid-template-columns: 1fr;
        margin-top: -32px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .wide-search {
        flex-direction: column;
    }

    .section-wrap,
    .page-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .rank-item {
        grid-template-columns: 42px 92px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 13px;
    }

    .rank-poster img {
        width: 92px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 40px 16px;
    }

    .footer-bottom {
        padding: 18px 16px;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-poster {
        width: 210px;
    }

    .page-hero.slim {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-card p {
        min-height: auto;
    }
}
