:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fef3c7;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --pink: #ec4899;
    --shadow: 0 18px 45px rgba(234, 88, 12, 0.15);
}

* {
    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: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34);
}

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

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--brand-dark);
    background: #ffedd5;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffedd5;
    color: var(--brand-dark);
    cursor: pointer;
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 36px;
}

.hero-shell {
    position: relative;
    min-height: 580px;
    border-radius: 36px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #f97316 0%, #ec4899 55%, #7c3aed 100%);
    box-shadow: var(--shadow);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.32), transparent 26%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.54) 48%, rgba(17, 24, 39, 0.18) 100%);
}

.hero-content {
    position: absolute;
    inset: auto auto 54px 54px;
    width: min(620px, calc(100% - 76px));
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 999px;
    padding: 12px 22px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.42);
}

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

.btn-plain {
    color: var(--brand-dark);
    background: #ffedd5;
}

.hero-dots {
    position: absolute;
    left: 54px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: #fff;
}

.quick-search {
    margin-top: -18px;
    position: relative;
    z-index: 4;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #fed7aa;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 13px 16px;
    outline: none;
    background: #fff;
    color: #374151;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.section {
    padding: 42px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid rgba(254, 215, 170, 0.78);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(249, 115, 22, 0.18);
}

.poster {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(8px);
}

.poster .badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
}

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.meta-pill {
    border-radius: 999px;
    padding: 6px 10px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    min-height: 162px;
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.category-card:after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    right: -54px;
    top: -44px;
    background: rgba(255, 255, 255, 0.2);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 86px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(254, 215, 170, 0.84);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand);
    text-align: center;
}

.rank-thumb {
    width: 86px;
    height: 112px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    margin: 34px 0 12px;
    border-radius: 32px;
    padding: 54px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
    color: var(--muted);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--brand-dark);
}

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

.player-card,
.detail-card {
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(254, 215, 170, 0.84);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

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

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.82));
}

.player-button {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.54);
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: 0 18px 34px rgba(236, 72, 153, 0.36);
    cursor: pointer;
    font-size: 30px;
    display: grid;
    place-items: center;
}

.player-meta {
    padding: 24px;
}

.player-meta h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.player-meta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.detail-card {
    padding: 24px;
}

.detail-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

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

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ffedd5;
}

.detail-list strong {
    color: #111827;
}

.article {
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(254, 215, 170, 0.84);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.article h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article p {
    color: #4b5563;
    line-height: 1.9;
}

.site-footer {
    margin-top: 58px;
    padding: 34px 0;
    color: #6b7280;
    border-top: 1px solid #fed7aa;
    background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--brand-dark);
    font-weight: 800;
}

.empty-state {
    display: none;
    margin: 22px 0;
    padding: 24px;
    border-radius: 22px;
    color: #92400e;
    background: #fef3c7;
}

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

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

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

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 24px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-shell {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-content {
        left: 24px;
        bottom: 58px;
        width: calc(100% - 48px);
    }

    .hero-dots {
        left: 24px;
    }

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

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

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

    .poster {
        height: 220px;
    }

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

    .rank-row {
        grid-template-columns: 44px 72px 1fr;
    }

    .rank-row .btn {
        grid-column: 2 / 4;
    }

    .rank-thumb {
        width: 72px;
        height: 96px;
    }

    .page-hero {
        padding: 34px 24px;
        border-radius: 26px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .poster {
        height: 280px;
    }
}
