:root {
  --bg: #000;
  --surface: #161618;
  --surface-2: #232326;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.68);
  --text-3: rgba(235, 235, 245, 0.42);
  --accent: #4c8dff;
  --pad: 18px;
  --tabs: 86px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --vv-gap: 0px;
  /* "Velikost obalů" (Nastavení): 0.8 / 1 / 1.25 / 1.6 */
  --cover: 1;

  /* Tekuté sklo – stejný materiál jako v aplikaci pro počítač. Sklo z toho dělají tři věci:
     rozostření pod plochou, šikmý lesk na její ploše a obruba světlá u horní hrany. */
  --glass-blur: blur(22px) saturate(1.7);
  --glass-blur-soft: blur(14px) saturate(1.45);
  --glass-tint: rgba(42, 42, 48, 0.45);
  --glass-tint-2: rgba(26, 26, 30, 0.68);
  /* Lišta přes plakáty potřebuje víc tintu, jinak se pod popisky čtou obaly. */
  --glass-dense: rgba(22, 22, 26, 0.88);
  --glass-sheen: linear-gradient(
    152deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.04) 34%,
    rgba(255, 255, 255, 0) 62%
  );
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --glass-rim-hover: inset 0 1px 0 rgba(255, 255, 255, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.09);
  --glass-cast: 0 14px 38px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.28);

  /* Barvy prostředí za obsahem; zapisuje je app.js podle obalu, na který se díváte. */
  --amb-1: #1d2b36;
  --amb-2: #16212c;
  --amb-3: #0d1116;
  color-scheme: dark;
}
/* Televize má slabší grafiku: hustší tint a kratší rozostření, ať zůstane plynulá. */
html.tv {
  --glass-blur: blur(10px) saturate(1.3);
  --glass-blur-soft: blur(6px) saturate(1.2);
  --glass-tint: rgba(42, 42, 48, 0.72);
  --glass-tint-2: rgba(26, 26, 30, 0.88);
  --glass-dense: rgba(22, 22, 26, 0.94);
}
/* Barvy registrujeme jako barvy, aby mezi filmy plynule přejely. Kde to prohlížeč neumí
   (starší televize), zůstanou obyčejné proměnné a barva se prostě přepne. */
@property --amb-1 {
  syntax: '<color>';
  inherits: true;
  initial-value: #1d2b36;
}
@property --amb-2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #16212c;
}
@property --amb-3 {
  syntax: '<color>';
  inherits: true;
  initial-value: #0d1116;
}
:root {
  transition: --amb-1 0.9s ease, --amb-2 0.9s ease, --amb-3 0.9s ease;
}
/* Prostředí: velké rozostřené barvy za celou stránkou místo černé desky. */
#ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(92% 62% at 8% 26%, var(--amb-1), rgba(0, 0, 0, 0) 70%),
    radial-gradient(88% 58% at 96% 58%, var(--amb-2), rgba(0, 0, 0, 0) 68%),
    radial-gradient(120% 70% at 46% 108%, var(--amb-3), rgba(0, 0, 0, 0) 72%),
    linear-gradient(180deg, #0c0e13 0%, #090a0e 100%);
  transition: opacity 0.4s ease;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  background: var(--bg);
}
/* Pozadí drží jen <html>. Kdyby ho mělo i <body>, přetřelo by vrstvu prostředí pod sebou
   – ta leží v záporné hladině, tedy pod obsahem, ale nad plátnem stránky. */
body {
  background: transparent;
}
html,
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.4 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100dvh;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus {
  outline: none;
}
svg.i {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

#view {
  padding-bottom: calc(var(--tabs) + var(--safe-b) + 24px);
  animation: fade 0.2s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ---------- tab bar: a floating pill like in Lumen on the computer ---------- */
#tabs {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-b) + 14px + var(--vv-gap, 0px));
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass-sheen), var(--glass-dense);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), 0 10px 34px rgba(0, 0, 0, 0.5);
}
#tabs[hidden] {
  display: none;
}
#tabs a,
#tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 96px;
  height: 58px;
  padding: 6px 14px 5px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
#tabs a svg.i,
#tabs button svg.i {
  stroke-width: 1.7;
}
#tabs a.on {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.55);
  font-weight: 600;
}
#tabs a.on svg.i {
  stroke-width: 2.1;
}
#tabs a:focus-visible,
#tabs button:focus-visible {
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
/* The current profile: its own round button beside the bar, like the player's button in Sola on
   the computer. (On the TV the profile sits inside the bar instead – #tab-profile.) */
#tabs #tab-me {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  min-width: 0;
  height: 60px;
  padding: 5px;
  border-radius: 999px;
  background: var(--glass-sheen), var(--glass-dense);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), 0 10px 34px rgba(0, 0, 0, 0.5);
}
#tabs #tab-me .avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  font-size: 20px;
  box-shadow: none;
}
html.tv #tabs #tab-me {
  display: none;
}
/* Phones: the tabs side by side across the screen. */
@media (max-width: 640px) {
  #tabs {
    left: 10px;
    right: 10px;
    transform: none;
  }
  /* Room for the profile beside the bar. */
  #tabs.with-me {
    left: 72px;
  }
  #tabs a,
  #tabs button {
    flex: 1;
    min-width: 0;
    padding: 6px 2px 5px;
    font-size: 11px;
  }
  #tabs #tab-me {
    right: calc(100% + 8px);
    width: 54px;
    height: 54px;
  }
}
/* Narrow phones: seven tabs with their names would not fit, so the icons speak for themselves
   (their names stay for anything reading the page aloud). */
@media (max-width: 480px) {
  #tabs a,
  #tabs button:not(#tab-me) {
    font-size: 0;
    height: 54px;
    padding: 0;
  }
  #tabs a svg.i,
  #tabs button svg.i {
    width: 24px;
    height: 24px;
  }
}
/* On a phone the bar holds four items, in the order Sola on the computer uses. */
html.phone #tabs [data-tab='home'] {
  order: 1;
}
html.phone #tabs [data-tab='movies'] {
  order: 2;
}
html.phone #tabs [data-tab='add'] {
  order: 3;
}
html.phone #tabs [data-tab='search'] {
  order: 4;
}
/* Four of them fit with their names even on a narrow phone. */
@media (max-width: 480px) {
  html.phone #tabs a,
  html.phone #tabs button:not(#tab-me) {
    font-size: 10.5px;
    height: 54px;
    padding: 5px 2px 4px;
  }
}
/* iPad and other tablets: a little bigger than on the computer, still easy to hit with a finger. */
@media (any-pointer: coarse) and (min-width: 700px) {
  :root {
    --tabs: 88px;
  }
  #tabs {
    padding: 5px;
    bottom: calc(var(--safe-b) + 12px + var(--vv-gap, 0px));
  }
  #tabs a,
  #tabs button {
    min-width: 88px;
    height: 58px;
    gap: 3px;
    padding: 6px 14px 5px;
    font-size: 12.5px;
  }
  #tabs a svg.i,
  #tabs button svg.i {
    width: 22px;
    height: 22px;
  }
}

/* ---------- headers ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--pad) 8px;
}
.top h1 {
  margin: 0;
  flex: 1;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.top .sub {
  color: var(--text-3);
  font-size: 13px;
}
.round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass-sheen), rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
  flex: none;
}
.round:hover,
.round:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}
.round.spin svg.i {
  animation: spin 0.8s linear infinite;
}
/* The Úvod header lies on the banner, which can be bright: its own dark backing. */
.top.over-hero h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.top.over-hero .round {
  background: var(--glass-sheen), var(--glass-tint);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.top.over-hero .round:hover,
.top.over-hero .round:focus-visible {
  background: rgba(0, 0, 0, 0.68);
}
.top.over-hero .round svg.i {
  stroke-width: 2.1;
}
/* Phones: five buttons next to the title. */
@media (max-width: 420px) {
  .top {
    gap: 8px;
  }
  .top .round {
    width: 38px;
    height: 38px;
  }
}

/* ---------- hero ---------- */
/* The home banner: the whole width, from the top edge, the header over it. Titles take turns. */
.hero {
  position: relative;
  margin: 0 0 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 78vh;
  width: 100%;
  background: transparent;
  display: block;
  touch-action: pan-y;
}
.has-hero > .top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
}
/* One title: the new one fades in over the old, which stays underneath until it is covered. */
.hero .slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.1s ease,
    visibility 0s linear 1.1s;
}
.hero .slide.on {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease;
}
.hero .slide.out {
  opacity: 1;
  visibility: visible;
  transition: none;
}
.hero .slide.out .txt {
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* Darker at the top for the header, fading into the page at the bottom. */
.hero .slide::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero .slide::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  /* U samé hrany clona mizí, jinak by se její konec otiskl jako vodorovný šev. */
  background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.66) 12%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 64%);
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 86%, transparent 99%);
  pointer-events: none;
}
.hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Faces sit in the upper half of a backdrop, so the crop keeps the top. */
  object-position: center 14%;
  transform-origin: 65% 35%;
  will-change: transform;
  /* Spodek se vytrácí, aby za ním mohla dojet rozostřená kopie. */
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, 0.32) 72%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, 0.32) 72%, transparent 88%);
}
/* Rozostřený dvojník: dojíždí tam, kde ostrý obraz končí, a rozplyne se do pozadí. */
.hero .bg.soft {
  animation: none;
  transform: scale(1.14);
  filter: blur(60px) saturate(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.9) 66%, rgba(0, 0, 0, 0.34) 84%, transparent 97%);
  mask-image: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.9) 66%, rgba(0, 0, 0, 0.34) 84%, transparent 97%);
}
/* Televize: rozostření přes celou obrazovku by ji srazilo, stačí kratší. */
html.tv .hero .bg.soft {
  filter: blur(28px);
}
/* "Ken Burns": slowly closer and sideways, every other title the other way round. */
.hero .slide.on .bg,
.hero .slide.out .bg {
  animation: hero-drift-in 18s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.hero .slide.alt.on .bg,
.hero .slide.alt.out .bg {
  transform-origin: 30% 55%;
  animation-name: hero-drift-out;
}
@keyframes hero-drift-in {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.6%, -0.8%, 0);
  }
}
@keyframes hero-drift-out {
  from {
    transform: scale(1.12) translate3d(1.4%, 0.6%, 0);
  }
  to {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
}
/* The text rises into place one line after another, the title also coming into focus. */
.hero .slide.on .txt > * {
  animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.hero .slide.on .txt > :first-child {
  animation-name: hero-rise-title;
  animation-delay: 0.16s;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes hero-rise-title {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
}
/* The banner's trailer: a 16:9 video cropped to cover the banner, faded in once it plays. */
.hero .trailer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
  /* Dojezd až dole: výš musí ukázka krýt celou plochou, jinak skrz ni prosvítá obrázek. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0 68%, rgba(0, 0, 0, 0.4) 83%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0 68%, rgba(0, 0, 0, 0.4) 83%, transparent 94%);
}
/* Když ukázka opravdu jede, obrázek pod ní zmizí – jinak prosvítá skrz její dojezd. */
.hero .slide.plays .bg,
.backdrop.plays img {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero .trailer.on {
  opacity: 1;
}
.hero .trailer iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  width: max(100cqw, 177.78cqh);
  height: max(56.25cqw, 100cqh);
  border: 0;
  /* A little larger, so YouTube's corner labels fall outside the picture; and set a touch lower,
     because what is cut from the top of a trailer is usually the heads. */
  transform: translate(-50%, calc(-50% + 6cqh)) scale(1.18);
}
.hero .slide:focus-visible {
  outline: none;
}
.hero .slide:focus-visible .txt {
  text-decoration: underline;
}
.hero .txt {
  position: absolute;
  z-index: 2;
  inset: auto var(--pad) 18px var(--pad);
}
.hero.multi .txt {
  bottom: 46px;
}
/* The film's own lettering, as large as the banner allows: the width leads (left to itself the
   picture would stay at the size it came in), a tall one stops at the height. */
.hero .logo {
  /* Across the banner's text, but never drawn larger than the picture itself is (500 px). */
  width: min(90%, 420px);
  height: auto;
  max-height: 100px;
  object-fit: contain;
  object-position: left bottom;
  display: block;
  margin-bottom: 6px;
}
.hero h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
}
.hero p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
}
/* Under the text: a dot per title (on a phone) and the sound button. */
.hero .bar {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  right: var(--pad);
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.hero .bar > * {
  pointer-events: auto;
}
.hero .picks {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: -5px;
}
.hero .pick {
  position: relative;
  padding: 12px 4px;
  background: none;
  border: 0;
  color: inherit;
}
.hero .pick .th {
  display: none;
}
.hero .pick .dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
  transition:
    width 0.4s cubic-bezier(0.2, 0.9, 0.25, 1),
    background 0.3s;
}
.hero .pick.on .dot {
  width: 28px;
  background: rgba(255, 255, 255, 0.28);
}
/* The line counting down to the next title. */
.hero .pick .dot b {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.hero .sound {
  margin-left: auto;
  width: 38px;
  height: 38px;
  background: var(--glass-sheen), var(--glass-tint);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
  animation: fade 0.4s ease;
}
/* Tablet and computer: thumbnails instead of dots, the active one bigger and bright. */
@media (min-width: 700px) {
  .hero .bar {
    bottom: 22px;
  }
  .hero.multi .txt {
    bottom: 112px;
  }
  .hero .picks {
    gap: 10px;
    margin: 0;
    padding-top: 8px;
  }
  .hero .pick {
    flex: 0 1 116px;
    min-width: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    transition:
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.15),
      box-shadow 0.35s ease;
  }
  .hero .pick .th {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .hero .pick.on {
    opacity: 1;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
  }
  .hero .pick.on .th {
    transform: scale(1.06);
  }
  .hero .pick:hover,
  .hero .pick:focus-visible {
    opacity: 0.9;
  }
  .hero .pick .dot,
  .hero .pick.on .dot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 3px;
    border-radius: 0;
    background: transparent;
  }
  .hero .pick .dot b {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }
  .hero .sound {
    width: 46px;
    height: 46px;
    flex: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide.on .bg,
  .hero .slide.out .bg,
  .hero .slide.on .txt > * {
    animation: none;
  }
}

/* ---------- rows & cards ---------- */
.row {
  margin-top: 22px;
}
.row h3 {
  margin: 0 0 10px;
  padding: 0 var(--pad);
  font-size: 19px;
  font-weight: 700;
}
.row h3.with-more {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.row h3 .more {
  flex: none;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}
.row h3 .more:focus-visible {
  text-decoration: underline;
}
.strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px var(--pad) 8px;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--pad);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar {
  display: none;
}
.card {
  flex: none;
  width: calc(124px * var(--cover));
  max-width: calc(100vw - 2 * var(--pad));
  scroll-snap-align: start;
  transition: transform 0.15s ease;
  /* Holding a cover opens Sola's own menu, not the phone's "save image". */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.card.wide {
  width: calc(240px * var(--cover));
}
.card .art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}
.card.wide .art {
  aspect-ratio: 16 / 9;
}
.card .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .bar {
  position: absolute;
  inset: auto 8px 8px 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.card .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.card .t {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .s {
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Year and rating under a poster. */
.card .s {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card .s > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .s.role {
  color: var(--text-2);
}
.score {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.score .imdb {
  padding: 0 4px;
  border-radius: 3px;
  background: #f5c518;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
}
.score .star {
  color: #f5c518;
}
/* "Odebrat z Pokračovat ve sledování" */
.card .dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card .dismiss svg.i {
  width: 18px;
  height: 18px;
}
.card.upcoming .when {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.card.missing .art img {
  opacity: 0.38;
  filter: grayscale(0.6);
}
.card.missing .tag {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
}
.page-text {
  margin: 0 0 14px;
  padding: 0 var(--pad);
  max-width: 900px;
  color: var(--text-2);
  line-height: 1.5;
}
.page-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.person-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 4px var(--pad) 0;
}
.person-head .face.big {
  flex: none;
  width: 120px;
  height: 120px;
  font-size: 44px;
}
.person-head .page-text {
  padding: 0;
}
.person-head .born {
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: 14px;
}
a.person {
  color: inherit;
}
.chip-rows {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
}
/* Na široké obrazovce stojí řazení vlevo a filtry vpravo na jedné lince, jako v aplikaci
   na počítači. Na úzké se řady zalomí pod sebe – a každá si pak nechá odsazení od kraje,
   aby druhá nezačínala na samé hraně okna. */
@media (min-width: 900px) {
  .chip-rows {
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 14px;
  }
  .chip-rows .chips {
    overflow: visible;
  }
  .chip-rows .chips:last-child {
    margin-left: auto;
    padding-left: 0;
  }
}
.card:focus-visible {
  transform: scale(1.05);
}
.card:focus-visible .art {
  box-shadow: 0 0 0 3px var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(112px * var(--cover)), 1fr));
  gap: 16px 12px;
  padding: 8px var(--pad);
}
.grid .card {
  width: auto;
}

/* ---------- detail ---------- */
.backdrop {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 58vh;
  width: 100%;
  /* Bez ořezu: clona pod obrázkem smí přetéct pod banner (viz ::after). */
  overflow: visible;
  /* Žádná vlastní barva: tam, kde se obrázek vytrácí, musí prosvítat pozadí stránky –
     jinak zbyde šedá deska a její konec vypadá jako uříznutá hrana. */
  background: transparent;
}
.backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Obrázek se vytrácí plynule až do spodní hrany – rozostřená kopie by u světlých fotek
     (bílé pozadí ateliéru) udělala jen mléčnou mlhu. */
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0.72) 76%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0.72) 76%, rgba(0, 0, 0, 0.35) 90%, transparent 100%);
}
.backdrop::after {
  content: '';
  position: absolute;
  /* Clona sahá o 30 % níž než banner: tma vrcholí u spodku obrázku a vytrácí se teprve
     hluboko pod jeho hranou. Kdyby skončila s bannerem, zůstal by po ní vodorovný pruh. */
  inset: 0 0 -30% 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.62) 58%, rgba(0, 0, 0, 0.9) 70%, #000 78%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
/* The banner's trailer (see .hero .trailer) and its buttons, top right. */
.backdrop .trailer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
  /* Dojezd až dole: výš musí ukázka krýt celou plochou, jinak skrz ni prosvítá obrázek. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0 68%, rgba(0, 0, 0, 0.4) 83%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0 68%, rgba(0, 0, 0, 0.4) 83%, transparent 94%);
}
.backdrop .trailer.on {
  opacity: 1;
}
.backdrop .trailer iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(56.25cqw, 100cqh);
  border: 0;
  transform: translate(-50%, -50%) scale(1.18);
}
.backdrop .bd-ctl {
  position: absolute;
  z-index: 1;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: 12px;
  display: flex;
  gap: 10px;
  animation: fade 0.4s ease;
}
.backdrop .bd-ctl .round {
  position: static;
}
.backdrop .round {
  position: absolute;
  z-index: 1;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 12px;
  background: var(--glass-sheen), var(--glass-tint);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim);
}
.info {
  position: relative;
  margin-top: -40px;
  padding: 0 var(--pad);
}
/* No picture: the title right under the back button. */
.backdrop.noart,
.backdrop.noart[class] {
  aspect-ratio: auto;
  height: calc(env(safe-area-inset-top, 0px) + 68px);
  max-height: none;
  background: none;
}
.backdrop.noart + .info,
.backdrop.noart + .info[class] {
  margin-top: 0;
}
.info .logo {
  max-width: 70%;
  max-height: 90px;
  display: block;
  margin-bottom: 8px;
}
.info h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--text-2);
  font-size: 13px;
}
.meta .chip {
  padding: 1px 7px;
  border: 0;
  border-radius: 6px;
  background: var(--glass-sheen), rgba(255, 255, 255, 0.08);
  box-shadow: var(--glass-rim);
  font-size: 12px;
}
.overview {
  margin: 12px 0 0;
  color: var(--text-2);
  line-height: 1.5;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn {
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  background: var(--glass-sheen), rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-rim);
  color: var(--text);
  transition: filter 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover,
.btn:focus-visible {
  background: var(--glass-sheen), rgba(255, 255, 255, 0.18);
  box-shadow: var(--glass-rim-hover);
}
.btn.primary {
  flex: 1;
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover,
.btn.primary:focus-visible {
  filter: brightness(1.1);
  background: var(--accent);
}
.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.btn.small {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}
.people {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}
.people b {
  color: var(--text-2);
  font-weight: 600;
}
.seasons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px var(--pad) 6px;
  margin-top: 22px;
  scrollbar-width: none;
}
.seasons button {
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
}
.seasons button.on {
  background: var(--text);
  color: #000;
}
.seasons button:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.episodes {
  padding: 8px var(--pad) 0;
  display: grid;
  gap: 14px;
}
.ep {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 12px;
  align-items: center;
}
.ep .art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.ep .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep .art .bar {
  position: absolute;
  inset: auto 6px 6px 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}
.ep .art .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.ep .t {
  font-weight: 600;
  font-size: 14px;
}
.ep .s {
  color: var(--text-3);
  font-size: 12px;
}
.ep .watched {
  color: var(--accent);
}
.ep .go {
  display: flex;
  gap: 6px;
}
.ep:focus-within .art {
  box-shadow: 0 0 0 2px var(--accent);
}

/* ---------- search ---------- */
.searchbox {
  margin: 4px var(--pad) 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-3);
}
.searchbox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font-size: 16px;
  color: var(--text);
}
.empty {
  padding: 60px var(--pad);
  text-align: center;
  color: var(--text-3);
}
.empty h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
}
/* "Počítač je offline" */
.pc-offline {
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(40px, env(safe-area-inset-top)) var(--pad) max(40px, env(safe-area-inset-bottom));
  animation: fade 0.4s ease;
}
.pc-offline .pc {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  margin-bottom: 22px;
}
.pc-offline .pc .i {
  width: 46px;
  height: 46px;
}
.pc-offline h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}
.pc-offline p {
  margin: 10px 0 0;
  max-width: 440px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}
.pc-offline .wait {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 14px;
}
.pc-offline .wait i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.pc-offline .btn {
  margin-top: 22px;
}
.spinner {
  width: 30px;
  height: 30px;
  margin: 80px auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- pairing ---------- */
/* The same background as "Kdo se dívá?", only in Sola's own colour: one gradient, and the wall
   of covers over it. */
.pair {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(
      115% 80% at 50% 26%,
      color-mix(in srgb, var(--accent) 78%, #000) 0%,
      color-mix(in srgb, var(--accent) 42%, #000) 34%,
      color-mix(in srgb, var(--accent) 14%, #000) 62%,
      #08080a 88%
    ),
    #08080a;
}
.pair-wall {
  position: absolute;
  inset: -28% -38%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 17vw, 250px), 1fr));
  gap: 7px;
  transform: rotate(-14deg);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(56% 46% at 50% 50%, transparent 0%, #000 78%);
  mask-image: radial-gradient(56% 46% at 50% 50%, transparent 0%, #000 78%);
  /* A drift so slow you only notice it if you wait: a round trip takes about five minutes. */
  animation: wall-drift 150s ease-in-out infinite alternate;
}
@keyframes wall-drift {
  from {
    transform: rotate(-14deg) translate3d(-2.2%, -1.5%, 0);
  }
  to {
    transform: rotate(-14deg) translate3d(2.2%, 1.5%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pair-wall,
  .who-wall {
    animation: none;
  }
}
.pair-wall img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  /* Stěna drží pohromadě (bez mezer), ale obaly si nechávají zaoblené rohy. */
  border-radius: 12px;
}
.pair-card {
  position: relative;
  z-index: 2;
}
.pair-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}
/* Značka sedí v bílé dlaždici jako ikona aplikace – na modrém pozadí je tak vidět nejlíp. */
.pair-card .mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 23px;
  background: #fff;
  color: color-mix(in srgb, var(--accent) 88%, #000);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.pair-card .mark svg {
  width: 62%;
  height: 62%;
}
.pair-card .mark svg,
.who-brand .mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pair-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
}
.pair-card p {
  margin: 0 0 20px;
  color: var(--text-2);
  line-height: 1.5;
}
.code {
  width: 100%;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.code:focus {
  border-color: var(--accent);
}
.pair-card .btn {
  width: 100%;
}
.pair-card .btn.scan {
  margin-top: 10px;
}
/* Scanning the QR code with a live picture from the camera. */
.scan-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.scan-layer p {
  margin: 0;
  color: var(--text-2);
  text-align: center;
}
.scan-layer .btn {
  min-width: 160px;
}
.scan-box {
  position: relative;
  width: min(78vw, 360px);
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.scan-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.err {
  color: #ff6961;
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

/* ---------- player ---------- */
.player {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  display: grid;
  place-items: center;
}
.player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player .bar {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 30px;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  transition: opacity 0.3s;
}
.player.idle .bar {
  opacity: 0;
  pointer-events: none;
}
.player .bar .ttl {
  flex: 1;
  min-width: 0;
}
.player .bar .ttl b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player .bar .ttl span {
  color: var(--text-2);
  font-size: 13px;
}
.player .pill {
  height: 36px;
  padding: 0 13px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.player .pill svg.i {
  width: 19px;
  height: 19px;
}
.player .pill .lbl {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player .pill:hover {
  background: rgba(255, 255, 255, 0.22);
}
.player .pill.on {
  background: rgba(76, 141, 255, 0.32);
}
/* Moving with a TV remote or the keyboard: a clear white ring on what is selected. */
.player.kbd button:focus {
  box-shadow: 0 0 0 3px #fff;
}
.player .menu {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: calc(env(safe-area-inset-top, 0px) + 64px) 12px 12px;
  background: rgba(0, 0, 0, 0.35);
}
.player .menu .panel {
  width: min(380px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  background: rgba(32, 32, 36, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.player .menu h3 {
  margin: 8px 14px 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.player .menu .opt {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  text-align: left;
  font-size: 16px;
}
.player .menu .opt small {
  display: block;
  color: var(--text-3);
  font-size: 12.5px;
}
.player .menu .opt.on {
  color: var(--accent);
  font-weight: 650;
}
.player .menu .opt.on small {
  font-weight: 400;
  color: var(--text-3);
}
.player .menu .opt:hover {
  background: rgba(255, 255, 255, 0.08);
}
.player.kbd .menu .opt:focus {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 2px #fff;
}
.player .osd {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
@media (max-width: 640px), (max-height: 500px) {
  .player .pill:not(.q) {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .player .pill:not(.q) .lbl {
    display: none;
  }
  .player .bar {
    gap: 8px;
  }
  .player .menu {
    align-items: flex-end;
    padding: 12px 8px calc(var(--safe-b) + 8px);
  }
  .player .menu .panel {
    width: 100%;
  }
}
.player .chip {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.player .chip[hidden] {
  display: none;
}
.player .msg {
  position: absolute;
  max-width: 420px;
  padding: 0 24px;
  text-align: center;
  color: var(--text-2);
}
.player .next {
  position: absolute;
  right: 16px;
  bottom: calc(var(--safe-b) + 130px);
  z-index: 2;
}
.player.idle {
  cursor: none;
}
/* "Přeskočit úvod" – stays when the other controls fade. */
.player .skip {
  position: absolute;
  right: 20px;
  left: auto;
  width: auto;
  max-width: calc(100% - 40px);
  bottom: calc(var(--safe-b) + 150px);
  z-index: 2;
  padding: 0 22px;
  height: 48px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
/* The picture above the seek bar. */
/* Playing failed: the message, and under it the button that looks for another version. */
.play-fail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.play-fail p {
  margin: 0;
  line-height: 1.5;
}
.player .thumb {
  position: absolute;
  bottom: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.player .thumb .pic {
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background-color: #000;
  background-repeat: no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.player .thumb span {
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Subtitle appearance (Vzhled a časování). */
.player video::cue {
  background: rgba(0, 0, 0, 0.72);
}
.player.cue-s video::cue {
  font-size: 80%;
}
.player.cue-l video::cue {
  font-size: 130%;
}
.player.cue-xl video::cue {
  font-size: 165%;
}
.player.cue-nobg video::cue {
  background: transparent;
  text-shadow:
    0 0 4px #000,
    0 0 2px #000,
    0 2px 3px #000;
}

/* ---- Lumen's own controls on the picture ---- */
.player .center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 44px;
  transition: opacity 0.3s;
}
.player .msg:not([hidden]) ~ .center {
  display: none;
}
.player .ctl {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.player .ctl svg.i {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
}
.player .ctl.big {
  width: 84px;
  height: 84px;
}
.player .ctl.big svg.i {
  width: 44px;
  height: 44px;
}
.player .ctl:hover {
  background: rgba(255, 255, 255, 0.18);
}
.player .bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px calc(var(--safe-b) + 12px);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  transition: opacity 0.3s;
}
.player .bottom .line {
  display: flex;
  align-items: center;
  gap: 14px;
}
.player .bottom .time {
  min-width: 58px;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.player .bottom .rest {
  text-align: right;
  color: var(--text-2);
}
.player .bottom .btns {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.player .bottom .btns .gap {
  flex: 1;
}
.player .bottom .btns .ctl {
  width: 48px;
  height: 48px;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.player .bottom .btns .ctl svg.i {
  width: 26px;
  height: 26px;
}
/* The picture plays on the TV: say so where it would be. */
.player.airplay::after {
  content: "Přehrává se přes AirPlay";
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-2);
  font-size: 17px;
  font-weight: 600;
  pointer-events: none;
}
/* AirPlay: the biggest of the bottom buttons, easy to hit. */
.player .bottom .btns .ctl.air {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
}
.player .bottom .btns .ctl.air svg.i {
  width: 34px;
  height: 34px;
}
.player .bottom .btns .ctl.on {
  color: var(--accent);
}
.player .bottom .btns .ctl:hover {
  background: rgba(255, 255, 255, 0.12);
}
.player.idle .center,
.player.idle .bottom {
  opacity: 0;
  pointer-events: none;
}
/* The seek bar: a thick track and a big thumb you can catch with a finger. */
.player .scrub {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  --p: 0%;
}
.player .scrub::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--p), rgba(255, 255, 255, 0.3) var(--p));
}
.player .scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.player .scrub::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}
.player .scrub::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}
.player .scrub::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.player.kbd .scrub:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}
/* Tablets: everything large enough for fingers at arm's length (also with a trackpad attached,
   hence any-pointer). */
/* A tablet. A phone turned on its side is just as wide, but only a few hundred points tall,
   so the height has to count too – there the compact controls below are right. */
@media (any-pointer: coarse) and (min-width: 700px) and (min-height: 600px) {
  .player .bar {
    gap: 16px;
    padding: calc(env(safe-area-inset-top, 0px) + 18px) 28px 48px;
  }
  .player .bar .round {
    width: 64px;
    height: 64px;
  }
  .player .bar .round svg.i {
    width: 32px;
    height: 32px;
  }
  .player .bar .ttl b {
    font-size: 24px;
  }
  .player .bar .ttl span {
    font-size: 17px;
  }
  .player .pill {
    height: 60px;
    padding: 0 24px;
    border-radius: 30px;
    font-size: 20px;
    gap: 10px;
  }
  .player .pill .lbl {
    max-width: 180px;
  }
  .player .pill svg.i {
    width: 28px;
    height: 28px;
  }
  .player .center {
    gap: 90px;
  }
  .player .ctl {
    width: 96px;
    height: 96px;
  }
  .player .ctl svg.i {
    width: 54px;
    height: 54px;
  }
  .player .ctl.big {
    width: 132px;
    height: 132px;
  }
  .player .ctl.big svg.i {
    width: 70px;
    height: 70px;
  }
  .player .bottom {
    padding: 60px 32px calc(var(--safe-b) + 18px);
  }
  .player .bottom .line {
    gap: 18px;
  }
  .player .bottom .time {
    min-width: 92px;
    font-size: 22px;
  }
  .player .bottom .btns {
    gap: 10px;
  }
  .player .bottom .btns .ctl {
    width: 68px;
    height: 68px;
  }
  .player .bottom .btns .ctl svg.i {
    width: 38px;
    height: 38px;
  }
  .player .bottom .btns .ctl.air {
    width: 92px;
    height: 92px;
  }
  .player .bottom .btns .ctl.air svg.i {
    width: 54px;
    height: 54px;
  }
  .player .scrub {
    height: 64px;
  }
  .player .scrub::-webkit-slider-runnable-track {
    height: 10px;
    border-radius: 5px;
  }
  .player .scrub::-webkit-slider-thumb {
    width: 36px;
    height: 36px;
    margin-top: -13px;
  }
  .player .osd {
    font-size: 26px;
    padding: 14px 24px;
  }
  .player .skip {
    height: 62px;
    padding: 0 30px;
    border-radius: 31px;
    font-size: 20px;
    bottom: calc(var(--safe-b) + 190px);
  }
  .card .dismiss {
    width: 42px;
    height: 42px;
  }
  .player .menu {
    padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
  }
  .player .menu .panel {
    width: min(460px, 100%);
  }
  .player .menu h3 {
    font-size: 15px;
  }
  .player .menu .opt {
    min-height: 70px;
    font-size: 21px;
  }
  .player .menu .opt small {
    font-size: 15px;
  }
}
@media (max-width: 640px), (max-height: 500px) {
  .player .center {
    gap: 30px;
  }
  .player .ctl {
    width: 52px;
    height: 52px;
  }
  .player .ctl svg.i {
    width: 30px;
    height: 30px;
  }
  .player .ctl.big {
    width: 72px;
    height: 72px;
  }
  .player .ctl.big svg.i {
    width: 40px;
    height: 40px;
  }
  .player .bottom {
    padding: 34px 14px calc(var(--safe-b) + 6px);
  }
  .player .bottom .time {
    min-width: 48px;
    font-size: 13px;
  }
}

/* ---------- remote ---------- */
.remote {
  padding: 0 var(--pad);
  max-width: 520px;
  margin: 0 auto;
}
.now {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.now .art {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.now .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.now b {
  display: block;
  font-size: 17px;
}
.now span {
  color: var(--text-2);
  font-size: 13px;
}
.seek {
  margin-top: 22px;
}
.seek input {
  width: 100%;
  accent-color: var(--accent);
  height: 28px;
}
.seek .times {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pad {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
}
.key {
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.12s, transform 0.12s;
}
.key:active {
  transform: scale(0.92);
}
.key:hover,
.key:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}
.key.big {
  width: 76px;
  height: 76px;
  background: var(--accent);
  color: #fff;
}
.key.big svg.i {
  width: 32px;
  height: 32px;
}
.key small {
  display: block;
  margin-top: -4px;
  font-size: 10px;
  font-weight: 700;
}
.keys {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.keys button {
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
}
.keys button:hover,
.keys button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.keys button.on {
  color: var(--accent);
}
.vol {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vol .level {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.vol .level i {
  display: block;
  height: 100%;
  background: var(--text-2);
}
.skip {
  width: 100%;
  margin-top: 18px;
}
.offline {
  margin-top: 30px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-2);
  line-height: 1.5;
  text-align: center;
}
.offline b {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 16px;
}

/* ---------- toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabs) + var(--safe-b) + 14px + var(--vv-gap, 0px));
  z-index: 60;
  transform: translate(-50%, 10px);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(44, 44, 46, 0.96);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- large screens (TV, tablet) ---------- */
@media (min-width: 900px) {
  :root {
    --pad: 48px;
  }
  .card {
    width: calc(168px * var(--cover));
  }
  .card.wide {
    width: calc(320px * var(--cover));
  }
  .hero {
    aspect-ratio: 16 / 7;
  }
  .hero h2 {
    font-size: 42px;
  }
  .hero .txt,
  .hero.multi .txt {
    bottom: 34px;
  }
  .hero.multi .txt {
    right: auto;
    max-width: 46%;
  }
  .hero .bar {
    left: auto;
    max-width: 50%;
    bottom: 30px;
  }
  .hero .logo {
    width: min(100%, 540px);
    max-height: 160px;
    margin-bottom: 10px;
  }
  .hero p {
    font-size: 16px;
  }
  .backdrop {
    aspect-ratio: auto;
    height: min(70vh, 52vw);
    max-height: none;
  }
  .backdrop img {
    object-position: center 20%;
  }
  /* Dark towards the bottom and the left, where the text is. */
  /* Širší obrazovka: k tmě odspodu ještě stín zleva, kde stojí název a tlačítka. */
  .backdrop::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0.33) 48%, rgba(0, 0, 0, 0.6) 58%, rgba(0, 0, 0, 0.88) 70%, #000 78%, #000 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.26) 42%, rgba(0, 0, 0, 0) 68%);
  }
  .info {
    max-width: none;
    margin-top: -230px;
  }
  .info .logo {
    max-width: min(460px, 70%);
    max-height: 130px;
    margin-bottom: 12px;
  }
  .info h1 {
    font-size: 40px;
  }
  .info .meta {
    font-size: 15px;
  }
  /* Big "Přehrát" and "Na TV"; the other actions in a row under them. */
  .info .actions {
    gap: 12px;
    margin-top: 20px;
  }
  .info .actions .btn {
    height: 60px;
    padding: 0 28px;
    border-radius: 16px;
    font-size: 18px;
  }
  .info .actions .btn svg.i {
    width: 24px;
    height: 24px;
  }
  .info .actions .btn.primary {
    flex: none;
    min-width: 300px;
  }
  .info .acts {
    margin-top: 14px;
  }
  .info .acts .act {
    width: 56px;
    height: 46px;
    border-radius: 23px;
  }
  .info .overview {
    max-width: none;
    font-size: 16px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(calc(160px * var(--cover)), 1fr));
  }
  .ep {
    grid-template-columns: 200px 1fr auto;
  }
}

/* "Řadit podle: Žánr" – a row per genre */
.genre-rows .row:first-child {
  margin-top: 8px;
}
.row h3 .cnt {
  margin-left: 8px;
  color: var(--text-3);
  font-size: 0.8em;
  font-weight: 600;
}

/* ---------- genres ---------- */
.genre {
  position: relative;
  flex: none;
  width: 220px;
  aspect-ratio: 2.5 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.genre img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
}
.genre .tint,
.genre .name {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.genre .name {
  display: grid;
  place-items: center;
  padding: 0 12px;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
/* On a phone the genres are plain chips, the way the big services show them. */
html.phone .genre {
  width: auto;
  height: 40px;
  aspect-ratio: auto;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}
html.phone .genre .name {
  position: static;
  height: 100%;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  text-shadow: none;
  white-space: nowrap;
}
.genre:focus-visible {
  box-shadow: 0 0 0 3px var(--accent);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px var(--pad) 10px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
/* More chips on a side: that edge fades. */
.chips.more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}
.chips.less {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px);
  mask-image: linear-gradient(90deg, transparent, #000 44px);
}
.chips.less.more {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent);
}
.chip-btn {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  background: var(--glass-sheen), rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.chip-btn.on {
  background: var(--text);
  color: #000;
}
.chip-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
@media (min-width: 900px) {
  .genre {
    width: 340px;
  }
  .genre .name {
    font-size: 28px;
  }
}

/* Elements hidden with the attribute stay hidden whatever their display. */
[hidden] {
  display: none !important;
}

/* ---------- detail: actions, ratings, cast ---------- */
.actions .btn {
  white-space: nowrap;
  min-width: 0;
}
.actions .btn.primary {
  padding: 0 16px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .actions .pc-label {
    display: none;
  }
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
/* Full size even on a phone: the row wraps instead. */
.acts .act {
  flex: none;
}
.act {
  width: 56px;
  height: 42px;
  border-radius: 21px;
  display: grid;
  place-items: center;
  background: var(--glass-sheen), var(--glass-tint);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
  color: #fff;
}
.act.on {
  color: var(--accent);
}
/* ---------- kde to běží online ---------- */

.watch {
  margin-top: 14px;
}
.watch-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.watch-k {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-3);
}
.watch-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.watch-logos img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: #2a2a2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
html.tv .watch-logos img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.watch-also {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}
.watch-src {
  display: inline-block;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--text-3);
}
.watch-src:hover {
  color: var(--text-2);
  text-decoration: underline;
}
html.tv .watch-k,
html.tv .watch-also {
  font-size: 17px;
}

/* ---------- „Opravdu?“ ---------- */

/* Sola's own question instead of the browser's: the television shows none, and a phone's own
   box looks like it belongs to someone else. */
.ask-box {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 20px;
  border-radius: 16px;
  background: #1c1c1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
html.tv .ask-box {
  width: min(680px, calc(100vw - 80px));
  padding: 32px;
}
.ask-box p {
  margin: 0 0 18px;
  line-height: 1.5;
}
html.tv .ask-box p {
  font-size: 24px;
}
.ask-acts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.btn.danger {
  background: #c2402f;
  color: #fff;
}
.btn.danger:hover,
.btn.danger:focus-visible {
  background: #d4503f;
}

/* ---------- náhled po najetí myší / zaměření ovladačem ---------- */

/* The bigger card that grows out of a cover: picture, then the trailer, and what one does with
   the title. On the television it only shows – the remote keeps its own way around. */
.preview {
  position: fixed;
  z-index: 60;
  border-radius: 12px;
  overflow: hidden;
  background: #1c1c1f;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: pv-grow 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.preview.tv {
  pointer-events: none;
}
@keyframes pv-grow {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview {
    animation: none;
  }
}
.pv-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  container-type: size;
}
.pv-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pv-trailer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(56.25cqw, 100cqh);
  border: 0;
  /* Larger than the card, so YouTube's title bar and buttons stay outside the picture. */
  transform: translate(-50%, -50%) scale(1.45);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.pv-trailer.on {
  opacity: 1;
}
.pv-sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}
.pv-body {
  padding: 12px 14px 14px;
}
.pv-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pv-grow {
  flex: 1;
}
.pv-round {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.pv-round:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}
.pv-round.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pv-round.play {
  background: #fff;
  border-color: #fff;
  color: #111;
}
.preview h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview.tv h3 {
  font-size: 22px;
}
.pv-meta,
.pv-genres {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}
.pv-genres {
  margin-top: 3px;
  color: var(--text-3);
}
.preview.tv .pv-meta,
.preview.tv .pv-genres {
  font-size: 17px;
}
.pv-badge {
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: var(--text-3);
}

/* Taking a title out of the library: a colour that says so before the question does. */
.act.danger {
  color: #ff8a8a;
}
.act.danger:hover {
  background: rgba(220, 70, 70, 0.35);
  color: #fff;
}
/* "Trailer": a labelled pill in the accent colour, first in the row. */
.act.trailer-act,
.info .acts .act.trailer-act {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 15px;
  background: rgba(76, 141, 255, 0.22);
  border: 1px solid rgba(76, 141, 255, 0.45);
  color: #a9c8ff;
  font-size: 14px;
  font-weight: 700;
}
.act.trailer-act:not(:disabled):hover,
.act.trailer-act:not(:disabled):focus-visible {
  background: rgba(76, 141, 255, 0.36);
  color: #fff;
}
.act:disabled {
  opacity: 0.35;
}
.act:focus-visible {
  background: rgba(90, 90, 96, 0.9);
}
.ratings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}
.badge {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
/* A person's photo (round): in the cast row and, big, at the top of their page. */
.face {
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-3);
  font-weight: 700;
}
.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.person {
  flex: none;
  width: 88px;
  text-align: center;
}
.person .face {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 28px;
  font-weight: 700;
}
.person .face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.person .t,
.person .s {
  margin-top: 6px;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person .s {
  margin-top: 0;
  color: var(--text-3);
}

/* ---------- full-screen layers: trailer, profiles ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.94);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  overflow-y: auto;
  animation: fade 0.2s ease;
}
.overlay-top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.overlay .frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
}
.overlay iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.overlay .seasons {
  justify-content: center;
  flex-wrap: wrap;
}
/* "Upravit údaje" */
.overlay.scroll {
  justify-content: flex-start;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 40px) 0 calc(env(safe-area-inset-bottom, 0px) + 40px);
}
/* With the keyboard up the dialog stands in the middle of what is left above it – neither
   hanging at the top edge nor sitting on the keys. The margin does it rather than the alignment,
   so a tall dialog can still be scrolled up to. */
.overlay.scroll.near-keys {
  padding-top: 12px;
  padding-bottom: 12px;
}
.overlay.scroll.near-keys > * {
  margin-top: auto;
  margin-bottom: auto;
}
.meta-edit {
  width: min(640px, calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* The dialog is as tall as its content and the layer scrolls – nothing in it is squashed to fit the
   screen (Safari shrank the panel: its avatar grid overlapped, its buttons went flat). */
.overlay.scroll > *,
.meta-edit > * {
  flex-shrink: 0;
}
/* The dialog stands in the middle of the screen. Automatic margins do it instead of alignment:
   once it is taller than the screen they fall to nothing and the top stays reachable. */
.overlay.scroll > * {
  margin-top: auto;
  margin-bottom: auto;
}
/* A primary button grows along a row of buttons; alone in the dialog's column it keeps its height. */
.meta-edit > .btn.primary {
  flex: none;
}
.meta-edit h2 {
  margin: 0;
  font-size: 26px;
}
.meta-edit h3 {
  margin: 14px 0 0;
  font-size: 17px;
}
.meta-edit .field {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  min-width: 0;
}
.meta-edit .field:focus {
  border-color: var(--accent);
}
.meta-edit .field.grow {
  flex: 1;
}
.meta-edit .field.year {
  width: 84px;
}
.match-row {
  display: flex;
  gap: 8px;
}
.match-hint {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}
.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: start;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}
.match:hover,
.match:focus-visible {
  background: var(--surface-2);
}
.match.busy {
  opacity: 0.5;
}
.match img,
.match .ph {
  width: 62px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
}
.match .mt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.match b span {
  color: var(--text-2);
  font-weight: 500;
}
.match small {
  color: var(--text-2);
  font-size: 13px;
}
.match small.ov {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-3);
}

/* Settings */
.set-section {
  margin: 8px var(--pad) 22px;
  max-width: 760px;
}
/* Wide screens (iPad on its side, a computer): the sections in two columns, each kept whole. */
@media (min-width: 900px) {
  html:not(.tv) /* Renaming a paired device: the field takes the whole row. */
/* Nothing found in the library: the way on to Webshare right under the message. */
.empty-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.set-rename {
  display: flex;
  gap: 8px;
  width: 100%;
}
.set-rename .field {
  flex: 1;
  min-width: 0;
}
.set-note {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 13px;
}
.set-grid {
    columns: 2;
    column-gap: 20px;
    padding: 0 var(--pad);
    max-width: 1500px;
  }
  html:not(.tv) .set-grid .set-section {
    margin: 0;
    padding: 8px 0 22px;
    max-width: none;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
  }
}
.set-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.set-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 8px;
}
.set-row .chips {
  padding: 0;
  flex-wrap: wrap;
}
.set-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.set-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.set-label small {
  color: var(--text-3);
  font-size: 13px;
}
.set-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.switch {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.switch:checked {
  background: #30d158;
}
.switch:checked::after {
  transform: translateX(20px);
}
/* Downloads */
.dl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px var(--pad) 20px;
  max-width: 760px;
}
.dl-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
}
.dl-item .art {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.dl-item .art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-item .lt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dl-item small {
  color: var(--text-3);
}
/* My profile */
.my-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Fixed squares (not aspect-ratio: Safari sized the rows before the squares and they overlapped). */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 72px);
  grid-auto-rows: 72px;
  justify-content: space-between;
  gap: 10px;
  max-height: 268px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
}
.avatar-grid .pick {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.avatar-grid .pick img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}
.avatar-grid .match-hint {
  grid-column: 1 / -1;
}
.avatar-grid .pick.on {
  box-shadow:
    0 0 0 2px #000,
    0 0 0 4px var(--accent);
}
.avatar-grid .swatch {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.75);
}
.chips .chip-btn svg.i {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: -2px;
}
/* Playing on a TV */
.cast-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 var(--pad) 30px;
  margin-top: -40px;
  position: relative;
  text-align: center;
}
.cast-body h1 {
  margin: 0;
  font-size: 26px;
}
.cast-state {
  margin: 0;
  color: var(--text-2);
}
.cast-line {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cast-line .time {
  min-width: 54px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  font-size: 14px;
}
.cast-seek {
  flex: 1;
  accent-color: var(--accent);
  height: 40px;
}
/* The volume of a Cast device (a DLNA television keeps its own). */
.cast-vol {
  flex: 1;
  accent-color: var(--accent);
  height: 32px;
}
.cast-line .i {
  flex: none;
  color: var(--text-2);
}
.cast-btns {
  display: flex;
  align-items: center;
  gap: 28px;
}
.cast-btns .round {
  width: 60px;
  height: 60px;
}
.cast-btns .round.big {
  width: 84px;
  height: 84px;
  background: #fff;
  color: #000;
}
.cast-btns .round svg.i {
  width: 30px;
  height: 30px;
}
.cast-btns .round.big svg.i {
  width: 40px;
  height: 40px;
}

/* Lists, download, "Co dnes?" */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
}
.list-row.on {
  color: var(--accent);
}
.list-row .lt,
.dl-opt .lt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.list-row small,
.dl-opt small {
  color: var(--text-3);
  font-size: 13px;
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-opt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
}
.dl-opt .btn {
  align-self: flex-start;
}
.dl-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dl-progress .bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.dl-progress .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s;
}
.meta-edit .chips {
  padding: 0;
  flex-wrap: wrap;
}
.tonight {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.tonight .card {
  width: 150px;
}
.tonight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Episodes: watched with one tap; a whole season at once. */
.ep .seen.on {
  background: var(--accent);
  color: #fff;
}
.season-mark {
  justify-self: start;
  align-self: flex-start;
  margin-bottom: 4px;
}
/* Statistics */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 6px var(--pad) 12px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
}
.stat b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--text-2);
  font-size: 13px;
}
.cols {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 170px;
  padding: 0 var(--pad);
  max-width: 820px;
}
.col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.col i {
  display: block;
  width: 100%;
  max-width: 36px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}
.col .val {
  min-height: 16px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.col .lab {
  color: var(--text-3);
  font-size: 12px;
}
.hbars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--pad);
  max-width: 820px;
}
.hbar-row {
  display: grid;
  grid-template-columns: 110px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.hbar-row .n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hbar-row .track {
  height: 10px;
  border-radius: 0 4px 4px 0;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.hbar-row .track i {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.hbar-row .v {
  text-align: right;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
/* Player: the speed button shows the speed. */
.player .ctl.txt {
  font-size: 15px;
  font-weight: 800;
}
.player .ctl.on {
  color: var(--accent);
}

/* "Přidat odkaz": a card over the blurred page */
.overlay.dim {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.add-links {
  width: min(680px, calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 140px), var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: card-in 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}
.add-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}
.add-head .badge {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(76, 141, 255, 0.16);
  color: var(--accent);
}
.add-head .badge svg.i {
  width: 24px;
  height: 24px;
}
.add-head .t {
  flex: 1;
  min-width: 0;
}
.add-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.add-head p {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 14px;
}
.add-head .x {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}
.add-head .x svg.i {
  width: 18px;
  height: 18px;
}
.add-head .x:hover,
.add-head .x:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.add-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.add-field[hidden] {
  display: none;
}
.add-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.add-label small {
  font-weight: 500;
  color: var(--text-3);
}
.add-paste {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(76, 141, 255, 0.14);
  color: #8db4ff;
  font-size: 13px;
  font-weight: 600;
}
.add-paste svg.i {
  width: 15px;
  height: 15px;
}
.add-links .field {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.add-links textarea.field {
  resize: vertical;
  min-height: 124px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* 16 px at least: smaller text makes iPhone zoom the page when the field is tapped. */
  font-size: 16px;
  line-height: 1.5;
}
.add-links .field::placeholder {
  font-family: -apple-system, system-ui, 'Segoe UI', sans-serif;
  color: var(--text-3);
}
/* Typing into a field is marked by the field itself – a brighter edge and a deeper inside –
   rather than by a coloured ring around it. */
.add-links .field:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: none;
}
.add-help {
  margin: -6px 0 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}
/* The links found in the field, each with what it is. */
.add-found {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -4px;
}
.add-found[hidden] {
  display: none;
}
.add-found .lk {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  animation: fade 0.2s ease;
}
.add-found .lk.none {
  color: var(--text-3);
}
.add-found .kind {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(76, 141, 255, 0.16);
  color: #8db4ff;
}
.add-found .kind.ws {
  background: rgba(48, 209, 88, 0.15);
  color: #6ee08f;
}
.add-found .kind.pt {
  background: rgba(191, 90, 242, 0.16);
  color: #d49bff;
}
.add-found .kind.stream,
.add-found .kind.file {
  background: rgba(255, 159, 10, 0.16);
  color: #ffb954;
}
.add-found .url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.add-found .more {
  padding-left: 4px;
  color: var(--text-3);
  font-size: 13px;
}
.add-note {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 69, 58, 0.1);
  color: #ff8a80;
  font-size: 14px;
}
.add-note[hidden] {
  display: none;
}
.add-links .add-actions {
  margin-top: 4px;
}
.add-links .add-actions .btn {
  min-width: 112px;
  border-radius: 14px;
  white-space: nowrap;
}
.add-links .add-actions .btn.primary {
  flex: 0 1 auto;
  min-width: 210px;
}
.add-links .add-actions .btn.primary svg.i {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}
@media (max-width: 520px) {
  .add-links {
    padding: 18px;
    border-radius: 22px;
  }
  .add-links .add-actions .btn {
    flex: none;
    min-width: 0;
    padding: 0 16px;
  }
  .add-links .add-actions .btn.primary {
    flex: 1;
    min-width: 0;
  }
}
/* Little room above the keyboard (iPad across): tighter. */
.overlay.tight.scroll {
  /* Below the status bar and the haze iPadOS puts under it. */
  padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
  padding-bottom: 10px;
}
.overlay.tight .add-links {
  gap: 8px;
  padding: 14px 18px;
}
.overlay.tight .add-head p,
.overlay.tight .add-help,
.overlay.tight .add-label.opt {
  display: none;
}
.overlay.tight .add-head h2 {
  font-size: 19px;
}
.overlay.tight .add-head .x {
  width: 32px;
  height: 32px;
}
.overlay.tight .add-links textarea.field {
  min-height: 72px;
}
.overlay.tight .add-links .field {
  padding-top: 10px;
  padding-bottom: 10px;
}
.overlay.tight .add-links .add-actions {
  margin-top: 0;
}
.overlay.tight .add-links .add-actions .btn {
  height: 44px;
}
.add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@property --who-tint {
  syntax: '<color>';
  inherits: true;
  initial-value: #0a84ff;
}
/* "Kdo se dívá?": a full gradient in the colour of the profile it is on – nothing of the page
   below shows through, the colours are mixed with black instead of thinned to transparent. */
.overlay.who-tint {
  background:
    radial-gradient(
      115% 80% at 50% 26%,
      color-mix(in srgb, var(--who-tint) 78%, #000) 0%,
      color-mix(in srgb, var(--who-tint) 42%, #000) 34%,
      color-mix(in srgb, var(--who-tint) 14%, #000) 62%,
      #08080a 88%
    ),
    #08080a;
  transition: --who-tint 0.5s ease;
}
/* Bigger faces to choose from. */
.who .avatar {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  font-size: 54px;
}
@media (max-width: 480px) {
  .who .avatar {
    width: 98px;
    height: 98px;
    border-radius: 26px;
    font-size: 42px;
  }
}
/* The same wall of covers as on the pairing page, only whispered: faded right down and taken
   out of the middle, so it reads as a texture at the edges and never fights with the faces. */
.who-wall {
  position: absolute;
  inset: -28% -38%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 17vw, 250px), 1fr));
  gap: 7px;
  transform: rotate(-14deg);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(56% 46% at 50% 50%, transparent 0%, #000 78%);
  mask-image: radial-gradient(56% 46% at 50% 50%, transparent 0%, #000 78%);
  animation: wall-drift 150s ease-in-out infinite alternate;
}
.who-wall img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  /* Stěna drží pohromadě (bez mezer), ale obaly si nechávají zaoblené rohy. */
  border-radius: 12px;
}
/* The top row is placed on the overlay already, it only needs to sit above the wall. */
.overlay.who-tint > .overlay-top {
  z-index: 1;
}
.overlay.who-tint > .who {
  position: relative;
  z-index: 1;
}
.who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 var(--pad);
}
/* Sola in the middle of the top edge, in white as in the notification area: it says whose
   library this is without taking the eye off the faces, so it stays a little see-through. */
/* The mark sits at the foot of the screen: the faces are what one comes here for. Centred by the
   layout, not by a shift – a shifted layer is redrawn and both the mark and the name blur. */
.who-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 5vh, 64px);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  opacity: 0.78;
}
/* Room at the foot for it, so it never meets "Spravovat profily". */
.overlay.who-tint > .who {
  padding-bottom: clamp(74px, 13vh, 150px);
}
/* The wall of covers reaches outside the screen on purpose – it must not make this scroll. */
.overlay.who-tint {
  overflow: hidden;
}
.who-brand .mark {
  display: block;
  width: 62px;
  height: 62px;
}
.who-brand .mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.who-brand b {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
html.tv .who-brand .mark {
  width: 88px;
  height: 88px;
}
html.tv .who-brand b {
  font-size: 58px;
}
.who h2 {
  margin: 0;
  font-size: 26px;
}
.who form {
  width: 100%;
  max-width: 260px;
}
.who-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.who-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 148px;
}
@media (max-width: 480px) {
  .who-item {
    width: 110px;
  }
}
.who-name {
  font-weight: 600;
}
.who-item:not(.on) .who-name {
  color: var(--text-2);
}
/* The menu under the avatar and under the three lines: a sheet along the bottom edge. */
.overlay.sheet {
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.who.acct {
  width: min(480px, 100%);
  margin: 0 auto;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px calc(var(--safe-b) + 16px);
  background: var(--glass-sheen), rgba(30, 30, 32, 0.9);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.65);
  animation: sheet-in 0.22s var(--ease, ease);
}
@keyframes sheet-in {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}
.who.acct .grab {
  width: 40px;
  height: 4px;
  margin: 0 auto 6px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}
.acct-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px 10px;
}
.acct-head .avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 22px;
  flex: none;
}
.acct-head b {
  display: block;
  font-size: 19px;
}
.acct-head small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 13px;
}
.acct-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 16.5px;
  font-weight: 500;
  text-align: left;
}
.acct-item .lbl {
  flex: 1;
  min-width: 0;
}
.acct-item:hover,
.acct-item:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}
.acct-item svg.i {
  flex: none;
  width: 22px;
  height: 22px;
  opacity: 0.85;
}
.acct-item svg.i:last-child {
  width: 18px;
  height: 18px;
  opacity: 0.4;
}
.who-kid {
  margin-top: -6px;
  color: var(--text-3);
  font-size: 12px;
}
.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
/* Pinned to the box: older TV browsers would otherwise size it by the photo and crop it oddly. */
.avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.who-item.on .avatar,
.who-item:focus-visible .avatar {
  box-shadow:
    0 0 0 3px #000,
    0 0 0 5px var(--accent);
}
.avatar.big {
  width: 84px;
  height: 84px;
}
.avatar.small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: none;
}


/* Phones and tablets zoom into fields with smaller text: never below 16 px there. */
@media (pointer: coarse) {
  input:not([type="range"]),
  textarea,
  select {
    font-size: max(16px, 1em);
  }
}

/* ---------- the app for LG TVs (html.tv): a floating bar on the left, clear focus ---------- */
html.tv {
  --tabs: 0px;
  /* Where the bar ends; the page's content starts a little further. */
  --rail: 104px;
  --shift: max(0px, calc(var(--rail) + 16px - var(--pad)));
}
html.tv #view {
  padding-left: var(--shift);
  padding-bottom: 48px;
}
/* The same glass pill as on phones, upright, over the page. */
html.tv #tabs {
  left: 18px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 32px;
}
html.tv #tabs a,
html.tv #tabs button {
  min-width: 0;
  width: 72px;
  height: 64px;
  padding: 6px 2px;
  border-radius: 26px;
  font-size: 11px;
}
html.tv #tabs a:focus,
html.tv #tabs button:focus {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 2px #fff;
}
/* Banners still run edge to edge, under the bar; their text starts with the page. */
html.tv .hero,
html.tv .backdrop {
  margin-left: calc(-1 * var(--shift));
  width: calc(100% + var(--shift));
}
html.tv .hero .txt {
  left: calc(var(--pad) + var(--shift));
}
html.tv .has-hero > .top {
  left: var(--shift);
}
html.tv .backdrop .round {
  left: calc(var(--shift) + var(--pad) - 4px);
}
/* What the remote points at stands out. The frame is drawn with a shadow, not with an outline:
   the browser of a television rounds an outline's corners of old, so around a rounded cover it
   drew a rectangle with white corners. ":focus" because on a television only the remote moves
   the focus – and older browsers do not know ":focus-visible" at all. */
html.tv .btn:focus,
html.tv .act:focus,
html.tv .round:focus,
html.tv .chip-btn:focus,
html.tv .genre:focus,
html.tv .person:focus,
html.tv .hero .pick:focus,
html.tv .hero .slide:focus {
  outline: none;
  box-shadow:
    0 0 0 3px #000,
    0 0 0 6px #fff;
}
html.tv .card:focus {
  transform: scale(1.08);
  outline: none;
}
html.tv .card:focus .art {
  /* Just the frame: a big soft shadow would be painted anew with every move of the remote. */
  box-shadow: 0 0 0 3px #fff;
}
/* The TV's graphics are slow: nothing blurs what lies under the bar and buttons (it would be redone
   in every frame of a scroll); somewhat darker backgrounds instead. */
html.tv *,
html.tv *::before,
html.tv *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.tv #tabs {
  background: rgba(30, 30, 32, 0.94);
}
/* Televize kreslí zlomkem výkonu počítače, a co je vidět přes celou obrazovku, stojí nejvíc.
   Proto tu odpadá prostředí za stránkou (stejně ho kryje obrázek filmu v hledáčku), pomalý
   nájezd obrázku v banneru i jeho rozostřená kopie – televize by je překreslovala v každém
   snímku a mezi tím by nestíhala reagovat na ovladač. */
html.tv #ambient {
  display: none;
}
/* Barvy prostředí se na televizi nepřejíždějí: přepočet by se promítl do celé stránky. */
html.tv {
  transition: none;
}
html.tv .hero .bg.soft {
  display: none;
}
html.tv .hero .slide .bg,
html.tv .hero .slide .txt > * {
  animation: none !important;
}
html.tv .hero .bg {
  transform: none;
  will-change: auto;
}
html.tv .overlay.dim {
  background: rgba(0, 0, 0, 0.82);
}
html.tv .hero .sound,
html.tv .card .dismiss,
html.tv .backdrop .round {
  background: rgba(0, 0, 0, 0.62);
}
/* The detail fits the 16:9 screen: a slightly lower picture, the text higher. */
html.tv .backdrop:not(.noart) {
  height: 66vh;
}
html.tv .info {
  margin-top: -210px;
}
html.tv .toast,
html.tv #toast {
  bottom: 28px;
}
/* The banner in focus: a frame around it rather than underlined text. */
html.tv .hero .slide:focus {
  outline: none;
  box-shadow: inset 0 0 0 4px #fff;
}
html.tv .hero .slide:focus .txt {
  text-decoration: none;
}
/* Covers and text big enough to read from the sofa. */
html.tv .card {
  width: calc(250px * var(--cover));
}
html.tv .card.wide {
  width: calc(440px * var(--cover));
}
html.tv .grid {
  grid-template-columns: repeat(auto-fill, minmax(calc(250px * var(--cover)), 1fr));
  gap: 30px 22px;
}
html.tv .strip {
  /* Žádné zaskakování na obal: po řadě se stejně chodí ovladačem a televize by při každém
     posunu počítala, kde má řada zastavit. */
  scroll-snap-type: none;
  gap: 20px;
  /* Room for what the remote points at: the strip scrolls sideways, so the cover, grown a little
     with its white frame, would be cut off above and below. */
  padding-top: 24px;
  padding-bottom: 20px;
}
html.tv .card .art {
  border-radius: 14px;
}
html.tv .card .t {
  margin-top: 10px;
  font-size: 18px;
}
html.tv .card .s {
  font-size: 15px;
}
html.tv .score .imdb {
  padding: 0 5px;
  font-size: 12px;
  line-height: 18px;
}
html.tv .row {
  margin-top: 18px;
}
html.tv .row h3 {
  margin-bottom: 14px;
  font-size: 26px;
}
html.tv .row h3 .more {
  font-size: 18px;
}
html.tv .top h1 {
  font-size: 38px;
}
html.tv .chips {
  gap: 10px;
}
html.tv .chip-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 23px;
  font-size: 18px;
}
html.tv .grid .card {
  width: auto;
}
/* "Kdo se dívá?" from the sofa: big pictures and names. */
html.tv .who {
  gap: 34px;
}
html.tv .who h2 {
  font-size: 44px;
}
html.tv .who-grid {
  gap: 44px;
}
html.tv .who-item {
  width: 210px;
  gap: 14px;
}
html.tv .who .avatar {
  width: 190px;
  height: 190px;
  border-radius: 40px;
  font-size: 84px;
}
html.tv .who-name {
  font-size: 24px;
}
html.tv .who-kid {
  font-size: 17px;
}
/* The current profile in blue, the one the remote is on in white (and a little bigger). */
html.tv .who-item.on .avatar {
  box-shadow:
    0 0 0 5px #000,
    0 0 0 8px var(--accent);
}
html.tv .who-item .avatar {
  transition: transform 0.15s ease;
}
html.tv .who-item:focus .avatar {
  transform: scale(1.06);
  box-shadow:
    0 0 0 5px #000,
    0 0 0 10px #fff;
}
html.tv .who-item:focus {
  outline: none;
}
html.tv .who-item:focus .who-name {
  color: #fff;
}
html.tv .who form {
  max-width: 380px;
}
html.tv .overlay-top {
  top: 24px;
  left: 24px;
}
/* A trailer on the TV: the whole screen; the title and the other trailers lie over the picture and
   go away after a few quiet seconds (any key brings them back). */
html.tv .overlay.trailer-full {
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}
html.tv .overlay.trailer-full .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}
html.tv .overlay.trailer-full .overlay-top {
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 48px;
  background: linear-gradient(rgba(0, 0, 0, 0.75), transparent);
  transition: opacity 0.4s ease;
}
html.tv .overlay.trailer-full .seasons {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 48px 24px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  transition: opacity 0.4s ease;
}
html.tv .overlay.trailer-full .seasons:empty {
  display: none;
}
html.tv .overlay.trailer-full.idle .overlay-top,
html.tv .overlay.trailer-full.idle .seasons {
  opacity: 0;
}

/* ---------- TV app: screen saver, keyboard, colour keys ---------- */
.saver {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  cursor: none;
  animation: fade 1.2s ease;
}
.saver img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.5s ease;
}
.saver img.on {
  opacity: 0.8;
  animation: hero-drift-in 22s linear forwards;
}
.saver img.alt.on {
  transform-origin: 30% 55%;
  animation-name: hero-drift-out;
}
.saver::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 45%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 30%);
}
.saver .info,
.saver .clock {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 4s ease;
}
.saver .info {
  left: 72px;
  bottom: 60px;
}
.saver .info b {
  font-size: 34px;
  font-weight: 800;
}
.saver .info span {
  color: var(--text-2);
  font-size: 18px;
}
.saver .clock {
  right: 72px;
  top: 52px;
  align-items: flex-end;
}
.saver .clock b {
  font-size: 64px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.saver .clock span {
  color: var(--text-2);
  font-size: 20px;
}
.tv-keys {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  max-width: 1000px;
  padding: 6px var(--pad) 18px;
}
.tv-keys .k {
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.tv-keys .k.wide {
  grid-column: span 4;
  font-size: 16px;
}
.tv-keys .k:focus {
  background: #fff;
  color: #000;
  outline: none;
}
/* A dot of the remote's colour key by each place it opens. */
html.tv #tabs [data-tab] {
  position: relative;
}
html.tv.tv-dots #tabs [data-tab='home']::after,
html.tv.tv-dots #tabs [data-tab='movies']::after,
html.tv.tv-dots #tabs [data-tab='shows']::after,
html.tv.tv-dots #tabs [data-tab='search']::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
html.tv.tv-dots #tabs [data-tab='home']::after {
  background: #2f80ff;
}
html.tv.tv-dots #tabs [data-tab='movies']::after {
  background: #34c759;
}
html.tv.tv-dots #tabs [data-tab='shows']::after {
  background: #ffd60a;
}
html.tv.tv-dots #tabs [data-tab='search']::after {
  background: #ff3b30;
}
/* "Pustit na TV": the Lumen app on a TV first. */
.list-row.app {
  background: rgba(76, 141, 255, 0.14);
  border: 1px solid rgba(76, 141, 255, 0.35);
}
/* "Jen pro mě" when adding links; the mark on such a title. */
.add-private {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
/* Switched on, it decides who will ever see the title – so the whole panel lights up. */
.add-private:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.add-private:has(input:checked) small {
  color: var(--text-2);
}
.add-private span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.add-private b {
  font-size: 15px;
}
.add-private small {
  color: var(--text-3);
  font-size: 13px;
}

/* "Celý seriál z Webshare" in "Přidat odkaz", and "Přidat seriál" */
/* Cesty do knihovny: stejné dlaždice jako v okně "Přidat" v aplikaci na počítači. */
.add-tiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.add-tiles[hidden] {
  display: none;
}
.at-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.at-row.main {
  gap: 12px;
}
.at-row.solo {
  grid-template-columns: minmax(0, 1fr);
}
.add-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-align: left;
  transition: background 0.15s ease;
}
.add-tile:hover,
.add-tile:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}
.add-tile.big {
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 13%, rgba(255, 255, 255, 0.05));
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.add-tile.big:hover,
.add-tile.big:focus-visible {
  background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.05));
}
.at-ic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.at-ic.blue {
  background: linear-gradient(135deg, #2b5cf0, #6fb4ff);
}
.at-ic.purple {
  background: linear-gradient(135deg, #7c4dff, #e0559c);
}
.at-ic.teal {
  background: linear-gradient(135deg, #0b8fa8, #3ddfa8);
}
.at-ic svg.i {
  width: 20px;
  height: 20px;
}
.add-tile.big .at-ic {
  width: 62px;
  height: 62px;
  border-radius: 16px;
}
.add-tile.big .at-ic svg.i {
  width: 30px;
  height: 30px;
}
.at-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.add-tile b {
  font-size: 13.5px;
}
.add-tile small {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.35;
}
.add-tile.big b {
  font-size: 19px;
}
.add-tile.big small {
  font-size: 13px;
  line-height: 1.4;
}
/* Od tabletu nahoru stojí vedle sebe, jako na počítači. */
@media (min-width: 620px) {
  .at-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.show-add {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.show-hits {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.show-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}
.show-hit:hover,
.show-hit:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}
.show-hit img,
.show-hit .ph {
  flex: none;
  width: 42px;
  height: 63px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}
.show-hit .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.show-hit small,
.show-top small {
  color: var(--text-3);
  font-size: 13px;
}
.show-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  color: var(--text-2);
  font-size: 14px;
}
.show-wait .spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.show-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.show-top img {
  width: 54px;
  height: 81px;
  border-radius: 8px;
  object-fit: cover;
}
.show-top div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.show-top b {
  font-size: 18px;
}
.show-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.show-opt {
  display: flex;
  align-items: center;
  gap: 10px;
}
.show-opt > span {
  width: 56px;
  flex: none;
  color: var(--text-3);
  font-size: 13px;
}
.show-opt .chips {
  margin: 0;
  padding: 0;
}
.show-sum {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}
.show-seasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.show-season {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}
.show-season summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.show-season summary::-webkit-details-marker {
  display: none;
}
.show-season summary small {
  margin-left: auto;
  color: var(--text-3);
}
.show-season input[type='checkbox'],
.show-ep input[type='checkbox'] {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.show-ep {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.show-ep .n {
  flex: none;
  width: 26px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.show-ep .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.show-ep b {
  font-size: 14px;
  font-weight: 600;
}
.show-ep .pick {
  color: var(--text-3);
  font-size: 12px;
}
.show-ep select.field {
  height: 34px;
  padding: 0 8px;
  font-size: 12px;
}
.show-ep.none {
  opacity: 0.5;
}
.show-ep input[type='radio'] {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.show-season > .show-ep:first-child {
  border-top: 0;
}
/* A hint rather than an error ("Hlídat, až bude"). */
.add-note.good {
  background: rgba(76, 141, 255, 0.1);
  color: #9cc0ff;
}
.meta .chip.mine {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 4px;
  border-color: rgba(76, 141, 255, 0.6);
  color: #9cc0ff;
}
/* Obrázek profilu v odznaku: stejně velký jako písmo vedle něj. */
.avatar.tiny {
  width: 19px;
  height: 19px;
  font-size: 10px;
  flex: none;
}

/* "Upravit Úvod" */
.home-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.he-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}
.he-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.he-name {
  font-weight: 600;
}
.he-hint {
  color: var(--text-3);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.he-row.off .he-name {
  color: var(--text-3);
}
.he-row .round {
  width: 38px;
  height: 38px;
}
/* The grip a row is dragged by: the page must not scroll under the finger meanwhile. */
.he-row .grip {
  touch-action: none;
  cursor: grab;
  color: var(--text-3);
}
.he-row.dragging {
  position: relative;
  z-index: 2;
  transition: none;
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.he-row.dragging .grip {
  cursor: grabbing;
  color: var(--text);
}
.he-row .round:disabled,
.he-row .switch:disabled {
  opacity: 0.25;
}
.home-edit-cta {
  display: flex;
  justify-content: center;
  padding: 36px var(--pad) 8px;
}
.home-edit-cta .btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}
@media (max-width: 480px) {
  .top .round.wide-only {
    display: none;
  }
}
html.tv .he-row {
  padding: 10px 12px 10px 18px;
}
html.tv .he-name {
  font-size: 19px;
}
html.tv .he-hint {
  font-size: 15px;
}
html.tv .he-row .round {
  width: 46px;
  height: 46px;
}
html.tv .he-row .switch:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---------- quality badges, "skončí v", a season's rest ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.bdg {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bdg.hi {
  border-color: rgba(255, 214, 10, 0.55);
  color: #ffe066;
}
.bdg.cz {
  border-color: rgba(76, 141, 255, 0.6);
  color: #9cc0ff;
}
.meta .ends {
  color: var(--text-3);
}
.season-left {
  margin: 0 0 10px;
  color: var(--text-2);
  font-size: 14px;
}
html.tv .bdg {
  font-size: 15px;
  padding: 3px 10px;
}
html.tv .season-left {
  font-size: 17px;
}
/* ---------- player: end time, the pause screen ---------- */
.player .time.ends {
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 600px) {
  .player .time.ends {
    display: none;
  }
}
.player .pause-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 0 6vw 18vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.25) 100%),
    rgba(0, 0, 0, 0.25);
  animation: fade 0.6s ease;
}
.player .pause-info[hidden] {
  display: none;
}
.player.info-on .center,
.player.info-on .bottom,
.player.info-on .bar {
  opacity: 0;
  pointer-events: none;
}
.pi-box {
  max-width: min(720px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pi-kicker {
  color: var(--text-3);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pi-box h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
}
.pi-logo {
  max-width: 60%;
  max-height: 120px;
  object-fit: contain;
  object-position: left bottom;
}
.pi-sub {
  margin: 0;
  color: var(--text-2);
  font-size: 18px;
  font-weight: 600;
}
.pi-text {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pi-time {
  margin: 4px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
/* ---------- "Pokračovat na televizi?" ---------- */
.handoff {
  position: fixed;
  z-index: 65;
  left: 50%;
  bottom: calc(var(--tabs) + var(--safe-b) + 24px + var(--vv-gap, 0px));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 2 * var(--pad)));
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(30, 30, 33, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: card-in 0.35s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.ho-art {
  grid-row: span 2;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.ho-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ho-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ho-text small {
  color: var(--accent);
  font-weight: 700;
}
.ho-text b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ho-text span {
  color: var(--text-3);
  font-size: 13px;
}
.ho-btns {
  display: flex;
  gap: 8px;
}
.ho-btns .btn {
  height: 40px;
}
html.tv .handoff {
  bottom: 40px;
  width: 640px;
}
/* ---------- TV: the background of the film in focus; the profile in the bar ---------- */
.focus-bg {
  display: none;
}
html.tv .focus-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
html.tv .focus-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Kratší přejezd: televize při něm míchá dva obrázky přes celou obrazovku. */
  transition: opacity 0.5s ease;
}
html.tv .focus-bg img.on {
  opacity: 0.3;
}
/* Dokud za stránkou žádný obrázek není, nemá televize co ztmavovat: clona přes celou
   obrazovku by se skládala v každém snímku a vidět by po ní nebylo nic (pozadí je černé). */
html.tv .focus-bg:not(.has)::after {
  display: none;
}
html.tv .focus-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.85) 75%, #000 100%);
}
html.tv #view {
  position: relative;
  z-index: 1;
}
.focus-cap {
  position: fixed;
  z-index: 2;
  top: 26px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  animation: fade 0.4s ease;
}
.focus-cap[hidden] {
  display: none;
}
.focus-cap b {
  font-size: 28px;
  font-weight: 800;
}
.focus-cap span {
  color: var(--text-2);
  font-size: 17px;
}
#tab-profile[hidden] {
  display: none;
}
html.tv #tab-profile {
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px 26px 12px 12px;
}
html.tv #tab-profile .avatar.small {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 16px;
}
html.tv #tab-profile .nm {
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .handoff {
    grid-template-columns: 84px 1fr;
  }
  .ho-art {
    grid-row: auto;
  }
  .ho-btns {
    grid-column: 1 / -1;
  }
  .ho-btns .btn {
    flex: 1;
  }
}

/* ---------- TV: clock, trailer behind the page, episodes ---------- */
.rail-clock {
  display: none;
}
html.tv .rail-clock {
  display: block;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.focus-trailer {
  display: none;
}
html.tv .focus-trailer {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  container-type: size;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
html.tv .focus-trailer.on {
  opacity: 0.4;
}
html.tv .focus-trailer iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(56.25cqw, 100cqh);
  border: 0;
  transform: translate(-50%, -50%) scale(1.18);
}
html.tv .focus-trailer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 75%, #000 100%);
}
html.tv .ep {
  grid-template-columns: 280px 1fr auto;
  gap: 18px;
}
html.tv .ep .t {
  font-size: 20px;
}
html.tv .ep .s {
  font-size: 16px;
}
html.tv .ep .art:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
html.tv .seasons button {
  height: 46px;
  padding: 0 20px;
  font-size: 18px;
}
/* ---------- subtitles on the TV: clearer ---------- */
html.tv .player video::cue {
  background: rgba(0, 0, 0, 0.8);
  font-weight: 600;
}
/* ---------- "Jak se vám líbilo?" ---------- */
.player .rate-box {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 18vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 26px;
  border-radius: 20px;
  background: rgba(20, 20, 22, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: card-in 0.35s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.rate-box b {
  font-size: 22px;
}
.rate-box > span {
  color: var(--text-2);
}
.rate-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.rate-btns .btn.ghost {
  background: transparent;
  color: var(--text-2);
}
/* ---------- "Jen pro rodiče" ---------- */
.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 var(--pad);
  text-align: center;
}
.gate h2 {
  margin: 0;
  font-size: 26px;
}
.gate p {
  margin: 0;
  font-size: 22px;
  color: var(--text-2);
}
.gate-answers {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.gate-answers .btn {
  min-width: 90px;
  font-size: 22px;
}
html.tv .gate-answers .btn:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/* "Jak se vám líbilo?" in place of the big buttons. */
.player.rating-on .center {
  opacity: 0;
  pointer-events: none;
}

/* ---------- covers: "Nové", 4K, CZ ---------- */
.cover-tags {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}
/* "Jen pro mě": the profile that alone sees the title, in the cover's corner. */
.cover-mine {
  position: absolute;
  z-index: 1;
  right: 6px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.cover-mine .avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: none;
}
.ctag {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.ctag.new {
  background: var(--accent);
}
.ctag.k4 {
  color: #ffe066;
}
html.tv .ctag {
  font-size: 13px;
  padding: 2px 8px;
}
/* ---------- "Bez spoilerů" ---------- */
html.no-spoilers .card.unseen .art img,
html.no-spoilers .ep.unseen .art img {
  filter: blur(14px) brightness(0.7);
  transform: scale(1.12);
}
.spoiler-btn {
  margin-top: 12px;
}
/* ---------- the quick menu ---------- */
.quick-menu .list-row {
  width: 100%;
}
html.tv .quick-menu .list-row:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
/* ---------- loading: the shape of the page ---------- */
.skel-shine,
.skel-card,
.skel-title,
.skel-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.045) 75%);
  background-size: 200% 100%;
  animation: skel 1.4s linear infinite;
}
@keyframes skel {
  to {
    background-position: -200% 0;
  }
}
.skel-card {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}
.skel-title {
  width: 180px;
  height: 20px;
  margin: 4px var(--pad) 12px;
  border-radius: 6px;
}
.skel-title.big {
  width: 240px;
  height: 30px;
  margin-top: calc(env(safe-area-inset-top, 0px) + 22px);
}
.skel-line {
  height: 14px;
  margin: 10px var(--pad) 0;
  border-radius: 5px;
}
.skel-line.short {
  width: 40%;
}
.skel .hero.skel-shine,
.skel .backdrop.skel-shine {
  margin-bottom: 18px;
}
@media (prefers-reduced-motion: reduce) {
  .skel-shine,
  .skel-card,
  .skel-title,
  .skel-line {
    animation: none;
  }
}

/* ---------- "Historie sledování" ---------- */
.hist-day {
  margin: 22px var(--pad) 10px;
  font-size: 17px;
  color: var(--text-2);
  text-transform: capitalize;
}
.hist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 var(--pad);
}
.hist-row {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 14px;
  align-items: center;
}
.hist-row .art {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
}
.hist-row .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hist-row .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}
.hist-row .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.hist-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
}
.hist-text b,
.hist-text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-text span {
  color: var(--text-2);
  font-size: 14px;
}
.hist-text small {
  color: var(--text-3);
  font-size: 13px;
}
@media (min-width: 900px) {
  .hist-row {
    grid-template-columns: 200px 1fr auto;
  }
}
html.tv .hist-row {
  grid-template-columns: 260px 1fr auto;
}
html.tv .hist-text b {
  font-size: 20px;
}
html.tv .hist-text span {
  font-size: 16px;
}
html.tv .hist-text small {
  font-size: 15px;
}
/* ---------- typing on the phone for the TV ---------- */
.tv-type {
  margin-bottom: 18px;
}
.tv-type h3 {
  margin: 0 0 4px;
}
.tv-type .sub {
  margin: 0 0 10px;
  color: var(--text-2);
}
.tv-type-row {
  display: flex;
  gap: 8px;
}
.tv-type-row .field {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.tv-hint {
  margin: -6px var(--pad) 14px;
  color: var(--text-3);
  font-size: 15px;
}

/* "Hlídání" (#/finder) */
.finder-actions {
  display: flex;
  gap: 10px;
  margin: 4px 0 6px;
}
.finder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.finder-row:first-of-type {
  border-top: 0;
}
.finder-row .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.finder-row .txt a,
.finder-row .txt b {
  font-weight: 600;
  color: var(--text);
}
.finder-row small {
  color: var(--text-3);
  font-size: 13px;
}
.finder-row .btn {
  flex: none;
}
.finder-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.finder-events li {
  display: flex;
  gap: 10px;
}
.finder-events .w {
  flex: none;
  width: 96px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.finder-events .what {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
/* What it was, what it is now and why: under the sentence and quieter. */
.finder-events .why {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.45;
}
.finder-events .swap {
  overflow-wrap: anywhere;
}
.finder-events .because::before {
  content: '· ';
}
html.tv .finder-events .why {
  font-size: 18px;
}
.finder-events a {
  color: var(--text);
}
/* The TV: the pickers' keyboard under the name, bigger rows. */
html.tv .add-show .tv-keys {
  margin-top: 4px;
}
html.tv .add-show {
  width: min(760px, calc(100% - 2 * var(--pad)));
}
html.tv .show-season summary:focus,
html.tv .show-hit:focus,
html.tv .add-tile:focus,
html.tv .show-ep input:focus,
html.tv .show-ep select:focus {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- Objevování: titles outside the library ---------- */
.card.discover.faded .art img {
  opacity: 0.55;
}
.discover-sheet .show-top {
  align-items: flex-start;
}
.discover-sheet .show-top img {
  width: 92px;
  height: 138px;
  flex: none;
}
.discover-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.discover-found {
  margin-top: 6px;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--text-2);
}
.finder-group {
  padding: 10px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.finder-group:first-of-type {
  border-top: 0;
}
.finder-group .finder-row {
  padding-left: 12px;
}
.finder-actions {
  flex-wrap: wrap;
}
.file-btn {
  cursor: pointer;
}
.tv-keys .k.voice {
  grid-column: 1 / -1;
}
html:not(.tv) .tv-keys .k.voice {
  display: none;
}
.ctag.cam {
  color: #ffb3a1;
}

/* ---------- "Minule jste viděli" (at the start of an episode) ---------- */
.player .recap {
  position: absolute;
  z-index: 6;
  left: 24px;
  top: 76px;
  width: min(460px, calc(100% - 48px));
  display: flex;
  gap: 12px;
  padding: 12px 40px 12px 12px;
  border-radius: 14px;
  background: rgba(20, 20, 24, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: recap-in 0.4s ease-out;
  transition: opacity 0.5s, transform 0.5s;
}
.player .recap.out {
  opacity: 0;
  transform: translateY(-8px);
}
@keyframes recap-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.player .recap img {
  flex: none;
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}
.player .recap .txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.player .recap small {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}
.player .recap b {
  font-size: 15px;
}
.player .recap p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.player .recap .x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
}
html.tv .player .recap {
  left: 48px;
  top: 120px;
  width: 620px;
}
html.tv .player .recap small {
  font-size: 16px;
}
html.tv .player .recap b {
  font-size: 22px;
}
html.tv .player .recap p {
  font-size: 18px;
}
html.tv .player .recap img {
  width: 180px;
}
html.tv .player .recap .x {
  display: none;
}

/* ---------- "Váš rok v Lumenu" ---------- */
.year-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px var(--pad) 18px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(120deg, #3a1c71, #d76d77 60%, #ffaf7b);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.year-banner .big {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  opacity: 0.9;
}
.year-banner .txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.year-banner small {
  opacity: 0.85;
}
.year {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yr-hero {
  padding: 22px 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, #3a1c71, #d76d77 60%, #ffaf7b);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.yr-hero b {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.yr-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.yr-tiles div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}
.yr-tiles b {
  font-size: 24px;
}
.yr-tiles span,
.yr-fact small,
.yr-fact span {
  color: var(--text-3);
  font-size: 13px;
}
.yr-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.yr-fact > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.yr-fact b {
  font-size: 17px;
}
.yr-pic {
  width: 46px;
  height: 69px;
  border-radius: 6px;
  object-fit: cover;
}
.yr-pic.round {
  height: 46px;
  border-radius: 50%;
}
@media (max-width: 520px) {
  .yr-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* "Kdo uvidí": the choices */
.list-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

/* ---------- lišta nad mřížkou na široké obrazovce (jako v aplikaci na počítači) ---------- */
.bar-wide {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 2px var(--pad) 10px;
}
/* Filtry jako jeden segment: pilulka, v ní bílá značka na vybraném. */
.bar-wide .chips {
  padding: 4px;
  gap: 2px;
  overflow: visible;
  border-radius: 999px;
  background: var(--glass-sheen), var(--glass-tint);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
}
.bar-wide .chips .chip-btn {
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bar-wide .chips .chip-btn.on {
  background: var(--text);
  color: #000;
}
.drop {
  position: relative;
  margin-left: auto;
}
/* Víc nabídek vedle sebe (žánr, řazení): doprava je odsune ta první, ostatní jdou hned za ní.
   Žánry se načítají vedle knihovny, takže mají v liště připravené místo (.drop-slot). */
.drop + .drop {
  margin-left: 0;
}
.bar-wide .drop-slot {
  display: inline-flex;
  margin-left: auto;
}
.bar-wide .drop-slot .drop,
.bar-wide .drop-slot + .drop {
  margin-left: 0;
}
.drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 21px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--glass-sheen), var(--glass-tint);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  box-shadow: var(--glass-rim);
}
.drop-btn:hover {
  box-shadow: var(--glass-rim-hover);
}
.drop-btn svg.i {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}
.drop-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: var(--glass-sheen), var(--glass-tint-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim), var(--glass-cast);
}
.drop-head {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.drop-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  text-align: left;
  font-size: 14.5px;
  color: var(--text);
}
.drop-item:hover,
.drop-item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}
.drop-item.on {
  color: var(--accent);
  font-weight: 600;
}
