:root {
    --ink: #07090d;
    --ink-soft: #0d1118;
    --surface: #111720;
    --paper: #f4f1e8;
    --muted: #979da8;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #d8ff3e;
    --accent-warm: #ff654c;
    --display: 'Manrope', sans-serif;
    --body: 'DM Sans', sans-serif;
}

html { scroll-padding-top: 96px; }

body {
    font-family: var(--body);
    background: var(--ink);
    color: var(--paper);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #343b43; border-radius: 10px; }

header {
    height: 82px;
    padding: 0 clamp(1rem, 4vw, 4.5rem);
    background: rgba(7, 9, 13, .72);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: blur(24px);
}

.brand { display: flex; align-items: center; height: 100%; }
.logo {
    width: 148px;
    height: 68px;
    max-width: none;
    object-fit: contain;
    filter: none;
    transform: scale(1.55) !important;
}

.search-container {
    position: relative;
    flex: none;
    width: min(36vw, 460px);
    margin: 0 auto;
    padding: .72rem 1rem;
    gap: .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
    box-shadow: none;
}
.search-container:focus-within { border-color: rgba(216,255,62,.7); background: rgba(255,255,255,.075); box-shadow: 0 0 0 3px rgba(216,255,62,.09); }
.search-container input { font-family: var(--body); font-size: .9rem; }
.search-container input::placeholder { color: #8d939e; }
.search-icon { color: var(--accent); font-size: 1.45rem; line-height: 1; transform: rotate(-15deg); }
.search-container kbd { color: #777e88; border: 1px solid var(--line); border-radius: 4px; padding: .18rem .35rem; font: 600 .62rem var(--body); white-space: nowrap; }

.language-selector { gap: .25rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.language-btn {
    width: 38px; height: 30px; border: 0; border-radius: 999px; color: #8d939e;
    background: transparent; cursor: pointer; font: 700 .68rem var(--body); letter-spacing: .08em;
}
.language-btn.active { background: var(--paper); color: var(--ink); }

.search-results {
    position: fixed;
    inset: 82px clamp(1rem, 10vw, 10rem) auto;
    max-height: calc(100vh - 110px);
    padding: 1.25rem;
    background: rgba(12,16,23,.97);
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    backdrop-filter: blur(24px);
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

main { overflow: hidden; }
.hero {
    position: relative;
    min-height: min(810px, calc(100vh - 82px));
    padding: clamp(5rem, 9vw, 8.5rem) clamp(1.25rem, 7vw, 7.5rem) 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
    align-items: center;
    gap: clamp(2rem, 7vw, 8rem);
    text-align: left;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 74% 35%, rgba(255,101,76,.17), transparent 28%),
        radial-gradient(circle at 82% 80%, rgba(216,255,62,.1), transparent 25%),
        linear-gradient(125deg, #07090d 0%, #0b1017 58%, #11131b 100%);
}
.hero::before { content: 'CINEPIXEL'; position: absolute; top: 7%; right: -2%; font: 800 clamp(5rem, 15vw, 15rem)/1 var(--display); letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.045); white-space: nowrap; }
.hero-content { position: relative; z-index: 3; max-width: 810px; }
.hero-kicker, .section-heading p { color: var(--accent); text-transform: uppercase; letter-spacing: .19em; font-weight: 700; font-size: .69rem; }
.hero-kicker { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.7rem; }
.hero-kicker span { width: 34px; height: 1px; background: var(--accent); }
.hero h1 { max-width: 900px; font: 800 clamp(3.6rem, 7vw, 7.2rem)/.91 var(--display); letter-spacing: -.07em; text-wrap: balance; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-copy { max-width: 630px; margin: 2rem 0; color: #aeb4bd; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.cta-button, .ghost-button {
    min-height: 54px; padding: 0 1.35rem; display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
    border-radius: 5px; font: 700 .84rem var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
}
.cta-button { color: var(--ink); background: var(--accent); border: 1px solid var(--accent); box-shadow: none; }
.cta-button:hover { color: var(--ink); background: #e4ff75; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(216,255,62,.15); }
.cta-button span { font-size: 1.2rem; }
.ghost-button { color: var(--paper); background: transparent; border: 1px solid var(--line); }
.ghost-button:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.play-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: .55rem; }
.hero-stats { display: flex; gap: clamp(1rem, 3vw, 3.5rem); margin-top: clamp(2.4rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .75rem; }
.hero-stats strong { font: 800 1.45rem var(--display); color: var(--paper); }
.hero-stats span { max-width: 90px; color: #727985; font-size: .68rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; }

.hero-art { position: relative; z-index: 2; height: 550px; }
.poster { position: absolute; border-radius: 3px; background-position: center; background-size: cover; box-shadow: 0 35px 75px rgba(0,0,0,.65); }
.poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,7,10,.93)); }
.poster-back { width: 58%; height: 72%; top: 2%; right: 0; opacity: .45; transform: rotate(8deg); filter: saturate(.7); background-image: linear-gradient(145deg,#232a35,#0c1016); }
.poster-main { width: 72%; height: 88%; left: 4%; bottom: 0; overflow: hidden; transform: rotate(-3deg); background-image: linear-gradient(145deg,#27313e,#0d1117); }
.poster-main span { position: absolute; z-index: 2; left: 1.3rem; bottom: 1.3rem; padding: .45rem .7rem; color: var(--ink); background: var(--accent); font: 800 .64rem var(--body); letter-spacing: .1em; text-transform: uppercase; }
.hero-caption { position: absolute; right: -1rem; bottom: 7%; z-index: 4; display: flex; align-items: center; gap: .8rem; }
.hero-caption > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--ink); background: var(--accent-warm); font: 800 .75rem var(--display); }
.hero-caption p { color: #d6d7da; font-size: .67rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .14em; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { width: 38vw; height: 38vw; right: -12vw; top: 8%; }
.hero-orbit-two { width: 22vw; height: 22vw; right: 12vw; bottom: -12vw; }
.scroll-cue { position: absolute; left: 2rem; bottom: 2rem; display: flex; align-items: center; gap: .7rem; color: #6f7680; font-size: .65rem; text-transform: uppercase; letter-spacing: .16em; text-decoration: none; transform: rotate(-90deg); transform-origin: left center; }
.scroll-cue span { width: 36px; height: 1px; background: #6f7680; }

.categories-menu {
    position: sticky; top: 82px; z-index: 20; justify-content: flex-start; align-items: center;
    padding: 1rem clamp(1.25rem, 7vw, 7.5rem); gap: .5rem; background: rgba(9,12,17,.88); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(18px);
}
.filter-label { margin-right: 1rem; color: #686f79; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.category-btn { padding: .55rem .95rem; border: 1px solid transparent; border-radius: 999px; color: #9ea4ad; background: transparent; box-shadow: none; font: 600 .78rem var(--body); }
.category-btn:hover { color: var(--paper); background: rgba(255,255,255,.06); border-color: var(--line); transform: none; box-shadow: none; }
.category-btn.active { color: var(--ink); background: var(--paper); border-color: var(--paper); transform: none; box-shadow: none; }

.catalog-section { padding: clamp(4.5rem, 8vw, 8rem) 0 0; text-align: left; }
.catalog-section + .catalog-section { padding-top: clamp(5rem, 9vw, 9rem); }
.section-heading { margin: 0 clamp(1.25rem, 7vw, 7.5rem) 2.2rem; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 1.35rem; }
.section-heading p { margin-bottom: .65rem; }
.section-title { margin: 0; padding: 0; color: var(--paper); text-shadow: none; font: 700 clamp(2rem, 3.6vw, 3.6rem)/1 var(--display); letter-spacing: -.055em; text-align: left; }
.section-title::after { display: none; }
.section-number { color: #343a43; font: 700 clamp(2.5rem, 5vw, 5rem)/.8 var(--display); letter-spacing: -.08em; }

.catalog-container { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.7rem, 1.4vw, 1.25rem); padding: 0 clamp(1.25rem, 7vw, 7.5rem); margin: 0; }
.movie-card { min-width: 0; border: 0; border-radius: 3px; background: transparent; box-shadow: none; overflow: visible; cursor: pointer; }
.movie-card::before { display: none; }
.movie-card:hover { transform: none; border-color: transparent; box-shadow: none; }
.movie-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.movie-card .poster-wrap { position: relative; overflow: hidden; aspect-ratio: 2/3; border-radius: 3px; background: #121821; }
.movie-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.movie-card:hover img { transform: scale(1.045); filter: brightness(.62) saturate(.75); }
.card-index { position: absolute; z-index: 2; top: .7rem; left: .7rem; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(6,8,11,.78); border: 1px solid rgba(255,255,255,.2); color: #fff; font: 700 .64rem var(--body); backdrop-filter: blur(8px); }
.movie-card-content { padding-top: .85rem; }
.movie-card h3 { min-height: auto; padding: 0; color: #e8e6df; font-size: .91rem; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.movie-meta { display: flex; align-items: center; gap: .55rem; margin-top: .4rem; color: #737a85; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.movie-meta .rating { color: var(--accent); }
.movie-card-synopsis, .movie-card-button { display: none !important; }
.movie-card-overlay { inset: auto .7rem .7rem; padding: 0; display: flex; opacity: 0; background: transparent; border-radius: 0; transition: opacity .3s ease, transform .3s ease; transform: translateY(7px); }
.movie-card:hover .movie-card-overlay { opacity: 1; transform: translateY(0); }
.movie-card-title-overlay { display: none; }
.movie-card-overlay button, .movie-card button { width: 100%; min-width: 0; padding: .7rem; color: var(--ink); border-radius: 3px; background: var(--accent); box-shadow: none; font: 700 .72rem var(--body); }
.movie-card-overlay button:hover { background: #e5ff7b; transform: none; box-shadow: none; }
.load-more-btn { margin: 2.5rem auto 0; padding: .85rem 1.25rem; color: #b9bec6; border: 1px solid var(--line); border-radius: 4px; background: transparent; box-shadow: none; font: 600 .76rem var(--body); }
.load-more-btn:hover { color: var(--paper); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); transform: translateY(-2px); box-shadow: none; }

.testimonials { margin-top: clamp(6rem, 12vw, 12rem); padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 7.5rem); text-align: left; background: var(--accent); border: 0; color: var(--ink); }
.testimonials h2 { max-width: 700px; margin: 0 0 3rem; color: var(--ink); font: 800 clamp(2.5rem, 5vw, 5rem)/.96 var(--display); letter-spacing: -.065em; text-shadow: none; }
.testimonial-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 0; background: rgba(7,9,13,.22); }
.testimonial-card { padding: clamp(1.4rem, 3vw, 2.6rem); border: 0; border-radius: 0; background: var(--accent); box-shadow: none; }
.testimonial-card:hover { transform: none; border-color: transparent; background: #d1f63b; box-shadow: none; }
.testimonial-card p { min-height: 110px; color: #222820; font-size: 1rem; line-height: 1.65; font-style: normal; }
.testimonial-card h3 { color: var(--ink); font-size: .73rem; text-transform: uppercase; letter-spacing: .13em; }
.testimonials > .cta-button { margin-top: 2rem; color: var(--paper); background: var(--ink); border-color: var(--ink); }

.modal { z-index: 2000; background: rgba(3,4,6,.87); backdrop-filter: blur(16px); }
.modal-content { max-width: 860px; display: grid; grid-template-columns: minmax(230px, .7fr) 1fr; grid-template-rows: auto 1fr auto; gap: 0 2rem; padding: 1.2rem; text-align: left; border: 1px solid var(--line); border-radius: 6px; background: #11161e; box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.movie-poster { grid-row: 1 / 4; height: min(68vh, 540px); max-height: none; margin: 0; object-fit: cover; border-radius: 3px; box-shadow: none; }
.movie-title { align-self: end; margin: 1.5rem 0 .7rem; color: var(--paper); font: 800 clamp(1.8rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: -.05em; white-space: normal; }
.movie-overview { max-height: 220px; margin: 0; color: #a5abb4; line-height: 1.7; }
.modal-buttons { align-self: end; padding: 1rem 0 0; }
.watch-btn,.close-btn,.support-btn { border-radius: 3px; font: 700 .78rem var(--body); }
.watch-btn { color: var(--ink); background: var(--accent); border-color: var(--accent); box-shadow: none; }
.close-btn { color: #adb3bb; border: 1px solid var(--line); }

footer { padding: 2.5rem clamp(1.25rem, 7vw, 7.5rem); color: #666e79; background: var(--ink); border-top: 1px solid var(--line); box-shadow: none; text-align: left; font-size: .76rem; }

@media (max-width: 1180px) {
    .catalog-container { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .hero { grid-template-columns: 1.1fr .7fr; }
    .hero-art { height: 440px; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 70px; }
    header { height: 70px; padding: 0 1rem; }
    .brand { flex: 0 0 88px; min-width: 0; overflow: hidden; }
    .logo { width: 88px; height: 58px; transform: scale(1.45) !important; }
    .search-container { width: auto; min-width: 0; flex: 1; margin: 0 0 0 .55rem; padding: .62rem .75rem; }
    .search-container kbd, .language-selector { display: none; }
    .search-results { inset: 70px .75rem auto; grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; display: block; max-width: 100%; padding: 5.5rem 1.25rem 4rem; overflow: hidden; }
    .hero::before { top: 3rem; right: -7rem; font-size: 7rem; }
    .hero h1 { max-width: 100%; font-size: clamp(2.8rem, 13vw, 4rem); line-height: .95; letter-spacing: -.065em; }
    .hero-copy { margin: 1.6rem 0; font-size: .98rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
    .hero-actions .cta-button, .hero-actions .ghost-button { min-width: 0; padding: 0 .7rem; gap: .55rem; font-size: .72rem; white-space: nowrap; }
    .hero-stats { justify-content: space-between; gap: .75rem; }
    .hero-stats div { display: block; }
    .hero-stats strong, .hero-stats span { display: block; }
    .hero-stats span { margin-top: .25rem; font-size: .57rem; }
    .hero-art, .scroll-cue { display: none; }
    .categories-menu { top: 70px; padding: .8rem 1rem; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
    .filter-label { display: none; }
    .category-btn { flex: 0 0 auto; padding: .5rem .9rem; }
    .catalog-section, .catalog-section + .catalog-section { padding-top: 4.8rem; }
    .section-heading { margin: 0 1rem 1.5rem; padding-bottom: 1rem; }
    .section-title { font-size: 2rem; }
    .section-number { font-size: 2.6rem; }
    .catalog-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .75rem; padding: 0 1rem; }
    .movie-card h3 { font-size: .82rem; }
    .movie-card-overlay { display: none !important; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial-card p { min-height: 0; }
    .modal-content { display: flex; max-height: 92vh; padding: .8rem; overflow-y: auto; }
    .movie-poster { height: 45vh; width: 100%; flex: 0 0 auto; }
    .movie-title { margin: 1rem 0 .5rem; }
    .movie-overview { overflow: visible; max-height: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content { animation: reveal-up .8s both; }
    .hero-art { animation: reveal-art 1s .15s both; }
    @keyframes reveal-up { from { opacity: 0; transform: translateY(28px); } }
    @keyframes reveal-art { from { opacity: 0; transform: translateY(35px) rotate(2deg); } }
}
