:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-800: #9a3412;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-900: #1c1917;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
    --shadow-strong: 0 24px 70px rgba(120, 53, 15, 0.22);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background: linear-gradient(135deg, var(--stone-50), var(--amber-50));
    min-height: 100vh;
}

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

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

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: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
}

.brand-mark span {
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid var(--white);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--amber-900);
}

.brand-text small {
    display: block;
    color: var(--amber-700);
    font-size: 12px;
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-nav-link {
    color: var(--amber-900);
    font-weight: 700;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--orange-800);
    background: rgba(245, 158, 11, 0.16);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber-900);
    border-radius: 99px;
}

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

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

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 26px 0 54px;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.48), transparent 32%), linear-gradient(135deg, var(--amber-100), var(--orange-50) 52%, var(--stone-50));
}

.hero-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.36;
    pointer-events: none;
}

.hero-glow-one {
    left: -120px;
    top: 80px;
    background: var(--amber-500);
}

.hero-glow-two {
    right: -110px;
    bottom: 0;
    background: var(--orange-500);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
}

.hero-topline span,
.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--amber-800);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.08);
}

.hero-stage {
    position: relative;
    min-height: 560px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 42px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.hero-copy h1 {
    margin: 16px 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.08em;
    color: var(--amber-900);
}

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-tags {
    margin-top: 20px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--amber-900);
    background: rgba(245, 158, 11, 0.14);
    font-size: 12px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.hero-search button,
.search-page-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search button,
.search-page-form button {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
    border: 0;
}

.ghost-button {
    color: var(--amber-900);
    border: 1px solid rgba(180, 83, 9, 0.18);
    background: rgba(255, 255, 255, 0.62);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover,
.search-page-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(360px, 100%);
    margin-left: auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.24));
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.hero-control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(120, 53, 15, 0.12);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 99px;
}

.hero-dot.is-active {
    width: 30px;
    background: var(--amber-700);
}

.hero-search,
.search-page-form,
.filter-bar {
    display: flex;
    gap: 12px;
    border-radius: 22px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-search {
    margin: 28px auto 0;
    max-width: 820px;
}

.hero-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(180, 83, 9, 0.14);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--stone-900);
    background: var(--white);
    outline: none;
}

.hero-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-category-links a {
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
    font-size: 14px;
    font-weight: 800;
}

.content-section {
    padding: 54px 0;
}

.content-section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.52);
}

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

.section-heading h2,
.page-hero h1,
.detail-main-copy h1,
.detail-copy h2,
.detail-side-card h2 {
    margin: 0;
    color: var(--stone-900);
    letter-spacing: -0.045em;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--stone-600);
    line-height: 1.75;
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-700);
    font-weight: 900;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(28, 25, 23, 0.2);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: var(--stone-900);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--stone-600);
    font-size: 12px;
}

.movie-desc {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: 10px;
}

.page-hero,
.detail-hero {
    background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
    padding: 58px 0;
}

.compact-hero {
    padding: 44px 0;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--amber-800);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    color: var(--orange-600);
}

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

.category-panel {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 12px;
    background: linear-gradient(135deg, var(--amber-200), var(--orange-50));
}

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-panel-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-panel-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--stone-900);
}

.category-panel-body p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

.category-panel-body span {
    width: fit-content;
    margin-top: 18px;
    color: var(--amber-700);
    font-weight: 900;
}

.filter-bar {
    margin-bottom: 26px;
    align-items: center;
}

.filter-bar select {
    max-width: 180px;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

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

.detail-main-copy h1 {
    margin-top: 14px;
    font-size: clamp(34px, 5vw, 60px);
}

.detail-one-line {
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.8;
    max-width: 820px;
}

.detail-meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 22px 0;
    list-style: none;
}

.detail-meta-list li {
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
}

.detail-meta-list span {
    display: block;
    color: var(--stone-600);
    font-size: 12px;
}

.detail-meta-list strong {
    display: block;
    margin-top: 6px;
    color: var(--amber-900);
    font-size: 15px;
}

.player-section {
    padding: 40px 0 20px;
    background: linear-gradient(180deg, var(--stone-900), #2f1d12);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 5px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    font-size: 34px;
}

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

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: var(--amber-50);
    text-align: center;
    font-size: 14px;
    pointer-events: none;
}

.detail-content-section {
    background: var(--white);
}

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

.detail-copy,
.detail-side-card {
    border-radius: 24px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.detail-copy-block + .detail-copy-block {
    margin-top: 28px;
}

.detail-copy h2,
.detail-side-card h2 {
    font-size: 26px;
}

.detail-copy p {
    color: var(--stone-700);
    line-height: 1.9;
    font-size: 17px;
}

.detail-side-card dl {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.detail-side-card dt {
    color: var(--stone-600);
    font-size: 13px;
}

.detail-side-card dd {
    margin: -6px 0 10px;
    color: var(--stone-900);
    font-weight: 800;
}

.detail-side-card a {
    color: var(--amber-700);
}

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

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-800));
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 0.8fr 0.8fr;
    gap: 36px;
    padding: 48px 0 34px;
}

.footer-brand {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 14px;
}

.site-footer p {
    color: var(--amber-100);
    line-height: 1.8;
    margin: 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--amber-100);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: var(--amber-100);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.22);
    padding: 18px 16px;
    text-align: center;
    color: var(--amber-200);
}

.is-filtered-out {
    display: none;
}

@media (max-width: 1100px) {
    .movie-grid,
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr 300px;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero-stage {
        min-height: 760px;
    }

    .hero-slide,
    .detail-layout,
    .detail-content-grid,
    .category-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 26px;
    }

    .hero-poster {
        width: min(280px, 80%);
        margin: 0 auto;
    }

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

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

    .filter-bar,
    .hero-search,
    .search-page-form {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }
}

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

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero-section {
        padding-top: 16px;
    }

    .hero-stage {
        min-height: 720px;
    }

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

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

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

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