:root {
    --volcanic-950: #09090b;
    --volcanic-900: #18181b;
    --volcanic-800: #27272a;
    --volcanic-700: #3f3f46;
    --volcanic-600: #52525b;
    --volcanic-200: #e4e4e7;
    --volcanic-100: #f4f4f5;
    --lava-700: #c2410c;
    --lava-600: #ea580c;
    --lava-500: #f97316;
    --ember-500: #f59e0b;
    --surface: #ffffff;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--volcanic-900);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f7f7f8 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(244, 244, 245, 0.75);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 15, 18, 0.05);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.35);
}

.logo-text {
    font-size: clamp(18px, 3vw, 28px);
    background: linear-gradient(90deg, var(--lava-600), var(--lava-500), #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    color: var(--volcanic-700);
    font-weight: 700;
    padding: 8px 0;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--lava-600);
    transition: transform 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff1e7;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--lava-700);
    border-radius: 99px;
}

.site-main {
    padding-top: 72px;
}

.hero-slider {
    position: relative;
    height: min(90vh, 860px);
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: var(--volcanic-950);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    align-content: end;
    padding-bottom: clamp(58px, 10vw, 112px);
}

.hero-copy {
    max-width: 820px;
    animation: fadeIn 0.55s ease both;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(234, 88, 12, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.35);
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
    text-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
}

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

.hero-meta span,
.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 18px 38px rgba(234, 88, 12, 0.34);
}

.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.movie-card:hover,
.category-card:hover,
.compact-card:hover {
    transform: translateY(-4px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

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

.hero-prev {
    left: 22px;
    transform: translateY(-50%);
}

.hero-next {
    right: 22px;
    transform: translateY(-50%);
}

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

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

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

.section-block {
    padding: clamp(54px, 7vw, 96px) 0;
}

.section-block.soft {
    background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--volcanic-900);
    font-size: clamp(28px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-head p,
.page-title p,
.detail-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--volcanic-600);
    line-height: 1.8;
}

.text-gradient-lava {
    background: linear-gradient(90deg, var(--lava-600), var(--lava-500), #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.category-pill {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 22px;
    padding: 16px;
    color: var(--volcanic-900);
    background: #fff;
    border: 1px solid #ffedd5;
    box-shadow: 0 14px 35px rgba(234, 88, 12, 0.09);
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.16);
}

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 15px 38px rgba(24, 24, 27, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--volcanic-100);
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 124px 1fr;
}

.movie-card.horizontal .poster-wrap {
    aspect-ratio: auto;
    min-height: 164px;
}

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

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

.poster-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease;
}

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

.poster-layer span {
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--lava-600);
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.3);
}

.rank-badge,
.rank-number {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    min-width: 38px;
    height: 38px;
    border-radius: 14px;
}

.rank-number {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 12px;
}

.movie-info {
    display: block;
    padding: 16px;
}

.movie-info strong {
    display: -webkit-box;
    min-height: 48px;
    margin-bottom: 8px;
    overflow: hidden;
    color: var(--volcanic-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info em {
    display: -webkit-box;
    min-height: 44px;
    margin-bottom: 12px;
    overflow: hidden;
    color: var(--volcanic-600);
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info .movie-meta span {
    color: var(--volcanic-600);
    background: var(--volcanic-100);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 9px;
    color: var(--lava-700);
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.compact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 120px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 38px rgba(24, 24, 27, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card img {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.compact-card span {
    display: grid;
    gap: 8px;
}

.compact-card strong {
    color: var(--volcanic-900);
    line-height: 1.35;
}

.compact-card em {
    color: var(--volcanic-600);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.38), transparent 32%),
        linear-gradient(135deg, var(--volcanic-800), var(--volcanic-950));
    padding: clamp(72px, 10vw, 126px) 0 clamp(46px, 8vw, 82px);
}

.page-title {
    max-width: 920px;
}

.page-title h1,
.page-title p {
    color: #fff;
}

.page-kicker {
    color: #fed7aa;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 26px;
    padding: 26px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(24, 24, 27, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -18% -46% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 68%);
}

.category-card h2 {
    position: relative;
    margin: 0 0 12px;
    font-size: 28px;
}

.category-card p {
    position: relative;
    margin: 0 0 22px;
    color: var(--volcanic-600);
    line-height: 1.75;
}

.category-card span {
    position: relative;
    display: inline-flex;
    color: var(--lava-700);
    font-weight: 900;
}

.listing-tools {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 40px rgba(24, 24, 27, 0.08);
    backdrop-filter: blur(14px);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    height: 52px;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 0 50px 0 18px;
    color: var(--volcanic-900);
    outline: none;
    background: #fff;
}

.search-box input:focus {
    border-color: var(--lava-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.search-box span {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lava-600);
    font-size: 22px;
    font-weight: 900;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: var(--volcanic-700);
    background: #fff7ed;
    cursor: pointer;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #fff;
    background: var(--lava-600);
    transform: translateY(-2px);
}

.no-results {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--volcanic-600);
    background: #fff;
    border-radius: 20px;
}

.no-results.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--lava-600), var(--ember-500));
    box-shadow: 0 22px 55px rgba(234, 88, 12, 0.42);
    font-size: 34px;
}

.player-start strong {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff;
    text-align: center;
    background: rgba(24, 24, 27, 0.84);
}

.player-message.is-visible {
    display: block;
}

.detail-panel,
.related-panel {
    margin-top: 26px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(24, 24, 27, 0.08);
}

.detail-title h1 {
    margin-top: 0;
}

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

.detail-meta span {
    color: var(--volcanic-700);
    background: #fff7ed;
}

.detail-content h2,
.related-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

.review-box {
    margin-top: 24px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

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

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

.detail-tags span {
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--lava-700);
    background: #ffedd5;
    font-weight: 800;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 46px;
    height: 46px;
    display: none;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--lava-600);
    box-shadow: 0 14px 34px rgba(234, 88, 12, 0.3);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

.site-footer {
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.25), transparent 28%),
        linear-gradient(135deg, var(--volcanic-800), var(--volcanic-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 54px 0 34px;
}

.footer-grid p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-grid a:not(.footer-logo) {
    display: block;
    margin: 9px 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid a:hover {
    color: #fed7aa;
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .side-sticky {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 24px 55px rgba(24, 24, 27, 0.16);
    }

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

    .nav-link {
        padding: 14px 8px;
    }

    .hero-slider {
        min-height: 560px;
        height: 76vh;
    }

    .hero-control {
        display: none;
    }

    .section-head {
        display: block;
    }

    .movie-grid,
    .category-overview,
    .compact-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 540px) {
    .container-custom {
        width: min(100% - 22px, 1280px);
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info strong {
        min-height: 42px;
        font-size: 15px;
    }

    .movie-info em {
        display: none;
    }

    .movie-meta {
        gap: 6px;
    }

    .movie-meta span {
        font-size: 11px;
        padding: 4px 7px;
    }

    .tag-row {
        display: none;
    }

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

    .movie-card.horizontal {
        grid-template-columns: 104px 1fr;
    }

    .movie-card.horizontal .poster-wrap {
        min-height: 148px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
