:root {
    --site-cyan: #06b6d4;
    --site-blue: #2563eb;
    --site-teal: #0d9488;
    --site-slate: #0f172a;
    --site-soft: #ecfeff;
    --site-text: #1f2937;
    --site-muted: #64748b;
    --site-card: #ffffff;
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    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(--site-text);
    background: linear-gradient(180deg, #ecfeff 0%, #eff6ff 42%, #f0fdfa 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #0891b2, #2563eb, #0d9488);
    box-shadow: 0 15px 35px rgba(8, 145, 178, 0.26);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.logo-mark svg {
    width: 22px;
    height: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
}

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #cffafe;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(310px, 32vw);
    position: relative;
}

.header-search input,
.search-panel input,
.filter-box input,
.filter-box select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
}

.header-search input {
    padding: 11px 48px 11px 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

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

.header-search button {
    position: absolute;
    right: 6px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel .nav-links,
.mobile-panel .header-search {
    width: 100%;
    display: flex;
}

.mobile-panel .nav-links {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 16px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.34), transparent 35%), linear-gradient(120deg, #0891b2 0%, #2563eb 52%, #0f766e 100%);
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    pointer-events: none;
}

.hero-bg-glow::before,
.hero-bg-glow::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: #ffffff;
    filter: blur(70px);
    animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-bg-glow::before {
    left: -140px;
    top: -90px;
}

.hero-bg-glow::after {
    right: -120px;
    bottom: -120px;
    animation-delay: 1.2s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 68px 0 58px;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    align-items: center;
    gap: 42px;
    min-height: 450px;
}

.hero-slide.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    animation: fadeLift 0.58s ease both;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    color: #e0faff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(7px);
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-title-sub {
    margin: 0 0 22px;
    font-size: clamp(18px, 2vw, 26px);
    color: #cffafe;
    font-weight: 700;
}

.hero-desc {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.86);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #075985;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    background: #ecfeff;
}

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

.btn-cyan {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.hero-poster-wrap {
    position: relative;
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 430px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(15, 23, 42, 0.86) 100%);
}

.hero-poster-meta {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #0e7490;
    background: #cffafe;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags .tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    opacity: 0.52;
}

.hero-dot.is-active {
    opacity: 1;
    transform: scale(1.25);
    background: #ffffff;
}

.search-panel {
    margin: 30px auto 0;
    max-width: 720px;
    position: relative;
}

.search-panel input {
    padding: 17px 58px 17px 22px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.search-panel button {
    position: absolute;
    top: 6px;
    right: 6px;
    height: calc(100% - 12px);
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    cursor: pointer;
    font-weight: 800;
}

.section {
    padding: 56px 0;
}

.section-tight {
    padding: 36px 0;
}

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

.section-title {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 900;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--site-muted);
    line-height: 1.7;
}

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

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

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    font-size: 12px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0891b2;
    background: #ffffff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translateY(0);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.movie-line {
    margin: 0 0 12px;
    color: #64748b;
    line-height: 1.55;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #2563eb 55%, #0d9488);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(37, 99, 235, 0.26);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-weight: 900;
    font-size: 19px;
}

.rank-thumb {
    width: 86px;
    height: 118px;
    border-radius: 14px;
    overflow: hidden;
    background: #dbeafe;
}

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

.rank-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.filter-box input,
.filter-box select {
    height: 46px;
    padding: 0 16px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.page-hero {
    color: #ffffff;
    padding: 68px 0;
    background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.18), transparent 32%), linear-gradient(90deg, #0891b2, #2563eb, #0d9488);
}

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

.page-hero p {
    margin: 0;
    max-width: 760px;
    color: #cffafe;
    line-height: 1.8;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #e0f2fe;
    font-weight: 700;
}

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

.detail-card,
.side-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.detail-content {
    padding: 26px;
}

.detail-content h2 {
    margin: 28px 0 12px;
    font-size: 24px;
    color: #111827;
}

.detail-content p {
    margin: 0 0 16px;
    line-height: 1.88;
    color: #374151;
}

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

.detail-meta-list {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.detail-meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
}

.detail-meta-list strong {
    color: #111827;
}

.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: #020617;
}

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #ffffff;
    background: #020617;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-layer img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.player-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.68));
}

.play-core {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #0891b2;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease;
}

.player-layer:hover .play-core {
    transform: scale(1.08);
}

.play-core svg {
    width: 42px;
    height: 42px;
    transform: translateX(3px);
}

.player-shell.is-playing .player-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.related-mini {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.related-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow);
}

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

.related-mini span {
    display: block;
    padding: 10px 12px 12px;
    font-weight: 850;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results {
    min-height: 220px;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: #64748b;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(180deg, #1f2937, #0f172a);
}

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

.footer-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
}

.footer-text {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.8;
}

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

.footer-list a {
    color: #cbd5e1;
}

.footer-list a:hover {
    color: #22d3ee;
}

.copyright {
    padding: 20px 0 26px;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

@keyframes fadeLift {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    from {
        transform: scale(0.96);
        opacity: 0.7;
    }

    to {
        transform: scale(1.06);
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .grid-5,
    .grid-6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-poster-card {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .site-header > .container > .header-inner > .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .grid-4,
    .grid-5,
    .grid-6,
    .related-strip,
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-box {
        grid-template-columns: 1fr;
    }

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

    .rank-item .btn {
        grid-column: 1 / -1;
    }
}

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

    .logo {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 40px 0 38px;
    }

    .hero-slide.is-active {
        gap: 26px;
    }

    .hero-poster-card,
    .hero-poster-card img {
        min-height: 320px;
        height: 320px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6,
    .related-strip,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .movie-cover {
        aspect-ratio: auto;
        height: 100%;
        min-height: 184px;
    }

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

    .rank-thumb {
        display: none;
    }
}
