:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --cyan-soft: #cffafe;
    --blue: #2563eb;
    --dark: #020617;
    --dark-2: #0f172a;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(15, 23, 42, 0.96));
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand {
    font-size: 21px;
    white-space: nowrap;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.38);
}

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

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, background 0.2s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #67e8f9;
    background: rgba(103, 232, 249, 0.1);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
}

.nav-search input,
.inline-search input,
.hero-search input {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.4);
    outline: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 11px 16px;
}

.nav-search input {
    width: 100%;
}

.nav-search input::placeholder,
.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.nav-search button,
.inline-search button,
.hero-search button,
.primary-btn,
.ghost-btn {
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.inline-search button,
.hero-search button,
.primary-btn {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.26);
}

.nav-search button {
    padding: 10px 14px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--dark);
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(6, 182, 212, 0.18), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.32)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 45%);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid rgba(103, 232, 249, 0.4);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.48);
    color: #a5f3fc;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--cyan-soft);
    color: #0e7490;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.detail-tags span {
    background: rgba(103, 232, 249, 0.14);
    color: #cffafe;
    border: 1px solid rgba(103, 232, 249, 0.24);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    font-weight: 900;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.nav-search button:hover,
.inline-search button:hover,
.hero-search button:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: #22d3ee;
}

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 102px;
    display: flex;
    gap: 10px;
    width: min(460px, calc(100% - 48px));
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
}

.hero-search button,
.inline-search button {
    padding: 12px 18px;
}

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

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

.section-heading h2 {
    position: relative;
    margin: 0 0 4px;
    padding-left: 14px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 5px;
    height: 0.95em;
    border-radius: 999px;
    background: var(--cyan);
}

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

.section-heading > a {
    color: #0891b2;
    font-weight: 900;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), transparent 54%);
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.92);
    color: #fff;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.34);
}

.card-body {
    padding: 16px;
}

.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-row h2 a:hover,
.detail-side a:hover {
    color: #0891b2;
}

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

.feature-large {
    grid-column: span 2;
    grid-row: span 2;
}

.feature-large .poster-link {
    aspect-ratio: 16 / 11;
}

.feature-large h3 {
    font-size: 26px;
}

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

.category-tile,
.category-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fff, #f8fafc);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.category-tile {
    min-height: 168px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-panel-head span {
    color: #0891b2;
    font-weight: 900;
}

.category-tile strong,
.category-panel h2 {
    font-size: 22px;
}

.category-tile em,
.category-panel p,
.site-note-card p {
    color: var(--muted);
    font-style: normal;
}

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

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.compact-card {
    display: grid;
    grid-template-columns: 68px 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 88px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.compact-card img {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
}

.compact-card b {
    color: #0891b2;
    font-size: 18px;
}

.compact-card strong,
.compact-card em {
    display: block;
}

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

.site-note-card {
    position: sticky;
    top: 94px;
    align-self: start;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #0f172a, #083344);
    color: #fff;
    box-shadow: var(--shadow);
}

.site-note-card h2 {
    margin-top: 0;
    font-size: 28px;
}

.site-note-card p {
    color: rgba(255, 255, 255, 0.76);
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding: clamp(28px, 5vw, 54px);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.18), transparent 32%),
        linear-gradient(135deg, #0f172a, #111827 52%, #083344);
    color: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.page-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.inline-search {
    display: flex;
    gap: 10px;
    min-width: min(420px, 100%);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.inline-search input {
    width: 100%;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 9px 14px;
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: var(--cyan);
    color: #0891b2;
    background: var(--cyan-soft);
}

.category-panel {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-panel-head {
    display: block;
    padding: 24px;
    background: linear-gradient(145deg, #fff, #ecfeff);
}

.category-panel h2 {
    margin: 8px 0;
}

.category-preview-links {
    display: grid;
    gap: 8px;
    padding: 0 24px 24px;
}

.category-preview-links a {
    color: var(--muted);
}

.category-preview-links a:hover {
    color: #0891b2;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: var(--cyan-soft);
    color: #0e7490;
    font-weight: 900;
}

.rank-thumb img {
    width: 92px;
    height: 112px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.rank-row p {
    margin: 0 0 10px;
    color: var(--muted);
}

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

.detail-breadcrumb {
    color: var(--muted);
    margin-bottom: 14px;
}

.detail-breadcrumb a:hover {
    color: #0891b2;
}

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

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

.movie-video,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

.movie-video {
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #000;
}

.player-cover img {
    object-fit: cover;
    filter: brightness(0.48);
}

.player-cover.is-hidden {
    display: none;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: clamp(72px, 9vw, 104px);
    height: clamp(72px, 9vw, 104px);
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    font-size: 38px;
    box-shadow: 0 20px 54px rgba(6, 182, 212, 0.42);
}

.detail-info {
    padding: clamp(22px, 4vw, 36px);
}

.detail-info h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
}

.detail-lead {
    margin: 0 0 18px;
    max-width: 920px;
    color: var(--muted);
    font-size: 18px;
}

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

.detail-tags span {
    color: #0e7490;
    background: var(--cyan-soft);
}

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

.detail-text,
.detail-side {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.detail-text {
    padding: clamp(22px, 4vw, 34px);
}

.detail-text h2,
.detail-side h2 {
    margin: 0 0 14px;
}

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

.detail-side {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
    display: grid;
    gap: 12px;
}

.detail-side a {
    padding: 11px 12px;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
}

.related-grid {
    margin-bottom: 48px;
}

.site-footer {
    margin-top: 66px;
    background: var(--dark);
    color: #fff;
}

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

.footer-logo {
    font-size: 22px;
    color: #67e8f9;
}

.site-footer p {
    max-width: 680px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

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

[hidden],
.is-filtered {
    display: none !important;
}

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

    .hero-search {
        left: 24px;
        right: auto;
        bottom: 36px;
    }

    .hero-content {
        bottom: 142px;
    }

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

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

    .site-note-card,
    .detail-side {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 76vh;
    }

    .hero-content {
        left: 18px;
        bottom: 138px;
        width: calc(100% - 36px);
    }

    .hero-arrow {
        display: none;
    }

    .hero-search {
        left: 18px;
        width: calc(100% - 36px);
    }

    .featured-grid,
    .movie-grid,
    .category-grid,
    .category-panels,
    .top-three-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-large {
        grid-column: span 2;
    }

    .page-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-search {
        min-width: 0;
        width: 100%;
    }

    .ranking-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        width: min(100% - 22px, 1180px);
        gap: 10px;
    }

    .brand {
        font-size: 18px;
    }

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

    .hero {
        min-height: 82vh;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-search input,
    .hero-search button,
    .inline-search,
    .inline-search input,
    .inline-search button {
        width: 100%;
    }

    .inline-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .content-section {
        width: min(100% - 22px, 1180px);
        padding-top: 40px;
    }

    .section-heading {
        display: block;
    }

    .featured-grid,
    .movie-grid,
    .category-grid,
    .category-panels,
    .top-three-grid {
        grid-template-columns: 1fr;
    }

    .feature-large {
        grid-column: span 1;
    }

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

    .rank-num {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .rank-thumb img {
        width: 74px;
        height: 92px;
    }

    .rank-row p {
        display: none;
    }

    .page-hero,
    .detail-shell {
        width: min(100% - 22px, 1180px);
    }

    .detail-card,
    .page-hero {
        border-radius: 22px;
    }

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