:root {
    --bg: #fffaf7;
    --card: #ffffff;
    --ink: #1f2937;
    --muted: #667085;
    --line: rgba(15, 23, 42, 0.1);
    --sky: #0284c7;
    --sky-deep: #0369a1;
    --amber: #f59e0b;
    --warm: #fdf1e9;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 38%, #fffaf7 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

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

.header-inner,
.footer-inner,
.content-section,
.quick-inner,
.hero-carousel,
.page-hero,
.detail-hero,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.25);
}

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

.site-nav a {
    padding: 9px 14px;
    color: #475467;
    border-radius: 999px;
    font-weight: 700;
}

.site-nav a:hover {
    color: var(--sky-deep);
    background: rgba(2, 132, 199, 0.08);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 36px;
    background: radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.38), transparent 32%), linear-gradient(135deg, #082f49, #0f172a 48%, #7c2d12);
    box-shadow: var(--shadow);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(2, 132, 199, 0.28), transparent 46%), radial-gradient(circle at 78% 30%, rgba(245, 158, 11, 0.24), transparent 30%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 40px;
    padding: 58px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fde68a;
    font-weight: 900;
    letter-spacing: 0.08em;
}

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

.hero-copy p,
.page-hero p,
.lead-text {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.search-panel button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.primary-btn {
    padding: 13px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--sky-deep));
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.32);
}

.ghost-btn {
    padding: 13px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-poster {
    position: relative;
    z-index: 2;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-poster img,
.poster-link img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

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

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

.quick-categories {
    margin: 26px 0 4px;
}

.quick-inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 12px;
}

.quick-inner a {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: var(--sky-deep);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.content-section {
    padding: 42px 0;
}

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

.section-heading h2,
.detail-text h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-more {
    padding: 10px 16px;
    color: var(--sky-deep);
    background: rgba(2, 132, 199, 0.08);
}

.search-panel {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
}

.search-panel input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    font-size: 16px;
    outline: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.search-panel input:focus {
    border-color: rgba(2, 132, 199, 0.45);
}

.search-panel button {
    min-width: 86px;
    color: #ffffff;
    background: var(--ink);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.58));
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-style: normal;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.22);
}

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

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    min-height: 3.1em;
    margin: 8px 0;
    font-size: 17px;
    line-height: 1.45;
}

.movie-card h3 a:hover {
    color: var(--sky-deep);
}

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

.tag-row span {
    color: var(--sky-deep);
    background: rgba(2, 132, 199, 0.08);
}

.page-hero,
.detail-hero {
    margin-top: 28px;
    border-radius: 34px;
    background: linear-gradient(135deg, #082f49, #0f172a 55%, #7c2d12);
    box-shadow: var(--shadow);
}

.slim-hero {
    padding: 56px;
    color: #ffffff;
}

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

.category-card {
    min-height: 230px;
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.category-title {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--sky-deep);
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    color: var(--muted);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-links a {
    padding: 6px 10px;
    color: #475467;
    background: var(--warm);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 36px;
    padding: 44px;
    color: #ffffff;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #e0f2fe, #ffedd5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

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

.detail-meta {
    margin-top: 20px;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-tags {
    margin: 24px 0 28px;
}

.player-section {
    padding: 36px 0 8px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.34), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 34px;
    backdrop-filter: blur(10px);
}

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

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

.detail-text p {
    margin: 12px 0 28px;
    color: #475467;
}

.site-footer {
    margin-top: 46px;
    padding: 34px 0;
    color: #64748b;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.is-filtered-out {
    display: none;
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-carousel {
        min-height: 720px;
        border-radius: 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 32px 24px 70px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .page-hero p,
    .lead-text {
        font-size: 16px;
    }

    .hero-poster {
        max-width: 260px;
    }

    .hero-dots {
        left: 24px;
        bottom: 28px;
    }

    .section-heading,
    .footer-inner,
    .search-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 26px;
        border-radius: 26px;
    }

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

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

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