/* WatchVibe "Marquee" theme (direction C): near-black, paper white, one brick-orange accent, heavy condensed headings.
   Loaded after tailwind.css so it re-colours the utility classes the app already uses (same specificity, later wins, so hover:/focus:
   variants keep working: no !important on colours, and selectors match whole class names, never "hover:" variants).
   bg #090909 | surface #141414 | elevated #1E1E1E | line #2E2E2E | text #FAFAF7 (19.0:1) | text-2 #BDBDB6 (10.5:1) | muted #93938C (6.4:1) | accent #D6502F (4.8:1) with black text */
html:root {
  --bg: #090909; --surface: #141414; --elev: #1E1E1E; --line: #2E2E2E; --line-strong: #66665F;
  --text: #FAFAF7; --text-2: #BDBDB6; --muted: #93938C; --accent: #D6502F; --accent-hover: #E5623F; --ink: #000000;
}
html, body { background: var(--bg) !important; color: var(--text); }
header.sticky { background: rgba(9,9,9,.94) !important; border-color: var(--line) !important; }

/* ---- surfaces and lines ---- */
[class*="bg-[#0B0B0F"], [class*="bg-[#0F0F14"], [class*="bg-[#0E0E12"] { background-color: var(--bg); }
[class*="bg-[#14141A"], [class*="bg-[#1A1A20"], [class*="bg-[#15151B"] { background-color: var(--surface); }
[class^="bg-white/["], [class*=" bg-white/["] { background-color: rgba(250,250,247,.05); }
[class^="ring-white/"], [class*=" ring-white/"] { --tw-ring-color: rgba(250,250,247,.12); }
[class^="border-white/"], [class*=" border-white/"] { border-color: var(--line); }
[class*="from-[#0B0B0F"] { --tw-gradient-from: #090909 var(--tw-gradient-from-position); }
[class*="via-[#0B0B0F"] { --tw-gradient-via-color: #090909; }

/* ---- text: every grey passes 4.5:1 (hover colours still work) ---- */
[class~="text-white/95"], [class~="text-white/90"], [class~="text-white/85"], [class~="text-white/80"], [class~="text-white/75"], [class~="text-white/70"], [class~="text-white/65"], [class~="text-white/60"], [class~="text-white/55"], [class~="text-white/50"] { color: var(--text-2); }
[class~="text-white/45"], [class~="text-white/40"], [class~="text-white/35"], [class~="text-white/30"], [class~="text-white/25"], [class~="text-white/20"] { color: var(--muted); }
.text-white { color: var(--text); }
.text-\[10px\], .text-\[11px\] { font-size: 12px; }   /* nothing smaller than 12 px */

/* ---- one accent colour: orange replaces purple and pink ---- */
[class^="text-purple"], [class*=" text-purple"], [class^="text-pink"], [class*=" text-pink"] { color: var(--accent); }
[class~="bg-purple-500/10"], [class~="bg-purple-500/15"], [class~="bg-purple-500/20"], [class~="bg-purple-500/25"], [class~="bg-purple-500/30"], [class~="bg-purple-400/15"], [class~="bg-purple-400/20"] { background-color: rgba(214,80,47,.14); }
[class~="bg-purple-400"], [class~="bg-purple-500"], [class~="bg-purple-600"] { background-color: var(--accent); color: var(--ink); }
[class^="ring-purple"], [class*=" ring-purple"] { --tw-ring-color: rgba(214,80,47,.55); }
[class^="border-purple"], [class*=" border-purple"] { border-color: rgba(214,80,47,.55); }
.accent-purple-400 { accent-color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }

/* gradients: solid orange for fills (progress bar, round swipe button); the soft tinted washes on cards become flat surfaces,
   and washes laid over a picture disappear */
[class*="from-purple-4"][class*="to-blue-4"], [class*="from-purple-5"][class*="to-blue-5"] { background-image: none; background-color: var(--accent); }
[class*="from-purple-500/"][class], [class*="from-purple-400/"][class], [class*="from-pink-500/"][class], [class*="via-blue-500/"][class], [class*="to-blue-500/"][class], [class*="to-blue-400/"][class] { background-image: none; background-color: var(--surface); }
.absolute.inset-0[class*="from-purple-500/"], .absolute.inset-0[class*="from-pink-500/"] { background-color: transparent; }

/* ---- buttons: flat orange with black text, square, uppercase ---- */
.bg-white.text-black, button.bg-white { background-color: var(--accent); color: var(--ink); box-shadow: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.bg-white.text-black:hover, button.bg-white:hover, .hover\:bg-white\/90:hover { background-color: var(--accent-hover); }
.rounded-2xl, .rounded-xl, .rounded-lg, .rounded-3xl { border-radius: 2px; }
button.rounded-full, a.rounded-full, select.rounded-full, input.rounded-full { border-radius: 2px; }

/* ---- type: heavy condensed headings, Inter for reading ---- */
.font-display { font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.top-nav-pill { text-transform: uppercase; letter-spacing: .06em; }

/* ---- wordmark ---- */

/* ---- top navigation: orange underline marks the current page ---- */
.top-nav-pill[aria-current="page"] { background: transparent !important; color: var(--text) !important; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0 !important; }

/* ---- poster names: white, bold condensed, two lines at most ---- */
button.group > div:last-child > div:first-child { font-family: 'Barlow Condensed', 'Inter', sans-serif; font-weight: 700; letter-spacing: .01em; font-size: 19px; line-height: 1.18; color: #FFFFFF; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-scroll { padding-top: 14px !important; margin-top: -14px !important; padding-left: 8px !important; padding-right: 8px !important; margin-left: -8px !important; }
button.group:focus-visible > div[class*="aspect-[2/3]"] { box-shadow: 0 0 0 2px var(--accent); }
button.group:hover > div[class*="aspect-[2/3]"] { transform: none; }   /* the hover card (hover-card.js) replaces the small lift */

/* tablet: uppercase tracking makes the top menu wider, so tighten it there */
@media (min-width: 768px) and (max-width: 1099px) {
  .top-nav-pill { letter-spacing: .02em; padding-left: 8px; padding-right: 8px; }
}

/* ---- every phone width: the hero and posters scale with the screen, so the first row stays visible ---- */
@media (max-width: 639px) {
  .hero-slide, #heroSkeleton { min-height: clamp(260px, 44svh, 400px); }   /* a taller featured banner on phones */
  .row-scroll > button.group { width: clamp(118px, 38vw, 160px); }
}
/* short phones (iPhone SE size): a tighter hero so the first poster row clears the bottom bar */
@media (max-width: 639px) and (max-height: 720px) and (orientation: portrait) {
  #heroCarousel .hero-slide { min-height: clamp(190px, 31svh, 240px); }
  #heroCarousel .max-w-3xl { padding-top: 12px; padding-bottom: 18px; }
  #heroCarousel .max-w-3xl img { max-height: 52px; }
  #heroCarousel .max-w-3xl .mt-5 { margin-top: 12px; }
  #heroCarousel .max-w-3xl > div:first-child { display: none; }   /* the "Featured" line: the title and button carry the slide */
}
/* very narrow phones: the language and vibe selects share one row */
@media (max-width: 359px) {
  #topLanguageSelect, #topVibeSelect { max-width: calc(50% - 4px); min-width: 0; }
}
/* landscape phones: the hero leaves no room for the posters, so the rows come first */
@media (orientation: landscape) and (max-height: 500px) {
  #heroCarousel { display: none; }
}

/* ---- credit names (cast, director) are links: no underline, brighter than the text around them, orange on hover or focus ---- */
button[data-person] { color: var(--text); text-decoration: none; }
button[data-person]:hover { color: var(--accent-hover); }
button[data-person]:focus-visible { color: var(--accent-hover); outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- title window: opens like Netflix's "more info" panel: the backdrop fades in and the window grows out of the poster that was tapped ---- */
#detailModal.dm-enter { animation: dmBackdrop .28s ease-out both; }
#detailModal.dm-enter #detailScroll { animation: dmGrow .44s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dmBackdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmGrow { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #detailModal.dm-enter, #detailModal.dm-enter #detailScroll { animation: none; }
}

/* ---- phones ---- */
@media (max-width: 767px) {
  /* the logo had plenty of room next to one avatar: make it read */
  header button[aria-label="WatchVibe home"] { font-size: 24px; letter-spacing: .03em; }
  header #headerGamesBtn, header #cloudAuthBtn { min-height: 40px; }

  /* featured banner: small round controls at the top right, out of the way of the title and buttons */
  #heroCarousel button.h-9.w-9 { min-width: 0; min-height: 0; width: 32px; height: 32px; border-radius: 50%; }
  #heroCarousel button.h-9.w-9 i { font-size: 12px; }
  #heroCarousel > div.absolute.bottom-9 { bottom: auto; top: 10px; right: 10px; gap: 8px; }
  #heroCarousel > div.absolute.bottom-9 button { border-radius: 50%; }
}

/* ---- filters on a phone: language and vibe side by side, sort below, reset under that ---- */
@media (max-width: 767px) {
  .wv-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .wv-filters .wv-toolbar { display: contents; }
  .wv-filters select { width: 100%; min-width: 0; }
  .wv-filters .wv-sort { grid-column: 1 / -1; order: 3; }
  .wv-filters .wv-toolbar > button { grid-column: 1 / -1; justify-self: start; order: 4; }
  /* home: the filters sit a little lower under the banner and close above "Streaming now" (there was a wide empty gap below them) */
  div.space-y-5 > #wvFilterBar { margin-top: 28px; margin-bottom: -26px; }
}

/* ---- title window on a phone: long blocks show their top and open on tap ---- */
.dm-collapsible { max-height: var(--dm-max, 300px); overflow: hidden; position: relative; }
.dm-collapsible::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to top, #0F0F14, rgba(15,15,20,0)); pointer-events: none; }
.dm-collapsible.dm-open { max-height: none; }
.dm-collapsible.dm-open::after, .dm-collapsible.dm-fits::after { display: none; }
.dm-more { display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dm-more:hover { background: rgba(250,250,247,.06); }

/* ---- wordmark: a little larger where there is room ---- */
@media (min-width: 1100px) {
  header button[aria-label="WatchVibe home"] { font-size: 19px; }
}

/* ---- the trailer preview in the title window is a picture, not a player: the YouTube controls never pop up over it (our own volume and replay buttons stay) ---- */
#previewSlot iframe { pointer-events: none; }

/* ---- touch targets: at least 44 px on phones ---- */
@media (max-width: 767px) {
  button.rounded-full, a.rounded-full, select { min-height: 44px; }
  button[data-person] { display: inline-flex; align-items: center; min-height: 44px; }   /* credit names are links: easy to tap */
  button.h-9.w-9, button.h-8.w-8, button.h-10.w-10 { min-width: 44px; min-height: 44px; }
}

/* =====================================================================================================
   "Marquee, refined" (v18): soft radii, sentence-case type, pill chips, rating chip on posters,
   hero with synopsis and Play trailer / Watchlist / More info, text navigation, search pill.
   Later rules win over the v17 rules above.
   ===================================================================================================== */
html:root {
  --bg: #0A0A0B; --surface: #141418; --elev: #1C1C21; --line: #26262C; --line-strong: #3A3A42;
  --text: #F5F5F2; --text-2: #A3A39D; --muted: #8A8A84; --accent: #D6502F; --accent-hover: #E5623F;
}
header.sticky { background: rgba(10,10,11,.92) !important; border-color: #1F1F24 !important; height: 68px; }
[class*="from-[#0B0B0F"] { --tw-gradient-from: #0A0A0B var(--tw-gradient-from-position); }
[class*="via-[#0B0B0F"] { --tw-gradient-via-color: #0A0A0B; }

/* soft shapes again: buttons 8px, cards 12px, chips and avatars round */
.rounded-lg { border-radius: 8px; } .rounded-xl, .rounded-2xl { border-radius: 12px; } .rounded-3xl { border-radius: 16px; }
button.rounded-full, a.rounded-full, select.rounded-full, input.rounded-full { border-radius: 9999px; }
.bg-white.text-black, button.bg-white { text-transform: none; letter-spacing: 0; font-weight: 600; border-radius: 8px; }
.font-display { font-family: 'Barlow Condensed', 'Inter', sans-serif; font-weight: 700; text-transform: none; letter-spacing: .005em; }
header .font-display, .wv-hero-title.font-display { text-transform: uppercase; }
.hero-slide .font-display { text-transform: uppercase; font-weight: 700; }
h2.font-display { font-size: 28px; line-height: 1.05; }
@media (min-width: 1024px) { h2.font-display { font-size: 34px; } }

/* ---- header ---- */
header button[aria-label="WatchVibe home"] { font-family: 'Barlow Condensed', 'Inter', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: .02em; text-transform: uppercase; }
header button[aria-label="WatchVibe home"] .wv-w1 { color: var(--text); }
@media (min-width: 1100px) { header button[aria-label="WatchVibe home"] { font-size: 36px; } }
.top-nav-pill { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: #B4B4AE; }
.top-nav-pill:hover { background: transparent; color: var(--text); }
.top-nav-pill[aria-current="page"] { color: var(--text) !important; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0 !important; }
@media (min-width: 768px) and (max-width: 1099px) { .top-nav-pill { letter-spacing: 0; } }
#headerSearchBtn { background: #17171B; border: 1px solid #26262C; --tw-ring-shadow: 0 0 #0000; box-shadow: none; }
.wv-kbd { font: 500 11px/1 Inter, sans-serif; border: 1px solid #33333A; border-radius: 4px; padding: 3px 6px; color: #8A8A84; }
#cloudAuthBtn { background: transparent; box-shadow: none; padding: 0; }
#cloudAuthBtn #userProfileAvatar { width: 36px; height: 36px; background: #26262C; font-size: 13px; }
#cloudAuthBtnLabel { display: none !important; }

/* ---- hero: 48px edge, rating chip, synopsis, three buttons ---- */
@media (min-width: 1024px) {
  main { padding-left: 48px !important; padding-right: 48px !important; }
  #heroCarousel, #heroSkeleton { margin-left: -48px; margin-right: -48px; }
  #heroCarousel .hero-slide > div.relative { padding-left: 48px; padding-bottom: 96px; max-width: 640px; }
}
.hero-slide .text-xs.uppercase { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #D9D9D3; }
.hero-slide [data-t].font-display { font-size: clamp(56px, 7.2vw, 104px); line-height: .9; }
.wv-hmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: #D9D9D3; }
.wv-hrate { background: rgba(245,245,242,.12); border-radius: 6px; padding: 3px 8px; font-weight: 600; color: var(--text) !important; margin: 0 !important; }
.wv-hrate:empty, .wv-prate:empty { display: none; }
.wv-hsyn { display: none; margin: 14px 0 0; max-width: 520px; font-size: 16px; line-height: 1.55; color: #C9C9C3; display: none; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .wv-hsyn { display: -webkit-box; } }
.wv-hbtns { display: flex; gap: 12px; margin-top: 22px; }
.wv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 8px; border: 0; font: 600 15px/1 Inter, sans-serif; cursor: pointer; transition: background-color .15s, transform .1s; }
.wv-btn:active { transform: scale(.97); }
.wv-btn-p { background: #F5F5F2; color: #0A0A0B; }
.wv-btn-p:hover { background: #FFFFFF; }
.wv-btn-g { background: rgba(245,245,242,.14); color: #F5F5F2; }
.wv-btn-g:hover { background: rgba(245,245,242,.24); }
.wv-btn i { font-size: 13px; }
.wv-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* segment bar and arrows along the bottom edge (desktop) */
@media (min-width: 768px) {
  #heroCarousel > div.absolute.inset-x-6 { left: 48px; right: 244px; bottom: 36px; gap: 12px; }
  #heroCarousel .hero-seg { padding: 8px 0; }
  #heroCarousel .hero-seg > span { height: 3px !important; border-radius: 2px; }
  #heroCarousel button[aria-label^="Previous featured"], #heroCarousel button[aria-label^="Next featured"] { top: auto; bottom: 22px; transform: none; width: 44px; height: 44px; background: rgba(10,10,11,.55); border: 1px solid rgba(245,245,242,.18); box-shadow: none; }
  #heroCarousel button[aria-label^="Next featured"] { right: 48px; left: auto; }
  #heroCarousel button[aria-label^="Previous featured"] { right: 100px; left: auto; }
  #heroCarousel > div.absolute.bottom-9 { bottom: 22px; right: 160px; }
}
.hero-slide .wv-btn { text-transform: none; }

/* ---- chips: mood row under the banner (desktop), pills above it (phone) ---- */
.wv-chip { height: 38px; padding: 0 16px; border-radius: 9999px; border: 1px solid #2E2E35; background: transparent; color: #D9D9D3; font: 500 14px/1 Inter, sans-serif; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
.wv-chip:hover { border-color: #55555D; color: var(--text); }
.wv-chip.is-on { background: #F5F5F2; border-color: #F5F5F2; color: #0A0A0B; font-weight: 600; }
.wv-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wv-moodrow { display: flex; gap: 10px; flex-wrap: wrap; }
.wv-moodphone { display: none; }
.wv-moodres { grid-column: 1 / -1; padding-top: 8px; }
@media (min-width: 768px) {
  div.wv-top.space-y-5 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 16px; align-items: center; }
  div.wv-top.space-y-5 > * { margin-top: 0 !important; grid-column: 1 / -1; }
  div.wv-top.space-y-5 > .wv-mooddesk { grid-column: 1; }
  div.wv-top.space-y-5 > #wvFilterBar { grid-column: 2; }
}
.wv-top > .wv-mooddesk { margin-top: 0; }
#topLanguageSelect, #topVibeSelect, .wv-filters select { height: 38px; border-radius: 9999px; font-size: 14px; font-weight: 500; background-color: transparent; border: 1px solid #2E2E35; color: #D9D9D3; }

/* ---- posters: rating chip on the picture, one-line title, mood tag + year · genre ---- */
button.group > div[class*="aspect-[2/3]"] { border-radius: 8px; border: 1px solid #1F1F24; --tw-ring-shadow: 0 0 #0000; box-shadow: none; }
.wv-prate { position: absolute; left: 10px; top: 10px; z-index: 1; font: 700 12px/1 Inter, sans-serif; background: rgba(10,10,11,.7); border-radius: 4px; padding: 4px 6px; color: var(--text); }
.wv-pinfo { margin-top: 12px; }
button.group .wv-pt { font: 600 15px/1.25 Inter, sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; letter-spacing: 0; -webkit-line-clamp: unset; }
.wv-pm { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--text-2); min-width: 0; }
.wv-ptag { font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.wv-psub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
button.group:hover > div[class*="aspect-[2/3]"] { border-color: #3A3A42; }
button.group:focus-visible > div[class*="aspect-[2/3]"] { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- phones: top bar, segmented control, rounded hero card with the progress bar on top ---- */
@media (max-width: 767px) {
  header button[aria-label="WatchVibe home"] { font-size: 28px; letter-spacing: .02em; }
  header.sticky { height: 56px; }
  header #headerGamesBtn { background: transparent; box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
  /* the four browse chips become one segmented control */
  .wv-top > div:first-child:not(.wv-moodrow):not(.hero) { background: #141418; border-radius: 10px; padding: 3px; gap: 0 !important; display: flex; }
  .wv-top > div:first-child:not(.wv-moodrow) > button { flex: 1; justify-content: center; border-radius: 8px !important; height: 36px; min-height: 36px; padding: 0 !important; font-size: 14px; font-weight: 600; background: transparent !important; color: #B4B4AE !important; box-shadow: none !important; --tw-ring-shadow: 0 0 #0000; border: 0 !important; text-transform: none; }
  .wv-top > div:first-child:not(.wv-moodrow) > button[aria-pressed="true"], .wv-top > div:first-child:not(.wv-moodrow) > button.bg-white { background: #F5F5F2 !important; color: #0A0A0B !important; }
  .wv-moodphone { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-top: 12px; scrollbar-width: none; }
  .wv-moodphone::-webkit-scrollbar { display: none; }
  .wv-moodphone .wv-chip { height: 36px; padding: 0 14px; font-size: 13px; flex-shrink: 0; }
  .wv-moodphone .wv-chip.is-on { background: #D6502F; border-color: #D6502F; color: #0A0A0B; font-weight: 700; }
  .wv-mooddesk { display: none; }
  /* rounded hero card */
  #heroCarousel, #heroSkeleton { margin-left: 0; margin-right: 0; border-radius: 16px; }
  #heroCarousel .hero-slide > div.relative { padding: 18px; max-width: none; }
  #heroCarousel .hero-slide [data-t].font-display { font-size: 58px; }
  #heroCarousel > div.absolute.inset-x-6 { top: 14px; bottom: auto; left: 18px; right: 18px; gap: 6px; }
  #heroCarousel .hero-seg { padding: 6px 0; }
  #heroCarousel .hero-seg > span { height: 3px !important; border-radius: 2px; }
  #heroCarousel button[aria-label^="Previous featured"], #heroCarousel button[aria-label^="Next featured"] { display: none; }
  #heroCarousel > div.absolute.bottom-9 { top: 28px; right: 12px; }
  .wv-hbtns { gap: 8px; margin-top: 14px; }
  .wv-hbtns .wv-btn { height: 46px; border-radius: 10px; font-size: 15px; }
  .wv-hbtns .wv-btn-p { flex: 1; }
  .wv-hbtns .wv-btn-g { width: 46px; padding: 0; flex: 0 0 46px; }
  .wv-hbtns .wv-btn-g span, .wv-hbtns .wv-more { display: none; }
  .wv-hbtns .wv-btn-g i { font-size: 18px; }
  .wv-pt { font-size: 13px; }
  .wv-pm { font-size: 11px; gap: 4px; }
  .wv-ptag { font-size: 11px; }
  h2.font-display { font-size: 28px; }
}
@media (max-width: 359px) { .wv-hbtns .wv-btn-p span { font-size: 14px; } }

/* ---- one profile control: the avatar button opens the account menu ---- */
#cloudAuthBtn { width: 40px; height: 40px; border-radius: 9999px; justify-content: center; gap: 0; padding: 0; overflow: visible; position: relative; box-shadow: 0 0 0 1px #2E2E35; transition: box-shadow .15s; }
#cloudAuthBtn:hover, #cloudAuthBtn[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent); }
#cloudAuthBtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#cloudAuthBtn #userProfileAvatar { width: 40px; height: 40px; margin: 0; }
.wv-acct { position: fixed; z-index: 70; width: min(320px, calc(100vw - 24px)); background: #141418; border: 1px solid #26262C; border-radius: 12px; box-shadow: 0 18px 48px rgba(0,0,0,.6); overflow: hidden; animation: wvAcct .16s ease-out both; }
@keyframes wvAcct { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wv-acct { animation: none; } }
.wv-acct-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 14px; }
.wv-acct-av { width: 48px; height: 48px; border-radius: 9999px; background: #26262C; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.wv-acct-name { font: 600 16px/1.2 Inter, sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-acct-mail { margin-top: 3px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-acct-persona { margin: 0 18px 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9999px; background: rgba(214,80,47,.14); color: #F0A48F; font-size: 12px; font-weight: 600; }
.wv-acct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 18px 8px; background: #26262C; border: 1px solid #26262C; border-radius: 10px; overflow: hidden; }
.wv-acct-stats div { background: #1C1C21; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wv-acct-stats b { font: 700 22px/1 'Barlow Condensed', Inter, sans-serif; color: var(--text); }
.wv-acct-stats span { font-size: 12px; color: var(--text-2); }
.wv-acct-list { padding: 6px 8px; border-top: 1px solid #1F1F24; margin-top: 8px; }
.wv-acct-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #D9D9D3; font: 500 14px/1 Inter, sans-serif; text-align: left; cursor: pointer; transition: background-color .12s; }
.wv-acct-row i { width: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.wv-acct-row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-2); }
.wv-acct-row:hover, .wv-acct-row:focus-visible { background: rgba(245,245,242,.07); color: var(--text); outline: none; }
.wv-acct-foot { display: block; width: calc(100% - 16px); margin: 6px 8px 10px; height: 44px; border: 1px solid #3A3A42; border-radius: 8px; background: transparent; color: var(--text); font: 600 14px/1 Inter, sans-serif; cursor: pointer; }
.wv-acct-foot:hover { background: rgba(245,245,242,.07); }
.wv-acct-foot.is-primary { background: var(--accent); border-color: var(--accent); color: #0A0A0B; }
.wv-acct-foot.is-primary:hover { background: var(--accent-hover); }
/* phones: the bottom bar already has Profile, so the header carries no second profile icon */
@media (max-width: 767px) { #cloudAuthBtn { display: none; } }

/* ---- one vibe picker: mood chips plus a describe field (v21) ---- */
.wv-describe { position: relative; display: flex; align-items: center; width: 100%; max-width: 560px; }
.wv-describe input { width: 100%; height: 44px; border-radius: 9999px; background: #141418; border: 1px solid #2E2E35; color: var(--text); padding: 0 52px 0 18px; font: 400 14px/1 Inter, sans-serif; }
.wv-describe input::placeholder { color: #8A8A84; }
.wv-describe input:focus { outline: none; border-color: #55555D; box-shadow: 0 0 0 2px rgba(214,80,47,.55); }
.wv-describe button { position: absolute; right: 5px; width: 34px; height: 34px; min-height: 0; border-radius: 9999px; border: 0; background: var(--accent); color: #0A0A0B; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wv-describe button:hover { background: var(--accent-hover); }
@media (min-width: 768px) {
  div.wv-top.space-y-5 > .wv-mooddesk { grid-row: 2; }
  div.wv-top.space-y-5 > #wvFilterBar { grid-row: 2; }
  div.wv-top.space-y-5 > .wv-describe { grid-column: 1; grid-row: 3; }
}
@media (max-width: 767px) { .wv-describe input { height: 46px; font-size: 16px; } .wv-describe button { min-width: 34px; } }

/* ---- mood page: a whole page of films for one mood (v22) ---- */
.wv-moodbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.wv-moodbar .wv-describe { flex: 1 1 320px; }
.wv-moodbar .wv-filters { flex: 0 0 auto; }
@media (max-width: 767px) {
  .wv-moodpage { flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .wv-moodpage .wv-chip { height: 36px; padding: 0 14px; font-size: 13px; flex-shrink: 0; }
  .wv-moodpage .wv-chip.is-on { background: #D6502F; border-color: #D6502F; color: #0A0A0B; font-weight: 700; }
  .wv-moodbar .wv-filters { width: 100%; }
}

/* ---- mood page toolbar (v23): sticky, one mood at a time, filters on their own row ---- */
.wv-moodsticky { position: sticky; top: 68px; z-index: 30; background: rgba(10,10,11,.97); margin: 0 -4px; padding: 12px 4px 12px; border-bottom: 1px solid #1F1F24; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 767px) { .wv-moodsticky { top: 56px; } }
.wv-chip i { margin-left: 8px; font-size: 11px; opacity: .7; }
.wv-moodpage { flex-wrap: wrap; }
.wv-moodtools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wv-grow { flex: 1 1 auto; }
.wv-seg { display: inline-flex; background: #141418; border: 1px solid #26262C; border-radius: 9999px; padding: 3px; }
.wv-seg-b { height: 32px; padding: 0 16px; border: 0; border-radius: 9999px; background: transparent; color: #B4B4AE; font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
.wv-seg-b.is-on { background: #F5F5F2; color: #0A0A0B; }
.wv-seg-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wv-sel { height: 38px; border-radius: 9999px; background-color: transparent; border: 1px solid #2E2E35; color: #D9D9D3; padding: 0 14px; font: 500 14px/1 Inter, sans-serif; }
.wv-sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wv-sel option { background: #141418; }
.wv-moodtools .wv-chip { height: 38px; }
@media (max-width: 767px) {
  .wv-moodsticky { gap: 10px; padding: 10px 4px; }
  .wv-moodtools { gap: 8px; }
  .wv-moodtools .wv-grow { display: none; }
  .wv-moodtools .wv-sel { flex: 1 1 auto; min-width: 0; }
  .wv-moodtools .wv-chip { height: 36px; font-size: 13px; }
  .wv-moodpage { flex-wrap: nowrap; }
}

/* ---- home shelves (v24): Netflix-style rows with side arrows, wide cards, a numbered Top 10 and genre tiles ---- */
.wv-shelf-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.wv-seeall { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border: 0; background: transparent; color: var(--text-2); font: 600 14px/1 Inter, sans-serif; cursor: pointer; padding: 8px 0; transition: color .15s; }
.wv-seeall i { font-size: 11px; transition: transform .15s; }
.wv-seeall:hover { color: var(--text); }
.wv-seeall:hover i { transform: translateX(3px); }
.wv-seeall:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wv-rowwrap { position: relative; }
.wv-rowwrap .row-scroll { scroll-snap-type: x proximity; scroll-padding-left: 8px; }
.wv-rowwrap .row-scroll > * { scroll-snap-align: start; }
.wv-rowwrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 8px; width: 56px; pointer-events: none; background: linear-gradient(90deg, rgba(10,10,11,0), #0A0A0B); transition: opacity .2s; }
.wv-rowwrap.at-end::after { opacity: 0; }
.wv-rarrow { position: absolute; z-index: 5; top: 14px; bottom: 56px; width: 52px; border: 0; color: var(--text); cursor: pointer; opacity: 0; transition: opacity .18s; display: none; align-items: center; justify-content: center; font-size: 18px; }
.wv-rarrow.l { left: -8px; background: linear-gradient(90deg, rgba(10,10,11,.92), rgba(10,10,11,0)); }
.wv-rarrow.r { right: -8px; background: linear-gradient(270deg, rgba(10,10,11,.92), rgba(10,10,11,0)); }
@media (hover: hover) and (min-width: 768px) {
  .wv-rarrow { display: flex; }
  .wv-rowwrap:hover .wv-rarrow.r { opacity: 1; }
  .wv-rowwrap.can-prev:hover .wv-rarrow.l { opacity: 1; }
  .wv-rowwrap.at-end:hover .wv-rarrow.r { opacity: 0; pointer-events: none; }
  .wv-rarrow:hover i { transform: scale(1.25); }
  .wv-rarrow i { transition: transform .15s; }
}
.wv-rarrow:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
/* wide cards */
.wv-wide { width: 260px; }
@media (min-width: 640px) { .wv-wide { width: 300px; } }
@media (min-width: 1024px) { .wv-wide { width: 340px; } }
@media (min-width: 1536px) { .wv-wide { width: 400px; } }
.wv-wide-img { border: 1px solid #1F1F24; transition: border-color .2s, transform .2s; }
.wv-wide:hover .wv-wide-img { border-color: #3A3A42; transform: translateY(-2px); }
.wv-wide:focus-visible .wv-wide-img { outline: 2px solid var(--accent); outline-offset: 3px; }
.wv-wide .wv-pt { font: 600 15px/1.25 Inter, sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
/* numbered Top 10 */
.wv-t10 { display: flex; align-items: flex-end; width: 236px; }
@media (min-width: 640px) { .wv-t10 { width: 250px; } }
@media (min-width: 1280px) { .wv-t10 { width: 280px; } }
.wv-t10n { font: 800 150px/.78 'Barlow Condensed', Inter, sans-serif; color: #0A0A0B; -webkit-text-stroke: 3px #5A5A62; letter-spacing: -.04em; margin-right: -10px; position: relative; z-index: 0; padding-bottom: 36px; flex-shrink: 0; }
@media (min-width: 1280px) { .wv-t10n { font-size: 180px; } }
.wv-t10p { position: relative; z-index: 1; display: block; width: 62%; flex: 0 0 62%; }
.wv-t10img { border: 1px solid #1F1F24; transition: border-color .2s, transform .2s; }
.wv-t10:hover .wv-t10img { border-color: #3A3A42; transform: translateY(-2px); }
.wv-t10:hover .wv-t10n { -webkit-text-stroke-color: var(--accent); }
.wv-t10:focus-visible .wv-t10img { outline: 2px solid var(--accent); outline-offset: 3px; }
.wv-t10 .wv-pt { display: block; margin-top: 10px; font: 600 14px/1.25 Inter, sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-t10 .wv-prate { left: 8px; top: 8px; }
/* genre tiles */
.wv-gtile { position: relative; width: 168px; height: 96px; border: 1px solid #26262C; border-radius: 12px; overflow: hidden; background: #141418 var(--img) center/cover; cursor: pointer; transition: transform .2s, border-color .2s; text-align: left; }
.wv-gtile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,11,.88), rgba(10,10,11,.35)); transition: background .2s; }
.wv-gtile span { position: absolute; left: 14px; bottom: 11px; font: 700 24px/1 'Barlow Condensed', Inter, sans-serif; color: #FFF; letter-spacing: .01em; }
.wv-gtile:hover { transform: translateY(-2px); border-color: #55555D; }
.wv-gtile:hover::before { background: linear-gradient(0deg, rgba(10,10,11,.8), rgba(214,80,47,.25)); }
.wv-gtile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 1024px) { .wv-gtile { width: 200px; height: 112px; } .wv-gtile span { font-size: 28px; } }
.wv-lazy { width: 100%; }
@media (prefers-reduced-motion: reduce) { .wv-wide-img, .wv-t10img, .wv-gtile, .wv-seeall i { transition: none; } .wv-wide:hover .wv-wide-img, .wv-t10:hover .wv-t10img, .wv-gtile:hover { transform: none; } }

/* ---- phone audit fixes (v25), checked at 360x780 (Galaxy S25) ---- */
@media (max-width: 767px) {
  /* the banner picture was hidden: a side gradient and a heavy bottom gradient covered almost all of a narrow card. Keep the picture, fade only its lower part */
  #heroCarousel .hero-slide > div.bg-gradient-to-r { display: none; }
  #heroCarousel .hero-slide > div.bg-gradient-to-t { background-image: linear-gradient(0deg, #0A0A0B 0%, rgba(10,10,11,.86) 24%, rgba(10,10,11,.3) 54%, rgba(10,10,11,0) 80%); }
  #heroCarousel .hero-slide h2, #heroCarousel .wv-hmeta { text-shadow: 0 1px 14px rgba(0,0,0,.65); }
  /* the language select is the only filter now: full width, not half a row */
  .wv-filters { grid-template-columns: 1fr; }
  /* touch targets: 40 px and up */
  .wv-chip, .wv-moodphone .wv-chip, .wv-moodpage .wv-chip, .wv-moodtools .wv-chip { height: 40px; }
  .wv-top > div:first-child:not(.wv-moodrow) > button { height: 40px; min-height: 40px; }
  .wv-seg-b { height: 38px; }
  .wv-seg-b { padding: 0 18px; }
  /* card text: 12 px minimum, titles may use two lines so long names are readable */
  .wv-pm, .wv-ptag, .wv-psub { font-size: 12px; }
  button.group .wv-pt { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.25; min-height: 2.5em; font-size: 14px; }
  button.group.wv-wide .wv-pt { white-space: nowrap; display: block; -webkit-line-clamp: unset; min-height: 0; }
  .wv-t10 { width: 250px; }
  /* mood page: only the mood chips stay under the header while scrolling; the filter rows scroll away */
  .wv-moodsticky { display: contents; }
  .wv-moodsticky .wv-moodpage { position: sticky; top: 56px; z-index: 30; background: rgba(10,10,11,.97); margin: 0 -4px; padding: 8px 4px; border-bottom: 1px solid #1F1F24; }
  .wv-moodsticky .wv-moodtools { margin-top: 16px; }
  /* cast and crew names in the title window: a 40 px touch area without tall gaps between lines */
  button[data-person] { min-height: 0; padding: 10px 2px; margin: -5px 0; }
}
@media (max-width: 767px) {
  #heroCarousel > div.absolute.bottom-9 { top: 30px; }
  #heroCarousel > div.absolute.bottom-9 button, #heroCarousel > div.absolute.bottom-9 #heroControls button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  #heroCarousel > div.absolute.inset-x-6 { top: 4px; }
  #heroCarousel .hero-seg { padding: 16px 0; }
  .wv-seeall { min-height: 40px; padding: 0 4px; }
  .wv-seg-b { height: 40px; }
  footer a { display: inline-block; padding: 10px 8px; margin: -10px -8px; }
}
/* star cards are credit-link buttons too, but they are cards: keep their block layout on phones */
button[data-person].wv-star { display: block; min-height: 0; padding: 0; margin: 0; text-align: center; }
@media (max-width: 767px) { .wv-credits { display: flex; flex-wrap: wrap; column-gap: 18px; } .wv-credits .wv-sep { display: none; } }
