:root {
    --teal-700: #0f766e;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --cyan-500: #06b6d4;
    --blue-600: #2563eb;
    --gray-950: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-icon,
.footer-logo span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-500));
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.32);
}

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

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.brand-text small {
    color: var(--gray-600);
    font-size: 12px;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--teal-600);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    padding: 8px 16px 16px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 650;
}

.mobile-nav a:hover {
    background: var(--gray-100);
    color: var(--teal-600);
}

.hero-carousel {
    position: relative;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500), var(--cyan-500));
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 650px;
    isolation: isolate;
}

.hero-slide.is-active {
    display: block;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    opacity: 0.28;
    transform: scale(1.04);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 76% 26%, rgba(6, 182, 212, 0.28), transparent 34%),
        linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(20, 184, 166, 0.84) 48%, rgba(6, 182, 212, 0.82));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.35;
}

.hero-content {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 48px;
    padding: 72px 0 90px;
}

.hero-copy {
    max-width: 760px;
}

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

.hero-copy h1 {
    margin: 24px 0 14px;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

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

.hero-meta span,
.detail-meta span,
.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    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: var(--teal-700);
    background: var(--white);
    box-shadow: 0 18px 38px rgba(255, 255, 255, 0.25);
}

.btn-ghost {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.72);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 470px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.38);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.25);
}

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 22px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    padding: 0;
    opacity: 0.72;
}

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

.section-block {
    padding: 70px 0;
}

.section-block.white {
    background: var(--white);
}

.section-block.dark {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: var(--white);
}

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

.section-heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.045em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--gray-600);
}

.dark .section-heading p {
    color: #d1d5db;
}

.section-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--teal-600);
    font-weight: 800;
}

.dark .section-more {
    color: #67e8f9;
}

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

.feature-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--white), var(--gray-100));
    box-shadow: var(--shadow-card);
}

.feature-card strong {
    display: block;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.feature-card span {
    color: var(--gray-600);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-500));
    color: var(--white);
    box-shadow: var(--shadow-card);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card-content {
    position: relative;
    z-index: 1;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.62));
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb, #f9fafb);
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.72));
    opacity: 0.75;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--teal-700);
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: all 0.24s ease;
    font-weight: 900;
}

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

.year-badge,
.rank-number {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

.year-badge {
    right: 12px;
    padding: 5px 10px;
}

.rank-number {
    left: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-tags {
    min-height: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.movie-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfeff;
    color: var(--teal-700);
    font-size: 12px;
    font-weight: 750;
}

.movie-card h3 {
    min-height: 56px;
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--teal-600);
}

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

.movie-meta span {
    background: var(--gray-100);
    color: var(--gray-700);
}

.movie-card.compact {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
}

.movie-card.compact .poster-link {
    aspect-ratio: auto;
    min-height: 168px;
}

.movie-card.compact h3 {
    min-height: auto;
}

.movie-card.compact p {
    min-height: auto;
}

.page-hero {
    padding: 72px 0 56px;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--teal-500), var(--cyan-500));
    overflow: hidden;
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--gray-800);
    background: var(--gray-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.no-results {
    display: none;
    padding: 28px;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-600);
    box-shadow: var(--shadow-card);
}

.no-results.is-visible {
    display: block;
}

.detail-top {
    padding: 54px 0 40px;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-950), var(--teal-700));
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.detail-copy p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.player-section {
    padding: 56px 0 30px;
    background: var(--gray-50);
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.74));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--teal-700);
    background: var(--white);
    box-shadow: 0 18px 46px rgba(255, 255, 255, 0.28);
    font-size: 34px;
    font-weight: 900;
}

.player-overlay strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.content-section {
    padding: 42px 0;
}

.content-card {
    padding: 30px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.content-card p {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 17px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.info-item {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
}

.info-item span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.info-item strong {
    display: block;
    margin-top: 4px;
}

.site-footer {
    color: #d1d5db;
    background: var(--gray-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 30px;
    padding: 48px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.site-footer p {
    margin: 12px 0 0;
    color: #9ca3af;
}

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 54px 0 82px;
    }

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

    .hero-poster img {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    .feature-strip,
    .info-list,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

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

    .brand-text small {
        display: none;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .movie-card.compact {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .detail-top {
        padding-top: 36px;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}
