* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f8fc;
    --ink: #101827;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --blue: #2563eb;
    --blue-dark: #0f2f7f;
    --cyan: #22d3ee;
    --orange: #f97316;
    --green: #10b981;
    --yellow: #f59e0b;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a, #173b8d, #0f172a);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, #60a5fa, #67e8f9);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.5);
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #93c5fd, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.main-nav a,
.nav-dropdown > button {
    color: rgba(255, 255, 255, 0.88);
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown > button:hover {
    color: #67e8f9;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    display: grid;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    color: #1f2937;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.2s ease;
}

.dropdown-panel a {
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
}

.dropdown-panel a:hover {
    color: var(--blue);
    background: #eff6ff;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 26vw);
}

.header-search input,
.mobile-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

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

.header-search button,
.mobile-search button {
    padding: 10px 16px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: #2563eb;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px 10px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 54px 0 64px;
    color: #ffffff;
    background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.28), transparent 28%), linear-gradient(135deg, #0f172a, #16388f 52%, #0e7490);
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(76px);
    opacity: 0.45;
}

.hero-glow-one {
    top: 60px;
    left: 4%;
    background: #22d3ee;
}

.hero-glow-two {
    right: 3%;
    bottom: 30px;
    background: #3b82f6;
}

.hero-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.48);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 56px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.58), rgba(14, 116, 144, 0.22));
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow,
.side-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #67e8f9;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 12px;
    color: #bfdbfe;
    font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.38);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: #0f2f7f;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(12px);
}

.btn-soft {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.48);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 34px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 30px;
    background: #67e8f9;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.48);
    box-shadow: var(--soft-shadow);
}

.glass-card {
    backdrop-filter: blur(18px);
}

.side-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.side-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
}

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-cats a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-list {
    display: grid;
    gap: 12px;
}

.hero-list a {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-list span {
    font-weight: 800;
}

.hero-list small {
    color: rgba(255, 255, 255, 0.62);
}

.content-section {
    padding: 64px 0;
    background: #ffffff;
}

.section-warm {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.section-green {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.section-yellow {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.section-dark {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #173b8d, #0f172a);
}

.section-categories {
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
}

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

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

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

.section-dark .section-heading p {
    color: #bfdbfe;
}

.section-link {
    flex-shrink: 0;
    color: var(--blue);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    min-width: 0;
}

.card-link {
    display: grid;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #172554, #0891b2);
}

.movie-card-wide .card-link {
    grid-template-columns: 210px minmax(0, 1fr);
}

.movie-card-wide .poster-frame {
    aspect-ratio: auto;
    min-height: 190px;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.card-link:hover .poster-frame img {
    transform: scale(1.1);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.65), transparent 62%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-link:hover .poster-shade {
    opacity: 1;
}

.play-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--blue);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: all 0.25s ease;
}

.card-link:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.category-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.card-body strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: #64748b;
    font-size: 13px;
}

.card-desc {
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body .tag-row span {
    padding: 4px 8px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
}

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

.category-card,
.category-cover {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n),
.category-cover:nth-child(2n) {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-card:nth-child(3n),
.category-cover:nth-child(3n) {
    background: linear-gradient(135deg, #059669, #14b8a6);
}

.category-card:hover,
.category-cover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card span,
.category-cover strong {
    font-size: 21px;
    font-weight: 900;
}

.category-card small,
.category-cover small {
    color: rgba(255, 255, 255, 0.78);
}

.category-cover {
    min-height: 260px;
    overflow: hidden;
    padding: 0;
    background: #0f172a;
}

.category-cover-art {
    position: relative;
    display: block;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #172554, #0891b2);
}

.category-cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-cover-art span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.category-cover strong,
.category-cover small {
    padding: 0 18px;
}

.category-cover small {
    padding-bottom: 18px;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 15% 12%, rgba(34, 211, 238, 0.25), transparent 30%), linear-gradient(135deg, #0f172a, #173b8d 55%, #0e7490);
}

.compact-hero {
    padding: 78px 0 58px;
}

.rank-hero,
.category-hero {
    padding: 72px 0;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

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

.rank-feature,
.category-feature {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #172554, #0891b2);
    box-shadow: var(--shadow);
}

.rank-feature img,
.category-feature img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.rank-feature span,
.rank-feature strong,
.category-feature span {
    position: absolute;
    left: 18px;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.rank-feature span {
    top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ef4444;
    font-weight: 900;
}

.rank-feature strong,
.category-feature span {
    right: 18px;
    bottom: 18px;
    font-size: 24px;
    font-weight: 900;
}

.catalog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 820px;
    margin-top: 24px;
}

.catalog-filter input,
.catalog-filter select {
    min-height: 48px;
    padding: 0 16px;
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 14px;
    outline: none;
    background: #ffffff;
}

.catalog-filter input {
    flex: 1 1 260px;
}

.catalog-filter button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    cursor: pointer;
}

.filter-status {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.detail-hero {
    padding: 46px 0 64px;
}

.detail-grid {
    grid-template-columns: 320px minmax(0, 1fr);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #172554, #0891b2);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.meta-badges span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
    margin-bottom: 24px;
}

.player-section {
    padding: 46px 0;
    background: #020617;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 26px 80px rgba(2, 6, 23, 0.42);
}

.player-card video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    color: #2563eb;
    border-radius: 999px;
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 18px 50px rgba(255, 255, 255, 0.22);
}

.player-cover strong {
    font-size: clamp(22px, 3vw, 36px);
    text-align: center;
}

.detail-content {
    background: #f8fafc;
}

.detail-content-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.article-card,
.article-side {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.article-card h2,
.article-side h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
}

.article-side dl {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.article-side dt {
    color: #64748b;
}

.article-side dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding: 50px 0;
}

.footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

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

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

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

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

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.is-hidden-by-filter {
    display: none;
}

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

    .menu-toggle {
        display: inline-flex;
    }

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

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

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

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

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

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

    .hero {
        min-height: auto;
        padding: 28px 0 38px;
    }

    .hero-stage {
        min-height: 620px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 28px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .hero-dots {
        right: 24px;
        bottom: 20px;
    }

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

    .movie-grid,
    .wide-grid,
    .category-grid,
    .category-cover-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-poster {
        width: min(100%, 340px);
    }

    .article-side dl {
        grid-template-columns: 1fr;
    }

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