:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --amber: #d97706;
    --emerald: #059669;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #f3d7d4;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 48%, #ecfdf5 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(244, 114, 182, 0.16);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.logo-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

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

.top-search input,
.mobile-search input,
.intro-search input,
.local-search input,
.filter-select select {
    border: 1px solid #f3c6cd;
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: 0.2s ease;
}

.top-search input,
.mobile-search input {
    width: 230px;
    padding: 10px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.intro-search input:focus,
.local-search input:focus,
.filter-select select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.top-search button,
.mobile-search button,
.intro-search button,
.primary-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rose), var(--amber));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.2);
    transition: 0.25s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.intro-search button:hover,
.primary-button:hover {
    transform: translateY(-1px) scale(1.02);
    background: linear-gradient(90deg, var(--rose-dark), #b45309);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--rose);
    font-size: 22px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #f7d4d9;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-panel-inner {
    padding: 14px 0 18px;
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 700;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.06) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 720px;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.32);
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 640px;
    margin: 0 0 22px;
    color: #f3f4f6;
    font-size: 19px;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.detail-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: rgba(225, 29, 72, 0.82);
}

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

.ghost-button {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.ghost-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 10;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.intro-band {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-top: -44px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 20;
}

.intro-band h2,
.section-heading h2,
.page-hero h1 {
    margin: 0;
    background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-band h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.intro-band p {
    margin: 8px 0 0;
    color: var(--muted);
}

.intro-search input {
    width: min(360px, 46vw);
    padding: 13px 18px;
}

.home-section,
.page-main {
    margin-top: 70px;
}

.no-margin {
    margin-top: 0;
}

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

.section-heading h2 {
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--rose);
    font-weight: 900;
}

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

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

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

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(17, 24, 39, 0.16);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

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

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

.badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(90deg, var(--rose), var(--amber));
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px;
}

.movie-card-body.compact {
    padding: 14px;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

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

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span:last-child {
    color: var(--rose);
    font-weight: 900;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 28px;
    margin-top: 70px;
}

.ranking-panel,
.detail-side {
    align-self: start;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.compact-heading h2 {
    font-size: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 40px 82px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    transition: 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    background: #fff7ed;
}

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

.rank-row img {
    width: 82px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: #fee2e2;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    font-size: 15px;
    font-weight: 900;
}

.rank-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-meta {
    color: var(--rose);
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: var(--shadow-soft);
}

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

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

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.05));
}

.category-card-text {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
}

.category-card-text strong,
.category-card-text em {
    display: block;
}

.category-card-text strong {
    font-size: 22px;
    font-weight: 900;
}

.category-card-text em {
    display: -webkit-box;
    overflow: hidden;
    color: #e5e7eb;
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-main {
    padding-bottom: 30px;
}

.page-hero {
    border-radius: 30px;
    padding: 54px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.compact-page-hero {
    margin-top: 38px;
}

.page-hero .eyebrow {
    color: var(--rose);
    background: #fff1f2;
    border-color: #fecdd3;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 58px);
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.tool-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 18px;
    margin: 34px 0 24px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.local-search,
.filter-select {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 900;
}

.local-search input,
.filter-select select {
    min-width: 280px;
    padding: 12px 16px;
}

.large-search {
    flex: 1;
}

.large-search input {
    width: 100%;
}

.no-results {
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.86);
}

.full-rank-list {
    margin-top: 24px;
}

.full-rank-list .rank-row {
    grid-template-columns: 50px 116px minmax(0, 1fr) 70px;
    padding: 14px;
}

.full-rank-list .rank-row img {
    width: 116px;
    height: 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 28px 0 18px;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-main {
    padding-bottom: 60px;
}

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

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.35);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.08);
}

.play-circle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #fff;
    font-size: 36px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.38);
    transition: transform 0.2s ease;
}

.player-cover:hover .play-circle {
    transform: scale(1.08);
}

.detail-card,
.related-section {
    margin-top: 24px;
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.detail-card h1 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: #374151;
    font-size: 18px;
}

.detail-meta {
    margin-bottom: 22px;
}

.detail-meta span,
.detail-meta a {
    color: var(--rose);
    background: #fff1f2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tag-list a {
    padding: 8px 13px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    color: #7f1d1d;
    background: linear-gradient(90deg, #fff1f2, #fffbeb);
    font-size: 14px;
    font-weight: 800;
}

.text-block {
    margin-top: 24px;
}

.text-block h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.text-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.review-block {
    padding: 20px;
    border-left: 5px solid var(--amber);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb, #fff1f2);
}

.detail-side {
    position: sticky;
    top: 92px;
}

.detail-side h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    transition: 0.2s ease;
}

.side-link:hover {
    transform: translateX(3px);
    background: #fff7ed;
}

.side-link img {
    width: 98px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #fee2e2;
}

.side-link strong,
.side-link em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-link strong {
    font-size: 14px;
    font-weight: 900;
}

.side-link em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 0.8fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.footer-grid p {
    margin: 0;
    color: #d1d5db;
}

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

.footer-links a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

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

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

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

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

    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

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

    .menu-button {
        display: grid;
        place-items: center;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 92px;
    }

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

    .intro-band {
        flex-direction: column;
        align-items: stretch;
    }

    .intro-search input {
        width: 100%;
    }

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

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

    .page-hero {
        padding: 34px 24px;
    }
}

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

    .logo {
        font-size: 23px;
    }

    .hero-slider {
        height: 520px;
    }

    .hero-actions {
        gap: 9px;
    }

    .primary-button,
    .ghost-button {
        padding: 10px 14px;
        font-size: 14px;
    }

    .card-grid,
    .small-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-row,
    .full-rank-list .rank-row {
        grid-template-columns: 38px 86px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

    .full-rank-list .rank-row img {
        width: 86px;
        height: 58px;
    }

    .tool-bar {
        display: grid;
    }

    .local-search input,
    .filter-select select {
        min-width: 0;
        width: 100%;
    }

    .detail-card,
    .related-section {
        padding: 20px;
    }

    .mobile-search {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .mobile-search input {
        width: 100%;
    }
}
