:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --rose-900: #881337;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --ink: #16151c;
    --muted: #6b7280;
    --line: rgba(136, 19, 55, 0.12);
    --card: rgba(255, 255, 255, 0.86);
    --shadow: 0 24px 70px rgba(136, 19, 55, 0.16);
    --soft-shadow: 0 14px 32px rgba(136, 19, 55, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, var(--rose-50), var(--amber-50) 48%, #ffffff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 241, 242, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(136, 19, 55, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 74px;
}

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
    box-shadow: 0 10px 22px rgba(225, 29, 72, 0.25);
}

.brand-name {
    white-space: nowrap;
    font-size: 20px;
}

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

.nav-link {
    padding: 9px 13px;
    color: #4b5563;
    border-radius: 999px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose-700);
    background: rgba(255, 255, 255, 0.82);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    width: min(360px, 30vw);
    min-width: 240px;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(136, 19, 55, 0.08);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: var(--ink);
    background: transparent;
}

.header-search button {
    flex: 0 0 auto;
    margin: 4px;
    padding: 0 14px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
}

.site-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.site-search-results.is-visible {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--rose-100);
}

.search-result-item strong {
    display: block;
    color: var(--rose-900);
    font-size: 14px;
}

.search-result-item span {
    color: var(--muted);
    font-size: 12px;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--rose-900);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.08));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--amber-400);
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--amber-400);
    box-shadow: 0 0 22px var(--amber-400);
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero p {
    width: min(650px, 100%);
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.movie-meta-row,
.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-meta {
    margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--rose-900);
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 800;
}

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

.btn,
.text-button,
.filter-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(225, 29, 72, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.text-button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(225, 29, 72, 0.28);
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.hero-panel h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.hero-thumbs {
    display: grid;
    gap: 12px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(3px);
}

.hero-thumb img {
    width: 72px;
    height: 88px;
    object-fit: cover;
    border-radius: 13px;
}

.hero-thumb strong {
    display: block;
    font-size: 15px;
}

.hero-thumb span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

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

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

.hero-dot.is-active {
    width: 30px;
    background: var(--amber-400);
}

.hero-search-card {
    position: relative;
    z-index: 3;
    margin-top: -42px;
}

.hero-search-card .search-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.hero-search-card input {
    border: 0;
    outline: 0;
    padding: 0 14px;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}

.hero-search-card button {
    min-height: 52px;
    padding: 0 28px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
    font-weight: 900;
}

.section {
    padding: 72px 0 0;
}

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

.section-kicker {
    margin: 0 0 6px;
    color: var(--rose-600);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section h2,
.page-hero h1,
.detail-section h2 {
    margin: 0;
    color: var(--rose-900);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-lead,
.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--rose-100);
}

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

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.poster-play,
.rank-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: 12px;
    right: auto;
    bottom: auto;
    top: 12px;
}

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

.movie-meta-row {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3,
.rank-content h3 {
    margin: 8px 0 0;
    color: var(--rose-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p,
.rank-content p {
    margin: 8px 0 0;
    color: #55515f;
    line-height: 1.65;
    font-size: 14px;
}

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

.tag-row span {
    color: var(--rose-700);
    background: var(--rose-100);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(254, 243, 199, 0.76));
    box-shadow: var(--soft-shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -46px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(245, 158, 11, 0.25));
}

.category-tile strong {
    display: block;
    color: var(--rose-900);
    font-size: 24px;
    font-weight: 950;
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    display: inline-flex;
    margin-top: 12px;
    color: var(--rose-600);
    font-weight: 900;
}

.category-tile p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero,
.detail-hero {
    padding: 70px 0 34px;
}

.page-hero-card,
.detail-hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 228, 230, 0.66));
    box-shadow: var(--shadow);
}

.page-hero-card {
    padding: 38px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 180px 150px auto;
    gap: 12px;
    align-items: center;
    margin: 24px 0 30px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 0 14px;
    color: var(--ink);
    background: #ffffff;
}

.filter-panel button {
    min-height: 46px;
    box-shadow: none;
}

.filter-count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 84px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
    font-weight: 950;
}

.rank-thumb img {
    width: 84px;
    height: 108px;
    object-fit: cover;
    border-radius: 16px;
}

.detail-hero-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    padding: 24px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-content h1 {
    color: var(--rose-900);
}

.detail-content p {
    margin: 18px 0 0;
    color: #55515f;
    line-height: 1.85;
}

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

.player-section {
    padding-top: 28px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-600), var(--amber-500));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

.play-overlay strong {
    font-size: 20px;
    font-weight: 950;
}

.detail-section {
    padding: 44px 0 0;
}

.text-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
}

.text-panel p {
    color: #4b4657;
    line-height: 1.95;
}

.text-panel p + p {
    margin-top: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.empty-state {
    display: none;
    padding: 40px;
    border-radius: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.86);
    text-align: center;
}

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

.site-footer {
    margin-top: 84px;
    padding: 46px 0;
    color: #5b5364;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 228, 230, 0.72));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.site-footer p {
    max-width: 620px;
    margin: 12px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--rose-900);
    background: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

@media (max-width: 1040px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mobile-menu-button {
        display: flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-search {
        order: 4;
        width: 100%;
        min-width: 0;
    }

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

    .hero-panel {
        display: none;
    }

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

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

    .rank-row {
        grid-template-columns: 56px 74px 1fr;
    }

    .rank-row .text-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        height: 660px;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.28));
    }

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

    .hero p {
        font-size: 16px;
    }

    .hero-search-card .search-shell {
        grid-template-columns: 1fr;
    }

    .section-header,
    .footer-grid {
        display: block;
    }

    .section-actions,
    .footer-links {
        justify-content: flex-start;
        margin-top: 18px;
    }

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

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

    .filter-panel,
    .detail-hero-card {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 48px 66px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .rank-thumb img {
        width: 66px;
        height: 86px;
        border-radius: 12px;
    }

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

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

    .hero-actions,
    .detail-actions {
        display: grid;
    }

    .page-hero-card,
    .text-panel {
        padding: 22px;
    }
}
