:root {
    --site-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-soft: #ccfbef;
    --line: #e5e7eb;
    --dark: #111827;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #374151;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #374151;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 10px 24px 18px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #374151;
    font-weight: 600;
}

.page-main {
    min-height: 70vh;
}

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

.hero-shell {
    padding: 20px 24px 0;
}

.hero-carousel {
    position: relative;
    max-width: 1280px;
    height: 70vh;
    min-height: 480px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: var(--dark);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 800ms ease, transform 900ms ease;
    transform: scale(1.03);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
}

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

.hero-badge,
.pill {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.92);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin: 20px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-desc {
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
    background: #ffffff;
    color: var(--text-main);
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--primary);
    border-color: var(--primary-light);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 180ms ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 200ms ease, background 200ms ease;
}

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

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

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

.section-head p,
.lead {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.movie-card__image {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: #0f172a;
}

.movie-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.movie-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05) 62%);
    opacity: 0;
    transition: opacity 240ms ease;
}

.movie-card:hover .movie-card__image::after {
    opacity: 1;
}

.movie-card__badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.94);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-card__hover {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 240ms ease;
}

.movie-card:hover .movie-card__hover {
    transform: translateY(0);
}

.movie-card__body {
    padding: 18px;
}

.movie-card__title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__title a:hover {
    color: var(--primary);
}

.movie-card__desc {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
}

.feature-main,
.feature-side-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    background: #0f172a;
    min-height: 420px;
    box-shadow: var(--shadow);
}

.feature-side {
    display: grid;
    gap: 24px;
}

.feature-side-card {
    min-height: 198px;
}

.feature-main img,
.feature-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 500ms ease;
}

.feature-main:hover img,
.feature-side-card:hover img {
    transform: scale(1.05);
}

.feature-main::after,
.feature-side-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.feature-copy {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
}

.feature-copy h3 {
    margin: 12px 0 10px;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
}

.feature-copy p {
    margin: 0;
    color: #e5e7eb;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scroll-row-wrap {
    position: relative;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 280px;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

.scroll-row .movie-card__image {
    height: 168px;
}

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

.category-card {
    min-height: 170px;
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff, #f0fdf9);
    border: 1px solid #d1fae5;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

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

.category-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 96px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: #0f766e;
    font-weight: 900;
}

.rank-cover {
    width: 96px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}

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

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-copy p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-panel {
    background: #ffffff;
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.search-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    color: var(--text-main);
    background: #f9fafb;
}

.search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    padding: 8px 14px;
    cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
    border-color: var(--primary-light);
    background: #f0fdfa;
    color: var(--primary);
}

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

.breadcrumb a:hover {
    color: var(--primary);
}

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

.player-card,
.detail-card,
.content-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.94);
    color: #ffffff;
    padding: 16px 24px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
}

.detail-intro {
    padding: 24px;
}

.detail-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.detail-intro p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.detail-card {
    padding: 18px;
}

.poster-box {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #0f172a;
}

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

.info-list {
    display: grid;
    gap: 10px;
    color: var(--text-soft);
    font-size: 14px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
}

.info-list strong {
    color: var(--text-main);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-cloud span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}

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

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

.content-card p {
    color: var(--text-soft);
    line-height: 1.9;
    margin: 0 0 16px;
}

.empty-state {
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--text-soft);
    box-shadow: var(--shadow);
}

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

.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
}

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

.footer-wrap p,
.footer-wrap a {
    color: #9ca3af;
    line-height: 1.8;
}

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

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

.copyright {
    border-top: 1px solid #1f2937;
    padding: 18px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .detail-card {
        max-width: 420px;
    }
}

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

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

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

    .hero-shell {
        padding: 14px 14px 0;
    }

    .hero-carousel {
        min-height: 520px;
        height: 72vh;
        border-radius: 18px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-arrow {
        display: none;
    }

    .section-wrap {
        padding: 32px 16px;
    }

    .grid.cards-4,
    .grid.cards-3,
    .grid.cards-2,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .movie-card__image {
        height: 220px;
    }

    .rank-item {
        grid-template-columns: 44px 78px minmax(0, 1fr);
    }

    .rank-item .btn-ghost {
        grid-column: 2 / -1;
        width: max-content;
    }

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

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

    .logo {
        font-size: 18px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-desc {
        -webkit-line-clamp: 4;
    }

    .grid.cards-4,
    .grid.cards-3,
    .grid.cards-2,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card__image {
        height: 260px;
    }

    .search-line {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .rank-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rank-cover {
        display: none;
    }
}
