:root {
    color-scheme: light;
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #f3f4f6;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #059669;
    --brand-deep: #047857;
    --brand-soft: rgba(5, 150, 105, 0.12);
    --shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.32);
    font-size: 16px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-text em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    padding: 9px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: all 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--surface-soft);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.mobile-panel.is-open {
    display: grid;
    gap: 6px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 70vh;
    background: #0f172a;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    min-height: 70vh;
}

.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 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.22)), linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    padding: 72px 0 130px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 8vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-meta span,
.info-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn,
.category-card a,
.section-head a,
.detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-btn,
.category-card a,
.detail-actions a {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
}

.primary-btn:hover,
.category-card a:hover,
.detail-actions a:hover {
    background: var(--brand-deep);
    transform: translateY(-1px);
}

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

.section-head a {
    border-color: var(--line);
    color: var(--brand-deep);
    background: #ffffff;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.32);
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.hero-feature-panel {
    position: absolute;
    z-index: 5;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    width: min(390px, calc(100% - 48px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-feature-panel h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.feature-list {
    display: grid;
    gap: 12px;
}

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

.page-main {
    padding: 34px 0 64px;
}

.section {
    padding: 56px 0 0;
}

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

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-kicker {
    color: var(--brand-deep);
    background: var(--brand-soft);
}

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

.category-pill {
    min-height: 88px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
}

.category-pill:hover {
    border-color: rgba(5, 150, 105, 0.4);
    transform: translateY(-2px);
}

.category-pill strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.category-pill span {
    color: var(--muted);
    font-size: 13px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #065f46);
}

.poster-link img,
.horizontal-poster img,
.related-poster img,
.detail-poster img,
.ranking-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 13px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.card-body h3 {
    min-height: 48px;
    margin: 8px 0 7px;
    font-size: 16px;
    line-height: 1.45;
}

.card-body h3 a:hover,
.horizontal-card h3 a:hover,
.ranking-item h3 a:hover,
.related-card h3 a:hover {
    color: var(--brand-deep);
}

.card-body p {
    min-height: 42px;
    margin: 0 0 11px;
    color: var(--muted);
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.tag-row span,
.info-tags span {
    background: var(--surface-soft);
    color: #4b5563;
    backdrop-filter: none;
}

.card-category {
    display: inline-flex;
    margin-top: 12px;
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 800;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
}

.horizontal-poster {
    display: block;
    height: 92px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.horizontal-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
}

.horizontal-card h3 {
    margin: 4px 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
}

.horizontal-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.light-list .horizontal-card {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.light-list .horizontal-card span,
.light-list .horizontal-card p {
    color: var(--muted);
}

.light-list .horizontal-card h3 {
    color: var(--text);
}

.filters {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 160px;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.filters label {
    display: grid;
    gap: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filters input,
.filters select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    outline: 0;
}

.filters input:focus,
.filters select:focus {
    border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.page-hero {
    padding: 52px;
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.24), transparent 34%), linear-gradient(135deg, #0f172a, #064e3b);
    color: #ffffff;
    overflow: hidden;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 14px;
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: 18px;
}

.category-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.category-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    min-height: 76px;
    margin: 0 0 18px;
    color: var(--muted);
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 54px 86px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 900;
}

.ranking-poster {
    height: 112px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.ranking-item h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-item p {
    margin: 0;
    color: var(--muted);
}

.score {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand-deep);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.sidebar-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.22), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

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

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-deep);
    font-size: 34px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

.player-title {
    padding: 18px 20px;
}

.player-title h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
}

.player-title p {
    margin: 0;
    color: var(--muted);
}

.detail-card {
    padding: 24px;
    margin-top: 20px;
}

.detail-card h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.info-grid div {
    padding: 13px;
    border-radius: 15px;
    background: var(--surface-soft);
}

.info-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.info-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-card {
    padding: 18px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    background: #111827;
    margin-bottom: 18px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
}

.related-poster {
    height: 104px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.related-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.related-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    margin-top: 64px;
    background: #111827;
    color: #d1d5db;
}

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

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand p {
    max-width: 680px;
    margin: 8px 0 0;
    color: #9ca3af;
}

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

.footer-links h2 {
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: 16px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

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

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

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

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

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

    .sidebar-card {
        position: static;
    }

    .hero-feature-panel {
        display: none;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

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

    .hero-content {
        padding: 80px 0 96px;
    }

    .hero-control {
        display: none;
    }

    .section {
        padding-top: 38px;
    }

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

    .category-strip,
    .category-overview {
        grid-template-columns: 1fr;
    }

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

    .card-body {
        padding: 11px;
    }

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

    .filters {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .ranking-item {
        grid-template-columns: 42px 70px 1fr;
    }

    .ranking-item .score {
        grid-column: 3;
        width: fit-content;
    }

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

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

@media (max-width: 430px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

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