:root {
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #fbbf24;
    --deep: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --card: #ffffff;
    --line: #fed7aa;
    --shadow: 0 20px 50px rgba(249, 115, 22, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--deep);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 20px;
    color: transparent;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
    color: #374151;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--orange);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #111827;
    border-radius: 99px;
}

.hero-slider {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.28)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.22), transparent 34%), linear-gradient(0deg, rgba(17, 24, 39, 0.58), transparent 38%);
}

.hero-content {
    position: relative;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 60px;
    color: #ffffff;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.section-heading span,
.category-overview-head span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags {
    margin: 26px 0 30px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.tag-row span {
    color: #c2410c;
    background: linear-gradient(90deg, #ffedd5, #fef3c7);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 2px solid transparent;
    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: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.btn-outline {
    color: #c2410c;
    border-color: #fdba74;
    background: #ffffff;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster:hover img {
    transform: scale(1.07);
}

.hero-poster span {
    position: absolute;
    inset: auto 24px 24px auto;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 3;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 34px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.home-search-wrap {
    position: relative;
    margin-top: -44px;
    z-index: 5;
}

.home-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    align-items: center;
    gap: 28px;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-card h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.home-search-card p {
    margin: 0;
    color: var(--muted);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    color: #111827;
}

.hero-search input {
    padding: 0 16px;
}

.hero-search button {
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.section-block {
    padding: 76px 0;
}

.warm-panel {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.52));
}

.section-heading {
    margin-bottom: 32px;
}

.center-heading {
    text-align: center;
}

.center-heading span {
    margin: 0 auto;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.category-overview-head h2,
.content-card h2,
.side-card h2 {
    margin: 12px 0 10px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
}

.section-heading p,
.category-overview-head p {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.75;
}

.text-link {
    color: #ea580c;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card,
.compact-card,
.category-overview-card,
.content-card,
.side-card,
.player-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
}

.movie-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 54px rgba(249, 115, 22, 0.22);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1f2937;
}

.movie-card-featured .poster-link {
    aspect-ratio: 16 / 11;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent 65%);
    transition: opacity 0.25s ease;
}

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

.badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.badge-top {
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.badge-score {
    right: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(10px);
}

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

.movie-card h2,
.compact-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a,
.compact-card h2 a {
    transition: color 0.2s ease;
}

.movie-card h2 a:hover,
.compact-card h2 a:hover {
    color: var(--orange);
}

.movie-line,
.compact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.card-meta,
.compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span,
.compact-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

.movie-card .tag-row {
    margin-top: 14px;
}

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 8px;
    padding: 22px;
    border-radius: var(--radius);
    color: #ffffff;
    background-image: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.08)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
    transition: transform 0.25s ease;
}

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

.category-tile strong {
    position: relative;
    z-index: 2;
    font-size: 23px;
}

.category-tile span {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.55;
}

.two-column-section {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.ranking-list,
.side-list,
.compact-grid {
    display: grid;
    gap: 16px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    align-items: center;
}

.compact-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 5;
    background: #111827;
}

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

.rank-number {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.compact-hero {
    background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.46), transparent 30%), linear-gradient(120deg, #111827, #7c2d12 60%, #f97316);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 92px 0;
}

.page-hero h1 {
    max-width: 820px;
}

.page-hero p {
    max-width: 760px;
}

.category-page-hero .container {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 14px;
    align-items: end;
}

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

.filter-grid span {
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    padding: 0 14px;
}

.empty-state {
    margin: 18px 0 0;
    color: #c2410c;
    font-weight: 800;
}

.category-overview-list {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    padding: 26px;
}

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

.detail-hero {
    min-height: 560px;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 42px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

.detail-hero-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    padding: 0;
    background: #000000;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.player-frame.is-playing .player-start,
.player-start[hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.content-card,
.side-card {
    padding: 28px;
}

.content-card h2,
.side-card h2 {
    font-size: 24px;
}

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

.content-card p:last-child {
    margin-bottom: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-grid div {
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.info-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.info-grid dd {
    margin: 6px 0 0;
    color: #111827;
    font-weight: 800;
}

.detail-tags {
    margin-top: 18px;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
}

.side-list .compact-card {
    grid-template-columns: 92px minmax(0, 1fr);
    box-shadow: none;
    border: 1px solid #ffedd5;
}

.related-section {
    padding-top: 0;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(180deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 52px 0 34px;
}

.footer-brand {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 20px;
}

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

.site-footer p,
.site-footer li,
.site-footer a {
    color: #cbd5e1;
    line-height: 1.75;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

[hidden],
.is-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 260px;
        gap: 34px;
    }

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

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

    .two-column-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: relative;
        top: auto;
    }

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

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

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

    .header-inner {
        height: 66px;
    }

    .main-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
    }

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

    .main-nav a {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .main-nav a:hover {
        background: #fff7ed;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 88px 0 120px;
    }

    .hero-poster {
        max-width: 220px;
    }

    .home-search-card,
    .hero-search,
    .detail-hero-grid,
    .category-overview-head,
    .split-heading {
        grid-template-columns: 1fr;
        display: grid;
    }

    .featured-grid,
    .small-grid,
    .catalog-grid,
    .category-grid,
    .ranking-page-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-block {
        padding: 52px 0;
    }

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

    .compact-card {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .detail-poster {
        width: 210px;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .featured-grid,
    .small-grid,
    .catalog-grid,
    .category-grid,
    .ranking-page-list {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

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

    .content-card,
    .side-card,
    .category-overview-card,
    .filter-panel {
        padding: 20px;
    }
}
