:root {
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --blue: #2563eb;
    --indigo: #4f46e5;
    --gold: #f59e0b;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 46%, #eef2ff 100%);
    font-family: Inter, 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,
video {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.28);
    font-size: 15px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 700;
    color: #374151;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan-dark);
}

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

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

.page {
    min-height: 70vh;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.02);
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(6, 182, 212, 0.22), transparent 36%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 50%;
    width: min(640px, calc(100% - 48px));
    transform: translateY(50%);
    color: #fff;
}

.hero-labels,
.card-tags,
.detail-tags,
.rank-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-labels span,
.hero-labels a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.hero-labels span {
    color: #fff;
    background: var(--cyan);
}

.hero-labels a {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 950;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    color: #fff;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrows {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 72px;
    display: flex;
    gap: 12px;
}

.hero-arrows button,
.hero-dots button {
    border: 0;
    color: #fff;
    cursor: pointer;
}

.hero-arrows button {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 32px;
    line-height: 1;
}

.hero-dots {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    bottom: 48px;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 28px;
    height: 5px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
    width: 48px;
    background: #fff;
}

.category-strip {
    padding: 28px 0;
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(10px);
}

.category-strip-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.category-strip a,
.toolbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    color: #374151;
    background: #fff;
    box-shadow: var(--shadow-soft);
    font-weight: 800;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.category-strip a:hover,
.category-strip a.active,
.toolbar-link:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: translateY(-2px);
}

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

.section-soft {
    width: 100%;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(135deg, rgba(207, 250, 254, 0.56), rgba(219, 234, 254, 0.58));
}

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

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.035em;
}

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

.section-more {
    color: var(--cyan-dark);
    font-weight: 900;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.card-badge,
.card-score {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.card-badge {
    left: 12px;
    top: 12px;
    background: rgba(6, 182, 212, 0.9);
}

.card-score {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.58);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.card-meta a {
    color: var(--cyan-dark);
}

.card-body h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 950;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.category-sample a:hover {
    color: var(--cyan-dark);
}

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

.card-tags span,
.detail-tags a {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: #0e7490;
    background: #cffafe;
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 54px;
    border-radius: 32px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.22), transparent 25%),
        linear-gradient(135deg, #0891b2, #2563eb 54%, #4f46e5);
    box-shadow: var(--shadow);
}

.small-hero {
    padding: 46px 54px;
}

.page-hero span {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 900;
}

.page-hero h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

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

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

.toolbar-sticky {
    position: sticky;
    top: 82px;
    z-index: 40;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-box span {
    color: var(--cyan-dark);
    font-weight: 900;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.large-search {
    min-height: 56px;
}

.empty-state {
    display: none;
    margin-top: 28px;
    padding: 28px;
    border-radius: 24px;
    color: var(--muted);
    background: #fff;
    box-shadow: var(--shadow-soft);
    text-align: center;
    font-weight: 800;
}

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

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

.category-card {
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.category-card-main {
    display: block;
    padding: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.category-card-main h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 950;
}

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

.category-sample {
    display: grid;
    gap: 0;
    padding: 12px 22px 22px;
}

.category-sample a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: #374151;
    font-weight: 800;
}

.category-sample a:last-child {
    border-bottom: 0;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 88px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.rank-num {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #ef4444);
    font-weight: 950;
    font-size: 20px;
}

.rank-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 950;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.rank-meta strong {
    color: #b45309;
}

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

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

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

.player-card {
    overflow: hidden;
    border-radius: 32px;
    color: #fff;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 0;
    color: #fff;
    background: #020617;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(0, 0, 0, 0.72));
}

.play-ring {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.42);
    font-size: 34px;
    text-indent: 5px;
}

.player-info {
    padding: 28px;
    background:
        radial-gradient(circle at 86% 0%, rgba(6, 182, 212, 0.18), transparent 26%),
        linear-gradient(135deg, #020617, #0f172a);
}

.player-info h1 {
    margin: 16px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.player-info p {
    max-width: 820px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
}

.detail-meta span {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 28px;
    margin-top: 28px;
}

.detail-content,
.detail-side {
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-content {
    padding: 34px;
}

.detail-content h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 950;
}

.detail-content h2:not(:first-child) {
    margin-top: 32px;
}

.detail-content p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 17px;
}

.detail-tags {
    margin-top: 26px;
}

.detail-side {
    align-self: start;
    overflow: hidden;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

.detail-side dl {
    margin: 0;
    padding: 22px;
}

.detail-side div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.detail-side div:last-child {
    border-bottom: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.related-section {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-logo {
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
}

.footer-brand p,
.site-footer p {
    margin: 0;
    color: #9ca3af;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 9px;
}

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

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

.is-filtered-out {
    display: none;
}

@media (max-width: 1060px) {
    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .nav-link::after {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .compact-rank {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav {
        height: 62px;
    }

    .hero-carousel {
        height: 620px;
        min-height: 620px;
    }

    .hero-content {
        bottom: 46%;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 42px;
    }

    .hero-arrows {
        right: 18px;
        bottom: 32px;
    }

    .hero-dots {
        left: 18px;
        bottom: 46px;
    }

    .section,
    .section-soft {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .section-head,
    .toolbar,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .page-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .rank-item {
        grid-template-columns: 48px 72px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .rank-info p {
        -webkit-line-clamp: 1;
    }

    .player-card,
    .detail-content,
    .detail-side {
        border-radius: 22px;
    }

    .player-info,
    .detail-content {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .logo-text {
        font-size: 19px;
    }

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

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

    .card-body p {
        min-height: auto;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn {
        width: 100%;
    }
}
