:root {
    --bg: #f9fafb;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #e5e7eb;
    --line: #e5e7eb;
    --cyan: #0891b2;
    --cyan-soft: #ecfeff;
    --blue: #2563eb;
    --deep: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
textarea,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.28);
}

.brand-mark.small {
    width: 32px;
    height: 32px;
}

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

.brand-title {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

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

.nav-link,
.mobile-link {
    position: relative;
    padding: 10px 14px;
    color: #374151;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan);
    background: linear-gradient(90deg, #ecfeff, #eff6ff);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    border-radius: 4px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.4), transparent 34%), linear-gradient(135deg, #06b6d4 0%, #2563eb 48%, #1e3a8a 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.20;
    background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
    min-height: 620px;
    padding: 74px 0 96px;
}

.hero-kicker {
    display: inline-flex;
    padding: 8px 16px;
    margin-bottom: 22px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy h1 span {
    display: block;
    color: #cffafe;
}

.hero-copy p {
    max-width: 660px;
    margin: 24px 0 32px;
    color: #e0f2fe;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

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

.btn-primary,
.btn-light {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.20);
}

.btn-primary:hover,
.btn-light:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-ghost {
    color: var(--cyan);
    background: #ecfeff;
}

.hero-search,
.search-panel {
    display: flex;
    width: min(100%, 560px);
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-search input,
.search-panel input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #111827;
    background: transparent;
}

.hero-search button,
.search-panel button {
    flex: 0 0 auto;
    border: 0;
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.hero-visual {
    position: relative;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    overflow: hidden;
    padding: 26px;
    border-radius: 30px;
    background: #0f172a;
    box-shadow: 0 36px 86px rgba(15, 23, 42, 0.42);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.92));
}

.hero-slide-content {
    position: relative;
    z-index: 1;
}

.hero-slide-content .pill {
    display: inline-flex;
    padding: 5px 12px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.88);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-slide h2 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
}

.hero-slide p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #e5e7eb;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 80px;
    background: var(--bg);
    clip-path: polygon(0 45%, 16% 55%, 35% 42%, 58% 58%, 78% 48%, 100% 55%, 100% 100%, 0 100%);
}

.section {
    padding: 72px 0;
}

.section.white {
    background: #ffffff;
}

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

.section-title h1,
.section-title h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-title p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.feature-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card strong {
    display: block;
    color: var(--cyan);
    font-size: 30px;
}

.feature-card span {
    color: var(--muted);
    font-weight: 700;
}

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

.movie-grid.featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(8, 145, 178, 0.32);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.featured-card .movie-poster {
    aspect-ratio: 16 / 9;
}

.compact-card .movie-poster {
    aspect-ratio: 3 / 4;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.55));
    opacity: 0.72;
}

.movie-badge,
.movie-year {
    position: absolute;
    z-index: 1;
    padding: 5px 10px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    top: 12px;
    left: 12px;
    background: rgba(8, 145, 178, 0.92);
}

.movie-year {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.play-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-hover span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    font-size: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.movie-card:hover .play-hover {
    opacity: 1;
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 2.9em;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

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

.movie-card-body p {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span:last-child {
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 999px;
}

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

.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 240px;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

.category-tile:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.86));
}

.category-copy {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: 22px;
    color: #ffffff;
}

.category-copy strong {
    font-size: 24px;
}

.category-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: #e5e7eb;
    font-style: normal;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-copy b {
    color: #cffafe;
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(120deg, var(--cyan), var(--blue));
    padding: 68px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #e0f2fe;
    font-size: 18px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.search-panel {
    width: min(100%, 620px);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: auto 78px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.rank-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 999px;
    font-weight: 900;
}

.rank-item img {
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-text {
    min-width: 0;
}

.rank-text strong,
.rank-text em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-text strong {
    color: #111827;
    font-size: 16px;
}

.rank-text em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

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

.breadcrumb a {
    color: var(--cyan);
    font-weight: 700;
}

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

.player-card,
.detail-card,
.side-card,
.text-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
    cursor: pointer;
}

.player-overlay.hidden {
    display: none;
}

.player-button {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.34);
}

.player-info,
.detail-card,
.side-card,
.text-card {
    padding: 24px;
}

.player-info h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.detail-tags span {
    padding: 6px 12px;
    color: var(--cyan);
    background: #ecfeff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #374151;
}

.detail-meta span {
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.text-card h2,
.side-card h2,
.detail-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.text-card p,
.detail-card p,
.static-page p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 16px;
}

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

.side-movie {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
}

.side-movie img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.side-movie strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-movie span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.static-page {
    max-width: 900px;
    margin: 0 auto;
}

.static-page .text-card {
    margin-bottom: 22px;
}

.empty-state {
    display: none;
    padding: 26px;
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed var(--line);
    border-radius: 18px;
    text-align: center;
}

.site-footer {
    margin-top: 72px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 52px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 20px;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-grid {
        min-height: auto;
    }

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

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

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

    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-grid {
        padding: 48px 0 86px;
    }

    .hero-actions,
    .filter-bar,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search,
    .search-panel {
        border-radius: 18px;
    }

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

    .feature-strip,
    .category-grid,
    .movie-grid,
    .movie-grid.featured-grid,
    .movie-grid.compact-grid,
    .rank-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

    .rank-item a {
        grid-template-columns: auto 68px 1fr;
    }

    .rank-item img {
        width: 68px;
        height: 54px;
    }
}
