:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --orange-400: #fb923c;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 18px 36px rgba(244, 63, 94, 0.14);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 32%, #fff7ed 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-400));
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.3);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500), var(--orange-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    margin-top: 3px;
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

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

.desktop-nav a,
.nav-dropdown > a {
    color: var(--slate-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown > a:hover,
.nav-dropdown > a.is-active {
    color: var(--rose-600);
}

.nav-dropdown {
    position: relative;
    padding: 24px 0;
}

.nav-dropdown-panel {
    position: absolute;
    top: 68px;
    left: -18px;
    width: 180px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

.nav-dropdown-panel a:hover {
    background: var(--rose-50);
}

.header-search {
    display: flex;
    align-items: center;
    width: 270px;
    border: 1px solid rgba(244, 63, 94, 0.22);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.header-search input,
.mobile-search input,
.inline-filter input,
.big-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--slate-800);
    background: transparent;
}

.header-search input {
    padding: 11px 14px;
}

.header-search button,
.mobile-search button,
.big-search button {
    border: 0;
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

.menu-toggle {
    display: none;
    border: 0;
    color: var(--rose-600);
    font-size: 24px;
    cursor: pointer;
    background: transparent;
}

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

.mobile-panel a {
    padding: 10px 12px;
    color: var(--slate-700);
    border-radius: 12px;
    font-weight: 700;
}

.mobile-panel a:hover {
    background: var(--rose-50);
    color: var(--rose-600);
}

.mobile-search {
    display: flex;
    margin-bottom: 8px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button {
    padding: 12px 18px;
}

.hero {
    position: relative;
    height: 650px;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-950);
}

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

.hero-slide {
    display: flex;
    align-items: center;
    opacity: 0;
    background-image: linear-gradient(90deg, rgba(190, 18, 60, 0.94), rgba(219, 39, 119, 0.76), rgba(251, 146, 60, 0.38)), var(--hero-image);
    background-position: center;
    background-size: cover;
    transition: opacity 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.26), transparent 28%), linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 14px;
    color: var(--rose-600);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.hero h1 {
    max-width: 720px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(18px, 2.3vw, 25px);
    line-height: 1.7;
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 800;
    background: var(--rose-50);
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.primary-button,
.ghost-button,
.text-link,
.section-more,
.ranking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 14px 28px;
    color: var(--rose-600);
    background: var(--white);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

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

.ghost-button {
    padding: 12px 26px;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 34px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    width: 58px;
    background: var(--white);
}

.content-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

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

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

.section-heading p {
    margin: 8px 0 0;
    color: var(--slate-500);
    font-size: 16px;
}

.section-more,
.text-link {
    color: var(--rose-600);
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-400));
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #a855f7, #ec4899, #fb7185);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #f43f5e);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(244, 63, 94, 0.22);
}

.category-tile span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 18px;
    font-size: 22px;
}

.category-tile em {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-style: normal;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-50), #fff7ed);
}

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

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

.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.poster-type {
    right: 10px;
    bottom: 10px;
}

.rank-badge {
    top: 10px;
    left: 10px;
}

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

.movie-meta,
.ranking-meta {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-info h3 a:hover {
    color: var(--rose-600);
}

.movie-card p {
    min-height: 68px;
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.65;
}

.soft-panel {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - var(--max)) / 2));
    padding-right: max(16px, calc((100vw - var(--max)) / 2));
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.75), rgba(255, 247, 237, 0.6));
}

.ranking-preview-list,
.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 54px 82px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.ranking-poster {
    display: block;
    width: 82px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--rose-50);
}

.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-info p {
    margin: 4px 0 0;
    color: var(--slate-600);
    line-height: 1.55;
}

.ranking-action {
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500), var(--orange-400));
}

.page-hero-inner,
.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    color: var(--white);
}

.page-hero-inner {
    padding: 82px 0;
}

.small-hero .page-hero-inner {
    padding: 72px 0;
}

.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 800;
}

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

.inline-filter,
.big-search {
    display: flex;
    max-width: 620px;
    margin-top: 28px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.inline-filter input,
.big-search input {
    padding: 15px 20px;
}

.big-search button {
    min-width: 120px;
    border: 0;
    cursor: pointer;
}

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

.category-card-large {
    padding: 26px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.category-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-card-head span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.category-card-head h2 {
    margin: 0;
    font-size: 24px;
}

.category-card-large p {
    margin: 16px 0;
    color: var(--slate-600);
    line-height: 1.7;
}

.category-sample-links {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.category-sample-links a {
    color: var(--slate-700);
    font-weight: 700;
}

.category-sample-links a:hover {
    color: var(--rose-600);
}

.detail-hero {
    min-height: 580px;
    color: var(--white);
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(190, 18, 60, 0.78), rgba(251, 146, 60, 0.36)), var(--detail-image);
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.detail-hero-inner {
    padding: 58px 0 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 42px;
    align-items: center;
    margin-top: 36px;
}

.detail-poster {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.32);
}

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

.detail-copy .eyebrow {
    background: rgba(255, 255, 255, 0.94);
}

.detail-copy h1 {
    max-width: 850px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

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

.detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-copy .primary-button {
    margin-top: 28px;
}

.player-content {
    padding-bottom: 24px;
}

.player-shell {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-950);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--slate-950);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.34), rgba(15, 23, 42, 0.74));
    transition: opacity 0.2s ease;
}

.play-triangle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 20px 46px rgba(244, 63, 94, 0.38);
}

.play-triangle::before {
    content: "";
    margin-left: 5px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid var(--white);
}

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

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

.detail-section {
    padding-top: 24px;
}

.detail-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-text-grid article {
    padding: 28px;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.detail-text-grid h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-text-grid p {
    margin: 0;
    color: var(--slate-600);
    font-size: 16px;
    line-height: 1.9;
}

.search-heading {
    align-items: start;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, var(--slate-950), #4c0519);
}

.footer-inner {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    gap: 16px;
}

.footer-brand {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 760px;
    margin: 0;
    line-height: 1.7;
}

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

.footer-links a:hover {
    color: var(--white);
}

[data-card].is-hidden {
    display: none;
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        padding: 14px 0;
    }

    .header-search {
        display: none;
    }

    .hero {
        height: 590px;
        min-height: 590px;
    }

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

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

    .category-grid,
    .movie-grid,
    .dense-grid,
    .category-large-grid,
    .detail-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-row {
        grid-template-columns: 42px 70px 1fr;
    }

    .ranking-action {
        grid-column: 2 / 4;
        width: fit-content;
    }

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

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

@media (max-width: 560px) {
    .brand-copy em {
        display: none;
    }

    .hero {
        height: 620px;
    }

    .hero-content,
    .content-section,
    .page-hero-inner,
    .detail-hero-inner,
    .footer-inner,
    .header-inner,
    .mobile-panel {
        width: min(100% - 24px, var(--max));
    }

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

    .category-grid,
    .movie-grid,
    .dense-grid,
    .category-large-grid,
    .detail-text-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 38px 66px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .ranking-info h3 {
        font-size: 17px;
    }

    .ranking-info p {
        font-size: 13px;
    }

    .page-hero-inner {
        padding: 56px 0;
    }

    .detail-hero-inner {
        padding: 42px 0 58px;
    }

    .detail-meta span {
        font-size: 13px;
    }
}
