/* TV layout uses a 1370 x 770 logical stage. No grid, CSS variables or flex gap. */
* {
  box-sizing: border-box;
}
html {
  background: #0c1118;
  color: #f4f6f6;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  margin: 0;
  font-size: 20px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #34414f;
  border-radius: 9px;
  background: #1c2733;
  color: #eaf0f3;
  cursor: pointer;
}
button:hover {
  background: #293b49;
}
button:focus,
input:focus,
a:focus {
  outline: 0;
}
button:focus {
  background: #fff;
  color: #101a23;
  border-color: #fff;
  box-shadow: 0 0 0 3px #92e5dc;
}
button:disabled {
  opacity: 0.25;
  cursor: default;
}
input {
  border: 2px solid #405262;
  border-radius: 8px;
  background: #14202c;
  color: #fff;
  padding: 12px 16px;
}
input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px #92e5dc;
}
.hidden {
  display: none !important;
}
.tv-stage {
  position: relative;
  max-width: 1370px;
  margin: 0 auto;
  transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  -moz-transform-origin: 0 0;
}
body.tv-layout {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.tv-layout .tv-stage {
  position: absolute;
  margin: 0;
  max-width: none;
}
.app {
  position: relative;
  width: 100%;
  max-width: 1370px;
  min-height: 770px;
  margin: 0 auto;
  padding: 16px 28px 16px 110px;
}
header {
  height: 60px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.brand {
  display: block;
  line-height: 0;
  border-radius: 6px;
}
.brand img {
  width: 240px;
  height: 54px;
  display: block;
}
.brand:focus {
  box-shadow: 0 0 0 2px #fff;
}
.brand-note {
  margin-left: 22px;
  max-width: 180px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: #9baab7;
}
.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: #a2b0bd;
  font-size: 12px;
  letter-spacing: 1px;
}
#theme-button {
  font-size: 15px;
  padding: 7px 12px;
  min-height: 35px;
  margin-right: 20px;
  background: transparent;
}
#theme-button:focus {
  background: #fff;
  color: #101a23;
}
.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f18b75;
  display: inline-block;
  margin-right: 7px;
}
/* The visit's Lampac server and the viewer's ping to it: «● RU 42 мс». The
   dot is green up to 80 ms, yellow up to 200, red above or without answer. */
.server-badge {
  margin-left: 18px;
  font: bold 13px "Courier New", monospace;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #a2b0bd;
}
.server-badge:empty {
  display: none;
}
.server-badge i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
  background: #6f8593;
}
.server-badge.fast i {
  background: #6fdc8c;
}
.server-badge.slow i {
  background: #e7bd75;
}
.server-badge.bad i {
  background: #e0847a;
}
.server-badge b {
  margin-left: 6px;
  font-weight: normal;
  color: #6f8593;
}
.clock {
  margin-left: 22px;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0;
}
.tabs {
  position: absolute;
  top: 92px;
  bottom: 34px;
  left: 18px;
  width: 68px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  border: 1px solid #2b3b47;
  border-radius: 16px;
  background: #121e28;
  overflow: hidden;
  z-index: 6;
}
.tabs.expanded {
  width: 288px;
  box-shadow: 16px 0 45px rgba(0, 0, 0, 0.65);
}
.nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 12px 15px;
  margin: 0 0 3px;
  border-color: transparent;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  font-size: 20px;
}
.nav-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-label {
  display: none;
  margin-left: 18px;
}
.expanded .nav-label {
  display: block;
}
.nav.active {
  background: #223b43;
  color: #a3eee1;
  font-weight: bold;
}
.nav:hover,
.nav:focus {
  background: #f3faf8;
  color: #101c26;
  box-shadow: none;
}
.nav.library {
  margin-top: auto;
}
.nav small {
  font-size: 14px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #344451;
  color: #fff;
}
.tools {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h2 {
  font-size: 23px;
  font-weight: normal;
  margin: 0;
}
.tool-buttons {
  display: flex;
  flex-shrink: 0;
}
.tool-buttons button {
  font-size: 17px;
  min-height: 37px;
  padding: 7px 14px;
  margin-left: 10px;
}
#reset-button {
  font-size: 22px;
  padding: 3px 13px;
}
.hero {
  position: relative;
  height: 180px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #2a3c49;
  border-radius: 13px;
  background: #162530;
}
.hero-art {
  position: absolute;
  top: 12px;
  right: 20px;
  bottom: 12px;
  width: 210px;
  padding: 4px 20px;
  overflow: hidden;
  border-left: 1px solid #425c64;
  background: linear-gradient(100deg, #182b35, #0e1c26);
  border-radius: 9px;
}
.hero-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}
.hero-placeholder .hero-art {
  top: 0;
  bottom: 0;
  border: 0;
  background: none;
  width: 43%;
  right: 0;
  padding: 8px 12px;
}
.hero-placeholder .hero-art img {
  object-fit: contain;
  object-position: center;
  opacity: 1;
}
.hero-placeholder .hero-shade {
  right: 43%;
}
.hero-placeholder .hero:not(.hero-placeholder) .hero-shade {
  right: 250px;
}
.hero-content {
  width: 65%;
}
.hero-empty {
  height: 260px;
}
.hero-empty .hero-content {
  padding-top: 38px;
}
.catalog.catalog-empty {
  min-height: 264px;
}
.hero-shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    #162530 43%,
    rgba(22, 37, 48, 0.92) 57%,
    rgba(22, 37, 48, 0.12) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 77%;
  padding: 12px 27px;
}
.tape-stamp {
  display: none;
}
h1 {
  font-size: 33px;
  line-height: 36px;
  font-weight: bold;
  letter-spacing: -0.6px;
  margin: 0 0 4px;
  max-width: 920px;
  max-height: 72px;
  overflow: hidden;
}
#hero-meta {
  margin: 0 0 6px;
  color: #9fe5da;
  font-size: 17px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#hero-description {
  margin: 0;
  color: #d4dce1;
  font-size: 20px;
  line-height: 24px;
  max-width: 865px;
  height: 48px;
  overflow: hidden;
}
.hero-hint,
.hero-number {
  display: none;
}
main {
  position: relative;
}
.catalog {
  display: flex;
  margin: 0 -9px;
  min-height: 344px;
}
.card {
  display: block;
  flex-shrink: 0;
  width: 16.6666%;
  min-width: 0;
  padding: 0 9px;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
}
.card:hover,
.card:focus {
  background: transparent;
  box-shadow: none;
}
.poster {
  position: relative;
  height: 266px;
  border-radius: 9px;
  background: #1a2733;
}
.poster img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}
.poster img[src="/poster.svg"],
.detail-poster[src="/poster.svg"] {
  object-fit: contain;
}
.poster:after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid transparent;
  border-radius: 13px;
  pointer-events: none;
}
.card:hover .poster:after,
.card:focus .poster:after {
  border-color: #f9fffe;
  box-shadow: 0 0 0 1px #92e5dc;
}
.film-title {
  font-size: 20px;
  line-height: 22px;
  height: 44px;
  overflow: hidden;
  margin: 10px 0 0;
  color: #e8eef0;
}
.card:hover .film-title,
.card:focus .film-title {
  color: #a3eee1;
}
.film-meta {
  font-size: 16px;
  line-height: 20px;
  color: #92a6b5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.film-meta span {
  margin: 0 6px;
  color: #607784;
}
.rating {
  position: absolute;
  top: 9px;
  left: 9px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #edf2ed;
  color: #152229;
  font-size: 14px;
  font-weight: bold;
}
.fav-mark {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #15242e;
  color: #a3eee1;
}
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  margin-top: 14px;
  color: #94a5b2;
  font-size: 14px;
}
.pagination {
  display: flex;
  align-items: center;
}
.pagination button {
  min-height: 33px;
  font-size: 22px;
  padding: 3px 14px;
}
.pagination > span {
  margin: 0 17px;
  font-size: 17px;
  color: #e3ebef;
}
kbd {
  padding: 3px 5px;
  border: 1px solid #566978;
  border-radius: 4px;
  font: 12px Arial;
}
.key-help {
  white-space: nowrap;
}
.color-track {
  display: flex;
  height: 2px;
  opacity: 0.7;
}
.color-track i {
  display: block;
  height: 2px;
  width: 25%;
  background: #8dd5c9;
}
.color-track i:nth-child(2) {
  background: #e7b67d;
}
.color-track i:nth-child(3) {
  background: #bb87ac;
}
.color-track i:nth-child(4) {
  background: #7d93bd;
}
.rail-label {
  display: none;
}
#status:empty {
  display: none;
}
#status {
  position: absolute;
  bottom: 5px;
  left: 0;
  padding: 7px 12px;
  background: #182632;
  color: #e2d4bb;
  z-index: 3;
  font-size: 17px;
  border-radius: 6px;
  max-width: 850px;
}
#status button {
  margin-left: 15px;
}
.empty {
  padding: 35px 12px;
  font-size: 22px;
}
.empty p {
  color: #a5b5c1;
}
.search-panel {
  padding: 7px 0 18px;
}
.search-panel label {
  margin-right: 12px;
}
.search-panel input {
  width: 42%;
}
.search-panel button {
  margin-left: 10px;
}
.search-mode .hero {
  height: 140px;
}
.search-mode .hero-description {
  display: none;
}
.search-mode .poster {
  height: 235px;
}
.search-mode .catalog {
  min-height: 312px;
}
/* The overlay belongs to the scaled TV scene, so it uses the same readable scale. */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100%;
  bottom: 0;
  padding: 16px 12px;
  background: #0d141d;
  z-index: 10;
  overflow: auto;
}
.dialog {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  min-height: 0;
}
.dialog > .close {
  display: block;
  margin: 0 0 12px auto;
  min-height: 44px;
  padding: 8px 22px;
  font-size: 20px;
}
.dialog > h2 {
  padding: 5px 0 18px;
  font-size: 34px;
  font-weight: bold;
}
.detail-stage {
  position: relative;
  height: 666px;
  padding: 24px;
  overflow: hidden;
  background: #172430;
  border: 1px solid #354a59;
  border-radius: 14px;
}
.detail-art {
  background: linear-gradient(
    125deg,
    rgba(108, 195, 178, 0.06),
    transparent 55%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.detail-art img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
}
.detail-layout {
  position: relative;
  display: flex;
  height: 574px;
}
.detail-cover {
  flex-shrink: 0;
  width: 280px;
  margin-right: 26px;
}
.detail-poster {
  display: block;
  width: 280px;
  height: 420px;
  border-radius: 9px;
  object-fit: cover;
  background: #1a2934 url("/poster.svg") center center no-repeat;
  background-size: contain;
  color: transparent;
  font-size: 0;
}
.cover-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 13px;
  min-height: 37px;
  border-radius: 4px;
  background: #d7dfd8;
  color: #1a2a31;
  font-size: 12px;
  letter-spacing: 1px;
}
.cover-strip strong {
  font-size: 16px;
  font-style: italic;
}
.favorite-button {
  width: 100%;
  margin-top: 16px;
  padding: 14px 8px;
  min-height: 62px;
  font-size: 21px;
  font-weight: bold;
  color: #eef9f4;
  background: #223b43;
  border: 2px solid #5e8b8a;
}
.favorite-button[aria-pressed="true"] {
  background: #1b3139;
  color: #a3eee1;
  border-color: #91bfb6;
}
.favorite-button:focus,
.favorite-button[aria-pressed="true"]:focus {
  color: #0e1c24;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px #85e0d2;
}
/* «Рандомная кассета»: the next try, under «В избранное»; both get slimmer
   so the column still fits the card. */
.random-cover .favorite-button {
  margin-top: 10px;
  padding: 8px;
  min-height: 48px;
  font-size: 19px;
}
.random-again {
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  min-height: 40px;
  font-size: 17px;
  font-weight: bold;
  color: #eef9f4;
  background: transparent;
  border: 2px dashed #5e8b8a;
}
.random-again:focus,
.random-again:hover {
  color: #0e1c24;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px #85e0d2;
}
/* The 18+ warning before such a collection opens. */
.adult-gate {
  max-width: 720px;
  margin: 70px auto 0;
  padding: 40px 48px 44px;
  border: 2px solid #5a1a22;
  border-radius: 18px;
  background: #160b0f;
  text-align: center;
}
.adult-badge {
  display: inline-block;
  width: 116px;
  height: 116px;
  margin-bottom: 18px;
  border: 6px solid #c8102e;
  border-radius: 50%;
  font: 900 44px/104px Arial, Helvetica, sans-serif;
  color: #fff;
  background: #3a0710;
}
.adult-mask {
  display: none;
}
.adult-gate h2 {
  margin: 0 0 14px;
  font-size: 34px;
}
.adult-gate p {
  margin: 0 auto 30px;
  max-width: 560px;
  font-size: 21px;
  line-height: 1.5;
  color: #d6c3c6;
}
.adult-actions button {
  min-width: 200px;
  margin: 0 8px;
  padding: 12px 28px;
  font-size: 21px;
}
.adult-actions .primary {
  border-color: #c8102e;
  background: #c8102e;
  color: #fff;
}
.adult-actions button:focus {
  border-color: #fff;
  background: #fff;
  color: #160b0f;
  box-shadow: 0 0 0 4px #ff5a6a;
}
.vhs-cover .cover-top i.cover-adult {
  background: #c8102e;
  color: #fff;
}
.detail-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  height: 574px;
}
.eyebrow {
  flex-shrink: 0;
  color: #9fe5da;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.detail-info h2 {
  flex-shrink: 0;
  font-size: 38px;
  font-weight: bold;
  line-height: 43px;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
  padding: 0;
  max-height: 86px;
  overflow: hidden;
}
.detail-info h2.long-title {
  font-size: 32px;
  line-height: 37px;
  max-height: 74px;
}
.original-title:empty {
  display: none;
}
.original-title {
  flex-shrink: 0;
  margin: 0 0 12px;
  color: #9fb0bd;
  font-size: 18px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-facts {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.fact {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #415b6b;
  border-radius: 6px;
  background: #243642;
  margin: 0 8px 5px 0;
  font-size: 19px;
}
.fact.score {
  background: #e2e8d8;
  border-color: #e2e8d8;
  color: #1a2d2b;
  font-weight: bold;
}
.detail-country {
  flex-shrink: 0;
  color: #abbfcb;
  font-size: 18px;
  line-height: 25px;
  max-height: 100px;
  overflow: hidden;
}
.detail-tabs {
  display: flex;
  flex-shrink: 0;
  margin: 17px 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #38515f;
}
.detail-tab {
  min-height: 43px;
  margin-right: 7px;
  padding: 8px 14px;
  background: transparent;
  border-color: transparent;
  font-size: 20px;
}
.detail-tab.active {
  color: #b1f0e4;
  background: #263f47;
  border-color: #567773;
}
.detail-tab:focus {
  background: #fff;
  color: #11222a;
  border-color: #fff;
  box-shadow: 0 0 0 2px #8bded0;
}
.description-panel {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 22px;
  line-height: 32px;
  color: #d8e1e6;
}
.description-panel:focus {
  border-color: #a3eee1;
  background: rgba(0, 0, 0, 0.12);
  outline: 0;
}
.description-panel p {
  font-size: 22px;
  line-height: 32px;
  margin: 0 0 14px;
}
.description-panel p.credits {
  font-size: 18px;
  line-height: 25px;
  color: #a3b8c5;
}
.scroll-note {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 16px;
  color: #97aebc;
  letter-spacing: 1px;
  padding-top: 7px;
}
.detail-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid #344d5b;
  color: #92abb7;
  font-size: 11px;
  letter-spacing: 2px;
}
.person-title {
  color: #9db8c5;
  font-size: 14px;
  letter-spacing: 2px;
  margin: 7px 0;
}
.person {
  display: inline-block;
  padding: 7px 12px;
  background: #253d49;
  margin: 0 7px 7px 0;
  border-radius: 5px;
  font-size: 19px;
}
.related-row {
  display: flex;
  margin: 0 -5px;
}
.related-card {
  width: 25%;
  min-width: 0;
  margin: 0 5px;
  padding: 5px;
  border-radius: 7px;
  text-align: left;
  font-size: 16px;
}
.related-card img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 7px;
}
.related-card span {
  display: block;
  height: 38px;
  line-height: 19px;
  overflow: hidden;
}
.filter-row,
.sort-option {
  display: block;
  width: 100%;
  padding: 17px 20px;
  margin: 11px 0;
  font-size: 25px;
  text-align: left;
}
.filter-row span {
  float: right;
  color: #9fe5da;
}
.filter-row:focus span {
  color: #203440;
}
.filter-actions {
  margin-top: 22px;
}
.filter-actions button {
  margin-right: 12px;
}
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 5px -6px;
}
.choice {
  width: 31.3%;
  margin: 7px 1%;
  padding: 16px;
  font-size: 21px;
  text-align: left;
}
.choice.selected {
  border-color: #9fe5da;
}
.choice-pages {
  text-align: center;
  padding: 16px;
}
.choice-pages button {
  margin: 0 13px;
}
.primary {
  background: #9fe5da;
  color: #11232b;
  border-color: #9fe5da;
  font-weight: bold;
}
.primary:focus {
  background: #fff;
  color: #11232b;
  border-color: #fff;
}
.keyboard {
  max-width: 900px;
  margin: 12px auto;
}
.keyboard button {
  width: 10%;
  margin: 4px 1%;
  font-size: 24px;
}
.keyboard .wide {
  width: 25%;
}
.keyboard-value {
  min-height: 65px;
  padding: 17px;
  font-size: 26px;
  background: #1c2d39;
  border-radius: 8px;
  color: #a3eee1;
}
.toast {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  z-index: 20;
  max-width: 850px;
  padding: 15px 24px;
  border-radius: 9px;
  background: #ecf4ed;
  color: #10212c;
  font-size: 20px;
}
.theme-heading {
  color: #93acbb;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.theme-choice {
  display: block;
  width: 100%;
  padding: 23px;
  margin: 15px 0;
  font-size: 27px;
  text-align: left;
}
.theme-choice small {
  display: block;
  margin-top: 9px;
  font-size: 18px;
  color: #9db3c3;
}
.theme-choice:focus small {
  color: #263e4c;
}
.theme-preview {
  float: right;
  width: 120px;
  height: 58px;
  background: #1c2c39;
  border: 1px solid #6d8797;
  border-radius: 5px;
}
.theme-preview:before {
  content: "";
  display: block;
  height: 9px;
  margin: 8px;
  background: #9fe5da;
}
.theme-preview:after {
  content: "";
  display: block;
  height: 22px;
  margin: 0 8px;
  border-left: 23px solid #9fe5da;
  border-right: 23px solid #9fe5da;
  background: #9fe5da;
}
.preview-hall:before,
.preview-hall:after {
  background: #f2c46b;
  border-color: #f2c46b;
}
@media (max-width: 959px) {
  .app {
    padding: 12px 22px 20px;
    min-height: 100vh;
  }
  .tabs {
    overflow-x: auto;
    height: auto;
    min-height: 55px;
  }
  .nav {
    font-size: 17px;
    padding: 10px 12px;
  }
  .brand-note,
  .edition-label,
  .rec-dot {
    display: none;
  }
  .brand img {
    width: 190px;
  }
  .card {
    width: 33.3333%;
    margin-bottom: 22px;
  }
  .catalog {
    flex-wrap: wrap;
  }
  .poster {
    height: 300px;
  }
  .hero {
    height: 185px;
  }
  .hero-content {
    width: 95%;
    padding: 16px 20px;
  }
  .hero-art {
    width: 45%;
  }
  h1 {
    font-size: 30px;
    line-height: 35px;
    max-height: 70px;
  }
  #hero-description {
    font-size: 18px;
    line-height: 25px;
  }
  .overlay {
    position: fixed;
    padding: 18px;
  }
  .detail-stage {
    height: auto;
    min-height: 630px;
  }
  .detail-layout {
    height: 550px;
  }
  .detail-cover {
    width: 220px;
    margin-right: 22px;
  }
  .detail-poster {
    width: 220px;
    height: 330px;
  }
  .detail-info {
    height: 550px;
  }
  .detail-info h2 {
    font-size: 30px;
    line-height: 35px;
    max-height: 70px;
  }
  .description-panel,
  .description-panel p {
    font-size: 20px;
    line-height: 29px;
  }
  .detail-tab {
    font-size: 17px;
    padding: 8px 10px;
  }
}
@media (max-width: 760px) {
  header {
    height: 55px;
  }
  .app {
    padding: 10px 17px 20px;
  }
  .header-right .clock {
    display: none;
  }
  #theme-button {
    margin-right: 0;
    font-size: 13px;
  }
  .brand img {
    width: 175px;
  }
  .nav.library {
    margin-left: 0;
  }
  .tools {
    height: auto;
    padding: 18px 0;
    display: block;
  }
  .tool-buttons {
    margin-top: 14px;
  }
  .tool-buttons button {
    margin: 0 8px 0 0;
    padding: 8px 10px;
    font-size: 15px;
  }
  .hero-content {
    width: 100%;
  }
  .hero {
    height: 210px;
  }
  h1 {
    font-size: 28px;
    line-height: 33px;
  }
  #hero-meta {
    font-size: 15px;
  }
  .card {
    width: 50%;
  }
  .poster {
    height: 265px;
  }
  .film-title {
    font-size: 18px;
    line-height: 22px;
    height: 44px;
  }
  .bottom-bar {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
  }
  .key-help {
    display: none;
  }
  #shelf-note {
    font-size: 12px;
  }
  .overlay {
    padding: 14px;
  }
  .detail-layout {
    display: block;
    height: auto;
  }
  .detail-cover {
    width: 100%;
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .detail-poster {
    width: 120px;
    height: 180px;
  }
  .cover-strip {
    width: calc(100% - 138px);
    margin: 0 0 0 18px;
    display: block;
  }
  .cover-strip strong {
    display: block;
    margin-bottom: 12px;
  }
  .favorite-button {
    width: 100%;
  }
  .detail-info {
    height: auto;
  }
  .detail-info h2,
  .detail-info h2.long-title {
    font-size: 28px;
    line-height: 33px;
    max-height: 99px;
  }
  .description-panel {
    flex: none;
    max-height: 320px;
  }
  .detail-tabs {
    flex-wrap: wrap;
  }
  .detail-footer {
    letter-spacing: 0;
    font-size: 10px;
  }
  .related-row {
    flex-wrap: wrap;
  }
  .related-card {
    width: 46%;
    margin-bottom: 10px;
  }
  .choice {
    width: 48%;
    font-size: 18px;
  }
  .search-panel input {
    width: 100%;
    margin: 12px 0;
  }
  .search-panel button {
    margin: 0 7px 10px 0;
  }
  .toast {
    position: fixed;
    max-width: 90%;
    font-size: 16px;
  }
}

@media (max-width: 959px) {
  .app {
    padding-left: 86px;
  }
  .tabs {
    position: absolute;
    left: 8px;
    top: 90px;
    bottom: auto;
    min-height: 630px;
    width: 62px;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 8px 2px;
    overflow: hidden;
  }
  .tabs.expanded {
    width: 278px;
  }
  .nav {
    width: 100%;
    margin: 0 0 3px;
    padding: 12px 14px;
  }
  .nav.library {
    margin-top: 12px;
  }
  .nav-label {
    display: none;
  }
  .expanded .nav-label {
    display: block;
  }
  header {
    margin-bottom: 12px;
  }
}

.mouse-input .card:focus:not(:hover) .poster:after {
  border-color: transparent;
  box-shadow: none;
}
.mouse-input .card:focus:not(:hover) .film-title {
  color: #e8eef0;
}
.trailer-button {
  color: #b3ead5;
  border-color: #527b71;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 64px;
  margin-top: 10px;
  border-top: 1px solid #38515f;
  padding-top: 10px;
}
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  max-height: 94px;
  overflow: hidden;
}
.genre-chip {
  font-size: 16px;
  min-height: 34px;
  margin: 0 7px 6px 0;
  padding: 6px 11px;
  border-radius: 5px;
  border-color: #38535d;
  background: #1a303b;
  color: #b9e5d7;
}
.genre-chip:hover,
.genre-chip:focus {
  background: #e4f7ec;
  color: #152c32;
}
.detail-actions .trailer-button {
  flex-shrink: 0;
  margin: 0 20px 0 0;
  padding: 12px 20px;
  min-height: 48px;
  font-size: 21px;
  background: #a5e2cf;
  color: #152d31;
  border: 1px solid #a5e2cf;
  border-radius: 9px;
}
.detail-actions .trailer-button span {
  margin-right: 8px;
}
.related-view .original-title,
.related-view .detail-facts,
.related-view .detail-country {
  display: none;
}
.related-panel {
  padding: 5px 0;
}
.related-panel .related-row {
  height: 100%;
}
.related-panel .related-card {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 10px;
  font-size: 20px;
  border-radius: 10px;
  background: #122631;
}
.related-panel .related-card img {
  height: calc(100% - 60px);
  min-height: 90px;
  object-fit: contain;
  background: #0f1e28;
}
.related-panel .related-card span {
  height: 48px;
  line-height: 24px;
}
@media (max-width: 959px) {
  .hero-art {
    width: 150px;
    right: 10px;
    padding: 4px;
  }
  .hero-content {
    width: 76%;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .genre-chips {
    min-width: 60%;
  }
  .hero-placeholder .hero-art {
    width: 40%;
  }
}

/* VHS detail header: genre labels occupy their own upper-right column. */
.detail-info {
  position: relative;
}
.detail-info > .eyebrow,
.detail-info > h2,
.detail-info > .original-title {
  padding-right: 270px;
}
.detail-info > h2 {
  min-height: 82px;
}
.detail-info > .genre-chips {
  position: absolute;
  right: 0;
  top: 0;
  width: 250px;
  max-height: 125px;
  overflow-y: auto;
  justify-content: flex-end;
}
.genre-chip {
  font-family: "Courier New", monospace;
  border-radius: 3px;
}
.detail-tabs {
  flex-shrink: 0;
}
.detail-tabs .trailer-button {
  margin-right: 9px;
}
.related-panel .related-card:hover,
.related-panel .related-card:focus {
  background: #d9f1e5;
  color: #132932;
}
.related-panel .related-card:hover span,
.related-panel .related-card:focus span {
  color: #132932;
}
.detail-tab:hover,
.detail-tab:focus,
.detail-tab.active:hover,
.detail-tab.active:focus {
  background: #e4f7ec;
  color: #152c32;
}
.watch-button {
  font-weight: bold;
}
/* Margins instead of flex gap: the Vidaa browser is too old for it. */
.season-row,
.episode-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 4px;
  margin-bottom: 12px;
}
.season-button,
.episode-button {
  margin: 0 10px 10px 0;
  min-width: 118px;
  padding: 9px 14px;
  font-size: 16px;
}
.season-head {
  display: flex;
  align-items: center;
  padding: 4px;
  margin-bottom: 8px;
}
.season-head .season-back {
  margin-right: 16px;
}
.season-head span {
  font-weight: bold;
  letter-spacing: 1px;
}
.episode-button.last::before {
  content: "● ";
}
.primary:hover {
  background: #c4f1ea;
  color: #11232b;
  border-color: #c4f1ea;
}
.search-panel button:focus {
  background: #fff;
  color: #101a23;
  border-color: #fff;
  box-shadow: 0 0 0 3px #92e5dc;
}
/* Episodes: the panel scrolls by whole rows (see gridMove in app.js). */
.description-panel.episodes-panel {
  position: relative;
  padding: 6px 8px 0;
}
.episodes-view .scroll-note {
  display: none;
}
/* Multi-select filters: a check box in front of each value. */
.choice .check {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 18px;
  margin-right: 10px;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-style: normal;
  font-size: 14px;
  text-align: center;
  vertical-align: -3px;
  opacity: 0.8;
}
.choice.selected .check {
  opacity: 1;
}
