* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: #f8fafc;
}

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: 50;
    background: linear-gradient(90deg, #0f766e, #0891b2);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 118, 110, 0.25);
}

.nav-wrap {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #fde68a;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.nav-search input,
.mobile-search input,
.wide-search input,
.catalog-tools input,
.catalog-tools select {
    border: 0;
    outline: 0;
    color: #111827;
    background: #ffffff;
}

.nav-search input {
    width: 220px;
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #134e4a;
    background: #fef3c7;
    font-weight: 700;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    border-radius: 999px;
    padding: 10px 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 45%, #06b6d4 100%);
}

.hero-track {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 48px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 86px 24px 110px;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    opacity: 0.18;
    filter: blur(1px) saturate(1.15);
}

.hero-slide::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 118, 110, 0.65), rgba(8, 145, 178, 0.45));
}

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

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fef3c7;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.intro-strip p {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.8;
}

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

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

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

.hero-actions,
.small-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

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

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #134e4a;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 16px 35px rgba(245, 158, 11, 0.35);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.btn.text {
    color: #fef3c7;
    padding-left: 0;
    padding-right: 0;
}

.btn.full {
    width: 100%;
}

.hero-poster {
    display: block;
    align-self: stretch;
    min-height: 430px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: #134e4a;
    background: rgba(254, 243, 199, 0.95);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
}

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

.hero-controls button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 28px;
}

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

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

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

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
}

.intro-strip {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    gap: 28px;
    align-items: center;
    margin-top: -38px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.intro-strip h2,
.section-head h2,
.catalog-tools h2,
.detail-card h1,
.detail-card h2,
.side-card h2 {
    margin: 0;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.intro-strip h2,
.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.intro-strip p {
    color: #64748b;
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #ecfeff;
}

.wide-search input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    padding: 14px 18px;
}

.wide-search button {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

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

.section-head a {
    color: #0f766e;
    font-weight: 800;
}

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

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

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

.category-card,
.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #06b6d4);
    box-shadow: 0 15px 40px rgba(8, 145, 178, 0.18);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #0891b2, #0f766e);
}

.category-card span,
.category-tile span {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-tile {
    min-height: 210px;
    display: flex;
    align-items: end;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 118, 110, 0.72)), var(--tile-image);
    background-position: center;
    background-size: cover;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

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

.image-missing {
    opacity: 0;
}

.card-badge,
.rank-badge,
.play-mini {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.card-badge {
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #134e4a;
    background: rgba(254, 243, 199, 0.94);
    font-size: 12px;
}

.rank-badge {
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-mini {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #134e4a;
    background: #ffffff;
    opacity: 0.94;
}

.card-body {
    padding: 18px;
}

.card-meta {
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
}

.card-body h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    line-height: 1.3;
}

.card-body p {
    min-height: 54px;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.tag-row span {
    color: #0f766e;
    background: #ecfeff;
}

.page-hero {
    background: radial-gradient(circle at top left, rgba(253, 230, 138, 0.3), transparent 28%), linear-gradient(135deg, #0f172a, #0f766e 50%, #06b6d4);
    color: #ffffff;
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px 72px;
}

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.catalog-tools p {
    margin: 8px 0 0;
    color: #64748b;
}

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

.catalog-tools input,
.catalog-tools select {
    width: 100%;
    border-radius: 14px;
    padding: 13px 14px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.empty-state {
    border-radius: 24px;
    padding: 32px;
    color: #64748b;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.detail-main {
    background: #f8fafc;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
}

.detail-primary {
    min-width: 0;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

.player-card {
    overflow: hidden;
    background: #020617;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

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

.play-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: #134e4a;
    background: #fef3c7;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

.detail-card {
    margin-top: 22px;
    padding: 28px;
}

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

.detail-card h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #0f766e;
    background: #ecfeff;
    font-size: 14px;
    font-weight: 800;
}

.lead-text {
    margin: 22px 0 0;
    color: #334155;
    font-size: 20px;
    line-height: 1.8;
    font-weight: 600;
}

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

.detail-card h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 26px;
}

.detail-card p {
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.detail-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

.side-card {
    padding: 20px;
}

.poster-side {
    display: grid;
    gap: 16px;
}

.poster-side img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.side-card h2 {
    margin-bottom: 14px;
    font-size: 22px;
}

.side-list {
    display: grid;
    gap: 10px;
}

.side-list a {
    display: grid;
    gap: 4px;
    border-radius: 16px;
    padding: 12px;
    background: #f8fafc;
}

.side-list span {
    color: #111827;
    font-weight: 800;
}

.side-list small {
    color: #64748b;
}

.detail-related {
    padding-top: 18px;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 720px;
    margin: 14px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: start;
    justify-content: flex-end;
}

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

.footer-copy {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px 28px;
    color: #94a3b8;
    font-size: 14px;
}

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

    .mobile-toggle {
        display: inline-flex;
    }

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

    .hero-poster {
        min-height: 300px;
        max-width: 520px;
    }

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

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

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

@media (max-width: 820px) {
    .nav-wrap {
        height: 62px;
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

    .hero,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        padding: 54px 18px 110px;
    }

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

    .intro-strip,
    .catalog-tools {
        grid-template-columns: 1fr;
    }

    .wide-search,
    .filter-grid {
        grid-template-columns: 1fr;
        display: grid;
        border-radius: 24px;
    }

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

    .section-head,
    .footer-inner {
        display: grid;
    }

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

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

@media (max-width: 560px) {
    .section,
    .detail-layout,
    .page-hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-actions,
    .small-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

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