:root {
    --peach-50: #fff5f0;
    --peach-100: #ffe9dd;
    --peach-200: #ffd3bb;
    --peach-400: #ffa777;
    --peach-500: #ff9155;
    --peach-600: #ff7b44;
    --coral-50: #fff0ee;
    --coral-400: #ff8170;
    --coral-500: #ff6450;
    --ink: #201817;
    --muted: #6f625f;
    --line: rgba(255, 145, 85, 0.18);
    --shadow: 0 18px 45px rgba(255, 145, 85, 0.18);
    --shadow-strong: 0 22px 60px rgba(43, 28, 24, 0.22);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--peach-50), #ffffff 38%, var(--coral-50));
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 247, 0.88);
    border-bottom: 1px solid rgba(255, 145, 85, 0.16);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 12px 26px rgba(255, 100, 80, 0.28);
}

.brand-name {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--peach-600), var(--coral-500), var(--peach-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #574944;
    font-weight: 650;
}

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

.desktop-nav a:hover {
    color: var(--peach-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    background: rgba(255, 250, 247, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
    font-weight: 650;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #160c0a;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(255, 145, 85, 0.35), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    color: #fff;
    animation: fadeIn 0.55s ease both;
}

.hero-tags,
.detail-meta,
.tag-list,
.movie-meta,
.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1;
}

.hero-tags span:first-child,
.tag-list span {
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    color: #fff;
}

.hero-tags span:not(:first-child),
.detail-meta span {
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.primary-btn,
.ghost-btn,
.section-more,
.quick-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.quick-search button {
    color: #fff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 14px 30px rgba(255, 100, 80, 0.3);
}

.primary-btn:hover,
.quick-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px rgba(255, 100, 80, 0.42);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.ghost-dark {
    color: var(--peach-600);
    background: #fff;
    border-color: var(--line);
}

.hero-score,
.hero-keywords {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.hero-keywords {
    margin-top: 18px;
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    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-dot.is-active {
    width: 34px;
    background: #fff;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(180deg, #ffffff, var(--peach-50));
}

.section-light {
    background: linear-gradient(180deg, var(--peach-50), #ffffff);
}

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

.section-head-simple {
    align-items: start;
    justify-content: flex-start;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--peach-600);
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-info h1,
.rank-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.search-card p,
.rank-head p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more {
    color: var(--peach-600);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.section-more:hover {
    transform: translateY(-2px);
}

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

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

.movie-card-link,
.category-card a,
.search-card,
.rank-panel,
.side-panel,
.text-card,
.rank-row a {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 145, 85, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.movie-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1f1714, #4c241d);
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.movie-cover-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.38);
    transition: opacity 0.22s ease;
}

.movie-card-link:hover .movie-cover-mask {
    opacity: 1;
}

.play-icon,
.play-circle {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding-left: 4px;
    border-radius: 999px;
    color: var(--coral-500);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.movie-badge,
.movie-duration {
    position: absolute;
    z-index: 2;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.movie-duration {
    right: 12px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.movie-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-title {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card-link:hover .movie-title {
    color: var(--peach-600);
}

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

.movie-meta {
    margin-top: auto;
    justify-content: space-between;
    color: #8a7a75;
    font-size: 13px;
}

.search-band {
    padding: 42px 0;
    background: linear-gradient(180deg, #fff, var(--peach-50));
}

.search-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 28px;
    padding: 30px;
}

.quick-search,
.filter-box {
    display: flex;
    gap: 12px;
}

.quick-search input,
.filter-box input,
.filter-box select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--peach-400);
    box-shadow: 0 0 0 4px rgba(255, 167, 119, 0.18);
}

.filter-box {
    margin-bottom: 26px;
}

.filter-box.wide {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

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

.compact-link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(255, 145, 85, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.compact-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #2a1712;
}

.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.compact-body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-body em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-panel,
.side-panel {
    padding: 24px;
}

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

.rank-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
    background: var(--peach-50);
    transform: translateX(3px);
}

.rank-num {
    color: var(--coral-500);
    font-weight: 900;
}

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

.rank-meta {
    color: var(--muted);
    font-size: 12px;
}

.categories-band {
    background: linear-gradient(180deg, #fff, var(--coral-50));
}

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

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

.category-card a {
    position: relative;
    display: grid;
    min-height: 140px;
    align-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 22px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at right top, rgba(255, 129, 112, 0.28), transparent 42%);
    pointer-events: none;
}

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

.category-card span {
    position: relative;
    color: var(--peach-600);
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    position: relative;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.page-hero {
    padding: 86px 0 68px;
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 129, 112, 0.36), transparent 30%),
        linear-gradient(135deg, var(--peach-50), #fff, var(--coral-50));
    border-bottom: 1px solid var(--line);
}

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

.page-hero p {
    max-width: 760px;
    font-size: 18px;
}

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

.side-panel {
    position: sticky;
    top: 96px;
}

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

.rank-rows {
    display: grid;
    gap: 14px;
}

.rank-row a {
    display: grid;
    grid-template-columns: 58px 144px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.rank-row img {
    width: 144px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    background: #291512;
}

.rank-row-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-row-body strong {
    font-size: 18px;
}

.rank-row-body em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.rank-row-body span {
    color: #8a7a75;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    color: #fff;
    background: #170d0b;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    filter: blur(18px);
    transform: scale(1.1);
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.4));
}

.detail-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
    background: #2b1713;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-info h1 {
    max-width: 880px;
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 60px);
}

.detail-intro {
    max-width: 860px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.detail-actions {
    margin-top: 26px;
}

.player-section {
    background: #120b09;
    color: #fff;
}

.player-section .section-head p {
    color: rgba(255, 255, 255, 0.7);
}

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

.video-player video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    width: 100%;
    border: 0;
    color: #fff;
    background-position: center;
    background-size: cover;
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover strong {
    max-width: min(620px, 88%);
    font-size: clamp(22px, 4vw, 42px);
    line-height: 1.25;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

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

.player-message {
    position: absolute;
    left: 20px;
    bottom: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.detail-text-section {
    background: linear-gradient(180deg, var(--peach-50), #fff);
}

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

.text-card {
    padding: 28px;
}

.text-card h2 {
    margin-bottom: 14px;
    font-size: 26px;
}

.text-card p {
    color: #564944;
    line-height: 1.95;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 22px;
    border-radius: 18px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}

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

.site-footer {
    color: #5d4d48;
    background: linear-gradient(135deg, var(--peach-50), var(--coral-50));
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--ink);
}

.site-footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

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

@media (max-width: 1100px) {
    .movie-grid,
    .category-grid.large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .category-layout,
    .two-column {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero {
        min-height: 640px;
        height: 78vh;
    }

    .hero-control {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .search-card,
    .detail-layout,
    .detail-text-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 280px;
    }

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

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

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

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

    .nav-wrap {
        height: 64px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy {
        padding-top: 24px;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .quick-search {
        flex-direction: column;
    }

    .compact-link {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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

    .rank-row img {
        display: none;
    }

    .detail-hero {
        padding: 42px 0;
    }

    .video-player {
        border-radius: 18px;
    }
}
