* {
    box-sizing: border-box;
}

:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --orange: #f97316;
    --orange-soft: #fff7ed;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f1d7d7;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 22px 60px rgba(225, 29, 72, 0.18);
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #fb923c);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #4b5563;
    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);
    background: rgba(244, 63, 94, 0.08);
    transform: translateY(-1px);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.search-hero-form input,
.local-filter input {
    width: 100%;
    border: 1px solid #f8c9d2;
    border-radius: 999px;
    background: #fff;
    padding: 11px 16px;
    color: var(--ink);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-hero-form input:focus,
.local-filter input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.top-search button,
.mobile-search button,
.search-hero-form button,
.filter-chip,
.cta-button,
.ghost-button,
.page-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.top-search button,
.mobile-search button,
.search-hero-form button,
.cta-button,
.page-button.active {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.22);
}

.top-search button,
.mobile-search button {
    padding: 10px 16px;
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: var(--rose);
    background: rgba(244, 63, 94, 0.1);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.72);
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.46) 52%, rgba(15, 23, 42, 0.12)), linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.06) 54%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - 1180px) / 2));
    color: #fff;
    padding: 72px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffe4e6;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2.1vw, 20px);
}

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

.cta-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover,
.ghost-button:hover,
.page-button:hover,
.filter-chip:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 36px;
    background: #fff;
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

.section {
    padding: 56px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
}

.category-strip,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.08);
    font-weight: 800;
}

.category-pill:hover,
.filter-chip.active {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

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

.movie-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(244, 63, 94, 0.11);
    box-shadow: 0 18px 40px rgba(225, 29, 72, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(244, 63, 94, 0.34);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fda4af, #fdba74);
}

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

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

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

.poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(244, 63, 94, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.card-body strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.35;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 13px;
}

.card-meta {
    color: #9f1239;
    font-size: 12px;
    font-weight: 800;
}

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

.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 220px;
    overflow: hidden;
    border-radius: 28px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(249, 115, 22, 0.9));
    box-shadow: var(--shadow);
}

.category-card:nth-child(even) {
    background: linear-gradient(135deg, #fb7185, #f59e0b);
}

.category-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -52px;
    top: -46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.category-card strong,
.category-card span {
    position: relative;
    z-index: 2;
}

.category-card strong {
    font-size: 24px;
}

.category-card span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 110px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    background: #fecdd3;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
}

.rank-copy span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 13px;
}

.rank-copy small {
    color: #be123c;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 64px;
    color: #fff;
    background: radial-gradient(circle at top left, rgba(251, 113, 133, 0.62), transparent 34%), linear-gradient(135deg, #111827, #7f1d1d 56%, #9a3412);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% 25%;
    height: 260px;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    filter: blur(4px);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.search-hero-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 720px;
    margin-top: 26px;
}

.search-hero-form button {
    padding: 0 24px;
}

.local-filter {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 18px 38px rgba(225, 29, 72, 0.08);
}

.hidden-card {
    display: none;
}

.detail-shell {
    padding: 36px 0 64px;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-panel,
.copy-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: var(--shadow);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #030712;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.62));
    cursor: pointer;
    z-index: 3;
}

.play-overlay.hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 18px 44px rgba(244, 63, 94, 0.45);
    font-size: 32px;
    transform: translateX(3px);
}

.detail-title {
    padding: 24px;
}

.detail-title h1 {
    color: var(--ink);
    font-size: clamp(28px, 4.8vw, 48px);
}

.detail-title p {
    color: var(--muted);
    font-size: 17px;
}

.detail-panel {
    padding: 24px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fda4af, #fdba74);
}

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

.detail-meta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #fee2e2;
}

.detail-meta span:first-child {
    color: var(--muted);
}

.detail-meta span:last-child {
    color: #9f1239;
    font-weight: 800;
    text-align: right;
}

.copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 28px;
    margin-top: 28px;
}

.copy-card {
    padding: 26px;
}

.copy-card h2,
.copy-card h3 {
    margin: 0 0 14px;
    font-size: 24px;
}

.copy-card p {
    margin: 0 0 18px;
    color: #4b5563;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

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

.compact-card {
    grid-template-columns: 120px 1fr;
    border-radius: 20px;
}

.compact-card .poster-frame {
    aspect-ratio: 16 / 11;
}

.compact-card .card-desc {
    min-height: auto;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-brand {
    font-size: 24px;
}

.site-footer p {
    max-width: 560px;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
}

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

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

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

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

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

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

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

    .detail-panel {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 18px;
    }

    .detail-meta {
        margin-top: 0;
    }
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 520px;
    }

    .hero-arrow {
        display: none;
    }

    .section-head {
        display: grid;
    }

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

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

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

    .search-hero-form button {
        min-height: 46px;
    }
}

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

    .header-inner {
        min-height: 62px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-content {
        margin-left: 16px;
        padding: 56px 0;
    }

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

    .card-body {
        padding: 12px;
    }

    .rank-item {
        grid-template-columns: 42px 88px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .rank-number {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 13px;
    }

    .detail-shell {
        padding-top: 22px;
    }

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

    .compact-card {
        grid-template-columns: 100px 1fr;
    }

    .page-hero {
        padding: 62px 0 48px;
    }
}
