:root {
    --site-blue: #2563eb;
    --site-blue-dark: #1e40af;
    --site-sky: #60a5fa;
    --site-orange: #f97316;
    --site-red: #ef4444;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-soft: #f3f4f6;
    --site-border: #e5e7eb;
    --site-white: #ffffff;
    --site-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --site-radius: 20px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--site-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #f9fafb 45%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--site-blue), var(--site-blue-dark));
    color: var(--site-white);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--site-blue);
    background: var(--site-white);
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.brand-name {
    font-size: 21px;
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input {
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 12px;
    padding: 10px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

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

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button,
.filter-clear {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button {
    color: var(--site-blue);
    background: #ffffff;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: #ffffff;
    background: var(--site-blue);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.header-search button:hover,
.mobile-search button:hover,
.filter-clear:hover {
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #ffffff;
}

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

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

.mobile-menu nav,
.mobile-search {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.mobile-link {
    display: block;
    padding: 13px 4px;
    color: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-link.active {
    color: #ffffff;
    font-weight: 800;
}

.mobile-search {
    display: flex;
    gap: 10px;
    padding-top: 12px;
}

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

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.08)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 690px;
    padding-top: 70px;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: var(--site-blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

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

.hero-meta span,
.detail-meta span,
.rank-meta span {
    border-radius: 999px;
    padding: 7px 11px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.section-block,
.page-block {
    padding: 64px 0;
}

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

.section-heading h2 {
    margin: 10px 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 660px;
    margin: 0;
    color: var(--site-muted);
    line-height: 1.75;
}

.section-more {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--site-blue);
    background: #dbeafe;
    font-weight: 800;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--site-radius);
    background: #ffffff;
    box-shadow: 0 10px 28px 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(37, 99, 235, 0.32);
    box-shadow: var(--site-shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #dbeafe;
}

.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);
}

.card-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.badge-region {
    top: 12px;
    left: 12px;
}

.badge-year {
    right: 12px;
    bottom: 12px;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--site-blue);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
    padding: 18px;
}

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta-row span {
    border-radius: 999px;
    padding: 6px 9px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--site-radius);
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 38%),
        linear-gradient(135deg, var(--site-blue), var(--site-blue-dark));
    box-shadow: var(--site-shadow);
}

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

.category-card p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.category-card span {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--site-blue);
    background: #ffffff;
    font-weight: 850;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.42), transparent 34rem),
        linear-gradient(135deg, #1e3a8a, #2563eb 52%, #0f172a);
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, 170px) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--site-muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--site-text);
    background: #f9fafb;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-clear {
    min-height: 44px;
    color: #ffffff;
    background: var(--site-blue);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--site-border);
    border-radius: 18px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    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: 58px;
    height: 58px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    font-size: 22px;
    font-weight: 950;
}

.rank-poster {
    width: 96px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #dbeafe;
}

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

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 900;
}

.rank-copy p {
    margin: 0 0 10px;
    color: var(--site-muted);
    line-height: 1.65;
}

.rank-action {
    align-self: stretch;
    display: grid;
    place-items: center;
    border-radius: 14px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--site-blue);
    font-weight: 850;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    transform: scale(1.02);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.74)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.22));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 78px 0;
}

.detail-poster {
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.tag-list span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.24);
    font-size: 13px;
    font-weight: 800;
}

.player-section {
    padding-top: 56px;
}

.player-shell {
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.22), transparent 25rem),
        rgba(2, 6, 23, 0.26);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-button {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--site-blue);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.3);
    font-size: 34px;
    transform: translateX(3px);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 42px 0;
}

.content-card,
.info-card {
    border: 1px solid var(--site-border);
    border-radius: 22px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.content-card + .content-card {
    margin-top: 22px;
}

.content-card h2,
.info-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
    font-weight: 900;
}

.content-card p {
    margin: 0;
    color: #374151;
    line-height: 1.95;
    white-space: pre-line;
}

.info-list {
    display: grid;
    gap: 13px;
}

.info-list div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--site-border);
}

.info-list dt {
    color: var(--site-muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--site-text);
    font-weight: 750;
}

.site-footer {
    margin-top: 56px;
    color: rgba(255, 255, 255, 0.82);
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    margin: 16px 0 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

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

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-filter-card].is-hidden {
    display: none;
}

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

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

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

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

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

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

    .brand-name {
        font-size: 18px;
    }

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

    .hero-control {
        display: none;
    }

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

    .section-heading {
        display: grid;
        align-items: start;
    }

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

    .movie-card-body {
        padding: 14px;
    }

    .movie-card-body h3 {
        min-height: 44px;
        font-size: 16px;
    }

    .movie-card-body p {
        min-height: 42px;
        font-size: 13px;
    }

    .page-hero {
        padding: 52px 0;
    }

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

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

    .rank-number {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 18px;
    }

    .rank-poster {
        width: 78px;
    }

    .rank-action {
        grid-column: 1 / -1;
        min-height: 44px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 46px 0;
    }

    .detail-poster {
        max-width: 240px;
    }

    .detail-copy h1 {
        font-size: 40px;
    }

    .player-button {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
