:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --red-600: #dc2626;
    --pink-600: #db2777;
    --slate-900: #0f172a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--gray-50);
    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,
video {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--red-600), var(--rose-600), var(--pink-600));
    box-shadow: 0 12px 26px rgba(190, 18, 60, 0.28);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--white);
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-link:hover,
.nav-link.is-current {
    color: #ffe4e6;
    border-color: #ffe4e6;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search,
.menu-button {
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    padding: 9px 14px;
    border-radius: 12px;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
}

.mobile-nav {
    padding: 0 20px 16px;
    background: rgba(190, 18, 60, 0.98);
}

.mobile-link {
    display: block;
    color: var(--white);
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-link.is-current {
    color: #ffe4e6;
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    padding: 78px 16px 16px;
}

.search-panel-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-panel-head strong {
    font-size: 22px;
}

.search-panel-head button {
    border: 0;
    background: var(--gray-100);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.section-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 20px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--rose-500), var(--pink-600));
}

.hero-bg-one,
.hero-bg-two {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.28;
    background: rgba(255, 255, 255, 0.36);
}

.hero-bg-one {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -90px;
}

.hero-bg-two {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: 40px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 20px 130px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    align-items: center;
    gap: 44px;
    animation: fadeUp 0.45s ease both;
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy {
    max-width: 740px;
}

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

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.sub-hero p,
.detail-one-line {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    color: #ffe4e6;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 13px 24px;
    color: var(--rose-600);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.ghost-button {
    padding: 12px 22px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-button.dark {
    color: var(--white);
    background: rgba(190, 18, 60, 0.85);
}

.small-actions .primary-button,
.small-actions .ghost-button {
    padding: 10px 18px;
}

.hero-poster {
    position: relative;
    display: block;
    min-height: 440px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.28);
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.06));
}

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

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.94);
    color: var(--white);
    font-weight: 800;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
}

.hero-dot {
    width: 38px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--white);
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 86px;
    fill: var(--gray-50);
}

.search-strip {
    padding-top: 32px;
    padding-bottom: 20px;
}

.search-input {
    width: 100%;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    padding: 15px 18px;
    color: var(--gray-900);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input.large {
    padding: 20px 24px;
    font-size: 19px;
    box-shadow: var(--soft-shadow);
}

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

.search-results {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    max-height: 440px;
    overflow: auto;
}

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
}

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

.search-result strong,
.search-result span {
    display: block;
}

.search-result span {
    color: var(--gray-500);
    font-size: 13px;
}

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

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

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

.section-head.light h2,
.section-head.light p {
    color: var(--white);
}

.text-link {
    color: var(--rose-600);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--rose-100);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.year-pill,
.rank-badge,
.play-chip {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
}

.year-pill {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    background: var(--rose-500);
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--rose-500), var(--red-600));
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.movie-card strong {
    color: var(--gray-900);
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-line {
    color: var(--gray-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-meta em {
    font-style: normal;
}

.mini-tag {
    align-self: flex-start;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--rose-100);
    color: var(--rose-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 110px 1fr;
    min-height: 160px;
}

.movie-card-compact .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
}

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

.category-section,
.rank-section.soft {
    background: var(--white);
}

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

.category-tile {
    padding: 30px 20px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--red-600));
    transform: translateY(-5px);
}

.category-emoji {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
}

.category-tile strong,
.category-tile span:last-child {
    display: block;
}

.category-tile strong {
    font-size: 20px;
}

.category-tile span:last-child {
    margin-top: 6px;
    color: inherit;
    opacity: 0.82;
}

.rank-section {
    background: linear-gradient(110deg, var(--slate-900), #991b1b 55%, var(--rose-700));
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 8px 12px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    color: var(--gray-900);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.rank-number {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--red-600));
    font-weight: 900;
}

.rank-title {
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--gray-500);
    font-size: 13px;
}

.cta-panel {
    margin-top: 54px;
    margin-bottom: 54px;
    border-radius: 28px;
    color: var(--white);
    text-align: center;
    background: linear-gradient(100deg, var(--rose-600), var(--red-600));
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.cta-panel p {
    margin: 12px 0 26px;
    color: #ffe4e6;
    font-size: 19px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sub-hero,
.detail-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-600), var(--rose-500), var(--pink-600));
}

.sub-hero .section-wrap {
    padding-top: 72px;
    padding-bottom: 78px;
}

.sub-hero h1 {
    max-width: 860px;
}

.sub-hero p {
    max-width: 760px;
}

.category-overview {
    display: grid;
    gap: 24px;
}

.category-card-wide {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.category-main-link {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--rose-50), var(--white));
}

.category-main-link strong,
.category-main-link em {
    display: block;
}

.category-main-link strong {
    font-size: 26px;
}

.category-main-link em {
    color: var(--gray-600);
    font-style: normal;
    margin-top: 6px;
}

.mini-card-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
}

.filter-box {
    display: grid;
    gap: 16px;
    padding-bottom: 18px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--rose-700);
    background: var(--rose-100);
    cursor: pointer;
    font-weight: 800;
}

.chip-row button.is-active {
    color: var(--white);
    background: var(--rose-600);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 42px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 70px;
}

.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
}

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

.play-chip {
    left: 18px;
    bottom: 18px;
    padding: 9px 14px;
    background: var(--rose-500);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffe4e6;
    font-weight: 800;
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.player-section h2,
.detail-content h2 {
    margin-top: 0;
    font-size: 30px;
}

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

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #08090f;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25), rgba(15, 23, 42, 0.36));
    cursor: pointer;
}

.play-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--rose-600);
    background: var(--white);
    font-size: 34px;
    box-shadow: var(--shadow);
}

.player-box.is-playing .play-overlay {
    display: none;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.detail-content article {
    padding: 26px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 17px;
}

.muted-tags span {
    color: var(--rose-700);
    background: var(--rose-100);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-content: start;
    justify-content: flex-end;
}

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

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .movie-grid.four-col,
    .category-grid,
    .mini-card-row,
    .rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }
    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .hero-slide,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .hero-inner {
        padding-top: 62px;
    }
    .hero-poster,
    .hero-poster img {
        min-height: 0;
        height: auto;
    }
    .movie-grid.four-col,
    .category-grid,
    .latest-grid,
    .mini-card-row,
    .rank-grid,
    .rank-grid.wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-search {
        display: none;
    }
    .hero-section {
        min-height: 0;
    }
    .hero-copy h1,
    .sub-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.02em;
    }
    .section-head {
        display: block;
    }
    .movie-grid.four-col,
    .category-grid,
    .latest-grid,
    .mini-card-row,
    .rank-grid,
    .rank-grid.wide {
        grid-template-columns: 1fr;
    }
    .movie-card-compact {
        grid-template-columns: 96px 1fr;
    }
    .section-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .category-main-link {
        grid-template-columns: 1fr;
    }
}
