:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #ea580c;
    --gold: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f4d7d7;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(190, 18, 60, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #fff7ed 100%);
}

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

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

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

.nav-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    color: var(--rose-dark);
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
}

.desktop-nav a {
    padding: 10px 0;
    position: relative;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.desktop-nav a:hover {
    color: var(--rose);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--rose-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid #ffe4e6;
    background: rgba(255, 255, 255, 0.96);
}

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

.home-hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #7f1d1d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(190, 18, 60, 0.94), rgba(234, 88, 12, 0.78) 48%, rgba(17, 24, 39, 0.34));
}

.hero-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(0deg, #fff7ed, rgba(255, 247, 237, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 80px 20px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-label {
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.hero-content h1 span {
    display: block;
    color: #ffe4e6;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 24px;
    color: #fff1f2;
    font-size: 20px;
    line-height: 1.8;
}

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

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

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

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

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

.primary-button {
    color: var(--rose);
    background: white;
    box-shadow: 0 22px 45px rgba(127, 29, 29, 0.26);
}

.ghost-button {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.88);
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

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

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

.hero-dot.is-active {
    width: 36px;
    background: white;
}

.search-band,
.section-shell,
.detail-hero,
.detail-content,
.breadcrumb {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.search-band {
    margin-top: -36px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    gap: 24px;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid rgba(244, 63, 94, 0.12);
}

.search-band.compact {
    margin-top: 28px;
}

.search-band h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.search-band p {
    margin: 0;
    color: var(--muted);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.search-box span {
    color: var(--rose);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}

.section-shell {
    padding-top: 70px;
    padding-bottom: 8px;
}

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

.section-heading.centered {
    align-items: center;
}

.section-heading span,
.page-hero span,
.detail-label {
    color: var(--rose);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2,
.page-hero h1 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-more {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.2);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(190, 18, 60, 0.17);
}

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

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.mini-card:hover img {
    transform: scale(1.09);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.02) 62%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-pill,
.rank-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rose);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.rank-badge {
    top: 12px;
    bottom: auto;
    left: 12px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    opacity: 1;
    transform: none;
}

.movie-card:hover .play-pill {
    opacity: 1;
    transform: translateY(0);
}

.movie-info {
    padding: 18px;
}

.movie-info h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

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

.movie-desc {
    min-height: 46px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

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

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

.category-tile {
    min-height: 245px;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    box-shadow: var(--shadow);
}

.category-tile img,
.category-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-cover {
    background: linear-gradient(0deg, rgba(127, 29, 29, 0.9), rgba(225, 29, 72, 0.42) 58%, rgba(234, 88, 12, 0.38));
}

.category-tile strong,
.category-tile small,
.category-tile em {
    position: relative;
    z-index: 1;
}

.category-tile strong {
    font-size: 24px;
    font-weight: 950;
}

.category-tile small {
    max-width: 88%;
    margin-top: 8px;
    color: #ffe4e6;
    line-height: 1.6;
}

.category-tile em {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-style: normal;
}

.category-tile em span {
    padding: 4px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

.page-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    color: var(--ink);
    background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.22), transparent 30%), linear-gradient(135deg, #fff7ed, #ffe4e6);
}

.page-hero > div {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 20px;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 18px;
}

.page-actions .ghost-button {
    color: var(--rose);
    border-color: var(--rose);
}

.page-actions .primary-button {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.breadcrumb {
    padding-top: 28px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--rose);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 28px;
    padding-top: 24px;
}

.player-card,
.detail-panel,
.content-card {
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid rgba(244, 63, 94, 0.1);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #111827;
}

.video-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.3), rgba(17, 24, 39, 0.52));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-start span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    background: white;
    font-size: 34px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.video-start.is-hidden {
    display: none;
}

.detail-panel {
    overflow: hidden;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.detail-copy {
    padding: 22px;
}

.detail-copy h1 {
    margin: 8px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: #374151;
    line-height: 1.75;
    font-size: 17px;
}

.tag-row.large span {
    min-height: 32px;
    padding: 7px 12px;
}

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

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.related-shell {
    padding-top: 44px;
}

.next-links {
    display: flex;
    gap: 10px;
}

.next-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--rose);
    background: #fff1f2;
    font-weight: 900;
}

.mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.mini-card img {
    width: 72px;
    height: 90px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.35s ease;
}

.mini-card b {
    display: block;
    margin-bottom: 6px;
}

.mini-card small {
    color: var(--muted);
}

.site-footer {
    margin-top: 82px;
    color: #fff1f2;
    background: linear-gradient(135deg, #9f1239, #c2410c);
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: white;
}

.site-footer p {
    max-width: 520px;
    line-height: 1.8;
    color: #ffe4e6;
}

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

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 9px 0;
    color: #ffe4e6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    color: #ffe4e6;
    font-size: 14px;
}

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

    .mobile-toggle {
        display: block;
    }

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

    .movie-grid,
    .ranking-grid,
    .related-grid,
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .home-hero {
        height: 620px;
    }

    .hero-content {
        padding-top: 70px;
        padding-bottom: 110px;
    }

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

    .search-band {
        margin-top: -22px;
        border-radius: 22px;
    }

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

    .movie-grid,
    .ranking-grid,
    .related-grid,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

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

    .video-start span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
