:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #ecfdf5;
    --brand: #059669;
    --brand-dark: #047857;
    --brand-2: #0d9488;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.76);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
}

.brand-text {
    white-space: nowrap;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-menu a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    transition: 0.25s ease;
}

.site-menu a:hover,
.site-menu a.active {
    color: var(--brand-dark);
    background: #d1fae5;
}

.header-search {
    width: 220px;
}

.header-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    padding: 10px 16px;
    background: #fff;
    color: var(--text);
    transition: 0.25s ease;
}

.header-search input:focus {
    border-color: rgba(5, 150, 105, 0.55);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--brand);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 42%, rgba(16, 185, 129, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.18));
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 330px;
    align-items: center;
    gap: 54px;
    padding-top: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #a7f3d0;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
}

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

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    color: #fff;
    letter-spacing: -0.06em;
}

.hero-desc,
.detail-one-line {
    width: min(720px, 100%);
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    margin: 0 0 22px;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #064e3b;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 16px 36px rgba(5, 150, 105, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(5, 150, 105, 0.4);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
    transition: 0.35s ease;
}

.hero-poster:hover {
    transform: translateY(-6px) rotate(0deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 12px 16px;
    text-align: center;
    color: #fff;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    min-width: 42px;
    height: 42px;
    backdrop-filter: blur(14px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots button {
    min-width: 10px;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dots button.active {
    width: 34px;
    background: #34d399;
}

.quick-panel {
    margin-top: -44px;
    position: relative;
    z-index: 7;
}

.quick-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 26px;
    align-items: center;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-inner h2,
.section-head h2,
.content-card h2,
.category-overview-card h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.quick-inner p,
.section-head p,
.page-hero p,
.category-overview-card p,
.content-card p {
    color: var(--muted);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.quick-links a,
.filter-row button,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    color: var(--brand-dark);
    background: #fff;
    font-weight: 800;
    transition: 0.25s ease;
}

.quick-links a:hover,
.filter-row button:hover,
.filter-row button.active,
.text-link:hover,
.section-more:hover {
    border-color: transparent;
    color: #fff;
    background: var(--brand);
}

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

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

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

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

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.78);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
    border-color: rgba(16, 185, 129, 0.38);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.category-overview-cover:hover img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.8) 100%);
    opacity: 0.85;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.82);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(5, 150, 105, 0.92);
    opacity: 0;
    transition: 0.28s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(2, 6, 23, 0.7);
    font-weight: 800;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover,
.rank-info h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--brand-dark);
}

.movie-meta,
.movie-desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-grid-compact .movie-desc,
.movie-grid-compact .movie-tags {
    display: none;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    border-radius: 26px;
    overflow: hidden;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    box-shadow: var(--shadow);
    background: #020617;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transition: 0.6s ease;
}

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.86));
}

.category-card strong,
.category-card small {
    position: relative;
}

.category-card strong {
    font-size: 22px;
    margin-bottom: 4px;
}

.category-card small {
    color: rgba(255, 255, 255, 0.78);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 92px 56px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 92px;
    height: 120px;
    object-fit: cover;
}

.rank-no {
    font-size: 28px;
    font-weight: 900;
    color: var(--brand);
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
}

.rank-action {
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
}

.page-hero {
    padding: 86px 0 48px;
    background:
        radial-gradient(circle at 78% 18%, rgba(16, 185, 129, 0.18), transparent 30%),
        linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.page-hero h1 {
    color: var(--text);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 700;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb.light a:hover {
    color: #a7f3d0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-overview-cover {
    border-radius: 22px;
    overflow: hidden;
    background: #0f172a;
}

.category-overview-cover img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: 0.6s ease;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-samples a {
    border-radius: 999px;
    padding: 6px 10px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.48)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.2));
}

.detail-hero-inner {
    position: relative;
    padding: 56px 0 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    color: #fff;
}

.detail-tags span {
    color: #064e3b;
    background: #a7f3d0;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
    gap: 26px;
}

.player-card,
.content-card {
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.2);
}

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

.player-cover-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.2), transparent 34%), rgba(2, 6, 23, 0.36);
}

.player-start {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 50px rgba(5, 150, 105, 0.44);
    font-size: 32px;
    padding-left: 4px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin-top: 0;
    font-size: 26px;
}

.movie-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0 0;
}

.movie-facts div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.movie-facts dt {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.movie-facts dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.site-footer {
    background: #020617;
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 54px 0 34px;
}

.footer-brand {
    color: #fff;
    font-size: 22px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
}

.footer-links a:hover {
    color: #fff;
    background: var(--brand);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.58);
}

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

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

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

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

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

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

    .site-menu {
        position: absolute;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .site-menu.open {
        display: flex;
    }

    .site-menu a {
        border-radius: 14px;
    }

    .header-search {
        width: min(42vw, 220px);
        margin-left: auto;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .hero-carousel {
        height: auto;
        min-height: 690px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 88px 0 96px;
    }

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

    .quick-panel {
        margin-top: 0;
        padding-top: 22px;
    }

    .quick-inner {
        grid-template-columns: 1fr;
    }

    .quick-links {
        justify-content: flex-start;
    }

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

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

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

    .rank-row {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .rank-no,
    .rank-action {
        display: none;
    }

    .rank-cover img {
        width: 78px;
        height: 106px;
    }

    .category-overview-card,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 80vw);
    }
}

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

    .brand-text {
        font-size: 15px;
    }

    .header-search {
        display: none;
    }

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

    .hero-desc,
    .detail-one-line {
        font-size: 16px;
    }

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

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

    .category-card {
        min-height: 180px;
    }

    .movie-facts {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

    .page-hero {
        padding: 58px 0 34px;
    }
}
