:root {
    --color-rose: #e11d48;
    --color-rose-dark: #be123c;
    --color-rose-soft: #fff1f2;
    --color-amber: #f59e0b;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f8fafc;
    --color-border: #e5e7eb;
    --color-footer: #111827;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    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: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), #fb7185);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.28);
    font-size: 14px;
}

.brand-name {
    color: var(--color-text);
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--color-rose);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-link {
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 14px;
}

.hero-shell {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-bg,
.page-hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
}

.hero-layer,
.page-hero-layer,
.detail-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(225, 29, 72, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 920px);
    color: #ffffff;
    text-align: center;
    padding: 80px 0 150px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: #fb7185;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero-content h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 78px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content h2 {
    margin-top: 12px;
    font-size: clamp(26px, 4vw, 48px);
}

.hero-summary,
.page-hero-content p,
.detail-one-line {
    width: min(100%, 760px);
    margin: 22px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2.2vw, 22px);
}

.hero-actions,
.detail-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), #fb7185);
    box-shadow: 0 18px 32px rgba(225, 29, 72, 0.28);
}

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

.hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-pills span {
    padding: 9px 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 126px;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.hero-dots {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

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

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

.hero-mini-strip {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 6;
    width: min(100% - 32px, var(--max-width));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    transform: translateX(-50%);
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card:hover {
    transform: translateY(-3px);
    background: rgba(15, 23, 42, 0.72);
}

.hero-mini-card img {
    width: 62px;
    height: 76px;
    object-fit: cover;
    border-radius: 14px;
}

.hero-mini-card span {
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.section-light,
.section-warm {
    width: 100%;
    padding-left: max(16px, calc((100% - var(--max-width)) / 2));
    padding-right: max(16px, calc((100% - var(--max-width)) / 2));
}

.section-light {
    background: #f9fafb;
}

.section-warm {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-heading.centered {
    display: block;
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.text-link {
    color: var(--color-rose);
    font-weight: 800;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--color-rose-dark);
}

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

.category-tile {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-rose), #fb7185);
    border-radius: 16px;
    font-weight: 900;
}

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

.category-tile em {
    margin-top: 10px;
    color: var(--color-muted);
    font-style: normal;
    font-size: 14px;
}

.accent-orange .category-icon { background: linear-gradient(135deg, #f97316, #f59e0b); }
.accent-purple .category-icon { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.accent-red .category-icon { background: linear-gradient(135deg, #dc2626, #f43f5e); }
.accent-slate .category-icon { background: linear-gradient(135deg, #0f172a, #475569); }
.accent-pink .category-icon { background: linear-gradient(135deg, #db2777, #fb7185); }
.accent-amber .category-icon { background: linear-gradient(135deg, #d97706, #fbbf24); }
.accent-indigo .category-icon { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.accent-green .category-icon { background: linear-gradient(135deg, #16a34a, #4ade80); }
.accent-blue .category-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.accent-cyan .category-icon { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.accent-violet .category-icon { background: linear-gradient(135deg, #6d28d9, #c084fc); }

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

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 29, 72, 0.28);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .poster-image {
    transform: scale(1.05);
}

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
}

.poster-badge,
.poster-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.poster-badge {
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(225, 29, 72, 0.92);
}

.poster-type {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

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

.movie-meta-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line span + span::before {
    content: "•";
    margin-right: 9px;
    color: #d1d5db;
}

.movie-card h2 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.32;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.movie-card h2 a:hover {
    color: var(--color-rose);
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

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

.movie-card-compact .movie-card-body {
    padding: 14px;
}

.movie-card-compact h2 {
    font-size: 16px;
}

.movie-card-compact p {
    display: none;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.page-hero {
    min-height: 460px;
    display: grid;
    place-items: center;
}

.compact-hero {
    min-height: 390px;
}

.ranking-hero {
    min-height: 520px;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 880px);
    text-align: center;
    padding: 82px 0;
}

.filter-panel {
    margin: 0 0 30px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--color-text);
    font-weight: 900;
}

.search-box input,
.filter-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    background: #f9fafb;
    color: var(--color-text);
    outline: 0;
}

.search-box input {
    padding: 0 16px;
}

.filter-select {
    padding: 0 14px;
}

.search-box input:focus,
.filter-select:focus {
    border-color: rgba(225, 29, 72, 0.52);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.result-status {
    margin: 14px 0 0;
    color: var(--color-muted);
    font-size: 14px;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 28px;
    text-align: center;
    color: var(--color-muted);
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius-xl);
}

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

.movie-card.is-hidden {
    display: none;
}

.detail-hero {
    min-height: 620px;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 34px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 44px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    align-items: center;
    gap: 46px;
}

.detail-poster {
    width: 290px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.20);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-copy {
    max-width: 780px;
}

.detail-copy .eyebrow {
    color: #fecdd3;
}

.detail-copy .detail-actions {
    justify-content: flex-start;
}

.detail-copy .detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.watch-section {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    padding: 72px 0 20px;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(225, 29, 72, 0.34), transparent 32%),
        rgba(2, 6, 23, 0.52);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-symbol {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-rose), #fb7185);
    box-shadow: 0 22px 42px rgba(225, 29, 72, 0.38);
    font-size: 32px;
}

.player-cover span:last-child {
    font-size: 22px;
    font-weight: 900;
}

.detail-text-section {
    padding-top: 52px;
}

.detail-article {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-article h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 900;
}

.detail-article p {
    margin: 0 0 26px;
    color: #374151;
    font-size: 17px;
}

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

.detail-meta-list div {
    padding: 16px;
    background: #f9fafb;
    border-radius: 18px;
}

.detail-meta-list dt {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.detail-meta-list dd {
    margin: 6px 0 0;
    color: var(--color-text);
    font-weight: 900;
}

.site-footer {
    color: #d1d5db;
    background: var(--color-footer);
}

.footer-inner {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #ffffff;
    font-size: 21px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.footer-column ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

    .rank-grid,
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .hero-mini-card:nth-child(n + 4) {
        display: none;
    }

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

    .detail-poster {
        width: 240px;
    }

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

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

    .menu-toggle {
        display: flex;
    }

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

    .hero-content {
        padding: 58px 0 220px;
    }

    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-mini-strip {
        grid-template-columns: 1fr;
        bottom: 20px;
    }

    .hero-mini-card:nth-child(n + 2) {
        display: none;
    }

    .hero-controls {
        bottom: 128px;
    }

    .section {
        padding: 52px 0;
    }

    .section-light,
    .section-warm {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading {
        display: block;
    }

    .section-heading .text-link {
        display: inline-block;
        margin-top: 12px;
    }

    .category-grid,
    .movie-grid,
    .featured-grid,
    .rank-grid,
    .related-grid,
    .rank-page-grid,
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .page-hero,
    .compact-hero,
    .ranking-hero {
        min-height: 360px;
    }

    .detail-hero {
        min-height: auto;
    }

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

    .detail-poster {
        width: min(100%, 260px);
        margin: 0 auto;
    }

    .detail-copy {
        text-align: center;
    }

    .detail-copy .detail-actions {
        justify-content: center;
    }

    .detail-tags {
        justify-content: center;
    }

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

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

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

@media (max-width: 480px) {
    .header-inner {
        width: min(100% - 24px, var(--max-width));
    }

    .brand-name {
        font-size: 19px;
    }

    .category-grid,
    .movie-grid,
    .featured-grid,
    .rank-grid,
    .related-grid,
    .rank-page-grid,
    .search-grid {
        grid-template-columns: 1fr;
    }

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

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