:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-500: #f97316;
    --blue-500: #3b82f6;
    --green-500: #22c55e;
    --purple-500: #8b5cf6;
    --pink-500: #ec4899;
    --cyan-500: #06b6d4;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900) 48%, var(--slate-800));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    font-size: 16px;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 650;
}

.nav-links a,
.mobile-menu a {
    color: rgba(255, 255, 255, 0.84);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--amber-400);
}

.nav-toggle {
    display: none;
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 12px;
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.04);
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 24%, rgba(245, 158, 11, 0.26), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.70) 48%, rgba(15, 23, 42, 0.24)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.10) 56%, rgba(2, 6, 23, 0.68));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100% - 1240px) / 2));
    right: 24px;
    bottom: 110px;
    max-width: 760px;
    color: white;
}

.hero-kicker,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 750;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.28);
}

.hero h1 {
    margin: 18px 0 16px;
    max-width: 860px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero p {
    margin: 0 0 22px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2.1vw, 23px);
    line-height: 1.65;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.meta-chip {
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 650;
}

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

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

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 16px 32px rgba(245, 158, 11, 0.30);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(12px);
    font-size: 34px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(2, 6, 23, 0.78);
    transform: translateY(-2px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 36px;
    background: var(--amber-500);
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 6;
    display: flex;
    width: min(760px, calc(100% - 32px));
    min-height: 54px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(20px);
    transform: translateX(-50%);
}

.hero-search input,
.catalog-search input,
.catalog-search select {
    border: 0;
    outline: 0;
    font: inherit;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    color: white;
    background: transparent;
}

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

.hero-search button,
.catalog-search button {
    border: 0;
    border-radius: 14px;
    padding: 0 20px;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-weight: 800;
    cursor: pointer;
}

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

.page-hero {
    padding: 64px 0 34px;
    background:
        radial-gradient(circle at 14% 10%, rgba(245, 158, 11, 0.20), transparent 30%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    color: white;
}

.page-hero h1,
.detail-title h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.page-hero p,
.detail-title p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 18px;
    line-height: 1.7;
}

.section {
    padding: 56px 0;
}

.section.alt {
    background: rgba(255, 255, 255, 0.62);
}

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

.section-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.035em;
}

.section-head p {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--muted);
    line-height: 1.7;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.section-link {
    flex: none;
    color: var(--slate-900);
    border: 1px solid var(--border);
    background: white;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: var(--soft-shadow);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.45), transparent 32%),
        linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.28), transparent 54%);
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: white;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.breadcrumb a:hover {
    color: var(--amber-500);
}

.movie-card p {
    margin: 0;
    min-height: 48px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    color: #92400e;
    background: #fef3c7;
}

.movie-card-large .poster-wrap {
    aspect-ratio: 16 / 8.6;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.movie-card-horizontal .poster-wrap {
    height: 100%;
    aspect-ratio: auto;
}

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

.category-tile {
    min-height: 136px;
    padding: 22px;
    border-radius: 22px;
    color: white;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.28), transparent 26%),
        linear-gradient(135deg, var(--slate-900), var(--slate-700));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.catalog-search {
    position: sticky;
    top: 82px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 32px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: var(--soft-shadow);
}

.catalog-search input,
.catalog-search select {
    min-height: 46px;
    border-radius: 14px;
    padding: 0 14px;
    background: var(--slate-100);
    color: var(--text);
}

.catalog-search input {
    flex: 1 1 320px;
}

.catalog-search select {
    flex: 0 0 180px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 150px 1fr;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 14px;
    background: white;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    font-size: 18px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-600));
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 750;
}

.rank-meta span {
    border-radius: 999px;
    padding: 6px 10px;
    background: #fef3c7;
}

.detail-hero {
    color: white;
    background:
        radial-gradient(circle at 72% 8%, rgba(245, 158, 11, 0.24), transparent 28%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    padding: 34px 0 58px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: black;
    box-shadow: 0 32px 72px rgba(2, 6, 23, 0.36);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    color: white;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(245, 158, 11, 0.26), transparent 32%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.22));
}

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

.play-button {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    font-size: 38px;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.36);
    transition: transform 0.2s ease;
}

.player-cover:hover .play-button {
    transform: scale(1.06);
}

.detail-title {
    margin-top: 30px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.13);
}

.detail-side {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

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

.info-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.info-list strong {
    color: white;
}

.article-panel {
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 30px;
    background: white;
    box-shadow: var(--soft-shadow);
}

.article-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.article-panel p {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.88;
    font-size: 16px;
}

.static-page {
    padding: 56px 0;
}

.static-card {
    max-width: 900px;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    background: white;
    box-shadow: var(--soft-shadow);
}

.static-card h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 50px);
}

.static-card h2 {
    margin: 28px 0 12px;
}

.static-card p,
.static-card li {
    color: #334155;
    line-height: 1.9;
}

.site-footer {
    margin-top: 42px;
    padding: 48px 0 28px;
    color: rgba(255, 255, 255, 0.74);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

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

.footer-inner p {
    max-width: 520px;
    line-height: 1.7;
}

.footer-links,
.footer-cats {
    display: grid;
    gap: 10px;
}

.footer-links a,
.footer-cats a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover,
.footer-cats a:hover {
    color: var(--amber-400);
}

.copyright {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.52);
    text-align: center;
}

[data-filter-hidden="true"] {
    display: none !important;
}

@media (max-width: 1120px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .detail-side {
        max-width: 420px;
    }
}

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

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

    .hero {
        min-height: 720px;
    }

    .hero-content {
        bottom: 142px;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

    .rank-number {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

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

@media (max-width: 560px) {
    .top-nav,
    .container,
    .footer-inner,
    .copyright,
    .mobile-menu {
        width: min(100% - 24px, 1240px);
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        left: 18px;
        bottom: 150px;
    }

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

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

    .hero-search {
        bottom: 22px;
        flex-direction: column;
        min-height: auto;
    }

    .hero-search input,
    .hero-search button {
        min-height: 46px;
    }

    .movie-grid,
    .movie-grid.two,
    .category-strip {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px 1fr;
    }

    .rank-thumb {
        display: none;
    }

    .article-panel,
    .static-card {
        padding: 22px;
        border-radius: 22px;
    }

    .catalog-search {
        top: 78px;
    }
}
