:root {
    --page-bg: #f4f7f6;
    --panel: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.86);
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(15, 23, 42, 0.10);
    --brand: #10b981;
    --brand-deep: #059669;
    --gold: #f59e0b;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    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(16, 185, 129, 0.18), transparent 32rem),
        linear-gradient(180deg, #f9fafb 0%, var(--page-bg) 44%, #eef2f1 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #34d399 55%, #22c55e);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.34);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-weight: 700;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.nav-toggle {
    display: none;
    border: 0;
    background: #111827;
    color: #ffffff;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 18px;
}

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

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.66) 46%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.50), rgba(2, 6, 23, 0.05));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding: 72px 0 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.92);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero p {
    margin: 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.78;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 30px;
}

.hero-meta span,
.tag,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 20px;
    background: #111827;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot.active {
    background: #ffffff;
}

.section {
    padding: 58px 0;
}

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

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

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

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

.category-card {
    min-height: 148px;
    padding: 22px;
    border-radius: var(--radius);
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 9rem),
        linear-gradient(135deg, #047857, #10b981);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

.category-card strong {
    display: block;
    margin: 8px 0;
    font-size: 20px;
}

.category-card span {
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.65;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-info {
    padding: 14px;
}

.movie-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.rank-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card .poster {
    border-radius: 16px;
}

.rank-no {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), #ef4444);
    font-weight: 900;
}

.search-panel {
    margin: -36px auto 26px;
    position: relative;
    z-index: 4;
    padding: 18px;
    border-radius: 26px;
    background: var(--panel-soft);
    border: 1px solid rgba(255, 255, 255, 0.60);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 170px 160px;
    gap: 12px;
}

.search-row input,
.search-row select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    outline: 0;
    color: var(--text);
    background: #ffffff;
    font-size: 15px;
}

.inner-hero {
    padding: 74px 0 62px;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 24%, rgba(16, 185, 129, 0.45), transparent 24rem),
        linear-gradient(135deg, #020617, #064e3b 58%, #111827);
}

.inner-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.inner-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    font-size: 18px;
}

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

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

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

.player-card,
.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.20)),
        var(--poster-url) center / cover;
    cursor: pointer;
}

.play-layer.hidden {
    display: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.94);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.36);
    font-size: 34px;
}

.detail-card {
    padding: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

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

.info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 0 18px;
}

.info-item {
    padding: 12px;
    border-radius: 16px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
}

.info-item strong {
    color: #111827;
}

.side-card {
    padding: 18px;
}

.side-movie {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

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

.side-movie img {
    width: 72px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.side-movie h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
}

.side-movie p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-weight: 900;
}

.pagination .current {
    color: #ffffff;
    background: var(--brand);
}

.site-footer {
    margin-top: 60px;
    padding: 38px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #020617;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.site-footer strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer a:hover {
    color: #34d399;
}

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

@media (max-width: 1080px) {
    .movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

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

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

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

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

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

    .hero-copy {
        padding: 68px 0 112px;
    }

    .hero p {
        font-size: 17px;
    }

    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .category-grid,
    .movie-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        gap: 14px;
    }

    .movie-card {
        display: grid;
        grid-template-columns: 112px 1fr;
    }

    .poster {
        min-height: 168px;
    }

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

    .info-list {
        grid-template-columns: 1fr;
    }
}
