:root {
  color-scheme: dark;
  --bg: #101114;
  --surface: #18191e;
  --muted: #8c8d96;
  --text: #f5f4f0;
  --accent: #f0444d;
  --line: rgba(255, 255, 255, .1);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 78px; padding: 0 6.1%; display: flex; align-items: center; gap: 68px;
  position: absolute; inset: 0 0 auto; z-index: 3; border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(10,11,13,.4), transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 24px/1 "Manrope", sans-serif; letter-spacing: -1.5px; }
.brand-period { color: var(--accent); }
.brand-mark { width: 23px; height: 22px; display: flex; gap: 2px; align-items: end; transform: skew(-14deg); }
.brand-mark span { width: 6px; border-radius: 2px 2px 0 0; background: var(--accent); }
.brand-mark span:nth-child(1) { height: 13px; opacity: .68; }
.brand-mark span:nth-child(2) { height: 20px; }
.brand-mark span:nth-child(3) { height: 16px; opacity: .82; }
.main-nav { display: flex; gap: 33px; height: 100%; align-items: center; }
.nav-link { position: relative; border: 0; padding: 8px 0; background: none; color: #b7b7bd; font-size: 13px; cursor: pointer; transition: color .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { position: absolute; content: ""; height: 2px; width: 17px; background: var(--accent); bottom: -6px; left: 0; }
.nav-list-button { display: flex; align-items: center; gap: 7px; }
.list-count { min-width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%; color: #161812; background: var(--accent); font-size: 10px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 21px; margin-left: auto; }
.search-box { width: 210px; height: 36px; border: 1px solid rgba(255,255,255,.17); border-radius: 4px; display: flex; align-items: center; gap: 9px; padding: 0 10px; background: rgba(10,10,12,.24); }
.search-box svg { width: 15px; fill: none; stroke: #aaaab0; stroke-width: 1.7; flex: none; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #aaaab0; }
.search-box kbd { border: 1px solid rgba(255,255,255,.2); border-radius: 3px; padding: 0px 5px 1px; color: #aaaab0; font-size: 10px; }
.avatar { width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: #d6bdad; color: #30241e; font-weight: 700; cursor: pointer; }

.hero { position: relative; min-height: 650px; height: min(760px, 85vh); display: flex; align-items: center; overflow: hidden; background: #16191d; }
.hero-image { position: absolute; inset: 0; background-image: url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=2200&q=90"); background-position: center 45%; background-size: cover; transform: scale(1.015); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,15,.98) 0%, rgba(11,12,15,.87) 29%, rgba(11,12,15,.25) 69%, rgba(11,12,15,.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 26%, rgba(9,10,13,.24) 100%); }
.hero-content { position: relative; z-index: 1; width: min(565px, 52%); margin: 65px 0 0 10.1%; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.45px; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { display: inline-block; height: 1px; width: 24px; background: var(--accent); }
.eyebrow-dot { color: #777980; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 25px 0 17px; font: 700 clamp(52px, 6vw, 82px)/.99 "Manrope", sans-serif; letter-spacing: -5.3px; }
h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 445px; margin-bottom: 22px; color: #c2c2c5; font-size: 13px; line-height: 1.8; }
.hero-meta { display: flex; align-items: center; gap: 15px; color: #d3d3d4; font-size: 11px; }
.hero-meta > span + span:not(.meta-pill) { position: relative; }
.hero-meta > span + span:not(.meta-pill)::before { position: absolute; content: ""; top: 5px; left: -9px; height: 3px; width: 3px; background: #85858b; border-radius: 50%; }
.rating { color: var(--accent); font-weight: 700; }
.rating span { margin-right: 4px; }
.meta-pill { border: 1px solid rgba(255,255,255,.25); border-radius: 2px; padding: 4px 6px; font-size: 8px; letter-spacing: .8px; }
.hero-actions, .dialog-actions { display: flex; gap: 10px; margin-top: 26px; }
.button { height: 43px; padding: 0 17px; border: 1px solid transparent; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #171913; background: var(--accent); }
.button-primary:hover { background: #e4ff80; }
.button-primary svg { width: 15px; fill: currentColor; }
.button-secondary { border-color: rgba(255,255,255,.3); background: rgba(22,23,26,.36); }
.button-secondary:hover { border-color: var(--accent); }
.plus-icon { font-size: 19px; font-weight: 400; line-height: .7; }
.hero-pagination { display: flex; align-items: center; gap: 7px; margin-top: 57px; }
.hero-pagination > span:not(.pagination-label) { width: 16px; height: 2px; background: rgba(255,255,255,.32); }
.hero-pagination .pagination-active { width: 36px !important; background: var(--accent) !important; }
.pagination-label { margin-left: 9px; font-size: 10px; color: #e8e8e8; }
.pagination-label i { margin: 0 4px; color: #888; font-style: normal; }
.hero-caption { position: absolute; bottom: 60px; right: 6%; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.7); font-size: 8px; letter-spacing: 1.3px; }
.caption-line { width: 24px; height: 1px; background: var(--accent); }
.sound-toggle { position: absolute; right: 6%; bottom: 105px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; background: rgba(0,0,0,.2); cursor: pointer; }
.sound-toggle span { display: block; width: 2px; height: 6px; background: white; }
.sound-toggle span:nth-child(2) { height: 11px; }
.sound-toggle span:nth-child(3) { height: 8px; }
.sound-toggle.is-on span { background: var(--accent); animation: sound-wave .55s infinite alternate; }
.sound-toggle.is-on span:nth-child(2) { animation-delay: .2s; }
.sound-toggle.is-on span:nth-child(3) { animation-delay: .35s; }
@keyframes sound-wave { to { height: 13px; } }

.section-wrap { width: min(1280px, 87.8%); margin: 0 auto; }
.discovery { padding-top: 67px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; }
.section-kicker { margin-bottom: 11px; font-size: 9px; }
h2 { margin-bottom: 0; font: 700 33px/1.2 "Manrope", sans-serif; letter-spacing: -1.45px; }
.section-heading h2 span { color: var(--accent); }
.text-link { display: inline-flex; gap: 9px; align-items: center; padding-bottom: 6px; color: #c7c7ca; font-size: 11px; transition: color .2s; }
.text-link:hover { color: var(--accent); }
.text-link span { color: var(--accent); font-size: 15px; }
.filter-row { display: flex; align-items: center; gap: 9px; margin: 29px 0 23px; }
.filter-chip { height: 31px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: transparent; color: #a7a7ad; font-size: 10px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filter-chip:hover { border-color: rgba(215,243,106,.55); color: white; }
.filter-chip.is-selected { border-color: var(--accent); color: #171913; background: var(--accent); font-weight: 700; }
.filter-spark { margin-left: 4px; }
.filter-note { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #8c8d94; font-size: 8px; letter-spacing: 1px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(215,243,106,.7); }
.movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 17px; }
.movie-card { min-width: 0; }
.poster { position: relative; width: 100%; aspect-ratio: 2 / 2.68; display: block; overflow: hidden; padding: 0; border: 0; border-radius: 4px; background: #282930; text-align: left; cursor: pointer; }
.poster img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.movie-card:hover .poster img { transform: scale(1.07); }
.poster-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,12,.07) 0%, rgba(8,9,12,.03) 34%, rgba(8,9,12,.82) 100%); }
.poster-tag { position: absolute; left: 10px; top: 10px; padding: 5px 7px; border-radius: 2px; background: var(--accent); color: #171913; font-size: 7px; font-weight: 700; letter-spacing: .55px; }
.poster-tag-soft { background: #e7e3da; }
.poster-tag-dark { color: #f5f4f0; background: rgba(25,27,34,.74); }
.poster-tag-violet { color: white; background: #7466b4; }
.poster-title { position: absolute; left: 12px; bottom: 16px; color: #fff; font: 800 clamp(16px, 1.7vw, 25px)/.95 "Manrope", sans-serif; letter-spacing: -1.1px; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.poster-play { position: absolute; display: grid; place-items: center; width: 37px; height: 37px; left: 50%; top: 50%; transform: translate(-50%,-40%) scale(.8); border-radius: 50%; background: var(--accent); color: #171913; font-size: 12px; opacity: 0; transition: .25s; }
.movie-card:hover .poster-play, .poster:focus-visible .poster-play { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.movie-info { min-height: 56px; padding: 11px 1px 0; display: flex; align-items: start; justify-content: space-between; gap: 5px; }
.movie-info h3 { margin-bottom: 5px; overflow: hidden; color: #e6e5e3; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.movie-info p { margin: 0; color: #909098; font-size: 9px; }
.movie-info p span { padding: 0 3px; color: #55565d; }
.save-button { flex: none; width: 25px; height: 25px; margin-top: -3px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: transparent; color: #d1d1d2; font-size: 17px; line-height: 1; cursor: pointer; transition: .2s; }
.save-button:hover, .save-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #151612; }
.save-button[aria-pressed="true"] { font-size: 0; }
.save-button[aria-pressed="true"]::after { content: "✓"; font-size: 12px; }
.empty-state { margin: 30px 0; color: var(--muted); font-size: 13px; text-align: center; }
.catalog-status { min-height: 14px; margin: -10px 0 16px; color: var(--muted); font-size: 10px; }
.poster-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; color: #777880; font: 700 14px/1.3 "Manrope", sans-serif; text-align: center; }
.dialog-art iframe { display: block; width: 100%; height: 100%; border: 0; }
.dialog-play:disabled { cursor: wait; opacity: .7; }
.editor-note { min-height: 120px; margin-top: 77px; margin-bottom: 50px; padding: 25px 28px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid rgba(215,243,106,.45); border-radius: 50%; color: var(--accent); font-size: 17px; }
.editor-note .section-kicker { margin-bottom: 6px; }
.note-copy { margin: 0; color: #d8d8da; font: 600 15px "Manrope", sans-serif; letter-spacing: -.3px; }
.note-copy span { color: #888990; font-weight: 400; }
.editor-note .text-link { margin-left: auto; flex: none; }
.site-footer { min-height: 88px; padding: 0 6.1%; display: flex; align-items: center; gap: 23px; border-top: 1px solid rgba(255,255,255,.07); }
.footer-brand { font-size: 19px; }
.footer-brand .brand-mark { transform: scale(.8) skew(-14deg); }
.site-footer > p { margin: 0; color: #777880; font-size: 10px; }
.tmdb-attribution { max-width: 290px; color: #777880; font-size: 8px; line-height: 1.5; }
.tmdb-attribution:hover { color: #c7c7ca; }
.footer-copy { margin-left: auto; color: #777880; font-size: 9px; }

.movie-dialog { position: fixed; width: min(570px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; color: var(--text); background: #17181d; box-shadow: 0 24px 100px rgba(0,0,0,.7); }
.movie-dialog::backdrop { background: rgba(5,6,8,.78); backdrop-filter: blur(7px); }
.dialog-art { height: 230px; background-position: center 48%; background-size: cover; }
.dialog-close { position: absolute; z-index: 1; top: 14px; right: 14px; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(15,16,19,.65); color: white; font-size: 22px; line-height: 1; cursor: pointer; }
.dialog-content { padding: 22px 27px 25px; }
.dialog-kicker { margin-bottom: 7px; }
.dialog-content h2 { font-size: 29px; }
.dialog-meta { margin: 9px 0 12px; color: #adadb4; font-size: 11px; }
.dialog-description { max-width: 470px; margin-bottom: 0; color: #cacacf; font-size: 12px; line-height: 1.7; }
.dialog-actions { margin-top: 18px; }
.preview-message { min-height: 14px; margin: 11px 0 0; color: var(--accent); font-size: 10px; }

@media (min-width: 1500px) { .hero-content { margin-left: calc((100% - 1195px) / 2); } }
@media (max-width: 1050px) {
  .site-header { gap: 38px; padding: 0 5%; }
  .hero-content { margin-left: 8%; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px 17px; }
  .poster-title { font-size: clamp(20px, 2.5vw, 30px); }
  .section-wrap { width: 90%; }
}
@media (max-width: 680px) {
  .site-header { height: 64px; padding: 0 5%; gap: 20px; }
  .brand { font-size: 21px; }
  .brand-mark { transform: scale(.85) skew(-14deg); transform-origin: left center; margin-right: -3px; }
  .main-nav { gap: 15px; }
  .nav-link { font-size: 11px; }
  .main-nav .nav-link:first-child { display: none; }
  .header-actions { gap: 10px; }
  .search-box { width: 34px; height: 34px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .search-box input, .search-box kbd { display: none; }
  .search-box.is-open { position: absolute; left: 5%; right: 5%; top: 69px; width: 90%; height: 40px; justify-content: start; padding: 0 11px; border: 1px solid rgba(255,255,255,.23); border-radius: 4px; background: #17181d; }
  .search-box.is-open input { display: block; }
  .search-box.is-open kbd { display: block; }
  .avatar { width: 29px; height: 29px; }
  .hero { min-height: 680px; height: 88svh; max-height: 780px; align-items: end; }
  .hero-image { background-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,12,15,1) 3%, rgba(11,12,15,.88) 33%, rgba(11,12,15,.18) 100%), linear-gradient(90deg, rgba(11,12,15,.4), transparent); }
  .hero-content { width: 90%; margin: 0 5% 74px; }
  h1 { margin-top: 19px; font-size: clamp(53px, 13vw, 76px); letter-spacing: -4px; }
  .hero-description { max-width: 400px; font-size: 12px; }
  .hero-pagination { margin-top: 34px; }
  .hero-caption { display: none; }
  .sound-toggle { right: 5%; bottom: 30px; }
  .section-wrap { width: 90%; }
  .discovery { padding-top: 49px; }
  .section-heading { align-items: end; }
  h2 { font-size: 27px; }
  .section-heading .text-link { font-size: 10px; }
  .filter-row { gap: 7px; margin: 23px 0 18px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; height: 30px; padding: 0 11px; font-size: 9px; }
  .filter-note { display: none; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 13px; }
  .poster-title { left: 10px; bottom: 13px; font-size: clamp(19px, 6vw, 26px); }
  .poster-tag { left: 8px; top: 8px; font-size: 6px; }
  .movie-info h3 { font-size: 10px; }
  .editor-note { margin-top: 52px; margin-bottom: 35px; padding: 22px 0; gap: 12px; }
  .note-icon { width: 30px; height: 30px; font-size: 14px; }
  .note-copy { max-width: 280px; font-size: 12px; line-height: 1.6; }
  .note-copy span { display: block; }
  .editor-note .text-link { display: none; }
  .site-footer { min-height: 85px; padding: 15px 5%; gap: 12px; flex-wrap: wrap; }
  .footer-brand { font-size: 17px; }
  .site-footer > p { font-size: 9px; }
  .tmdb-attribution { flex-basis: 100%; max-width: none; }
  .footer-copy { font-size: 8px; }
  .dialog-art { height: 185px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
