:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --orange: #f97316;
    --red: #ef4444;
    --green: #10b981;
    --purple: #7c3aed;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --panel: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.brand-mark.small {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.nav-link {
    color: #475569;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--ink);
    font-size: 22px;
}

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

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

.mobile-link {
    padding: 11px 14px;
    border-radius: 12px;
    color: #475569;
    font-weight: 700;
}

.mobile-link:hover {
    background: #f1f5f9;
    color: var(--blue);
}

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

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, var(--blue), var(--cyan), var(--teal));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
    filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.76), rgba(37, 99, 235, 0.48), rgba(20, 184, 166, 0.44));
}

.hero-content {
    position: relative;
    width: min(1280px, calc(100% - 48px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 64px;
    align-items: center;
    padding: 76px 0 88px;
}

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

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: #0891b2;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #cffafe;
}

.hero-text {
    max-width: 720px;
    margin: 0;
    color: #e0f2fe;
    font-size: 20px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 800;
}

.hero-copy .tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.hero-actions,
.section-heading,
.detail-meta,
.movie-meta {
    display: flex;
    align-items: center;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.mini-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

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

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
    transform: perspective(1200px) rotateY(-5deg);
    transition: transform 0.28s ease;
}

.hero-poster:hover {
    transform: perspective(1200px) rotateY(0deg) translateY(-4px);
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
    font-size: 30px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
    backdrop-filter: blur(10px);
}

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

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

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

.search-band,
.soft-section {
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 28px;
    align-items: center;
    padding: 34px 0;
}

.search-shell h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.12;
}

.search-shell h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.search-shell p {
    margin: 8px 0 0;
}

.mini-search,
.filter-panel {
    display: flex;
    gap: 12px;
}

.mini-search input,
.filter-input,
.filter-year {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.mini-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.section-heading {
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.text-link {
    color: var(--blue);
    font-weight: 900;
}

.category-grid,
.category-large-grid,
.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.category-tile,
.category-card-large,
.movie-card,
.content-card,
.player-card {
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.category-tile a,
.category-card-large {
    display: block;
    height: 100%;
    padding: 24px;
}

.category-tile h2,
.category-card-large h2 {
    margin: 12px 0 8px;
    color: var(--ink);
}

.category-tile p,
.category-card-large p {
    color: var(--muted);
    margin: 0 0 16px;
}

.category-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.category-icon.big {
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

.category-card-large {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sample-links a {
    padding: 5px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.sample-links.expanded {
    margin: 12px 0 18px;
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    aspect-ratio: 2 / 3;
}

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

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

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

.year-badge,
.rank-badge,
.hot-badge {
    position: absolute;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.year-badge {
    right: 10px;
    bottom: 10px;
    padding: 3px 9px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.hot-badge {
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    background: var(--red);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 43px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--blue);
}

.movie-line {
    display: -webkit-box;
    height: 43px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

.movie-meta span:last-child {
    padding: 3px 8px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-weight: 800;
}

.page-hero,
.detail-head {
    position: relative;
    color: #ffffff;
    background: linear-gradient(120deg, var(--blue), var(--cyan), var(--teal));
    overflow: hidden;
}

.page-hero::before,
.detail-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.page-hero .section-shell {
    position: relative;
    padding: 70px 0;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(40px, 6vw, 64px);
}

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

.page-hero .section-kicker,
.detail-head .section-kicker {
    color: #cffafe;
}

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

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel {
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 26px;
}

.filter-input {
    flex: 1 1 300px;
}

.filter-year {
    width: 180px;
}

.filter-chip {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

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

.detail-head .section-shell {
    position: relative;
    padding: 46px 0 62px;
}

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

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

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

.detail-copy h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 66px);
}

.detail-line {
    max-width: 860px;
    color: #e0f2fe;
    font-size: 20px;
}

.detail-meta {
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 0;
}

.detail-meta span {
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 800;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    border: 0;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.42));
    cursor: pointer;
}

.play-cover span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    font-size: 36px;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.32);
}

.play-cover.playing {
    opacity: 0;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    padding: 0 0 10px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 24px;
}

.content-card p {
    color: #475569;
    font-size: 17px;
}

.content-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.content-card dt {
    color: #64748b;
    font-weight: 900;
}

.content-card dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.footer-grid p {
    margin: 12px 0 0;
    max-width: 420px;
}

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

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

@media (max-width: 1180px) {
    .category-grid,
    .movie-grid,
    .rank-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero-content,
    .search-shell,
    .detail-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

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

    .detail-poster {
        max-width: 260px;
    }
}

@media (max-width: 560px) {
    .section-shell,
    .hero-content,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 28px, 1280px);
    }

    .site-nav {
        padding: 0 14px;
    }

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-text,
    .detail-line {
        font-size: 16px;
    }

    .hero-actions,
    .mini-search {
        align-items: stretch;
        flex-direction: column;
    }

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

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

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

    .movie-title {
        font-size: 14px;
    }

    .movie-line {
        display: none;
    }

    .content-card {
        padding: 20px;
    }
}
