:root {
    --dawn-50: #fff9f0;
    --dawn-200: #ffe4b8;
    --dawn-400: #ffc56b;
    --dawn-500: #ffb347;
    --dawn-600: #ff9f24;
    --dawn-700: #f58700;
    --morning-50: #f0f9ff;
    --morning-500: #0d96f8;
    --morning-600: #0276d4;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --dark: #111827;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --lift-shadow: 0 18px 45px rgba(17, 24, 39, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--soft), #ffffff 360px);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dawn-500), var(--morning-500));
    box-shadow: 0 10px 25px rgba(255, 159, 36, 0.28);
}

.brand-name {
    font-size: 20px;
    letter-spacing: 0.02em;
}

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

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--dawn-700);
    background: var(--dawn-50);
}

.header-action,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-action {
    padding: 10px 16px;
    color: #ffffff;
    background: var(--dawn-600);
    box-shadow: 0 10px 25px rgba(255, 159, 36, 0.24);
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: var(--dawn-50);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--dawn-700);
    border-radius: 2px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1s ease, transform 5s ease;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.38));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0 0 76px;
}

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

.hero-kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--dawn-700);
    background: var(--dawn-50);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #ffffff;
    background: rgba(255, 179, 71, 0.28);
    backdrop-filter: blur(6px);
}

.hero h1 {
    max-width: 820px;
    margin: 18px 0 8px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero h2 {
    max-width: 780px;
    margin: 12px 0;
    font-size: clamp(30px, 4.2vw, 58px);
    line-height: 1.08;
    font-weight: 900;
}

.hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-bottom: 26px;
}

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

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

.btn {
    min-height: 46px;
    padding: 0 20px;
}

.btn-primary {
    color: #ffffff;
    background: var(--dawn-600);
    box-shadow: 0 14px 28px rgba(255, 159, 36, 0.26);
}

.btn-primary:hover {
    background: var(--dawn-700);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    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.45);
    transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-overlap {
    position: relative;
    z-index: 8;
    margin-top: -24px;
    padding-top: 0;
}

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

.section-head h2,
.page-hero h1,
.content-card h2 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head a {
    color: var(--dawn-700);
    font-weight: 800;
}

.compact-head h2 {
    font-size: 26px;
}

.scroll-row-wrap {
    position: relative;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 210px;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 2px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

.scroll-btn {
    position: absolute;
    top: 42%;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--card-shadow);
    font-size: 26px;
}

.scroll-left {
    left: -18px;
}

.scroll-right {
    right: -18px;
}

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

.movie-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
}

.movie-card {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--dawn-200);
    box-shadow: var(--lift-shadow);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dawn-50), var(--morning-50));
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 9px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 159, 36, 0.94);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
    min-height: 44px;
    margin: 0 0 8px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--dawn-700);
}

.card-line {
    min-height: 42px;
    margin: 0 0 9px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-tags span,
.detail-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--dawn-700);
    background: var(--dawn-50);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-compact .movie-card-body {
    padding: 12px;
}

.movie-card-compact h3 {
    font-size: 15px;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dawn-500), var(--dawn-700));
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(245, 135, 0, 0.24);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.category-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.category-card {
    padding: 16px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--dawn-200);
    box-shadow: var(--lift-shadow);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
    background: var(--dawn-50);
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 900;
}

.category-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.rank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rank-grid .movie-card h3 {
    min-height: auto;
}

.rank-grid .card-line,
.rank-grid .card-tags {
    display: none;
}

.page-hero {
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 179, 71, 0.2), transparent 32%),
        radial-gradient(circle at 85% 5%, rgba(13, 150, 248, 0.15), transparent 28%),
        linear-gradient(180deg, #ffffff, var(--soft));
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 34px;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--dawn-700);
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--dawn-500);
    box-shadow: 0 0 0 4px rgba(255, 228, 184, 0.7);
}

.empty-state {
    margin: 30px 0 0;
    padding: 28px;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.detail-hero {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.84)),
        radial-gradient(circle at 15% 10%, rgba(255, 179, 71, 0.28), transparent 30%);
}

.detail-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 54px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    margin-bottom: 18px;
}

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

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

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--dawn-600);
    font-size: 32px;
    box-shadow: 0 18px 38px rgba(255, 159, 36, 0.34);
}

.play-copy {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.52);
    font-size: 16px;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.95;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 28px;
}

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

.site-footer p {
    margin: 12px 0 0;
    color: #9ca3af;
    line-height: 1.7;
}

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

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--dawn-400);
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--lift-shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-action {
        display: none;
    }

    .hero {
        height: 68vh;
        min-height: 500px;
    }

    .hero-content {
        padding-bottom: 72px;
    }

    .hero-control {
        display: none;
    }

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

    .rank-panel {
        position: static;
    }

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

@media (max-width: 640px) {
    .brand-name {
        font-size: 18px;
    }

    .hero {
        min-height: 560px;
    }

    .hero-copy,
    .section,
    .page-hero-inner,
    .detail-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .btn {
        width: 100%;
    }

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

    .movie-card h3 {
        min-height: 40px;
        font-size: 14px;
    }

    .card-line,
    .card-tags {
        display: none;
    }

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

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

    .detail-meta span,
    .hero-meta span {
        font-size: 12px;
    }

    .content-card {
        padding: 20px;
    }

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