* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #065f46 0%, #0f766e 52%, #155e75 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.96);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 24px;
    line-height: 1;
}

.brand-text small {
    color: #d1fae5;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #ecfeff;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #a7f3d0;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(16, 185, 129, 0.26), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: #10b981;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.primary-button {
    color: #ffffff;
    background: #10b981;
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.36);
}

.primary-button:hover {
    background: #059669;
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.13);
}

.ghost-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-dots button.is-active {
    background: #10b981;
}

.stats-strip {
    padding: 28px 0;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

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

.stat-card {
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(135deg, #ecfdf5, #ecfeff);
}

.stat-card strong {
    display: block;
    color: #059669;
    font-size: 36px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: #64748b;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
    gap: 24px;
    align-items: end;
    margin-top: 42px;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.filter-panel h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.filter-panel p {
    margin: 0;
    color: #64748b;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 170px 150px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    color: #111827;
    background: #f8fafc;
}

.filter-controls input:focus,
.filter-controls select:focus {
    outline: 2px solid rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

.filter-result {
    grid-column: 1 / -1;
    color: #059669;
    font-weight: 700;
}

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

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: #64748b;
}

.section-heading a {
    color: #059669;
    font-weight: 800;
}

.light-heading,
.light-heading p,
.light-heading a {
    color: #ffffff;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-type,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.78);
}

.poster-type {
    right: 10px;
}

.rank-badge {
    left: 10px;
    background: #f97316;
}

.poster-play {
    position: absolute;
    inset: auto 12px 12px auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.92);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.34);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    min-height: 44px;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: #059669;
}

.movie-info p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    margin-top: 12px;
    color: #059669;
    font-size: 13px;
    font-weight: 800;
}

.category-band {
    padding: 64px 0;
    color: #ffffff;
    background: linear-gradient(90deg, #064e3b 0%, #0f766e 50%, #155e75 100%);
}

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

.category-tile {
    min-height: 170px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.2);
}

.category-tile span,
.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile span {
    font-size: 20px;
    font-weight: 800;
}

.category-tile strong {
    margin: 12px 0;
    font-size: 38px;
}

.category-tile small {
    color: #d1fae5;
    line-height: 1.7;
}

.page-hero {
    padding: 78px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 22%, rgba(16, 185, 129, 0.32), transparent 28%),
        linear-gradient(100deg, #022c22, #0f766e 48%, #164e63);
}

.page-hero p {
    color: #d1fae5;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #0f766e;
    font-weight: 700;
}

.dark-breadcrumb {
    color: #d1fae5;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-overview-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.category-overview-link {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 240px;
}

.category-poster-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 12px;
    background: #0f172a;
}

.category-poster-stack img {
    width: 100%;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-content {
    padding: 24px;
}

.category-overview-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.category-overview-content p {
    color: #64748b;
    line-height: 1.8;
}

.category-overview-content strong {
    color: #059669;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px);
    transform: scale(1.08);
    opacity: 0.46;
}

.detail-bg-mask {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.72));
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 46px 0 60px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.38);
}

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

.watch-section {
    padding: 48px 0 16px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

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

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

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

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.42);
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay small {
    color: #d1fae5;
}

.source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.source-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #065f46;
    background: #d1fae5;
    font-weight: 800;
}

.source-button.active,
.source-button:hover {
    color: #ffffff;
    background: #10b981;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 32px 0 70px;
}

.detail-article,
.related-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.detail-article {
    padding: 32px;
}

.detail-article h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.detail-article p {
    margin: 0 0 28px;
    color: #334155;
    line-height: 2;
}

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

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

.info-list dt {
    color: #64748b;
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    padding: 7px 12px;
    border-radius: 999px;
    color: #065f46;
    background: #d1fae5;
    font-weight: 700;
}

.related-panel {
    padding: 24px;
    align-self: start;
}

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

.related-list .movie-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    border-radius: 16px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.related-list .movie-poster {
    aspect-ratio: 3 / 4;
}

.related-list .movie-info {
    padding: 12px;
}

.related-list .movie-info p,
.related-list .text-link,
.related-list .poster-play {
    display: none;
}

.related-list .movie-info h3 {
    min-height: 0;
    font-size: 14px;
}

.site-footer {
    color: #cbd5e1;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

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

.site-footer p,
.site-footer li {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
}

.movie-card.is-hidden {
    display: none;
}

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

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
        border-radius: 18px;
        background: #065f46;
        box-shadow: 0 20px 44px rgba(15, 23, 42, 0.26);
    }

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

    .hero-carousel {
        height: 560px;
    }

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

    .hero-content p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .filter-panel,
    .filter-controls,
    .detail-layout,
    .category-overview-link,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .category-grid,
    .category-overview-grid,
    .stats-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

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

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

    .detail-article {
        padding: 24px;
    }
}
