
:root {
    --rose: #e11d48;
    --rose-light: #fb7185;
    --orange: #f97316;
    --amber-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f9fafb;
    --dark: #111827;
    --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #fff7ed 100%);
    font-family: 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: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.logo-mark.small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.logo-text {
    font-size: clamp(18px, 2vw, 24px);
    background: linear-gradient(90deg, #e11d48 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.desktop-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--rose);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    background: linear-gradient(110deg, #ffe4e6 0%, #fff7ed 48%, #fef3c7 100%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image: linear-gradient(rgba(251, 113, 133, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(251, 113, 133, 0.12) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    min-height: 600px;
    margin: 0 auto;
    padding: 72px 24px;
}

.hero-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 54px;
    min-height: 460px;
}

.hero-slide.active {
    display: flex;
    animation: fadeIn 0.55s ease both;
}

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

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.12);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-copy h1 span {
    background: linear-gradient(90deg, #e11d48 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 32px;
    color: #4b5563;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #f43f5e 0%, #f97316 100%);
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.24);
}

.secondary-button {
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
}

.primary-button.slim {
    min-height: 40px;
    padding: 10px 18px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    display: block;
    width: min(360px, 32vw);
    flex-shrink: 0;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(17, 24, 39, 0.28);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
    font-weight: 800;
    text-align: center;
}

.hero-dots {
    position: absolute;
    left: 24px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.24);
}

.hero-dot.active {
    width: 34px;
    background: linear-gradient(90deg, #e11d48, #f97316);
}

.stats-strip {
    max-width: 1180px;
    margin: -36px auto 0;
    position: relative;
    z-index: 2;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.stats-strip div {
    text-align: center;
}

.stats-strip strong {
    display: block;
    color: var(--rose);
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.1;
}

.stats-strip span {
    color: var(--muted);
    font-weight: 700;
}

.page-hero {
    background: linear-gradient(110deg, #ffe4e6 0%, #fff7ed 50%, #fef3c7 100%);
}

.small-hero {
    padding: 72px 24px;
}

.small-hero > div {
    max-width: 1180px;
    margin: 0 auto;
}

.small-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: -0.04em;
}

.small-hero p {
    max-width: 820px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

.search-panel {
    max-width: 1180px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.search-panel-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(130px, 190px));
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid var(--line);
}

.search-box span {
    color: var(--rose);
    font-weight: 900;
}

.search-box input,
.filter-select {
    width: 100%;
    height: 46px;
    border: 0;
    outline: none;
    background: transparent;
    color: #374151;
    font-size: 15px;
}

.filter-select {
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f9fafb;
}

.filter-count {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.content-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.wide-section {
    max-width: 1360px;
}

.narrow-section {
    max-width: 900px;
}

.tinted-section {
    margin-top: 72px;
    padding-top: 60px;
    padding-bottom: 60px;
    border-radius: 36px;
    background: rgba(255, 247, 237, 0.72);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

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

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-poster-wrap img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.76) 100%);
}

.poster-meta,
.rank-badge {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.poster-meta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, 0.66);
    text-align: center;
}

.rank-badge {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    background: linear-gradient(90deg, #e11d48, #f97316);
}

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

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--rose);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.42;
}

.movie-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #9f1239;
    background: #ffe4e6;
    font-size: 12px;
    font-weight: 800;
}

.large-tags .tag-chip {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
}

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

.category-card,
.category-overview-card,
.detail-side-card,
.text-page {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.category-card {
    padding: 20px;
}

.category-card h3,
.category-overview-card h2 {
    margin: 10px 0;
    font-size: 22px;
}

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

.category-count {
    color: var(--rose);
    font-weight: 900;
}

.category-mini-links,
.overview-samples {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: #4b5563;
    font-size: 14px;
}

.category-mini-links a:hover,
.overview-samples a:hover {
    color: var(--rose);
}

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

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

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

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

.rank-row,
.rank-table-row,
.rank-table-head {
    display: grid;
    grid-template-columns: 90px 1fr 120px;
    align-items: center;
    gap: 12px;
}

.rank-row {
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.rank-row span,
.rank-index {
    color: var(--rose);
    font-weight: 900;
}

.rank-row em {
    color: #f97316;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.rank-table {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.rank-table-head,
.rank-table-row {
    grid-template-columns: 80px 1fr 110px 110px 100px 100px;
    padding: 16px 20px;
}

.rank-table-head {
    color: #ffffff;
    background: linear-gradient(90deg, #e11d48, #f97316);
    font-weight: 900;
}

.rank-table-row {
    border-bottom: 1px solid var(--line);
    color: #4b5563;
}

.rank-table-row:hover {
    background: #fff7ed;
}

.rank-title {
    color: var(--ink);
    font-weight: 800;
}

.breadcrumb {
    max-width: 1180px;
    margin: 28px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    max-width: 1180px;
    margin: 30px auto 0;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 42px;
    align-items: center;
}

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

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

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-info p {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
}

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

.detail-meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.detail-meta-grid strong,
.detail-meta-grid span,
.detail-meta-grid a {
    display: block;
}

.detail-meta-grid strong {
    margin-bottom: 6px;
    color: var(--rose);
    font-size: 12px;
}

.detail-meta-grid span,
.detail-meta-grid a {
    font-weight: 800;
}

.player-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.24);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.38), rgba(0, 0, 0, 0.58));
}

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

.play-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e11d48, #f97316);
    box-shadow: 0 20px 44px rgba(225, 29, 72, 0.36);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 22px;
    border-left: 22px solid #ffffff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.player-overlay strong {
    font-size: 20px;
}

.detail-content-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
}

.detail-article {
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    color: #374151;
    line-height: 2;
}

.genre-line {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.genre-line span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9f1239;
    background: #ffe4e6;
    font-weight: 800;
}

.detail-side-card {
    padding: 24px;
    align-self: start;
}

.detail-side-card h2 {
    margin: 0 0 18px;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 10px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--rose);
    font-weight: 900;
}

.detail-side-card dd {
    margin: 0;
    color: #374151;
}

.text-page {
    padding: 34px;
}

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

.text-page p + p {
    margin-top: 18px;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 20px;
}

.footer-grid p,
.footer-grid li {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-brand-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(156, 163, 175, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom div {
    display: flex;
    gap: 12px;
}

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

@media (max-width: 1160px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-slide.active,
    .detail-hero,
    .detail-content-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-poster {
        width: min(360px, 86vw);
        margin: 0 auto;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 24px;
        margin-right: 24px;
    }

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

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

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

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

    .rank-table-head,
    .rank-table-row {
        grid-template-columns: 56px 1fr 80px;
    }

    .rank-table-head span:nth-child(3),
    .rank-table-head span:nth-child(4),
    .rank-table-head span:nth-child(5),
    .rank-table-row span:nth-child(3),
    .rank-table-row span:nth-child(4),
    .rank-table-row span:nth-child(5) {
        display: none;
    }
}

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

    .logo-text {
        font-size: 18px;
    }

    .hero-inner,
    .small-hero,
    .content-section,
    .search-panel,
    .detail-hero,
    .player-section,
    .detail-content-grid {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-slide.active {
        gap: 32px;
    }

    .hero-dots {
        position: static;
        margin-top: 12px;
    }

    .stats-strip,
    .search-panel-inner,
    .featured-grid,
    .compact-grid,
    .library-grid,
    .movie-grid,
    .category-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        margin-top: 24px;
    }

    .section-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-card h3 {
        font-size: 17px;
    }
}
