:root {
    --primary-50: #fef3e2;
    --primary-100: #fde6c5;
    --primary-500: #d89410;
    --primary-600: #b6790d;
    --accent-500: #f95c16;
    --accent-600: #ea420c;
    --secondary-800: #28304a;
    --secondary-900: #161b2b;
    --text-main: #111827;
    --text-muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 24px 55px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: var(--soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
}

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

img {
    height: auto;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    box-shadow: 0 12px 24px rgba(216, 148, 16, 0.28);
}

.brand-text {
    font-size: 22px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 650;
    color: #374151;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.nav-link-soft {
    color: #6b7280;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--primary-600);
}

.mobile-nav {
    display: none;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
}

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

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #05070d;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.045);
    transition: transform 6s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px 96px;
}

.hero-copy {
    max-width: 760px;
    color: #fff;
}

.hero-badges,
.hero-meta,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-badges span,
.hero-badges a {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-badges span {
    background: var(--primary-500);
}

.hero-badges a {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 650;
}

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

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

.btn-primary {
    color: #fff;
    background: var(--primary-500);
    box-shadow: 0 15px 28px rgba(216, 148, 16, 0.3);
}

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

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.btn-small {
    min-height: 38px;
    padding: 0 18px;
    color: #fff;
    background: var(--primary-500);
}

.full {
    width: 100%;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 36px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.hero-search {
    position: absolute;
    right: calc((100% - min(1180px, calc(100% - 40px))) / 2);
    bottom: 82px;
    z-index: 6;
    display: flex;
    width: min(390px, calc(100% - 40px));
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 0 14px;
}

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

.hero-search button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--accent-500);
    padding: 10px 18px;
    font-weight: 800;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
}

.section-white {
    background: #fff;
}

.section-soft {
    background: var(--soft);
}

.page-section {
    border-radius: 28px;
}

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

.section-head h2,
.catalog-head h2,
.side-card h2,
.article-section h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.16;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-link {
    color: var(--primary-600);
    font-weight: 800;
}

.dark,
.dark .eyebrow,
.dark .section-link {
    color: #fff;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 148, 16, 0.42);
    box-shadow: var(--shadow-hover);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

.card-cover img,
.compact-cover img,
.rank-cover img,
.poster-card img,
.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.movie-card:hover img,
.category-tile:hover img {
    transform: scale(1.06);
}

.card-badge,
.score-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
}

.card-badge {
    left: 12px;
    background: rgba(216, 148, 16, 0.94);
}

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

.card-body {
    padding: 18px;
}

.card-body h3,
.compact-body h3,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.card-body p,
.compact-body p,
.rank-info p,
.catalog-head p,
.page-hero p,
.footer-brand p {
    margin: 0;
    color: var(--text-muted);
}

.card-body p,
.compact-body p,
.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 650;
}

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

.category-tile {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 150px;
    overflow: hidden;
}

.category-info {
    padding: 16px;
}

.category-info h3 {
    margin: 0 0 6px;
}

.category-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.ranking-section {
    max-width: none;
    margin: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.ranking-section > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: stretch;
}

.rank-num {
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    font-size: 20px;
    font-weight: 900;
}

.rank-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    min-height: 118px;
    color: var(--text-main);
}

.rank-cover {
    overflow: hidden;
}

.rank-info {
    padding: 16px;
}

.page-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 72px;
}

.page-hero {
    margin-bottom: 28px;
    padding: 54px;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800) 58%, var(--primary-600));
    box-shadow: var(--shadow-soft);
}

.small-hero,
.category-hero,
.ranking-hero {
    min-height: 220px;
    display: flex;
    align-items: center;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-600);
    font-weight: 750;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-title {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 900;
}

.filter-fields {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
}

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

.filter-fields input,
.filter-fields select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #fff;
    padding: 0 13px;
}

.filter-fields input:focus,
.filter-fields select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(216, 148, 16, 0.12);
}

.catalog-list {
    display: grid;
    gap: 24px;
}

.catalog-block {
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.catalog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 104px;
}

.compact-cover {
    overflow: hidden;
    background: #111827;
}

.compact-body {
    padding: 14px;
}

.detail-main {
    max-width: 1180px;
}

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

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
    transition: opacity 0.24s ease;
}

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

.play-circle {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    color: var(--secondary-900);
    background: rgba(255, 255, 255, 0.94);
    font-size: 36px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s ease, background 0.22s ease;
}

.player-overlay:hover .play-circle {
    transform: scale(1.08);
    background: #fff;
}

.detail-card,
.side-card,
.poster-card {
    margin-top: 24px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-card {
    padding: 28px;
}

.detail-headline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.detail-headline h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-score {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    font-weight: 900;
}

.lead-text {
    margin: 18px 0 18px;
    color: #374151;
    font-size: 18px;
    font-weight: 650;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--primary-600);
    background: var(--primary-50);
    font-size: 13px;
    font-weight: 800;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.detail-meta div {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
}

.detail-meta dt {
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 5px 0 0;
    font-weight: 850;
}

.article-section {
    margin-top: 28px;
}

.article-section h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.article-section p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.poster-card {
    overflow: hidden;
    padding: 14px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 14px;
}

.side-card {
    padding: 20px;
}

.side-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.side-list .movie-card-compact {
    grid-template-columns: 94px 1fr;
}

.side-list .compact-body p,
.side-list .movie-meta {
    display: none;
}

.related-section {
    margin-top: 34px;
}

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 20px 36px;
}

.brand-footer .brand-text {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}

.footer-brand p {
    max-width: 560px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-col h3 {
    margin: 0 0 14px;
    color: #facc15;
}

.footer-col ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 15px;
        font-size: 14px;
    }

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

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

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

    .mobile-toggle {
        display: block;
    }

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

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

    .hero-search {
        right: 20px;
        bottom: 72px;
        left: 20px;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

    .grid-four,
    .grid-three,
    .category-grid,
    .ranking-list,
    .compact-grid,
    .footer-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .movie-card-compact,
    .rank-card {
        grid-template-columns: 120px 1fr;
    }

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

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

    .brand-text {
        font-size: 19px;
    }

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

    .hero-content {
        padding: 0 16px 150px;
    }

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

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

    .section,
    .page-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-head,
    .catalog-head,
    .detail-headline {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-fields,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .movie-card-compact,
    .rank-card {
        grid-template-columns: 104px 1fr;
    }

    .ranking-list li {
        grid-template-columns: 44px 1fr;
    }

    .rank-num {
        font-size: 16px;
        border-radius: 14px;
    }
}
