:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --gold: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff1f2;
    --panel: #ffffff;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links > a,
.nav-dropdown > button {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    border: 0;
    background: transparent;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-dropdown:hover > button {
    color: var(--rose-dark);
    background: #ffe4e6;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: 44px;
    width: 190px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid #ffe4e6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 9px 10px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 700;
}

.dropdown-panel a:hover {
    background: #fff1f2;
    color: var(--rose-dark);
}

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #ffe4e6;
    background: #ffffff;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-dark);
}

.hero {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 96px max(24px, calc((100vw - 1200px) / 2)) 86px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-backdrop,
.page-hero.category-hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.25)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(244, 63, 94, 0.42), transparent 28%), linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fb7185;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.hero-summary {
    margin: 24px 0 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.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;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--rose), #fb7185);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.34);
}

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

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

.hero-poster {
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.hero-poster span {
    display: block;
    margin-top: 12px;
    color: #ffffff;
    font-weight: 900;
    text-align: center;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
}

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

.search-band {
    position: relative;
    z-index: 3;
    margin-top: -42px;
    padding: 0 16px;
}

.search-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    border: 1px solid #ffe4e6;
}

.search-inner h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 950;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #ffe4e6;
}

.search-box.wide {
    max-width: 620px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.92);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font-weight: 700;
}

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

.quick-filters button {
    border: 1px solid #fecdd3;
    background: #ffffff;
    color: var(--rose-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
}

.quick-filters button.active,
.quick-filters button:hover {
    background: var(--rose);
    color: #ffffff;
}

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

.content-section.soft {
    width: 100%;
    padding-left: max(16px, calc((100vw - 1200px) / 2));
    padding-right: max(16px, calc((100vw - 1200px) / 2));
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section-link {
    flex: 0 0 auto;
    color: var(--rose-dark);
    font-weight: 900;
    border-bottom: 2px solid #fecdd3;
}

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

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

.movie-card {
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #f3f4f6;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: 0.3s ease;
}

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

.badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.top-left {
    left: 12px;
    background: var(--rose);
}

.top-right {
    right: 12px;
    background: #2563eb;
}

.play-dot {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.96);
    color: #ffffff;
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.3;
}

.meta,
.line {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    background: #fff1f2;
    color: var(--rose-dark);
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 26px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.86)), var(--tile-image);
    background-size: cover;
    background-position: center;
    transition: transform 0.45s ease;
}

.category-tile:hover::before {
    transform: scale(1.08);
}

.category-tile span,
.category-tile strong {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

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

.category-tile strong {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    line-height: 1.6;
}

.rank-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 96px max(24px, calc((100vw - 1200px) / 2));
    background: radial-gradient(circle at 12% 20%, rgba(244, 63, 94, 0.42), transparent 30%), linear-gradient(135deg, #111827, #881337);
}

.page-hero.small {
    display: flex;
    align-items: center;
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.page-hero p:not(.eyebrow) {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.page-hero.category-hero::before {
    content: "";
    z-index: 0;
    filter: blur(0) saturate(1.1);
}

.breadcrumb {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

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

.detail-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 36px;
    border-radius: 34px;
    padding: 30px;
    background: radial-gradient(circle at 16% 18%, rgba(244, 63, 94, 0.34), transparent 28%), linear-gradient(135deg, #111827, #4c0519);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.detail-line {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta,
.detail-tags {
    margin-top: 20px;
}

.player-section {
    width: min(1200px, calc(100% - 32px));
    margin: 42px auto 0;
}

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

.video-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.48));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rose);
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 22px 44px rgba(244, 63, 94, 0.36);
}

.video-stage.is-playing .video-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-body {
    width: min(1200px, calc(100% - 32px));
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

.detail-body article,
.detail-body aside {
    border-radius: 28px;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid #f3f4f6;
}

.detail-body h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.detail-body p {
    margin: 0 0 24px;
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-list a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #f9fafb;
    font-weight: 900;
}

.side-list img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.rank-list {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 54px 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.rank-num {
    font-size: 28px;
    font-weight: 950;
    color: var(--rose-dark);
    text-align: center;
}

.rank-item img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.rank-item h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.rank-item p,
.rank-item strong {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.6;
}

.site-footer {
    margin-top: 72px;
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p,
.site-footer a {
    display: block;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

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

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-dropdown {
        display: none;
    }

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

    .hero-poster {
        display: none;
    }

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

    .detail-hero,
    .detail-body,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .nav-wrap,
    .content-section,
    .breadcrumb,
    .detail-hero,
    .detail-body,
    .player-section,
    .footer-grid {
        width: min(100% - 24px, 1200px);
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: 72vh;
    }

    .hero-slide {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-actions,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-strip {
        grid-auto-columns: 76%;
    }

    .rank-item a {
        grid-template-columns: 42px 72px 1fr;
        gap: 12px;
    }

    .rank-item h3 {
        font-size: 18px;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-line {
        font-size: 17px;
    }
}
