:root {
    --blue-950: #06213f;
    --blue-900: #073763;
    --blue-700: #0369a1;
    --blue-600: #0284c7;
    --cyan-500: #06b6d4;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --ink: #102033;
    --muted: #64748b;
    --line: #dbeafe;
    --soft: #eefbff;
    --paper: #ffffff;
    --shadow: 0 20px 45px rgba(2, 132, 199, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(110deg, #2563eb 0%, #0891b2 52%, #0d9488 100%);
    box-shadow: 0 16px 30px rgba(14, 116, 144, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 24px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.brand-copy strong,
.footer-brand {
    display: block;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-copy small {
    display: block;
    margin-top: -2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
}

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

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    content: "";
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-search,
.mobile-search {
    display: flex;
    overflow: hidden;
    width: min(320px, 28vw);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-search input,
.mobile-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    color: #ffffff;
    background: transparent;
}

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

.header-search button,
.mobile-search button {
    border: 0;
    padding: 0 18px;
    color: #0369a1;
    background: #ffffff;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 24px;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

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

.mobile-search {
    width: 100%;
    margin-bottom: 12px;
}

.header-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 28px;
    color: #effbff;
    pointer-events: none;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 640px;
    color: #ffffff;
    background: #082f49;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(45, 212, 191, 0.5), transparent 32%),
        linear-gradient(120deg, #07192f 0%, rgba(7, 25, 47, 0.88) 42%, rgba(7, 25, 47, 0.35) 100%);
    content: "";
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 105, 161, 0.1), rgba(7, 25, 47, 0.72));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(32px, calc((100vw - 1180px) / 2));
    width: min(640px, calc(100% - 64px));
    transform: translateY(-50%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    background: linear-gradient(100deg, var(--cyan-500), var(--blue-600));
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 620px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.hero-links,
.detail-meta,
.tag-row,
.rank-meta,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.primary-btn,
.ghost-btn,
.section-link,
.panel-more,
.page-filter button,
.search-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(100deg, var(--cyan-500), #2563eb);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.32);
}

.primary-btn.light {
    color: #0369a1;
    background: #ffffff;
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.panel-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.28);
}

.hero-dots {
    position: absolute;
    bottom: 120px;
    left: 50%;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

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

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

.hero-search-card {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 44px;
    width: min(520px, calc(100% - 64px));
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    background: rgba(3, 105, 161, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
}

.hero-search-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
}

.hero-search-card form {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
}

.hero-search-card input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    color: var(--ink);
}

.hero-search-card button {
    border: 0;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(100deg, var(--cyan-500), #2563eb);
    font-weight: 850;
}

.hero-links {
    margin-top: 14px;
}

.hero-links a {
    border-radius: 999px;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.13);
    font-size: 13px;
}

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link,
.panel-more {
    color: #0369a1;
    background: #e0f7ff;
}

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

.category-tile,
.category-card-large,
.movie-card,
.ranking-panel,
.rank-row,
.detail-copy,
.search-controls,
.player-shell,
.detail-info {
    border: 1px solid rgba(2, 132, 199, 0.1);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.category-tile {
    min-height: 155px;
    border-radius: 28px;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(8, 145, 178, 0.2);
}

.category-tile span {
    display: block;
    margin-bottom: 12px;
    color: #0369a1;
    font-size: 20px;
    font-weight: 900;
}

.category-tile p,
.movie-card p,
.rank-row p,
.category-card-large p,
.detail-copy p,
.page-hero p,
.lead,
.site-footer p {
    color: var(--muted);
}

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

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

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

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(45, 212, 191, 0.52), transparent 36%),
        linear-gradient(135deg, #0f3b66, #0e7490 55%, #14b8a6);
}

.poster-frame img,
.rank-cover img,
.category-covers img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img,
.category-card-large:hover .category-covers img {
    transform: scale(1.06);
}

.poster-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(4, 20, 36, 0.82));
    content: "";
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: linear-gradient(100deg, var(--cyan-500), #2563eb);
    font-size: 13px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    background: rgba(2, 132, 199, 0.92);
}

.card-body {
    padding: 16px;
}

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #0891b2;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 4.8em;
    margin: 0 0 12px;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tag-row span,
.detail-meta span,
.rank-meta span {
    border-radius: 999px;
    padding: 5px 10px;
    background: #e6f8ff;
    color: #0369a1;
    font-size: 12px;
    font-weight: 750;
}

.tag-row.large span {
    padding: 7px 12px;
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 112px;
    border-radius: 30px;
    padding: 24px;
}

.ranking-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border-radius: 22px;
    padding: 12px;
}

.rank-list.wide .rank-row {
    grid-template-columns: 120px minmax(0, 1fr);
}

.rank-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f3b66, #14b8a6);
}

.rank-index {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(120deg, #06b6d4, #2563eb);
    font-weight: 950;
}

.rank-row h3 {
    margin: 8px 0 5px;
    font-size: 18px;
}

.rank-row p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.panel-more {
    width: 100%;
    margin-top: 18px;
}

.cta-section,
.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(105deg, #2563eb, #06b6d4 52%, #0d9488);
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.25);
}

.cta-section {
    margin-bottom: 70px;
    padding: clamp(32px, 6vw, 64px);
}

.cta-section h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.15;
}

.cta-section p {
    max-width: 700px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
}

.page-hero {
    padding: clamp(42px, 8vw, 86px);
}

.page-hero.slim-hero {
    min-height: 300px;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.page-filter,
.search-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 820px;
    margin-top: 28px;
}

.page-filter input,
.search-controls input,
.search-controls select {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    outline: 0;
    padding: 0 18px;
    color: var(--ink);
    background: #ffffff;
}

.page-filter input,
.search-controls input {
    flex: 1 1 280px;
}

.search-controls select {
    flex: 0 0 150px;
}

.page-filter button {
    color: #0369a1;
    background: #ffffff;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    border-radius: 30px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    min-height: 190px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f3b66, #14b8a6);
}

.category-card-large h2 {
    margin: 12px 0 8px;
    font-size: 26px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    border-radius: 999px;
    padding: 6px 10px;
    color: #0369a1;
    background: #e6f8ff;
    font-size: 13px;
    font-weight: 750;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 38px auto 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #0369a1;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.65fr);
    gap: 26px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 34px;
    background: #041424;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #041424;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    padding: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(45, 212, 191, 0.25), transparent 40%),
        #041424;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 20, 36, 0.12), rgba(4, 20, 36, 0.72));
    content: "";
}

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

.big-play {
    position: relative;
    z-index: 3;
    display: grid;
    width: clamp(74px, 10vw, 110px);
    height: clamp(74px, 10vw, 110px);
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--cyan-500), #2563eb);
    box-shadow: 0 22px 55px rgba(6, 182, 212, 0.4);
    font-size: clamp(28px, 4vw, 44px);
}

.player-message {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 5;
    margin: 0;
    border-radius: 16px;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
}

.detail-info {
    border-radius: 34px;
    padding: clamp(24px, 4vw, 34px);
}

.detail-info h1 {
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
}

.detail-meta {
    margin-bottom: 18px;
}

.lead {
    margin: 0 0 20px;
    font-size: 17px;
}

.detail-section {
    padding-bottom: 20px;
}

.detail-copy {
    border-radius: 32px;
    padding: clamp(24px, 5vw, 46px);
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-copy h2 + p {
    margin-top: 0;
}

.detail-copy p + h2 {
    margin-top: 34px;
}

.empty-state {
    border-radius: 26px;
    padding: 28px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(120deg, #082f49, #0f766e);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: 32px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    justify-content: flex-end;
}

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 750;
}

[hidden] {
    display: none !important;
}

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

    .header-inner {
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

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

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .brand-copy strong {
        font-size: 22px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        top: 42%;
        left: 20px;
        width: calc(100% - 40px);
    }

    .hero-search-card {
        right: 20px;
        bottom: 32px;
        width: calc(100% - 40px);
    }

    .hero-dots {
        bottom: 220px;
    }

    .hero-search-card form,
    .section-head,
    .page-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search-card button,
    .page-filter button {
        min-height: 48px;
    }

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

    .category-grid,
    .category-large-grid,
    .movie-grid,
    .compact-grid,
    .all-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .category-covers {
        min-height: 260px;
    }

    .rank-list.wide .rank-row,
    .rank-row {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 460px) {
    .header-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .page-hero,
    .cta-section {
        width: calc(100% - 24px);
        border-radius: 26px;
        padding: 30px 22px;
    }

    .content-section,
    .detail-hero,
    .breadcrumb {
        width: calc(100% - 24px);
    }

    .rank-row {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 10px;
    }
}
