:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --orange: #f97316;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --panel: rgba(255, 255, 255, 0.86);
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0, #ffffff 360px, #f9fafb 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: var(--container);
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--ink);
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 22px rgba(244, 63, 94, 0.28);
    font-size: 13px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
    color: #374151;
}

.main-nav a,
.main-nav button {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav button:hover {
    color: var(--rose);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 40px;
    right: 0;
    min-width: 180px;
    padding: 12px;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
}

.dropdown-panel a:hover {
    background: #fff1f2;
}

.menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
}

.mobile-nav {
    display: none;
    padding: 10px 22px 18px;
    border-top: 1px solid var(--line);
    background: white;
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    font-weight: 700;
    color: #374151;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    padding: 44px 22px 64px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(244, 63, 94, 0.22), transparent 32%),
        radial-gradient(circle at 76% 10%, rgba(249, 115, 22, 0.28), transparent 28%),
        radial-gradient(circle at 65% 78%, rgba(245, 158, 11, 0.18), transparent 32%);
}

.hero-inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
}

.hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    color: var(--rose-dark);
    font-weight: 800;
}

.hero-topline a,
.text-link {
    color: var(--rose-dark);
    font-weight: 900;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    border-radius: 36px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.62fr);
    gap: 46px;
    align-items: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.page-hero span,
.rank-panel-head span {
    color: var(--rose-dark);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    color: var(--ink);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 18px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-row span,
.rank-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 800;
}

.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: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 16px 28px rgba(244, 63, 94, 0.26);
}

.btn.ghost {
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
    z-index: 1;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: white;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 54px;
    bottom: 32px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fecdd3;
}

.hero-dots button.active {
    width: 34px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.hero-search {
    max-width: 760px;
    margin: -30px auto 0;
    position: relative;
    z-index: 6;
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 999px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 18px;
    color: var(--ink);
}

.hero-search button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    border-radius: 999px;
    min-height: 46px;
    padding: 0 24px;
    font-weight: 900;
}

.section-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 64px 22px;
}

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

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

.section-heading h2,
.page-hero h1,
.rank-panel-head h2 {
    margin: 6px 0 8px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
}

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

.category-card,
.overview-card,
.content-card {
    background: var(--panel);
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.category-card {
    min-height: 186px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card span {
    color: var(--rose-dark);
    font-weight: 900;
    font-size: 13px;
}

.category-card strong {
    font-size: 24px;
    letter-spacing: -0.04em;
}

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

.soft-panel {
    max-width: calc(var(--container) + 44px);
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.76), rgba(255, 247, 237, 0.92));
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(17, 24, 39, 0.72);
    font-weight: 900;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

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

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.compact-card h3 {
    font-size: 17px;
}

.movie-card h3 a:hover,
.rank-copy h3 a:hover,
.overview-title:hover {
    color: var(--rose-dark);
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
}

.card-meta a {
    color: var(--rose-dark);
}

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 28px;
    background: #111827;
    color: white;
    box-shadow: var(--shadow);
}

.rank-panel-head {
    margin-bottom: 18px;
}

.rank-panel-head h2 {
    margin-bottom: 8px;
}

.rank-panel-head a {
    color: #fb7185;
    font-weight: 900;
}

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 68px 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.small-rank .rank-item {
    grid-template-columns: 54px 34px minmax(0, 1fr);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.rank-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe4e6, #fed7aa);
}

.rank-number {
    font-weight: 950;
    font-size: 22px;
    color: var(--rose);
}

.rank-copy h3 {
    margin: 6px 0 4px;
    font-size: 18px;
    line-height: 1.28;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.small-rank .rank-copy p,
.small-rank .rank-tags {
    display: none;
}

.small-rank .text-link {
    display: none;
}

.page-main {
    background: #f9fafb;
}

.page-hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 22px 34px;
}

.page-hero > div {
    border-radius: 34px;
    padding: 46px;
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 24%, rgba(249, 115, 22, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.small-actions {
    margin-top: 22px;
}

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

.overview-card {
    padding: 24px;
}

.overview-title {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.overview-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 800;
}

.list-toolbar {
    margin-bottom: 24px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto 180px;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.search-box,
.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 900;
}

.search-box input,
.sort-box select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 14px;
    outline: none;
    background: #f9fafb;
}

.search-box input:focus,
.sort-box select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    color: #4b5563;
    background: white;
    font-weight: 900;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: white;
}

.empty-state.show {
    display: block;
}

.detail-hero {
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px 22px 38px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fed7aa);
    box-shadow: var(--shadow);
}

.detail-copy {
    min-width: 0;
}

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

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

.detail-copy h1 {
    margin: 10px 0 16px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

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

.player-wrap {
    padding-top: 26px;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    color: white;
    background:
        radial-gradient(circle at center, rgba(244, 63, 94, 0.4), rgba(2, 6, 23, 0.84)),
        linear-gradient(135deg, rgba(2, 6, 23, 0.35), rgba(15, 23, 42, 0.92));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
}

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

.play-symbol {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.4);
    font-size: 26px;
    padding-left: 4px;
}

.player-mask strong {
    font-size: 24px;
}

.player-mask em {
    max-width: 78%;
    color: #fecdd3;
    font-style: normal;
    font-weight: 800;
}

.detail-text {
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 50%, #111827);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 52px 22px 30px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 36px;
}

.footer-logo {
    color: white;
    margin-bottom: 16px;
}

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

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

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

.footer-links a {
    color: #9ca3af;
    font-weight: 700;
}

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

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 22px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

    .menu-button {
        display: flex;
    }

    .mobile-nav.open {
        display: block;
    }

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

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

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

    .overview-grid,
    .detail-text,
    .split-layout,
    .footer-inner,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

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

@media (max-width: 640px) {
    .nav-wrap {
        min-height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 15px;
    }

    .hero-section {
        padding: 28px 14px 42px;
    }

    .hero-slider {
        min-height: 690px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 24px;
        min-height: 690px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-dots {
        left: 24px;
        bottom: 22px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 24px;
        margin-top: 18px;
    }

    .hero-search input {
        min-height: 44px;
    }

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

    .section-heading {
        display: block;
    }

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

    .page-hero > div {
        padding: 28px;
        border-radius: 26px;
    }

    .rank-item {
        grid-template-columns: 62px 34px minmax(0, 1fr);
    }

    .large-rank .rank-item .text-link {
        display: none;
    }

    .detail-copy h1 {
        font-size: 38px;
    }

    .player-shell {
        border-radius: 20px;
    }
}
