:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --primary: #f97316;
    --primary-dark: #c2410c;
    --accent: #f59e0b;
    --accent-dark: #92400e;
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 22px 55px rgba(146, 64, 14, 0.15);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 5%, rgba(251, 146, 60, 0.22), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(180deg, var(--bg) 0%, #ffffff 42%, #fff7ed 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

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

img.image-off {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.94));
    border-bottom: 1px solid rgba(251, 146, 60, 0.24);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px rgba(146, 64, 14, 0.08);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

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

.nav-links a {
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 700;
    color: #4b5563;
    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 146, 60, 0.13);
}

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

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

.hero-carousel {
    position: relative;
    min-height: 640px;
    margin: 32px 0 48px;
    overflow: hidden;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.94), rgba(234, 88, 12, 0.86)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.56), transparent 34%);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    align-items: stretch;
    gap: 30px;
    padding: 62px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    align-self: center;
    color: #ffffff;
}

.eyebrow,
.section-heading p {
    margin: 0 0 12px;
    color: #ffedd5;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content h2 {
    margin: 16px 0 10px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

.hero-content p.lead,
.detail-copy p.lead {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

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

.primary-button {
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.22);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-3px);
}

.hero-media {
    position: relative;
    min-height: 450px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.28), transparent 26%),
        linear-gradient(135deg, rgba(255, 237, 213, 0.33), rgba(251, 146, 60, 0.16));
    box-shadow: 0 28px 70px rgba(67, 20, 7, 0.34);
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
}

.hero-media::after,
.poster-shell::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(67, 20, 7, 0.68));
    pointer-events: none;
}

.hero-card-strip {
    position: absolute;
    left: 62px;
    right: 62px;
    bottom: 34px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hero-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-mini-card strong {
    display: block;
    line-height: 1.25;
}

.hero-mini-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.hero-dots {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dots button.is-active {
    width: 32px;
    background: #ffffff;
}

.section-block {
    margin: 54px 0;
}

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

.section-heading p {
    color: var(--primary);
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4.8vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #7c2d12;
}

.section-heading .section-intro {
    max-width: 760px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 17px;
}

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

.category-pill,
.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    border: 1px solid rgba(251, 146, 60, 0.28);
    box-shadow: 0 18px 45px rgba(146, 64, 14, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-pill:hover,
.category-tile:hover,
.movie-card:hover,
.compact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(146, 64, 14, 0.18);
}

.category-pill strong,
.category-tile strong {
    display: block;
    color: var(--primary-dark);
    font-size: 20px;
}

.category-pill span,
.category-tile span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
    transition: 0.25s ease;
}

.poster-link,
.poster-shell {
    display: block;
}

.poster-shell {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 10%, rgba(253, 186, 116, 0.58), transparent 24%),
        linear-gradient(135deg, #7c2d12, #f97316 55%, #facc15);
}

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

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

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    min-width: 44px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(124, 45, 18, 0.74);
    font-weight: 900;
    text-align: center;
    backdrop-filter: blur(10px);
}

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

.movie-meta,
.compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta span,
.compact-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.12);
}

.movie-card h3,
.compact-card h3 {
    margin: 10px 0 8px;
    color: #7c2d12;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card p,
.compact-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

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

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 74px 90px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 14px 35px rgba(146, 64, 14, 0.08);
    transition: 0.25s ease;
}

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

.compact-cover {
    display: block;
    width: 90px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c2d12, #f97316);
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin: 22px 0 26px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(251, 146, 60, 0.23);
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: #fff7ed;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 34px;
    align-items: center;
    margin: 34px 0 44px;
    padding: 38px;
    border-radius: 36px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 8%, rgba(251, 191, 36, 0.35), transparent 30%),
        linear-gradient(135deg, #7c2d12, #ea580c);
    box-shadow: var(--shadow);
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #7c2d12, #f97316, #facc15);
    box-shadow: 0 26px 60px rgba(67, 20, 7, 0.35);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.player-section {
    margin: 48px 0;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.25), rgba(17, 24, 39, 0.78)),
        radial-gradient(circle at 50% 38%, rgba(249, 115, 22, 0.35), transparent 24%);
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.play-pulse {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 12px rgba(249, 115, 22, 0.18);
    font-size: 32px;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay small {
    color: rgba(255, 255, 255, 0.76);
}

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

.content-card,
.info-table {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
}

.content-card h2 {
    margin: 0 0 12px;
    color: #7c2d12;
}

.content-card p {
    margin: 0;
    color: #4b5563;
}

.info-table {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

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

.info-table span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.info-table strong {
    display: block;
    margin-top: 5px;
    color: #7c2d12;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(135deg, #111827, #431407);
    color: #ffffff;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
}

.footer-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
}

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

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

.hide-by-filter {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-slide,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 320px;
    }

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

    .small-grid,
    .detail-content,
    .info-table,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav {
        min-height: 68px;
    }

    .brand small {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        padding: 16px;
        border-radius: 22px;
        background: #fff7ed;
        box-shadow: var(--shadow);
    }

    body.nav-open .nav-links {
        display: grid;
    }

    .nav-links a {
        display: block;
    }

    main {
        width: min(100% - 22px, 1180px);
    }

    .hero-carousel {
        min-height: 760px;
        border-radius: 28px;
    }

    .hero-slide {
        padding: 30px;
    }

    .hero-card-strip {
        left: 22px;
        right: 22px;
        bottom: 22px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-dots {
        right: 24px;
        top: 24px;
        bottom: auto;
    }

    .movie-grid,
    .category-strip,
    .category-grid,
    .filter-panel,
    .small-grid,
    .detail-content,
    .info-table,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 50px 76px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 16px;
    }

    .compact-cover {
        width: 76px;
    }

    .detail-hero {
        padding: 24px;
        border-radius: 28px;
    }
}
