:root {
    --peach-50: #fff5f0;
    --peach-100: #ffe9dd;
    --peach-200: #ffd3bb;
    --peach-400: #ffa777;
    --peach-500: #ff9155;
    --peach-600: #ff7b44;
    --coral-50: #fff0ee;
    --coral-400: #ff796e;
    --coral-500: #ff6450;
    --ink: #151923;
    --muted: #667085;
    --line: rgba(255, 145, 85, 0.18);
    --glass: rgba(255, 255, 255, 0.86);
    --shadow: 0 4px 20px rgba(255, 145, 85, 0.10);
    --deep-shadow: 0 24px 60px rgba(38, 27, 18, 0.18);
    --radius: 22px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font);
    background: linear-gradient(180deg, #fffaf7 0%, #ffffff 48%, #fff5f0 100%);
}

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

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

button,
input {
    font: inherit;
}

.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-shadow {
    box-shadow: var(--shadow);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-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, var(--peach-500), var(--coral-500));
    box-shadow: 0 12px 28px rgba(255, 123, 68, 0.32);
}

.brand-text {
    font-size: 21px;
    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: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--peach-600);
    background: rgba(255, 233, 221, 0.78);
}

.nav-search {
    flex: 0 1 260px;
}

.nav-search input,
.mobile-search input,
.search-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--peach-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-input:focus {
    border-color: var(--peach-500);
    box-shadow: 0 0 0 4px rgba(255, 145, 85, 0.16);
}

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

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #394150;
    border-radius: 2px;
}

.mobile-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    display: grid;
    gap: 12px;
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-panel a {
    padding: 11px 14px;
    border-radius: 14px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.86);
}

.hero-carousel {
    position: relative;
    height: min(720px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #1d1718;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 24%, rgba(255, 145, 85, 0.36), transparent 30%),
        linear-gradient(90deg, rgba(14, 12, 13, 0.92) 0%, rgba(14, 12, 13, 0.70) 46%, rgba(14, 12, 13, 0.10) 100%),
        linear-gradient(0deg, rgba(14, 12, 13, 0.75) 0%, transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 1180px;
}

.hero-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

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

.hero-labels span {
    padding: 8px 12px;
    background: rgba(255, 145, 85, 0.92);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 100, 80, 0.24);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.primary-button,
.ghost-button,
.ghost-light-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 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, var(--peach-500), var(--coral-500));
    box-shadow: 0 16px 36px rgba(255, 100, 80, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.ghost-light-button:hover {
    transform: translateY(-2px);
}

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

.ghost-light-button {
    color: var(--peach-600);
    background: #ffffff;
    border: 1px solid var(--peach-200);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 30px;
    background: #ffffff;
}

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

.soft-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, #ffffff, var(--peach-50));
}

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

.section-heading.compact {
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--peach-600);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-link {
    color: var(--peach-600);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 211, 187, 0.66);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.25;
    overflow: hidden;
    background: linear-gradient(135deg, var(--peach-100), var(--coral-50));
}

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

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

.play-badge,
.type-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.play-badge {
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
    background: rgba(20, 18, 19, 0.72);
    backdrop-filter: blur(8px);
}

.type-badge {
    top: 12px;
    right: 12px;
    padding: 7px 10px;
    background: linear-gradient(90deg, var(--peach-500), var(--coral-500));
}

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

.movie-card h3,
.horizontal-card h3 {
    margin: 0;
    line-height: 1.35;
}

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

.movie-card h3 a:hover,
.horizontal-card h3 a:hover,
.mini-links a:hover,
.footer-col a:hover {
    color: var(--peach-600);
}

.movie-card p,
.horizontal-card p,
.category-tile em,
.category-overview-card p,
.content-card p {
    color: var(--muted);
    line-height: 1.72;
}

.movie-card p {
    min-height: 74px;
    margin: 9px 0 12px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.meta-row {
    color: #7b8494;
    font-size: 13px;
    line-height: 1.5;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 7px 9px;
    color: var(--peach-600);
    background: var(--peach-100);
}

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

.category-tile,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.category-tile {
    min-height: 180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tile-icon,
.category-head span {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.category-tile strong {
    font-size: 21px;
}

.category-tile em {
    font-size: 14px;
    font-style: normal;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 28px;
}

.stack-list,
.ranking-full-list {
    display: grid;
    gap: 16px;
}

.horizontal-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 130px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 211, 187, 0.66);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.horizontal-poster {
    display: block;
    height: 86px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--peach-100);
}

.rank-no {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

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

.horizontal-card p {
    margin: 6px 0 8px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.library-heading {
    align-items: center;
}

.filter-panel {
    width: min(520px, 100%);
    display: grid;
    gap: 12px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-buttons button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--peach-200);
    border-radius: 999px;
    color: #5c6472;
    background: #ffffff;
    cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--peach-500), var(--coral-500));
}

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

.page-main {
    min-height: 60vh;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    padding: 78px 36px;
    border-radius: 30px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #231719, var(--peach-600) 52%, var(--coral-500));
    box-shadow: var(--deep-shadow);
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 62px);
}

.page-hero p {
    max-width: 720px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    font-size: 17px;
}

.centered-actions {
    justify-content: center;
}

.category-overview-card {
    padding: 20px;
}

.category-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-head h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.category-head p {
    margin: 0;
    font-size: 14px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #596273;
    font-size: 13px;
    background: var(--peach-50);
}

.ranking-full-list .horizontal-card {
    grid-template-columns: auto 150px minmax(0, 1fr);
}

.detail-main {
    background:
        radial-gradient(circle at 85% 4%, rgba(255, 145, 85, 0.24), transparent 24%),
        linear-gradient(180deg, #fffaf8, #ffffff 42%, var(--peach-50));
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 40px;
    display: grid;
    grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4.25;
    background: linear-gradient(135deg, var(--peach-100), var(--coral-50));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #7b8494;
    font-size: 14px;
}

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

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.1;
}

.detail-intro {
    max-width: 780px;
    margin: 20px 0 0;
    color: #4d5666;
    font-size: 19px;
    line-height: 1.85;
}

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

.detail-meta span {
    padding: 9px 13px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--peach-500), var(--coral-500));
}

.detail-tags span {
    padding: 9px 12px;
    color: var(--peach-600);
    background: #ffffff;
    border: 1px solid var(--peach-200);
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #08090b;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    background: #08090b;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.46));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 36px;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 22px 60px rgba(255, 100, 80, 0.42);
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

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

.content-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
}

.detail-neighbor {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 0;
    padding-bottom: 40px;
}

.detail-neighbor a {
    flex: 1;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: #4d5666;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-neighbor a:last-child {
    text-align: right;
}

.detail-neighbor a:hover {
    color: var(--peach-600);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--coral-50), #ffffff);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-brand p {
    max-width: 360px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-col h2 {
    margin: 0 0 8px;
    font-size: 17px;
}

.footer-col a {
    color: #5f6978;
    font-size: 14px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    color: #7a8493;
    font-size: 14px;
}

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

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

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

    .menu-toggle {
        display: flex;
    }

    .header-inner {
        height: 66px;
    }

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

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

    .hero-arrow {
        display: none;
    }

    .split-section,
    .detail-hero,
    .detail-content-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .library-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .brand-text {
        font-size: 18px;
    }

    .section,
    .soft-section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

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

    .hero-content h1 {
        font-size: 40px;
    }

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

    .primary-button,
    .ghost-button,
    .ghost-light-button {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

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

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

    .movie-card p {
        min-height: auto;
        -webkit-line-clamp: 2;
    }

    .horizontal-card,
    .ranking-full-list .horizontal-card {
        grid-template-columns: auto 96px minmax(0, 1fr);
        gap: 12px;
    }

    .horizontal-poster {
        height: 72px;
    }

    .page-hero {
        padding: 54px 22px;
        border-radius: 24px;
    }

    .detail-copy h1 {
        font-size: 36px;
    }

    .detail-intro {
        font-size: 16px;
    }

    .play-overlay span {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}

@media (max-width: 460px) {
    .featured-grid,
    .all-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-card,
    .ranking-full-list .horizontal-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .rank-no {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 3;
    }

    .horizontal-poster {
        grid-column: 1;
        height: 92px;
    }

    .horizontal-copy {
        grid-column: 2;
    }
}
