:root {
    --bg: #f7faf8;
    --surface: #ffffff;
    --surface-soft: #eef8f1;
    --text: #111827;
    --muted: #667085;
    --line: #e5ece8;
    --brand: #059669;
    --brand-deep: #047857;
    --brand-soft: #dff7eb;
    --accent: #f59e0b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 32rem),
        linear-gradient(180deg, #fbfffd 0%, var(--bg) 36%, #ffffff 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 236, 232, 0.8);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), #22c55e);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.brand-text {
    font-size: 1.15rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link,
.mobile-link {
    border-radius: 999px;
    padding: 9px 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-soft);
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--brand-deep);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-inner {
    display: grid;
    gap: 8px;
    padding: 14px 0 20px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #06160f;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(16, 185, 129, 0.38), transparent 28rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.16) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 52px;
    align-items: center;
    height: 100%;
    padding: 96px 0 110px;
    color: #ffffff;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
    border: 1px solid rgba(167, 243, 208, 0.24);
    padding: 4px 12px;
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(2.45rem, 6vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 690px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.8vw, 1.28rem);
}

.hero-tags,
.detail-meta,
.movie-meta-line,
.breadcrumb-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta-line span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.ghost-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.section-more:hover,
.quick-card:hover,
.movie-card:hover,
.category-tile:hover,
.category-detail-card:hover,
.rank-row:hover {
    transform: translateY(-3px);
}

.hero-poster-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

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

.hero-poster-card span {
    display: block;
    padding: 16px 18px;
    font-size: 1.05rem;
    font-weight: 900;
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
}

.hero-dot.active {
    width: 28px;
    background: #34d399;
}

.quick-entry,
.movie-section,
.category-strip,
.category-overview,
.detail-content,
.player-section {
    padding: 54px 0 0;
}

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

.quick-card,
.category-detail-card,
.content-card,
.search-panel,
.page-hero-card,
.rank-row,
.movie-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.quick-card {
    display: grid;
    gap: 5px;
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card strong {
    font-size: 1.16rem;
}

.quick-card span,
.section-heading p,
.category-detail-body p,
.movie-card-body p,
.rank-info p,
.content-card p,
.footer-grid p,
.page-hero p,
.detail-copy p {
    color: var(--muted);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
}

.section-more,
.text-btn {
    color: var(--brand-deep);
    background: var(--brand-soft);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    isolation: isolate;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-tile img,
.category-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.78));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.category-tile strong {
    bottom: 64px;
    font-size: 1.35rem;
    font-style: normal;
}

.category-tile em {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-style: normal;
}

.search-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-xl);
    padding: 18px;
}

.search-box {
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    padding: 14px 16px;
    background: #f9fffb;
}

.search-box input:focus {
    border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.filter-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip,
.tag-row span {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: #edf7f1;
    color: #047857;
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--brand);
    color: #ffffff;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #d7eee1;
}

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

.movie-card:hover .poster-wrap img,
.category-tile:hover img,
.category-detail-card:hover img {
    transform: scale(1.04);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.78));
    opacity: 0.82;
}

.play-dot,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
}

.play-dot {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.9);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.32);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 15px;
}

.movie-card-body h2,
.rank-info h2,
.content-card h2,
.category-detail-body h2 {
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.movie-card-body h2 {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    font-size: 1.05rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-body p,
.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta-line span {
    background: #f2f7f4;
    color: #64748b;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-radius: var(--radius-lg);
    padding: 12px 18px 12px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), #22c55e);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
}

.rank-thumb img {
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background:
        radial-gradient(circle at 82% 10%, rgba(52, 211, 153, 0.38), transparent 24rem),
        linear-gradient(135deg, #052e25, #064e3b 55%, #111827);
    color: #ffffff;
}

.page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.page-hero-card {
    width: min(100%, 330px);
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(16px);
}

.page-hero-card strong,
.page-hero-card span {
    display: block;
}

.page-hero-card span {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-row {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
}

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

.category-detail-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-detail-cover {
    min-height: 250px;
    overflow: hidden;
}

.category-detail-body {
    display: grid;
    gap: 12px;
    align-content: center;
    padding: 24px;
}

.mini-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-link-list a {
    border-radius: 999px;
    background: #f2f7f4;
    color: #047857;
    padding: 6px 10px;
    font-size: 0.86rem;
}

.detail-main {
    background: #ffffff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    color: #ffffff;
    background: #06160f;
}

.detail-backdrop,
.detail-mask {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) scale(1.08) saturate(1.1);
}

.detail-mask {
    background:
        radial-gradient(circle at 80% 16%, rgba(16, 185, 129, 0.36), transparent 28rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.42));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    min-height: 580px;
    padding: 74px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

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

.detail-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-copy p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

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

.player-section {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

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

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
    color: #ffffff;
    text-align: center;
}

.player-shell.is-playing .player-cover {
    display: none;
}

.player-cover-icon {
    display: inline-grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.92);
    box-shadow: 0 18px 40px rgba(5, 150, 105, 0.45);
    font-size: 2rem;
}

.player-cover strong {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.player-cover em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

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

.content-card {
    border-radius: var(--radius-xl);
    padding: 28px;
}

.content-card h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.related-section {
    padding-bottom: 70px;
}

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

.site-footer {
    margin-top: 70px;
    background: #06160f;
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.25rem;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1rem;
}

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

.footer-links a:hover {
    color: #a7f3d0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    text-align: center;
}

[data-card].hidden {
    display: none;
}

@media (max-width: 1080px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster-card {
        display: none;
    }

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

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

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

@media (max-width: 820px) {
    .hero-carousel {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 72px;
    }

    .quick-entry,
    .footer-grid,
    .detail-content,
    .category-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .category-detail-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .page-hero-inner,
    .section-heading {
        display: grid;
    }

    .detail-hero-inner {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 22px;
    }

    .rank-row {
        grid-template-columns: 48px 74px minmax(0, 1fr);
        padding-right: 12px;
    }

    .rank-row .text-btn {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

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

    .brand-text {
        font-size: 1rem;
    }

    .hero-carousel {
        min-height: 600px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .hero-controls {
        bottom: 18px;
    }

    .quick-entry,
    .movie-section,
    .category-strip,
    .category-overview,
    .detail-content,
    .player-section {
        padding-top: 36px;
    }

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

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

    .movie-card-body h2 {
        font-size: 0.96rem;
    }

    .movie-card-body p,
    .tag-row {
        display: none;
    }

    .category-detail-card,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: 190px;
    }

    .player-section {
        margin-top: -28px;
    }

    .content-card {
        padding: 22px;
    }

    .rank-row {
        grid-template-columns: 42px 64px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
    }

    .rank-thumb img {
        width: 64px;
    }
}
