:root {
    --page: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fff1f2;
    --text: #171717;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.18);
    --primary: #fb923c;
    --primary-strong: #f97316;
    --accent: #ec4899;
    --accent-deep: #db2777;
    --shadow: 0 24px 60px rgba(249, 115, 22, 0.16);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 36rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fff7ed 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 247, 237, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25);
}

.logo-text {
    white-space: nowrap;
    font-size: 20px;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-strong);
    background: rgba(251, 146, 60, 0.12);
    transform: translateY(-1px);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search button,
.btn,
.hero-search button,
.filter-panel button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button {
    padding: 10px 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
}

.btn.secondary {
    color: var(--primary-strong);
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.1);
}

.header-search button:hover,
.btn:hover,
.hero-search button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 20px 44px rgba(236, 72, 153, 0.28);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    cursor: pointer;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.12);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    color: #374151;
    border-radius: 14px;
}

.mobile-panel a:hover {
    color: var(--primary-strong);
    background: rgba(251, 146, 60, 0.1);
}

.mobile-panel.open {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 78px 0 72px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 26px 4% auto auto;
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.3), rgba(236, 72, 153, 0.22));
    border-radius: 48% 52% 68% 32%;
    filter: blur(4px);
    opacity: 0.8;
}

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
    gap: 34px;
    align-items: stretch;
}

.hero-copy {
    padding: 50px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.84)),
        radial-gradient(circle at 10% 10%, rgba(251, 146, 60, 0.22), transparent 20rem);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: var(--accent-deep);
    font-weight: 800;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 999px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.gradient-text {
    color: transparent;
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-intro {
    max-width: 680px;
    margin: 20px 0 28px;
    color: #4b5563;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 620px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.1);
}

.hero-search input {
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    outline: 0;
    background: transparent;
}

.hero-search button {
    padding: 13px 24px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-tags a,
.tag-row span,
.meta-pill,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    color: #9a3412;
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 999px;
}

.hero-tags a {
    padding: 8px 13px;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    transform: scale(1.02);
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.84)),
        linear-gradient(90deg, rgba(17, 24, 39, 0.65), transparent 70%);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 34px;
    color: #ffffff;
}

.slide-content h2 {
    margin: 8px 0 12px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.05;
}

.slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
}

.slide-chip {
    display: inline-flex;
    padding: 7px 12px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 4;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.hero-dots button.active {
    width: 28px;
    background: #ffffff;
}

.section {
    padding: 46px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-section h2,
.category-tile h2 {
    margin: 0;
}

.section-head p,
.page-hero p,
.category-tile p,
.detail-section p,
.about-card p {
    color: var(--muted);
}

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.28);
    box-shadow: 0 24px 60px rgba(236, 72, 153, 0.15);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h2 {
    min-height: 2.8em;
    margin: 8px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 3.2em;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

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

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.category-tile {
    min-height: 210px;
    padding: 26px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #fff1f2);
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.1);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -56px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.22), rgba(236, 72, 153, 0.2));
    border-radius: 50%;
}

.category-tile h2 {
    position: relative;
    z-index: 1;
    font-size: 24px;
}

.category-tile p,
.category-tile .btn {
    position: relative;
    z-index: 1;
}

.category-tile p {
    min-height: 4.8em;
}

.rank-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.rank-box {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.rank-box h2 {
    margin: 0 0 16px;
}

.rank-line {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(251, 146, 60, 0.12);
}

.rank-line:last-child {
    border-bottom: 0;
}

.rank-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-score {
    color: var(--accent-deep);
    font-weight: 900;
}

.page-hero {
    padding: 64px 0 30px;
}

.page-hero-box {
    padding: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.84));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

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

.breadcrumb a,
.breadcrumb span {
    padding: 6px 10px;
    font-size: 13px;
}

.filter-panel {
    margin: 24px 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.08);
}

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

.filter-grid label {
    display: grid;
    gap: 7px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    padding: 12px 13px;
    color: var(--text);
    background: #fff7ed;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 14px;
    outline: 0;
}

.detail-main {
    padding: 38px 0 52px;
}

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

.detail-card,
.side-card,
.about-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.detail-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #111827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.72)),
        radial-gradient(circle at center, rgba(236, 72, 153, 0.28), transparent 24rem);
    z-index: 3;
}

.player-overlay.is-hidden {
    display: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-deep);
    font-size: 30px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

.detail-content {
    padding: 30px;
}

.detail-title h1 {
    font-size: clamp(32px, 5vw, 56px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 20px;
}

.meta-pill {
    padding: 7px 11px;
    font-weight: 800;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2 {
    font-size: 24px;
}

.detail-section p {
    margin: 12px 0 0;
    font-size: 16px;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 18px;
}

.side-mini {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(251, 146, 60, 0.12);
}

.side-mini:last-child {
    border-bottom: 0;
}

.side-mini img {
    width: 82px;
    height: 110px;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
    border-radius: 14px;
}

.side-mini h3 {
    margin: 2px 0 8px;
    font-size: 15px;
}

.side-mini p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.about-card {
    padding: 28px;
}

.about-card h2 {
    margin: 0 0 12px;
}

.site-footer {
    margin-top: 36px;
    padding: 46px 0 0;
    color: #7c2d12;
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.72), rgba(255, 241, 242, 0.92));
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 22px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 18px;
}

.footer-grid p {
    margin: 0;
    max-width: 560px;
}

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

.footer-links a:hover {
    color: var(--accent-deep);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
    padding: 18px;
    color: #9a3412;
    border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.empty-state {
    display: none;
    padding: 42px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.empty-state.show {
    display: block;
}

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

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

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

    .hero-shell,
    .detail-layout,
    .rank-panel {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 520px;
    }

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

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

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

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

    .header-inner {
        min-height: 66px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
        padding: 34px 0 42px;
    }

    .hero-copy,
    .page-hero-box,
    .detail-content {
        padding: 24px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-slider {
        min-height: 450px;
    }

    .slide-content {
        padding: 24px;
    }

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

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

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

    .movie-card h2 {
        font-size: 15px;
    }

    .category-grid,
    .about-grid,
    .filter-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-line {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .rank-number {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .detail-main {
        padding-top: 22px;
    }

    .side-mini {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .side-mini img {
        width: 72px;
        height: 96px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}
