:root {
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --teal: #0d9488;
    --emerald: #059669;
    --ink: #111827;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: #f8fafc;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f766e;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--teal), var(--emerald));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.22);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--cyan-dark);
    border-color: var(--cyan);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ecfeff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #0e7490;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2 0%, #0d9488 48%, #059669 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(6, 182, 212, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(8, 47, 73, 0.16), rgba(4, 120, 87, 0.1));
}

.hero-inner {
    position: relative;
    max-width: 1240px;
    min-height: 620px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    align-items: center;
    gap: 52px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-copy h1 span {
    display: block;
    margin-top: 12px;
    color: #cffafe;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ecfeff;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-copy p {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(240, 253, 250, 0.96);
    font-size: 20px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #0e7490;
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: none;
}

.btn-cyan {
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    color: #ffffff;
}

.hero-search,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 620px;
    margin-top: 28px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    padding: 14px 16px;
}

.hero-search button,
.filter-panel button {
    min-width: 96px;
}

.hero-stage {
    position: relative;
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 24px;
    align-items: stretch;
    opacity: 0;
    transform: translateX(26px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-poster {
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
}

.hero-poster img {
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.hero-panel {
    align-self: center;
    padding: 28px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.hero-panel h2 {
    margin: 12px 0 14px;
    font-size: 32px;
    line-height: 1.18;
}

.hero-panel p {
    margin: 0;
    color: #ecfeff;
}

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

.hero-meta span,
.movie-meta-line span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: -8px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

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

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 20px;
}

.section-muted {
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
}

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

.section-kicker {
    color: var(--cyan-dark);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-header h2,
.page-hero h1,
.detail-copy h1 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-header p,
.page-hero p,
.category-card p,
.detail-copy p {
    margin: 10px 0 0;
    color: var(--muted);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, #0e7490, #0f766e);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.72));
}

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.play-pill {
    right: 12px;
    bottom: 12px;
    height: 32px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #0e7490;
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}

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

.movie-meta-line {
    color: var(--muted);
    font-size: 12px;
}

.movie-meta-line span {
    background: #ecfeff;
    color: #0e7490;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--cyan-dark);
}

.movie-card p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-list span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #0d9488, #059669);
}

.page-hero .section {
    padding-top: 58px;
    padding-bottom: 58px;
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

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

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

.category-card {
    min-height: 210px;
    padding: 24px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 14px 0 8px;
    font-size: 24px;
}

.category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0891b2, #0d9488);
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.2);
}

.filter-panel {
    grid-template-columns: minmax(180px, 1fr) 180px 180px auto;
    max-width: none;
    margin: 0 0 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
    border: 1px solid var(--line);
    background: #f8fafc;
}

.detail-hero {
    background: linear-gradient(135deg, #083344 0%, #0f766e 52%, #064e3b 100%);
    color: #ffffff;
}

.detail-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 20px 64px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.12);
}

.detail-poster img {
    aspect-ratio: 3 / 4.2;
    height: auto;
    object-fit: cover;
}

.breadcrumb {
    margin-bottom: 16px;
    color: #ecfeff;
}

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

.detail-copy p {
    max-width: 820px;
    color: #ecfeff;
    font-size: 18px;
}

.detail-meta span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.player-section {
    max-width: 1120px;
    margin: -34px auto 0;
    padding: 0 20px 64px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.34), rgba(8, 145, 178, 0.38));
    cursor: pointer;
    transition: opacity 0.24s ease;
}

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

.player-start {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0e7490;
    font-size: 30px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 22px 48px rgba(2, 6, 23, 0.3);
    transition: transform 0.2s ease;
}

.player-start:hover {
    transform: scale(1.08);
}

.content-card {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-card p {
    margin: 0 0 16px;
    color: #475569;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: 24px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.site-footer {
    margin-top: 32px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 42px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    color: #ffffff;
}

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

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

.footer-inner p {
    margin: 0;
}

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

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

    .hero-slider {
        min-height: 500px;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

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

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

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

    .nav-links a:hover {
        background: #ecfeff;
        border-color: transparent;
    }

    .hero-inner {
        padding-top: 54px;
        padding-bottom: 60px;
    }

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

    .hero-poster img {
        min-height: 340px;
    }

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 640px) {
    .nav-shell {
        height: 64px;
        padding: 0 14px;
    }

    .site-logo,
    .footer-logo {
        font-size: 18px;
    }

    .hero-inner,
    .section,
    .detail-hero-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-search,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 630px;
    }

    .hero-panel {
        padding: 22px;
    }

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

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

    .section-header {
        display: block;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin: 18px 0;
    }

    .player-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .content-card {
        padding: 22px;
    }
}
