* {
    box-sizing: border-box;
}

:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #f97316;
    --amber: #f59e0b;
    --blue: #2563eb;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --border: #f1f5f9;
    --card: #ffffff;
    --shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-bar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #475569;
    font-weight: 650;
    transition: all 0.2s ease;
}

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

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    color: #334155;
    background: #fff1f2;
    cursor: pointer;
}

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
}

.hero-bg,
.hero-bg span {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-bg span {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.56) 46%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1fr 430px;
    align-items: center;
    gap: 56px;
    padding: 76px 0;
}

.hero-text {
    max-width: 690px;
    animation: fadeIn 0.9s ease both;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rose);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-section .eyebrow {
    color: #fecdd3;
}

.hero-text h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.1;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 900;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.4vw, 24px);
}

.hero-actions,
.detail-tags,
.chip-list,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 18px 36px rgba(225, 29, 72, 0.28);
}

.btn.ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.btn.light {
    color: var(--rose);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-feature {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-feature span,
.hero-feature strong,
.hero-feature p {
    display: block;
}

.hero-feature span {
    color: #fed7aa;
    font-size: 14px;
    font-weight: 800;
}

.hero-feature strong {
    margin-top: 4px;
    font-size: 24px;
}

.hero-feature p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.84);
}

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

.hero-card-main {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.hero-card-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.hero-card-main a {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 18px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.hero-thumbs a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease;
}

.hero-thumbs a:hover {
    transform: translateY(-3px);
}

.hero-thumbs img {
    width: 100%;
    height: 78px;
    object-fit: cover;
}

.hero-thumbs span {
    display: block;
    padding: 8px;
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-block {
    padding: 72px 0;
}

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

.section-head h2,
.center-title h2,
.side-panel h2,
.content-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

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

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.28s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 300px;
    background: #f8fafc;
}

.compact .poster-wrap {
    height: 220px;
}

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

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

.movie-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(10px);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.movie-card-body strong {
    min-width: 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.movie-card-link:hover strong {
    color: var(--rose);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
}

.tag-row span,
.detail-tags a {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 700;
    background: #fff1f2;
}

.category-strip {
    padding: 72px 0;
    background: linear-gradient(135deg, #fff1f2, #fff7ed, #fffbeb);
}

.center-title {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.chip-list {
    justify-content: center;
}

.chip-list a {
    padding: 14px 22px;
    border-radius: 999px;
    color: #334155;
    font-weight: 800;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

.chip-list a:hover {
    color: var(--rose);
    transform: translateY(-3px);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 40px;
}

.compact-head {
    align-items: center;
}

.rank-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 52px 86px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.rank-item img {
    width: 86px;
    height: 86px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-info strong {
    color: #111827;
    font-size: 18px;
}

.rank-info span {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info em {
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
}

.cta-band {
    padding: 80px 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, var(--rose), var(--orange), var(--amber));
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
}

.cta-band p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.page-hero {
    padding: 86px 0;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 24%), linear-gradient(120deg, #9f1239, #e11d48 45%, #f97316);
}

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

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.category-card a {
    display: grid;
    gap: 14px;
    height: 100%;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

.category-card a:hover {
    transform: translateY(-4px);
    border-color: #fecdd3;
    box-shadow: var(--shadow);
}

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

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples span {
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, 180px);
    gap: 14px;
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0 16px;
    color: #334155;
    background: #f8fafc;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.18);
}

.empty-state {
    padding: 36px;
    border-radius: 24px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

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

.rankings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.large-rank .rank-item a {
    grid-template-columns: 60px 110px minmax(0, 1fr);
}

.large-rank .rank-item img {
    width: 110px;
    height: 110px;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: 26px;
    background: #fff7ed;
}

.side-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
}

.detail-hero {
    padding: 28px 0 64px;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 28px;
    color: #64748b;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 34px;
    align-items: start;
}

.player-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    background: #000000;
}

.video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.video-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

.video-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.play-circle {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.35);
}

.detail-info {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}

.detail-info h1 {
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
}

.detail-one-line {
    color: #475569;
    font-size: 18px;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.meta-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.meta-list dt {
    color: #94a3b8;
    font-weight: 800;
}

.meta-list dd {
    margin: 0;
    color: #1f2937;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px 0 36px;
}

.content-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-card p {
    margin: 16px 0 0;
    color: #475569;
    font-size: 17px;
}

.site-footer {
    padding-top: 58px;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #111827;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 10px;
    color: #64748b;
}

.site-footer a:hover {
    color: var(--rose);
}

.footer-bottom {
    margin-top: 38px;
    padding: 20px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .hero-content,
    .detail-layout,
    .rankings-layout,
    .two-column,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 620px;
    }

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

    .side-panel {
        position: static;
    }

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

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

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

    .nav-links {
        position: absolute;
        top: 72px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        width: 100%;
    }

    .hero-section,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 60px 0 36px;
    }

    .hero-card-main img {
        height: 360px;
    }

    .hero-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-block,
    .category-strip {
        padding: 48px 0;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .featured-grid,
    .latest-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .poster-wrap,
    .compact .poster-wrap {
        height: 260px;
    }

    .rank-item a,
    .large-rank .rank-item a {
        grid-template-columns: 44px 72px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
    }

    .rank-item img,
    .large-rank .rank-item img {
        width: 72px;
        height: 72px;
    }

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

    .page-hero {
        padding: 58px 0;
    }

    .detail-info,
    .content-card {
        padding: 22px;
    }

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