:root {
    --bg: #fff7f7;
    --bg-soft: #fffaf0;
    --card: rgba(255, 255, 255, 0.94);
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(244, 63, 94, 0.14);
    --accent: #e11d48;
    --accent-dark: #be123c;
    --amber: #f59e0b;
    --shadow: 0 18px 45px rgba(190, 18, 60, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 32rem),
        linear-gradient(180deg, #fff7f7 0%, #fff 38%, #fffaf0 100%);
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--amber));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

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

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent);
    background: rgba(225, 29, 72, 0.08);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(225, 29, 72, 0.08);
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--accent);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 20%, rgba(251, 113, 133, 0.45), transparent 32rem),
        radial-gradient(circle at 86% 10%, rgba(245, 158, 11, 0.32), transparent 30rem),
        linear-gradient(135deg, #111827 0%, #3f1322 58%, #1f2937 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-content {
    padding: 130px 0 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow,
.detail-intro .eyebrow {
    color: #fecdd3;
}

.hero-content h1,
.page-hero h1,
.detail-intro h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-intro p {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span,
.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-row span {
    color: var(--accent-dark);
    background: rgba(225, 29, 72, 0.08);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.rank-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.rank-play {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--amber));
    box-shadow: 0 14px 32px rgba(225, 29, 72, 0.28);
}

.ghost-btn,
.section-more {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.92);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.rank-play:hover {
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    width: min(430px, 100%);
    justify-self: center;
    transform: rotate(2deg);
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.5), rgba(245, 158, 11, 0.38));
    filter: blur(2px);
}

.hero-image img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button[aria-current="true"] {
    width: 32px;
    background: #fff;
}

.intro-strip {
    position: relative;
    z-index: 4;
    margin-top: -42px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.intro-strip h2,
.section-heading h2,
.detail-main-card h2,
.detail-side-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.intro-strip p,
.section-heading p,
.category-overview-card p,
.detail-main-card p,
.rank-info span {
    color: var(--muted);
    line-height: 1.8;
}

.category-grid-section,
.ranking-preview,
.movie-library,
.category-overview-grid,
.ranking-list,
.detail-content-grid,
.related-section,
.player-section {
    padding: 76px 0 0;
}

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

.section-heading p {
    margin: 10px 0 0;
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    padding: 22px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, #111827, #881337);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
    display: block;
}

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

.category-tile strong {
    max-width: 70%;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.5;
}

.category-tile img {
    position: absolute;
    right: -16px;
    bottom: -22px;
    width: 116px;
    height: 150px;
    object-fit: cover;
    border-radius: 18px;
    transform: rotate(9deg);
    opacity: 0.8;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.search-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 32px rgba(190, 18, 60, 0.08);
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(225, 29, 72, 0.18);
    border-radius: 16px;
    outline: none;
    color: var(--text);
    background: #fff;
    font-size: 16px;
}

.search-box input:focus {
    border-color: rgba(225, 29, 72, 0.55);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}

.search-box button,
.quick-filters button {
    border: 0;
    border-radius: 14px;
    color: var(--accent);
    background: rgba(225, 29, 72, 0.08);
    font-weight: 900;
    cursor: pointer;
}

.search-box button {
    padding: 0 18px;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-filters button {
    min-height: 34px;
    padding: 0 13px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 63, 94, 0.12);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(190, 18, 60, 0.16);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}

.poster-badge,
.poster-link b {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.poster-badge {
    left: 10px;
    top: 10px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(225, 29, 72, 0.92);
}

.poster-link b {
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: var(--accent-dark);
    background: #fff;
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.detail-side-card a:hover {
    color: var(--accent);
}

.movie-desc {
    min-height: 62px;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.movie-card-compact .movie-desc {
    min-height: 48px;
}

.page-hero {
    padding: 118px 0 88px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 22% 0%, rgba(251, 113, 133, 0.5), transparent 28rem),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.38), transparent 24rem),
        linear-gradient(135deg, #111827, #881337 62%, #111827);
}

.page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.small-hero h1,
.ranking-hero h1 {
    font-size: clamp(40px, 5vw, 68px);
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.category-overview-card a {
    display: block;
    padding: 20px;
}

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

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.07);
}

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

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

.rank-info p,
.rank-info h2 {
    margin: 0;
}

.rank-info p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.rank-info h2 {
    margin-top: 4px;
    font-size: 23px;
}

.rank-info span {
    display: block;
    margin-top: 6px;
}

.rank-info .tag-row {
    margin-top: 10px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(20px);
    transform: scale(1.08);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(136, 19, 55, 0.78));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 540px;
    padding: 94px 0 70px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 46px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-meta {
    margin-top: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.22);
}

.player-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.28), rgba(0, 0, 0, 0.34));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--amber));
    box-shadow: 0 18px 42px rgba(225, 29, 72, 0.34);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #fff;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.detail-main-card,
.detail-side-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.detail-main-card h3 {
    margin-top: 30px;
    font-size: 24px;
}

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

.detail-side-card dl {
    display: grid;
    gap: 14px;
    margin: 20px 0;
}

.detail-side-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(225, 29, 72, 0.1);
}

.detail-side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.detail-tags {
    margin-top: 16px;
}

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

.related-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.1);
}

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

.related-card span {
    display: block;
    padding: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    background: #fff;
}

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

.site-footer {
    margin-top: 86px;
    padding: 48px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #fff;
    font-size: 22px;
}

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

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

@media (max-width: 1100px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .mobile-toggle {
        display: block;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 34px;
    }

    .hero-content {
        padding: 52px 0 0;
        order: 2;
    }

    .hero-image {
        width: min(260px, 74%);
        order: 1;
    }

    .intro-strip,
    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 74px minmax(0, 1fr);
    }

    .rank-play {
        grid-column: 2 / -1;
        width: max-content;
    }

    .detail-hero-inner,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 80%);
    }

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

@media (max-width: 560px) {
    .container,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

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

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

    .hero-content h1,
    .page-hero h1,
    .detail-intro h1 {
        font-size: 38px;
    }

    .hero-content p,
    .page-hero p,
    .detail-intro p {
        font-size: 16px;
    }

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

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

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

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

    .movie-desc {
        min-height: 78px;
        font-size: 13px;
    }

    .rank-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .rank-number {
        width: 42px;
        height: 42px;
    }

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

    .detail-main-card,
    .detail-side-card {
        padding: 20px;
    }
}
