:root {
    --peach-50: #fff5f0;
    --peach-100: #ffe9dd;
    --peach-200: #ffd3bb;
    --peach-400: #ffa777;
    --peach-500: #ff9155;
    --coral-500: #ff6450;
    --ink: #191614;
    --muted: #6d625c;
    --line: rgba(255, 145, 85, 0.22);
    --glass: rgba(255, 255, 255, 0.78);
    --shadow: 0 24px 70px rgba(89, 42, 20, 0.13);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 167, 119, 0.32), transparent 32rem),
        radial-gradient(circle at 80% 12%, rgba(255, 100, 80, 0.18), transparent 28rem),
        linear-gradient(135deg, var(--peach-50) 0%, #ffffff 52%, #fff0ee 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.35rem;
    color: #2b1f1a;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 14px 30px rgba(255, 100, 80, 0.34);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #5f5550;
    font-weight: 700;
    transition: 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c1482e;
    background: var(--peach-100);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.header-search input,
.inline-filter input,
.big-search input {
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.header-search input {
    width: 190px;
    padding: 9px 4px 9px 14px;
}

.header-search button,
.big-search button {
    border: 0;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 800;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 10px 24px rgba(255, 100, 80, 0.28);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--peach-100);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #6d3020;
    border-radius: 99px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #1f1511;
}

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

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-bg-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 11, 8, 0.9) 0%, rgba(17, 11, 8, 0.64) 42%, rgba(17, 11, 8, 0.16) 100%),
        linear-gradient(0deg, rgba(17, 11, 8, 0.88), transparent 45%);
}

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

.eyebrow {
    margin: 0 0 12px;
    color: #d54b30;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow {
    color: #ffd8cb;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.hero-summary {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 20px 45px rgba(255, 100, 80, 0.34);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover,
.ranking-row:hover {
    transform: translateY(-3px);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls > button,
.hero-dots button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    padding: 0;
    opacity: 0.6;
}

.hero-dots button.is-active {
    width: 32px;
    opacity: 1;
    background: #ffffff;
}

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

.home-search-panel,
.simple-hero,
.content-card,
.player-card,
.category-overview-card {
    border: 1px solid rgba(255, 145, 85, 0.2);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 0.7fr);
    align-items: center;
    gap: 32px;
    padding: 34px;
    margin-top: -54px;
    position: relative;
    z-index: 6;
}

.home-search-panel h2,
.section-heading h2,
.simple-hero h1,
.detail-copy h1,
.content-card h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.home-search-panel h2,
.section-heading h2,
.simple-hero h1 {
    font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.home-search-panel p,
.simple-hero p,
.content-card p {
    color: var(--muted);
    line-height: 1.8;
}

.big-search,
.inline-filter {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.big-search input,
.inline-filter input {
    width: 100%;
    padding: 12px 16px;
}

.inline-filter {
    max-width: 640px;
    margin-top: 24px;
}

.wide-filter {
    max-width: 860px;
}

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

.section-heading a {
    color: #c1482e;
    font-weight: 900;
}

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

.category-tile {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(255, 145, 85, 0.22);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 245, 240, 0.72));
    box-shadow: 0 18px 40px rgba(89, 42, 20, 0.08);
    transition: 0.25s ease;
}

.category-tile strong,
.category-title span {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
}

.category-tile em,
.category-overview-card p,
.category-title em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.tile-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tile-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 211, 187, 0.45);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(255, 145, 85, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 44px rgba(89, 42, 20, 0.09);
    transition: 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(255, 211, 187, 0.4);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 12px 28px rgba(255, 100, 80, 0.32);
}

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

.movie-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-meta {
    margin: 8px 0 0;
    color: #9a7668;
    font-size: 0.88rem;
    font-weight: 800;
}

.movie-desc {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 6px 10px;
    color: #a13e28;
    background: var(--peach-100);
}

.compact-grid .movie-card-compact .movie-desc {
    min-height: auto;
    -webkit-line-clamp: 1;
}

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

.rank-home .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-row {
    display: grid;
    grid-template-columns: 48px 70px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid rgba(255, 145, 85, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(89, 42, 20, 0.08);
    transition: 0.25s ease;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.ranking-row img {
    width: 70px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 211, 187, 0.4);
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    font-size: 1rem;
}

.rank-info em {
    margin-top: 6px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
}

.rank-arrow {
    color: #c1482e;
    font-weight: 900;
}

.page-hero {
    padding: 36px;
}

.breadcrumb {
    margin: 0 0 18px;
    color: #8a6c60;
    font-weight: 800;
}

.breadcrumb a {
    color: #c1482e;
}

.category-overview-card {
    padding: 24px;
    transition: 0.25s ease;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #a13e28;
    background: var(--peach-100);
    font-size: 0.88rem;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #1f1511;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 80px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    box-shadow: 0 32px 84px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    line-height: 1;
    text-wrap: balance;
}

.detail-one-line {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.15rem;
    line-height: 1.85;
}

.detail-tags {
    margin-bottom: 30px;
}

.player-section {
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #0b0908;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0b0908;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(180deg, rgba(14, 9, 7, 0.36), rgba(14, 9, 7, 0.82));
}

.player-card.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.play-large {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 20px 50px rgba(255, 100, 80, 0.42);
    font-size: 2rem;
}

.player-cover strong {
    font-size: clamp(1.4rem, 4vw, 2.7rem);
}

.player-cover em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.meta-card {
    grid-column: 1 / -1;
}

.meta-card dl {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.meta-card div {
    min-width: 0;
}

.meta-card dt {
    color: #9a7668;
    font-size: 0.85rem;
    font-weight: 900;
}

.meta-card dd {
    margin: 6px 0 0;
    font-weight: 900;
    word-break: break-word;
}

.detail-tag-row {
    margin-top: 18px;
}

.site-footer {
    margin-top: 72px;
    padding: 42px 0;
    border-top: 1px solid rgba(255, 145, 85, 0.2);
    background: rgba(255, 255, 255, 0.65);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 24px;
    align-items: center;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    font-weight: 900;
    color: #c1482e;
}

[data-filter-item].is-hidden {
    display: none;
}

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

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        inset: 76px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    body.nav-open .main-nav {
        display: flex;
    }

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

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .rank-home .ranking-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 22px, 1180px);
        min-height: 68px;
    }

    .brand {
        font-size: 1.08rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding-top: 82px;
    }

    .section-shell {
        width: min(100% - 22px, 1180px);
        margin: 38px auto;
    }

    .home-search-panel,
    .page-hero,
    .content-card {
        padding: 22px;
        border-radius: 22px;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .rank-home .ranking-list {
        grid-template-columns: 1fr;
    }

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

    .big-search {
        flex-direction: column;
        border-radius: 24px;
    }

    .big-search button {
        width: 100%;
        min-height: 46px;
    }

    .detail-layout {
        gap: 24px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-inner {
        padding-bottom: 90px;
    }

    .player-section {
        margin-top: -50px;
    }

    .player-card {
        border-radius: 22px;
    }

    .ranking-row {
        grid-template-columns: 40px 58px 1fr;
    }

    .rank-arrow {
        display: none;
    }

    .ranking-row img {
        width: 58px;
        height: 72px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}
