:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #1e293b;
    --bg-card-deep: #0f172a;
    --line: #334155;
    --line-soft: #1e293b;
    --text: #ffffff;
    --muted: #cbd5e1;
    --muted-deep: #94a3b8;
    --orange: #f97316;
    --orange-deep: #ea580c;
    --red: #dc2626;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.11), transparent 34%), var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #1e293b;
}

body::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 999px;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(51, 65, 85, 0.85);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

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

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

.site-logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.site-logo:hover .site-logo__mark {
    transform: scale(1.08);
}

.site-logo__text {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: transparent;
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.site-nav a {
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #fb923c;
}

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

.header-search input,
.mobile-search input,
.search-page-form input {
    width: 230px;
    border: 1px solid #475569;
    border-radius: 12px;
    outline: none;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    padding: 11px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: #ffffff;
    font-weight: 700;
    padding: 11px 16px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #e2e8f0;
    border-radius: 999px;
}

.mobile-panel {
    border-top: 1px solid rgba(51, 65, 85, 0.78);
    padding: 14px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel[hidden] {
    display: none;
}

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel a {
    color: #e2e8f0;
    font-weight: 600;
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617 2%, rgba(15, 23, 42, 0.88) 42%, rgba(15, 23, 42, 0.42) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    padding-top: 28px;
}

.hero-badges,
.hero-tags,
.detail-tags,
.movie-card__tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-badges span,
.hero-badges a,
.hero-tags span,
.detail-tags span,
.movie-card__tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.82);
    backdrop-filter: blur(10px);
}

.hero-badges span:first-child {
    background: var(--orange);
    color: #ffffff;
}

.hero-site-title {
    margin: 18px 0 4px;
    color: #fed7aa;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.hero-summary {
    max-width: 640px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
}

.button--ghost {
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(226, 232, 240, 0.2);
    backdrop-filter: blur(12px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(12px);
}

.hero-control:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-50%) scale(1.06);
}

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

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #64748b;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--orange);
}

.content-section {
    padding: 74px 0;
    background: linear-gradient(180deg, #020617, #0f172a);
}

.content-section.section--alt {
    background: linear-gradient(180deg, #0f172a, #020617);
}

.content-section.section--compact {
    padding-top: 58px;
}

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

.section-kicker {
    display: inline-block;
    color: #fb923c;
    font-weight: 800;
    margin-bottom: 6px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.section-link {
    color: #fb923c;
    font-weight: 700;
    white-space: nowrap;
}

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

.movie-grid--catalog {
    align-items: start;
}

.movie-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: #1e293b;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.23);
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.movie-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.movie-card--featured .movie-card__image {
    aspect-ratio: 16 / 10;
}

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

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

.movie-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.24), transparent);
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card__shade {
    opacity: 0.92;
}

.movie-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
}

.movie-card__badges span,
.rank-badge {
    display: inline-flex;
    min-width: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
}

.movie-card__badges span:last-child {
    background: var(--orange);
}

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.movie-card__body strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card--featured .movie-card__body strong {
    font-size: 26px;
}

.movie-card__body p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__body small {
    color: #94a3b8;
    font-size: 13px;
}

.movie-card__tags span {
    border-radius: 8px;
    padding: 3px 7px;
    font-size: 12px;
    background: #334155;
    color: #cbd5e1;
}

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

.category-card {
    min-height: 178px;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    filter: brightness(1.08);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.28), transparent 34%);
}

.category-card--red-orange {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-card--orange-pink {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.category-card--blue-cyan {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-card--purple-pink {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.category-card--green-emerald {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.category-card--blue-purple {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.category-card--slate-orange {
    background: linear-gradient(135deg, #334155, #f97316);
}

.category-card--cyan-emerald {
    background: linear-gradient(135deg, #0891b2, #10b981);
}

.category-card__label,
.category-card__desc,
.category-card__arrow {
    position: relative;
    z-index: 1;
}

.category-card__label {
    font-size: 25px;
    font-weight: 900;
    line-height: 1.15;
}

.category-card__desc {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.category-card__arrow {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 800;
}

.page-hero {
    padding: 64px 0 58px;
    background: radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #0f172a, #020617);
    border-bottom: 1px solid #1e293b;
}

.page-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 116px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #1e293b;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.74);
    padding: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(3px);
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(30, 41, 59, 0.95);
}

.rank-row__num {
    color: #fb923c;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 116px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-row__body {
    min-width: 0;
}

.rank-row__body strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-row__body small {
    color: #94a3b8;
}

.rank-row__play {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--red));
    color: #ffffff;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.detail-page {
    padding: 32px 0 70px;
    background: #020617;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.92fr);
    gap: 32px;
    margin-top: 24px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
    color: #ffffff;
}

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

.player-overlay span {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
    font-size: 28px;
}

.detail-card,
.side-card {
    margin-top: 24px;
    border-radius: 20px;
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.15;
}

.detail-meta {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.detail-meta span {
    border-radius: 999px;
    background: #1e293b;
    padding: 6px 12px;
}

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

.detail-card section + section {
    margin-top: 26px;
}

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

.detail-card p {
    color: #cbd5e1;
    margin: 0 0 14px;
}

.detail-side {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 96px;
    margin-top: 0;
}

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

.related-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.related-item img {
    width: 118px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
}

.related-item strong {
    display: -webkit-box;
    color: #ffffff;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-item:hover strong {
    color: #fb923c;
}

.related-item small {
    color: #94a3b8;
}

.detail-related-section {
    padding-bottom: 0;
    background: transparent;
}

.search-page-form {
    margin-top: 28px;
    max-width: 760px;
}

.search-page-form input {
    width: 100%;
    flex: 1;
    padding: 15px 18px;
    font-size: 17px;
}

.search-status {
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 18px;
}

.site-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid #1e293b;
    color: #cbd5e1;
}

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

.footer-brand p {
    max-width: 420px;
    margin: 16px 0 0;
    color: #94a3b8;
}

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

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: #fb923c;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1e293b;
    color: #64748b;
}

.back-to-top {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #ffffff;
    font-weight: 900;
}

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

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

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

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

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

    .side-card {
        position: static;
    }
}

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

    .hero {
        height: 650px;
    }

    .hero-copy {
        padding-right: 28px;
    }

    .hero-control {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

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

    .movie-card--featured {
        grid-column: span 2;
    }

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

    .rank-row {
        grid-template-columns: 42px 90px minmax(0, 1fr);
    }

    .rank-row img {
        width: 90px;
        height: 58px;
    }

    .rank-row__play {
        display: none;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .hero {
        height: 610px;
    }

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

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

    .hero-control {
        display: none;
    }

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

    .movie-card--featured {
        grid-column: auto;
    }

    .category-card {
        min-height: 156px;
    }

    .detail-card,
    .side-card {
        padding: 20px;
    }

    .related-item {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .related-item img {
        width: 100px;
        height: 64px;
    }
}
