:root {
    --rose: #f43f5e;
    --rose-dark: #e11d48;
    --pink: #ec4899;
    --orange: #fb923c;
    --slate: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #fff1f2;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--slate);
    background: linear-gradient(135deg, #fff7f8 0%, #fff 42%, #fff7ed 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.07);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 35px rgba(244, 63, 94, 0.35);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--rose);
    background: #fff1f2;
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
}

.top-search input,
.mobile-search input,
.big-search input,
.filter-panel input {
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 180px;
    color: #111827;
}

.top-search button,
.mobile-search button,
.big-search button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
}

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

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid #ffe4e6;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

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

.hero-viewport {
    position: relative;
    min-height: 690px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) brightness(0.58);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 34%, rgba(244, 63, 94, 0.36), transparent 32%), linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.35) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.94), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 690px;
    margin: 0 auto;
    padding: 72px 24px 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 420px;
    align-items: center;
    gap: 54px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffe4e6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.eyebrow {
    background: #fff1f2;
    color: var(--rose);
}

.hero h1 {
    margin: 24px 0 12px;
    max-width: 820px;
    color: #fff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.06;
    font-weight: 900;
}

.hero p {
    max-width: 760px;
    color: #f3f4f6;
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

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

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

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    box-shadow: 0 18px 35px rgba(244, 63, 94, 0.36);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost.dark {
    color: var(--rose);
    background: #fff1f2;
    border-color: #fecdd3;
}

.btn-soft {
    color: #ffe4e6;
    background: rgba(244, 63, 94, 0.22);
}

.hero-poster {
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster img {
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.hero-controls button {
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 26px;
}

.hero-controls div {
    display: flex;
    gap: 9px;
}

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

.hero-dot.is-active {
    width: 30px;
    background: #fff !important;
}

.quick-search-section,
.content-section,
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.quick-search-section {
    margin-top: -34px;
    position: relative;
    z-index: 8;
    background: #fff;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

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

.section-head.center {
    display: grid;
    place-items: center;
    text-align: center;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 10px 0 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
    max-width: 780px;
    color: var(--muted);
    line-height: 1.8;
}

.section-head a,
.text-link {
    color: var(--rose);
    font-weight: 900;
}

.big-search {
    display: flex;
    align-items: center;
    max-width: 820px;
    margin: 28px auto 0;
    padding: 8px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.big-search input {
    flex: 1;
    padding: 0 18px;
    font-size: 16px;
}

.big-search button {
    padding: 14px 26px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.quick-links a {
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--rose);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09);
    transition: 0.24s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4e6, #fff7ed);
}

.poster-link img {
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    right: auto;
    left: 12px;
    background: rgba(17, 24, 39, 0.78);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover,
.rank-title:hover {
    color: var(--rose);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

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

.category-card {
    position: relative;
    min-height: 236px;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
    transition: 0.24s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: 0.5s ease;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 22px;
}

.category-card span {
    padding-top: 126px;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    margin-top: 8px;
    color: #f3f4f6;
    line-height: 1.6;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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

.rank-title {
    font-size: 18px;
    font-weight: 950;
}

.rank-info p {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.small-play {
    padding: 10px 15px;
    border-radius: 999px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 62px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff, #fff1f2 50%, #fff7ed);
    box-shadow: var(--shadow);
}

.page-hero {
    margin-bottom: 34px;
}

.page-hero p {
    margin-top: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #6b7280;
    margin-bottom: 22px;
}

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

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 28px;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.filter-panel input {
    flex: 1;
    min-width: 220px;
    padding: 13px 16px;
    border-radius: 999px;
    background: #f9fafb;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    border: 0;
    padding: 10px 14px;
    border-radius: 999px;
    color: #6b7280;
    background: #f3f4f6;
    font-weight: 800;
    cursor: pointer;
}

.filter-buttons button.active {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--pink));
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 24px;
    border-radius: 22px;
    color: #6b7280;
    background: #fff;
    text-align: center;
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: 0.24s ease;
}

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

.category-covers img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.category-overview-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 950;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 80px;
}

.detail-hero {
    background: radial-gradient(circle at 84% 16%, rgba(244, 63, 94, 0.22), transparent 32%), linear-gradient(135deg, #111827, #1f2937 58%, #3f0d20);
    color: #fff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

.detail-info h1 {
    color: #fff;
}

.detail-one-line {
    max-width: 820px;
    margin: 18px 0 0;
    color: #f3f4f6;
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 12px 14px;
    border-radius: 16px;
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.player-section,
.detail-content,
.related-section {
    margin-top: 52px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.22), rgba(0, 0, 0, 0.54));
    font-size: 18px;
    font-weight: 950;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 18px 45px rgba(244, 63, 94, 0.45);
    font-size: 34px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.text-card {
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

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

.text-card p {
    color: #374151;
    line-height: 2;
    font-size: 16px;
}

.accent-card {
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

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

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #fff;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    max-width: 460px;
    margin-top: 18px;
    line-height: 1.8;
}

.footer-links h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    margin: 0 0 16px;
}

.footer-links div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
}

.card-hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .top-search {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-content,
    .detail-layout,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 30px;
        padding-top: 46px;
    }

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

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

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

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

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

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

    .hero,
    .hero-viewport,
    .hero-content {
        min-height: 760px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero h2 {
        font-size: 28px;
    }

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

    .quick-search-section,
    .content-section,
    .page-shell,
    .detail-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .quick-search-section {
        border-radius: 24px;
    }

    .section-head {
        display: block;
    }

    .big-search {
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .big-search input {
        min-height: 46px;
        width: 100%;
    }

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

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

    .movie-title {
        min-height: 42px;
        font-size: 15px;
    }

    .movie-card-body p {
        font-size: 13px;
    }

    .category-card {
        min-height: 210px;
    }

    .category-card span {
        padding-top: 104px;
        font-size: 20px;
    }

    .rank-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
    }

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

    .small-play {
        grid-column: 2 / -1;
        text-align: center;
    }

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

    .play-icon {
        width: 70px;
        height: 70px;
    }

    .footer-inner,
    .footer-links div {
        grid-template-columns: 1fr;
    }
}

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