:root {
    --page-bg: #fff7ed;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --line: rgba(31, 41, 55, 0.12);
    --card: rgba(255, 255, 255, 0.78);
    --card-strong: rgba(255, 255, 255, 0.94);
    --amber: #f59e0b;
    --rose: #e11d48;
    --sky: #0284c7;
    --dark: #111827;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    --shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 34rem),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 36rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #f0f9ff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--rose), var(--sky));
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.22);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    cursor: pointer;
}

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

.main-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: #4b5563;
    transition: 0.24s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.18);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: white;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.34), transparent 30rem),
        linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(136, 19, 55, 0.88), rgba(12, 74, 110, 0.9));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 0.8s ease, transform 1.2s ease;
    z-index: -2;
}

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

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

.hero-content {
    width: min(980px, calc(100% - 32px));
    text-align: center;
    padding: 68px 0 54px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 1.03;
    letter-spacing: -0.06em;
    font-weight: 950;
    text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.hero-title {
    margin: 0 auto 16px;
    font-size: clamp(22px, 3.4vw, 40px);
    font-weight: 850;
    max-width: 850px;
}

.hero-desc {
    margin: 0 auto 30px;
    max-width: 780px;
    color: #ffedd5;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions,
.section-actions,
.card-actions,
.detail-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    font-weight: 800;
    transition: 0.24s ease;
    cursor: pointer;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 18px 34px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 44px rgba(225, 29, 72, 0.38);
}

.btn-light {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-dots {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: white;
}

.search-panel {
    margin-top: -52px;
    position: relative;
    z-index: 3;
}

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

.search-box input,
.search-box select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    color: var(--text-main);
}

.search-box input:focus,
.search-box select:focus {
    border-color: rgba(225, 29, 72, 0.42);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.page-hero {
    padding: 76px 0 38px;
}

.page-hero-card {
    border-radius: var(--radius);
    padding: clamp(28px, 6vw, 64px);
    color: white;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(146, 64, 14, 0.94), rgba(159, 18, 57, 0.92), rgba(12, 74, 110, 0.92)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 20rem);
    box-shadow: var(--shadow);
}

.page-hero-card h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero-card p {
    max-width: 820px;
    margin: 0;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.85;
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(12px);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 930;
    letter-spacing: -0.04em;
    color: #9f1239;
}

.section-title span {
    color: transparent;
    background: linear-gradient(135deg, var(--rose), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--text-soft);
    max-width: 680px;
    line-height: 1.8;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
    transition: 0.26s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(225, 29, 72, 0.22));
}

.poster-wrap.wide {
    aspect-ratio: 16 / 10;
}

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

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

.badge-row {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.badge-hot {
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

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

.card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 880;
    color: #111827;
}

.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.card-text {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    color: #9f1239;
    background: rgba(255, 228, 230, 0.86);
}

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

.category-card {
    min-height: 210px;
    border-radius: var(--radius);
    padding: 24px;
    color: white;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.26), transparent 10rem),
        linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(225, 29, 72, 0.92), rgba(2, 132, 199, 0.92));
    box-shadow: var(--shadow-soft);
    transition: 0.26s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 24px;
}

.category-card p {
    color: #ffedd5;
    line-height: 1.7;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: var(--card-strong);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    transition: 0.24s ease;
}

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

.rank-num {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    font-size: 22px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 16px 28px rgba(225, 29, 72, 0.2);
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

.player-card,
.detail-card,
.side-card {
    border-radius: var(--radius);
    background: var(--card-strong);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 4;
    color: white;
    background: rgba(2, 6, 23, 0.42);
    transition: 0.24s ease;
}

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

.play-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.play-button {
    position: relative;
    z-index: 6;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    display: grid;
    place-items: center;
    font-size: 32px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35);
}

.player-info {
    padding: 24px;
}

.player-info h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.detail-card {
    padding: 28px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #9f1239;
    font-size: 26px;
}

.detail-card p {
    color: #374151;
    line-height: 2;
    margin: 0 0 20px;
}

.side-card {
    padding: 20px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 247, 237, 0.78);
    transition: 0.24s ease;
}

.related-card:hover {
    transform: translateX(3px);
    background: rgba(255, 228, 230, 0.78);
}

.related-card .poster-wrap {
    border-radius: 14px;
}

.related-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.related-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
}

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

.breadcrumb a {
    color: #be123c;
}

.site-footer {
    margin-top: 64px;
    padding: 42px 0;
    color: #6b7280;
    border-top: 1px solid rgba(31, 41, 55, 0.1);
    background: rgba(255, 255, 255, 0.42);
}

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

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

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

.empty-state {
    display: none;
    padding: 32px;
    border-radius: var(--radius);
    color: #9f1239;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 1080px) {
    .movie-grid,
    .movie-grid.compact,
    .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;
    }

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

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        padding: 16px;
        border-radius: 24px;
        display: none;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 560px;
    }

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

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

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

    .rank-card {
        grid-template-columns: 80px 1fr;
    }

    .rank-card .rank-num {
        grid-column: 1 / -1;
    }
}

@media (max-width: 460px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

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

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 14px;
    }
}
