:root {
    --coral-50: #fff3f1;
    --coral-100: #ffe4df;
    --coral-400: #ff7c64;
    --coral-500: #ff5533;
    --coral-600: #ed3010;
    --peach-50: #fff5f2;
    --peach-100: #ffe8e1;
    --peach-200: #ffd4c7;
    --peach-400: #ff9374;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 12px 32px rgba(255, 85, 51, 0.13);
    --sunrise: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--peach-50), var(--white) 42%, var(--peach-50));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--sunrise);
    box-shadow: 0 10px 30px rgba(255, 85, 51, 0.24);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.26);
}

.brand-text {
    color: var(--white);
    font-size: 18px;
    letter-spacing: 0.02em;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    padding: 12px 20px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(255, 212, 199, 0.9);
    backdrop-filter: blur(16px);
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 10px 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--peach-100);
}

.mobile-link.is-active,
.mobile-link:hover {
    color: var(--coral-600);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2 + 20px));
    right: 24px;
    bottom: 92px;
    max-width: 760px;
    color: var(--white);
}

.hero-badge,
.type-badge,
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--coral-500);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.7;
}

.hero-tags,
.movie-meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.hero-tags span,
.movie-meta-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
    font-size: 13px;
}

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

.primary-button,
.ghost-button,
.filter-form button,
.global-search-form button,
.list-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--sunrise);
    color: var(--white);
    font-weight: 800;
    padding: 12px 22px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.filter-form button:hover,
.global-search-form button:hover,
.list-action:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 38px rgba(255, 85, 51, 0.24);
}

.primary-button.small {
    padding: 10px 16px;
    font-size: 14px;
}

.ghost-button {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--white);
}

.hero-search {
    position: absolute;
    right: max(20px, calc((100vw - 1180px) / 2 + 20px));
    bottom: 92px;
    width: min(360px, calc(100vw - 40px));
    padding: 10px;
    display: flex;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(18px);
}

.hero-search input,
.global-search-form input,
.filter-form input,
.filter-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--peach-200);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--gray-900);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--white);
    color: var(--coral-600);
    font-weight: 800;
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px;
}

.top-spaced {
    padding-top: 110px;
}

.entry-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 62px;
}

.entry-card {
    min-height: 118px;
    padding: 24px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(255, 212, 199, 0.68);
}

.entry-hot {
    background: linear-gradient(135deg, var(--peach-100), var(--coral-100));
}

.entry-card span {
    display: block;
    color: var(--coral-600);
    font-weight: 800;
    margin-bottom: 8px;
}

.entry-card strong {
    display: block;
    font-size: 20px;
    line-height: 1.4;
}

.content-section {
    margin-bottom: 68px;
}

.highlight-section {
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--peach-100), var(--coral-100));
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--coral-600);
    font-size: 13px;
    font-weight: 800;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.detail-intro,
.detail-text p,
.category-overview-card p,
.footer-brand p {
    color: var(--gray-500);
    line-height: 1.75;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.09);
    border: 1px solid rgba(255, 212, 199, 0.62);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-frame,
.list-poster,
.category-cover,
.side-card img {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, var(--peach-200), var(--coral-400) 55%, #1f2937 120%);
}

.poster-frame {
    display: block;
    aspect-ratio: 16 / 10;
}

.poster-frame img,
.list-poster img,
.category-cover img,
.side-card img {
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.category-cover:hover img {
    transform: scale(1.06);
}

.image-missing {
    opacity: 0;
}

.type-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.7);
}

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

.movie-card-body h3 {
    margin: 12px 0 9px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover,
.list-main h3 a:hover,
.side-links a:hover,
.sitemap-links a:hover {
    color: var(--coral-600);
}

.movie-card-body p {
    margin: 0;
    min-height: 48px;
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.65;
}

.movie-meta-line {
    color: var(--gray-500);
}

.movie-meta-line span,
.detail-meta span {
    background: var(--peach-50);
    color: var(--gray-700);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--coral-50);
    color: var(--coral-600);
    font-size: 12px;
    font-weight: 700;
}

.large-tags span {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 13px;
}

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

.list-card {
    display: grid;
    grid-template-columns: 46px 118px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(255, 212, 199, 0.62);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.list-rank {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sunrise);
    color: var(--white);
    font-weight: 900;
}

.list-poster {
    height: 76px;
    border-radius: 14px;
}

.list-main h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.list-main p {
    margin: 0 0 9px;
    color: var(--gray-500);
    line-height: 1.65;
}

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

.category-tile {
    min-height: 170px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--gray-900);
    box-shadow: var(--soft-shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.76));
}

.category-tile span,
.category-tile strong {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 1;
    color: var(--white);
}

.category-tile span {
    bottom: 48px;
    font-size: 18px;
    font-weight: 900;
}

.category-tile strong {
    bottom: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
}

.page-hero {
    padding: 42px;
    border-radius: 34px;
    margin-bottom: 34px;
    background: linear-gradient(135deg, var(--peach-100), var(--white), var(--coral-100));
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(255, 212, 199, 0.74);
}

.page-hero span {
    color: var(--coral-600);
    font-weight: 900;
}

.page-hero h1 {
    margin: 10px 0 12px;
}

.small-hero,
.category-hero,
.ranking-hero {
    position: relative;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--coral-600);
}

.filter-panel,
.search-page-panel {
    margin-bottom: 34px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 212, 199, 0.72);
    box-shadow: var(--soft-shadow);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
    gap: 14px;
    align-items: end;
}

.filter-form label {
    display: grid;
    gap: 8px;
    color: var(--gray-500);
    font-weight: 700;
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 22px;
    background: var(--white);
    color: var(--gray-500);
    text-align: center;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid rgba(255, 212, 199, 0.72);
    box-shadow: var(--soft-shadow);
}

.category-cover {
    min-height: 160px;
    border-radius: 22px;
}

.category-cover span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.66);
    color: var(--white);
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 6px 0 10px;
    font-size: 26px;
}

.mini-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-link-row a {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--peach-50);
    color: var(--coral-600);
    font-weight: 700;
    font-size: 13px;
}

.global-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.global-search-summary {
    margin-top: 12px;
    color: var(--gray-500);
}

.detail-shell {
    max-width: 1240px;
}

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

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

.player-card,
.detail-content,
.side-card {
    border-radius: 26px;
    background: var(--white);
    border: 1px solid rgba(255, 212, 199, 0.72);
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    background: var(--black);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--black);
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: rgba(0, 0, 0, 0.38);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.play-symbol {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    background: var(--sunrise);
    color: var(--white);
    font-size: 38px;
    box-shadow: 0 22px 46px rgba(255, 85, 51, 0.36);
}

.player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0));
}

.player-controls button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    font-weight: 800;
}

.detail-content {
    padding: 28px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.detail-content h1 {
    margin: 12px 0 0;
}

.detail-meta {
    margin: 18px 0;
    color: var(--gray-700);
}

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

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

.detail-text h2,
.side-card h2,
.sitemap-group h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-text p {
    margin: 0;
    color: var(--gray-700);
    white-space: pre-line;
}

.detail-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 88px;
}

.side-card {
    padding: 18px;
}

.poster-side img {
    height: 220px;
    border-radius: 18px;
    margin-bottom: 16px;
}

.poster-side p {
    color: var(--gray-500);
    line-height: 1.7;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--peach-100);
    color: var(--gray-700);
}

.side-links span {
    color: var(--gray-500);
}

.sitemap-group {
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid rgba(255, 212, 199, 0.72);
    box-shadow: var(--soft-shadow);
}

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

.sitemap-links a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--peach-50);
}

.sitemap-links span {
    color: var(--gray-500);
    font-size: 12px;
}

.site-footer {
    background: linear-gradient(180deg, var(--peach-50), var(--white));
    border-top: 1px solid var(--peach-200);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 20px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}

.footer-logo .brand-mark {
    background: var(--sunrise);
}

.footer-column {
    display: grid;
    gap: 9px;
    align-content: start;
}

.footer-column h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.footer-column a {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--coral-600);
}

@media (max-width: 1024px) {
    .hero-search {
        left: 24px;
        right: auto;
        bottom: 24px;
    }

    .hero-content {
        bottom: 118px;
    }

    .movie-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .sitemap-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-side {
        position: static;
    }
}

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

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

    .brand-text {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        min-height: 82vh;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 126px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-search {
        left: 20px;
        right: 20px;
        width: auto;
    }

    .entry-band,
    .filter-form,
    .category-overview-card,
    .global-search-form,
    .list-card {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .compact-grid,
    .catalog-grid,
    .category-grid,
    .sitemap-links {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .detail-title-row {
        align-items: start;
        flex-direction: column;
    }

    .highlight-section,
    .page-hero,
    .detail-content {
        padding: 24px;
    }

    .list-action {
        width: 100%;
    }
}
