:root {
    --amber-50: #fff8eb;
    --amber-100: #fdecc8;
    --amber-200: #f8d48b;
    --amber-500: #d99019;
    --amber-600: #bd6f12;
    --rose-50: #fff1f3;
    --rose-100: #ffe1e8;
    --rose-300: #f7a6b8;
    --rose-500: #d94b73;
    --rose-800: #7a1f3b;
    --brown-900: #2c160e;
    --ink: #2f241e;
    --muted: #7d6d63;
    --card: #ffffff;
    --line: rgba(189, 111, 18, 0.18);
    --shadow: 0 18px 45px rgba(82, 43, 12, 0.12);
    --shadow-hover: 0 26px 65px rgba(82, 43, 12, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(247, 166, 184, 0.22), transparent 32rem),
        linear-gradient(135deg, var(--amber-50), var(--rose-50) 54%, #fffaf2);
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 235, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(94, 56, 16, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--amber-600);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f6b83e, var(--rose-300), #f6c768);
    box-shadow: 0 14px 30px rgba(217, 144, 25, 0.34);
    position: relative;
    overflow: hidden;
}

.brand-mark::after,
.silk-shine::after {
    content: "";
    position: absolute;
    inset: -40% 15% auto auto;
    width: 35%;
    height: 180%;
    transform: rotate(28deg);
    background: rgba(255, 255, 255, 0.36);
    filter: blur(2px);
}

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

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #675043;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--amber-600);
    background: rgba(253, 236, 200, 0.75);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--amber-600);
    background: var(--amber-100);
    font-weight: 800;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    color: #fff;
    background: linear-gradient(135deg, #3b1b12, #71223b 52%, #9a5710);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 225, 180, 0.28), transparent 22rem),
        radial-gradient(circle at 84% 18%, rgba(255, 145, 174, 0.26), transparent 20rem),
        linear-gradient(90deg, rgba(20, 9, 6, 0.78), rgba(20, 9, 6, 0.38), rgba(20, 9, 6, 0.9));
    z-index: 2;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.46;
    transform: scale(1.05);
    filter: saturate(1.08);
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.62fr);
    gap: 42px;
    align-items: center;
    padding: 76px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffe8b2;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-title-gradient {
    background: linear-gradient(90deg, #fff7d7, #ffd5df, #f4b34a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0;
    max-width: 700px;
    color: rgba(255, 247, 237, 0.88);
    font-size: 1.08rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

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

.btn-primary {
    color: #3a1d10;
    background: linear-gradient(135deg, #ffd77d, #f7a6b8);
    box-shadow: 0 16px 36px rgba(255, 179, 74, 0.35);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-panel {
    position: relative;
    border-radius: 30px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.hero-poster {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 215, 125, 0.32), rgba(247, 166, 184, 0.28));
}

.hero-meta {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(42, 20, 14, 0.72);
    backdrop-filter: blur(16px);
}

.hero-meta strong {
    display: block;
    font-size: 1.3rem;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 36px;
    background: #ffd77d;
}

.search-band {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-input {
    width: 100%;
    border: 1px solid rgba(189, 111, 18, 0.18);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--ink);
    background: #fffaf3;
    font: inherit;
    outline: none;
}

.search-input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(217, 144, 25, 0.12);
}

.page-main {
    padding: 64px 0 76px;
}

.section {
    margin-top: 58px;
}

.section:first-child {
    margin-top: 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--muted);
}

.link-more {
    color: var(--amber-600);
    font-weight: 900;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--rose-100));
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.58));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster::after {
    opacity: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--amber-600);
    background: var(--amber-100);
    font-size: 0.8rem;
    font-weight: 900;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 17px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 900;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.93rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #8f7a6c;
    font-size: 0.88rem;
}

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

.category-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, #8b4b12, #7a1f3b);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
}

.category-card p {
    margin: 12px 0 0;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.82);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 96px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(82, 43, 12, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-num {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f2a72e, #d94b73);
    font-weight: 950;
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--rose-100));
}

.rank-title {
    margin: 0 0 5px;
    font-size: 1.08rem;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-heat {
    color: var(--amber-600);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    padding: 66px 0 42px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 215, 125, 0.28), transparent 20rem),
        linear-gradient(135deg, #432014, #7a1f3b 52%, #a15d14);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.15rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    margin: 0;
    max-width: 820px;
    color: rgba(255, 247, 237, 0.86);
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 247, 237, 0.78);
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
    gap: 30px;
    align-items: start;
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: #160b08;
    box-shadow: 0 26px 70px rgba(34, 14, 9, 0.25);
    position: relative;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #120906;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.play-cover {
    position: absolute;
    inset: 0;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.66));
    display: grid;
    place-items: center;
    padding: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd77d, #f7a6b8);
    color: #3a1d10;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    font-size: 2.2rem;
    transform: translateX(3px);
}

.player-title {
    padding: 18px 22px;
    color: rgba(255, 247, 237, 0.88);
    background: linear-gradient(135deg, rgba(255, 215, 125, 0.12), rgba(247, 166, 184, 0.08));
}

.content-card {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
}

.content-card h2,
.content-card h3 {
    margin: 0 0 14px;
    font-size: 1.45rem;
    line-height: 1.25;
}

.content-card p {
    margin: 0 0 16px;
    color: #5f5048;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-100), var(--rose-100));
    box-shadow: var(--shadow);
}

.meta-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.meta-row strong {
    color: var(--ink);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.footer {
    color: #ffe9bf;
    background: linear-gradient(135deg, #3b1b12, #7a1f3b 58%, #8b4b12);
    padding: 46px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px;
}

.footer h2,
.footer h3 {
    margin: 0 0 12px;
    color: #fff3ce;
    font-size: 1.08rem;
}

.footer p,
.footer a {
    color: rgba(255, 233, 191, 0.82);
}

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

.footer-links {
    display: grid;
    gap: 8px;
}

.hide-by-filter {
    display: none !important;
}

@media (max-width: 980px) {
    .hero-content,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-panel {
        max-width: 420px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 64px;
    }

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

    .nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

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

    .hero-content {
        padding: 48px 0 76px;
    }

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

    .section-head {
        display: block;
    }

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

    .rank-item {
        grid-template-columns: 42px 72px 1fr;
    }

    .rank-heat {
        grid-column: 3;
    }
}
