:root {
    color-scheme: light;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --pink-500: #ec4899;
    --red-700: #b91c1c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
    --radius-xl: 22px;
    --radius-lg: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gray-50);
    color: var(--gray-900);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--red-700), var(--rose-600), var(--pink-500));
    box-shadow: 0 10px 30px rgba(190, 18, 60, 0.22);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: #ffe4e6;
    font-size: 12px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    color: #fff;
    font-size: 15px;
    flex-wrap: wrap;
}

.main-nav a {
    opacity: 0.92;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    color: #ffe4e6;
    border-color: #ffe4e6;
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 20px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.24), transparent 26%),
        radial-gradient(circle at 80% 40%, rgba(255,255,255,0.16), transparent 30%),
        linear-gradient(135deg, #dc2626, #f43f5e 46%, #ec4899);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 90px;
    background: linear-gradient(to top, var(--gray-50), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
    padding: 92px 0 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 42px;
    align-items: center;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 22px 0 0;
    color: #ffe4e6;
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.75;
}

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

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

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

.button-primary {
    background: #fff;
    color: var(--rose-700);
    box-shadow: 0 18px 38px rgba(127, 29, 29, 0.22);
}

.button-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-pills span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-showcase {
    display: grid;
    gap: 16px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    border-radius: 26px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 24px 60px rgba(127, 29, 29, 0.22);
    backdrop-filter: blur(16px);
}

.hero-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.hero-card p {
    margin: 0;
    color: #ffe4e6;
    line-height: 1.65;
}

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--gray-500);
}

.section-more {
    color: var(--rose-600);
    font-weight: 700;
}

.search-panel,
.filter-panel {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 24px;
}

.search-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 52px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.search-box button {
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #fff;
    background: var(--rose-600);
    font-weight: 700;
    cursor: pointer;
}

.search-results {
    margin-top: 16px;
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--rose-50);
}

.search-result-item img {
    width: 56px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
}

.search-result-item strong {
    display: block;
    margin-bottom: 4px;
}

.search-result-item span {
    display: block;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.55;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.14);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
}

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

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

.badge-year,
.play-mark {
    position: absolute;
    z-index: 1;
}

.badge-year {
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--rose-500);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.play-mark {
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--rose-700);
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    gap: 8px;
    color: var(--rose-600);
    font-size: 13px;
    font-weight: 700;
}

.card-body h3 {
    min-height: 48px;
    margin: 8px 0 8px;
    font-size: 17px;
    line-height: 1.4;
}

.card-body h3 a:hover {
    color: var(--rose-600);
}

.card-body p {
    min-height: 44px;
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--rose-50);
    color: var(--rose-700);
    font-size: 12px;
}

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

.category-card {
    display: block;
    min-height: 170px;
    border-radius: var(--radius-xl);
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.category-card span {
    display: inline-flex;
    margin-top: 16px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.18);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 96px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.07);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: var(--rose-600);
    font-weight: 900;
}

.rank-row img {
    width: 80px;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-row h3 {
    margin: 0 0 8px;
}

.rank-row p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.6;
}

.rank-score {
    color: var(--rose-600);
    font-size: 22px;
    font-weight: 900;
}

.page-hero {
    background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
    color: #fff;
}

.page-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 56px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #ffe4e6;
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    width: min(1280px, calc(100% - 32px));
    margin: 24px auto 0;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 30px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info {
    border-radius: 26px;
    padding: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
}

.info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}

.info-chips span {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--rose-700);
    background: var(--rose-50);
    font-weight: 700;
}

.detail-info p {
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 17px;
}

.player-shell {
    overflow: hidden;
    border-radius: 26px;
    background: #050505;
    box-shadow: var(--shadow);
}

.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.player-status {
    color: #fecdd3;
    font-size: 14px;
}

.video-wrap {
    position: relative;
    background: #000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.play-overlay button {
    pointer-events: auto;
    border: 0;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: var(--rose-700);
    background: rgba(255, 255, 255, 0.92);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.text-block {
    border-radius: 26px;
    padding: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.text-block h2 {
    margin-top: 0;
}

.text-block p {
    color: var(--gray-700);
    line-height: 1.95;
    font-size: 17px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.mini-card:hover {
    color: var(--rose-600);
}

.mini-card strong {
    display: block;
}

.mini-card em {
    display: block;
    grid-column: 2;
    color: var(--gray-500);
    font-style: normal;
    font-size: 13px;
}

.mini-rank {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    background: var(--rose-600);
    font-weight: 800;
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 12px;
    margin-bottom: 24px;
}

.no-results {
    display: none;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    color: var(--gray-500);
    text-align: center;
}

.site-footer {
    margin-top: 48px;
    padding: 48px 0 28px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 30px;
}

.site-footer h3,
.site-footer h4 {
    color: #fff;
    margin-top: 0;
}

.site-footer p {
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

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

.copyright {
    width: min(1280px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 760px) {
    .topbar {
        min-height: 66px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 18px;
        background: #be123c;
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        padding: 12px;
    }

    .hero-inner {
        min-height: auto;
        padding: 64px 0 92px;
    }

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

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

    .rank-score {
        grid-column: 3;
        font-size: 18px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }
}
