:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --blue: #2563eb;
    --amber: #f59e0b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-800);
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
    color: var(--white);
    box-shadow: 0 12px 28px rgba(13, 148, 136, 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.02em;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    background: rgba(255, 255, 255, 0.2);
    color: #fde68a;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-search {
    width: 310px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
}

.nav-search input {
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    color: var(--white);
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.nav-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    padding: 11px 16px;
    color: var(--white);
    background: rgba(15, 118, 110, 0.85);
    cursor: pointer;
    font-weight: 800;
}

.menu-button {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    background: rgba(15, 118, 110, 0.98);
}

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

.mobile-link {
    display: block;
}

.mobile-search {
    display: flex;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    background: transparent;
    color: var(--white);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 28%), linear-gradient(120deg, var(--teal), var(--cyan) 45%, var(--blue));
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-glow-a {
    width: 320px;
    height: 320px;
    left: 5%;
    top: 10%;
    background: var(--white);
}

.hero-glow-b {
    width: 420px;
    height: 420px;
    right: 4%;
    bottom: 6%;
    background: #fde68a;
}

.hero-track {
    position: relative;
    min-height: 620px;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
    gap: 48px;
    align-items: center;
    padding: 76px 24px 96px;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-kicker,
.section-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fde68a;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.detail-tags a,
.tag-row span,
.meta-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-button {
    color: var(--teal-dark);
    background: var(--white);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.card-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 450px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.35);
    transform: rotate(2deg);
}

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

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

.hero-control button,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-control > button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--white);
}

.section-wrap,
.detail-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.section-wrap {
    padding: 54px 0;
}

.quick-cats {
    padding-bottom: 18px;
}

.quick-cats h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    font-weight: 800;
}

.category-chip:hover,
.category-chip.is-active {
    color: var(--white);
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-title a {
    color: var(--teal-dark);
    font-weight: 900;
}

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

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe, #ccfbf1);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.74));
}

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, #ef4444, #f97316);
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.rank-badge + .card-badge {
    left: auto;
    right: 12px;
}

.play-dot {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    color: var(--teal-dark);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
}

.card-body strong {
    color: var(--slate-800);
    font-size: 16px;
    line-height: 1.35;
}

.card-body em {
    color: var(--teal-dark);
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body small {
    color: var(--slate-500);
    line-height: 1.6;
}

.meta-tags {
    margin-top: auto;
    gap: 6px;
}

.meta-tags span {
    padding: 4px 7px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-size: 12px;
}

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

.category-card,
.overview-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

.category-card p,
.overview-card p {
    margin: 0 0 18px;
    color: var(--slate-500);
    line-height: 1.75;
}

.category-samples,
.overview-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.category-samples a,
.overview-card div a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 800;
}

.category-card > a,
.card-link {
    color: var(--white);
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.page-hero {
    color: var(--white);
    background: linear-gradient(120deg, var(--teal), var(--cyan), var(--blue));
}

.page-hero > div {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.04em;
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 800;
}

.detail-shell .breadcrumbs {
    color: var(--slate-500);
    padding-top: 28px;
}

.detail-shell .breadcrumbs strong {
    color: var(--slate-800);
}

.filter-panel,
.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.search-panel {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
    width: 100%;
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--slate-800);
    background: var(--slate-100);
}

.search-panel button {
    border-radius: 14px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.empty-state {
    margin-top: 24px;
    padding: 34px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    font-weight: 800;
}

.detail-shell {
    padding-bottom: 68px;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.46));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--teal-dark);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
    font-size: 34px;
}

.play-layer.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.detail-body {
    padding: 30px;
}

.detail-tags {
    margin-bottom: 16px;
}

.detail-tags span,
.detail-tags a,
.tag-row span {
    padding: 8px 12px;
    color: var(--teal-dark);
    background: #ccfbf1;
    font-size: 13px;
}

.detail-tags a {
    color: var(--white);
    background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.detail-body h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -0.04em;
}

.lead-text {
    margin: 0 0 18px;
    padding: 18px;
    border-left: 5px solid var(--amber);
    border-radius: 14px;
    color: var(--slate-800);
    background: #fffbeb;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 800;
}

.tag-row {
    margin-bottom: 24px;
}

.article-section {
    border-top: 1px solid var(--slate-200);
    padding-top: 24px;
    margin-top: 24px;
}

.article-section h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-section p {
    margin: 0;
    color: var(--slate-700);
    line-height: 2;
    font-size: 17px;
}

.review-box {
    padding: 24px;
    border: 1px solid #99f6e4;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
    padding: 18px;
    border-radius: 18px;
    background: var(--slate-100);
}

.info-grid div {
    min-width: 0;
}

.info-grid dt {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.info-grid dd {
    margin: 6px 0 0;
    color: var(--slate-800);
    font-weight: 900;
}

.related-wrap {
    margin-top: 36px;
}

.site-footer {
    margin-top: 48px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

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

.footer-brand {
    margin-bottom: 14px;
    color: var(--white);
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

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

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

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

[hidden] {
    display: none !important;
}

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

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

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

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

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

    .menu-button {
        display: inline-flex;
        margin-left: auto;
    }

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

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

    .hero-poster {
        min-height: 320px;
        transform: none;
    }

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

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

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

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

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

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

    .brand {
        font-size: 18px;
    }

    .hero-track {
        min-height: 700px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

    .section-wrap,
    .detail-shell,
    .page-hero > div,
    .footer-grid {
        width: min(100% - 24px, 1280px);
    }

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

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

    .card-body {
        min-height: 142px;
        padding: 12px;
    }

    .detail-body {
        padding: 20px;
    }

    .lead-text {
        font-size: 16px;
    }

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

    .play-layer span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
