/* ===== Tokens ===== */
:root {
    --primary: #f57272;
    --primary-dark: #c48f0a;
    --primary-soft: #ffd666;
    --bg-card: rgba(34, 34, 34, .72);
    --text-main: #fff;
    --text-muted: rgba(255, 255, 255, .82);
    --border: rgba(255, 255, 255, .12);
    --shadow: 0 18px 45px rgba(0, 0, 0, .35);
    --radius: 18px;
    --container: 1140px;
    --gap: 14px;
    --card-w: 148px;
    --pad-x: 32px;
}

@media(max-width:992px) {
    :root {
        --pad-x: 22px
    }
}

@media(max-width:576px) {
    :root {
        --pad-x: 16px;
        --card-w: 132px
    }
}

@media(max-width:360px) {
    :root {
        --pad-x: 12px;
        --card-w: 120px
    }
}

/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: #0b0b0b url(./background.jpg) no-repeat center top;
    background-size: cover;
}

@media(min-width:993px) and (hover:hover) {
    html {
        background-attachment: fixed
    }
}

body {
    font-family: "Work Sans", Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-main);
    line-height: 1.65;
    padding: 32px 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22));
    overflow-wrap: break-word;
}

body.menu-open {
    overflow: hidden
}

a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none
}

a:hover,
a:focus {
    color: var(--primary-soft);
    text-decoration: underline
}

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

button {
    font: inherit;
    -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--primary);
    color: #111;
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 2000
}

.skip-link:focus {
    left: 12px
}

.site-wrapper {
    width: min(100%, var(--container));
    margin: 0 auto;
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .site-wrapper {
        background: rgba(24, 24, 24, .94)
    }
}

/* ===== Header / nav ===== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px var(--pad-x);
    border-bottom: 1px solid var(--border)
}

.logo {
    display: flex;
    align-items: center;
    min-width: 100px
}

.logo img {
    width: 150px;
    margin: 0
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 28px;
    align-items: center;
    justify-content: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 30px)
}

.nav-menu a {
    color: var(--text-main);
    font-size: 15px;
    white-space: nowrap
}

.nav-menu a:hover {
    color: var(--primary);
    text-decoration: none
}

.hero {
    padding: clamp(24px, 4vw, 34px) var(--pad-x) 18px;
    text-align: center
}

.hero h1 {
    font-family: "Oswald", Arial, sans-serif;
    color: var(--primary);
    font-size: clamp(28px, 5.5vw, 42px);
    line-height: 1.15;
    margin-bottom: 12px;
    text-wrap: balance;
    animation: titleGlowPulse 2.8s ease-in-out infinite alternate;
}

.hero .intro {
    max-width: 820px;
    margin: 0 auto 18px;
    color: var(--text-muted);
    font-size: clamp(15px, 2vw, 19px)
}

.trust-bar {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0
}

.trust-bar li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--border);
    border-radius: 999px
}

.trust-bar i {
    color: var(--primary)
}

main {
    padding: 0 var(--pad-x) 34px
}

/* ===== Search ===== */
.search-box {
    background: rgba(42, 42, 42, .95);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 22px auto;
    max-width: 800px;
    transition: border-color .3s, box-shadow .3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 14px rgba(233, 179, 42, .3)
}

.filter-btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    padding: 9px 13px;
    font-size: 13px;
    white-space: nowrap
}

.search-input {
    background: transparent;
    border: 0;
    color: var(--text-main);
    text-align: center;
    flex: 1;
    outline: 0;
    font-size: 16px;
    min-width: 0;
    height: 42px
}

.search-input::placeholder {
    color: rgba(255, 255, 255, .62)
}

.search-submit {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #111;
    cursor: pointer;
    font-size: 17px;
    transition: background .2s, transform .2s
}

.search-submit:hover {
    background: var(--primary-dark)
}

.genre-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 6px;
    max-width: 800px
}

.genre-chips a {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-main);
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    transition: background .25s, color .25s, transform .25s
}

.btn-primary {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 8px auto 30px;
    padding: 15px 34px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: var(--primary);
    color: #111;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 22px rgba(233, 179, 42, .28);
    transition: background .25s, transform .25s, box-shadow .25s;
}

/* ===== Movie row ===== */
.movies-row-section {
    margin: 0 0 28px
}

.movies-row-title {
    font-family: "Oswald", Arial, sans-serif;
    color: var(--primary);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: .5px;
    text-align: center
}

.row-wrap {
    position: relative;
    margin: 0 auto
}

.movies-row {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    padding: 10px 4px;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(146, 185, 227, .4) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
}

.movies-row::-webkit-scrollbar {
    height: 5px
}

.movies-row::-webkit-scrollbar-thumb {
    background: rgba(146, 185, 227, .4);
    border-radius: 99px
}

@media(min-width:800px) {
    .row-wrap {
        max-width: calc(6*var(--card-w) + 5*var(--gap))
    }
}

.mc {
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    text-decoration: none;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: 0;
    transform: translateY(25px) scale(.96);
    filter: blur(4px);
    animation: cinematicFadeIn .7s cubic-bezier(.16, 1, .3, 1) forwards;
    transition: transform .4s cubic-bezier(.25, 1, .5, 1), box-shadow .4s ease, filter .4s ease;
}

.mc img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block
}

.mc::before {
    content: '\F52A';
    font-family: "bootstrap-icons" !important;
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 15%, rgba(0, 0, 0, .2) 100%);
    opacity: 0;
    transform: scale(.7);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.mc .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: .5px;
    line-height: 1.4
}

.mc .badge.hd {
    background: #f5c518;
    color: #1a1000
}

.mc .badge.cam {
    background: #e05c1a;
    color: #fff
}

.mc .badge.ts {
    background: #9b59b6;
    color: #fff
}

.mc .mtitle {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .92) 55%);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.row-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15, 15, 15, .85);
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .25s, color .25s;
}

.row-nav.prev {
    left: -20px
}

.row-nav.next {
    right: -20px
}

@media(min-width:1000px) and (hover:hover) {
    .row-nav {
        display: flex
    }
}

/* ===== Hover only on devices that really hover ===== */
@media(hover:hover) {
    .genre-chips a:hover {
        background: var(--primary);
        color: #111;
        border-color: var(--primary);
        text-decoration: none;
        transform: translateY(-2px)
    }

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(233, 179, 42, .35)
    }

    .search-submit:hover {
        transform: translateY(-1px)
    }

    .row-nav:hover {
        background: var(--primary);
        color: #111
    }

    .mc:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 18px 36px rgba(233, 179, 42, .25), 0 0 0 2px var(--primary);
        filter: brightness(1.08)
    }

    .mc:hover::before {
        opacity: 1;
        transform: scale(1)
    }
}

.mc:active {
    transform: scale(.97)
}

/* ===== Article content (MB / TB) ===== */
article {
    overflow-wrap: anywhere
}

.content-section {
    margin: 28px 0;
    text-align: left
}

.banner {
    width: 100%;
    border-radius: 16px;
    margin: 28px 0;
    border: 1px solid var(--border)
}

.content-section img {
    margin-left: auto;
    margin-right: auto
}

h2 {
    color: var(--primary);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.25;
    margin: 30px 0 14px;
    text-align: center
}

.content-section h2 {
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(233, 179, 42, .35)
}

h3 {
    font-size: clamp(18px, 2.3vw, 24px);
    margin: 22px 0 10px
}

p {
    margin: 10px 0;
    color: var(--text-muted)
}

.content-section p {
    font-size: clamp(16px, 1.6vw, 17px);
    line-height: 1.8
}

.content-section a {
    text-decoration: underline;
    text-underline-offset: 3px
}

strong {
    color: var(--primary)
}

ul,
ol {
    padding-left: 26px;
    margin: 14px 0
}

li {
    margin: 9px 0;
    color: var(--text-muted)
}

blockquote {
    background: rgba(42, 42, 42, .9);
    padding: 16px 20px;
    margin: 22px 0;
    border-left: 4px solid var(--primary);
    font-style: italic;
    border-radius: 12px;
    color: var(--text-muted)
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 26px 0;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(233, 179, 42, .22);
    background: rgba(15, 15, 15, .55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 12px 30px rgba(0, 0, 0, .35);
}

.table-wrap::-webkit-scrollbar {
    height: 7px
}

.table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .05);
    border-radius: 999px
}

.table-wrap::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px
}

table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    white-space: nowrap;
    background: rgba(255, 255, 255, .02)
}

thead {
    background: var(--primary)
}

th {
    color: #111;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 16px 18px;
    text-align: left
}

td {
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .88)
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .025)
}

td:first-child {
    font-weight: 700;
    color: var(--text-main)
}

td:nth-child(2) {
    color: var(--primary);
    font-weight: 700
}

@media(hover:hover) {
    tbody tr {
        transition: background .25s
    }

    tbody tr:hover {
        background: rgba(233, 179, 42, .08)
    }
}

footer {
    text-align: center;
    padding: 30px 20px;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border)
}

footer img {
    width: 120px;
    margin: 0 auto 14px
}

footer p {
    font-size: 14px;
    color: var(--text-muted)
}

.to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #111;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s;
    z-index: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

.to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: none
}

@keyframes cinematicFadeIn {
    to {
        opacity: 1;
        transform: none;
        filter: blur(0)
    }
}

@keyframes titleGlowPulse {
    from {
        text-shadow: 0 0 8px rgba(233, 179, 42, .3), 0 0 20px rgba(233, 179, 42, .1)
    }

    to {
        text-shadow: 0 0 18px rgba(233, 179, 42, .65), 0 0 35px rgba(233, 179, 42, .35)
    }
}

/* ===== Large screens ===== */
@media(min-width:1600px) {
    :root {
        --container: 1240px
    }
}

/* ===== Tablet & below ===== */
@media(max-width:992px) {
    body {
        padding: 0
    }

    .site-wrapper {
        border-radius: 0;
        border-left: 0;
        border-right: 0
    }
}

/* ===== Mobile nav ===== */
@media(max-width:768px) {
    .menu-toggle {
        display: flex;
        z-index: 1002
    }

    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1001;
        background: rgba(15, 15, 15, .98);
        align-items: center;
        justify-content: center;
        padding: 72px 24px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.active {
        display: flex
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 22px;
        text-align: center
    }

    .nav-menu a {
        font-size: 22px;
        display: inline-block;
        padding: 6px 12px
    }

    .logo img {
        width: 132px
    }

    .search-box {
        border-radius: 18px
    }

    .filter-btn {
        display: none
    }

    .search-input {
        text-align: left;
        padding-left: 12px
    }

    .mc .mtitle {
        font-size: 12.5px
    }
}

/* ===== Phones ===== */
@media(max-width:576px) {
    .top-header {
        padding: 12px 14px
    }

    .search-box {
        gap: 6px
    }

    .btn-primary {
        width: 100%;
        font-size: 14px;
        padding: 14px 18px
    }

    ul,
    ol {
        padding-left: 20px
    }

    .trust-bar {
        gap: 8px
    }

    .trust-bar li {
        font-size: 12.5px;
        padding: 6px 11px
    }

    .genre-chips {
        gap: 8px
    }

    .genre-chips a {
        padding: 8px 14px;
        font-size: 13px
    }

    .table-wrap {
        border-radius: 14px;
        padding: 6px
    }

    table {
        min-width: 480px;
        font-size: 14px
    }

    th,
    td {
        padding: 14px
    }

    .movies-row {
        margin-inline: calc(var(--pad-x) * -1);
        padding-inline: var(--pad-x);
        scroll-padding-inline: var(--pad-x)
    }
}

@media(max-width:360px) {
    .logo img {
        width: 112px
    }

    .trust-bar li:nth-child(n+3) {
        display: none
    }
}

/* ===== Landscape phones (short viewports) ===== */
@media(max-height:480px) and (orientation:landscape) {
    .nav-menu {
        align-items: flex-start;
        padding: 64px 24px 24px
    }

    .nav-menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 22px
    }
}

/* ===== Accessibility / print ===== */
@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }

    .mc {
        opacity: 1;
        transform: none;
        filter: none
    }
}

@media(prefers-contrast:more) {
    :root {
        --text-muted: #fff;
        --border: rgba(255, 255, 255, .4)
    }
}

@media print {

    html,
    body {
        background: #fff !important;
        color: #000
    }

    .site-wrapper {
        background: none;
        border: 0;
        box-shadow: none
    }

    .nav-menu,
    .menu-toggle,
    .search-box,
    .genre-chips,
    .btn-primary,
    .movies-row-section,
    .to-top,
    .trust-bar {
        display: none !important
    }

    p,
    li {
        color: #000
    }
}