/* Themes change the atmosphere; TV geometry remains consistent. */
.theme-club {
  background: #0c1118;
}

/* Menu group headings: only the TV layouts show them. */
.nav-group {
  display: none;
}
/* «Видеоклуб»: up to 14 items and 3 groups must fit the 642px rail, so the
   items are denser. Главная and Поиск lead, as in the other styles; a group
   is a line in the narrow rail and its name in the open one. */
.theme-club .tv-layout .tabs {
  padding: 6px 5px;
}
.theme-club .tv-layout .nav {
  height: 40px;
  min-height: 40px;
  padding: 6px 15px;
  margin-bottom: 1px;
  -webkit-box-ordinal-group: 3;
  -webkit-order: 2;
  order: 2;
}
.theme-club .tv-layout .nav[data-section="all"] {
  -webkit-box-ordinal-group: 1;
  -webkit-order: 0;
  order: 0;
}
.theme-club .tv-layout .nav[data-section="search"] {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  order: 1;
}
.theme-club .tv-layout .nav-group {
  display: block;
  position: relative;
  -webkit-box-ordinal-group: 3;
  -webkit-order: 2;
  order: 2;
  flex-shrink: 0;
  height: 14px;
  margin: 0 4px;
  overflow: hidden;
  font-size: 0;
  line-height: 14px;
  white-space: nowrap;
  color: #6f8593;
}
.theme-club .tv-layout .nav-group:before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  border-top: 1px solid #2f4552;
}
.theme-club .tv-layout .tabs.expanded .nav-group {
  padding-left: 11px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.theme-club .tv-layout .tabs.expanded .nav-group:before {
  display: none;
}
/* «Моё» stays at the bottom of the rail, its heading with it. */
.theme-club .tv-layout .nav.library {
  margin-top: 0;
}
.theme-club .tv-layout .nav-group-mine {
  margin-top: auto;
}

/* ================= «Кинозал» =================
   Same 1370×770 stage as «Видеоклуб», different layout: a wide grouped menu on
   the left, a compact film strip on top and a 7×2 poster grid below. */
.theme-hall {
  background: #0d0f14;
}
.theme-hall .tv-layout .app {
  padding: 14px 22px 10px 266px;
}
.theme-hall .tv-layout header {
  height: 40px;
  margin-bottom: 6px;
}
.theme-hall .tv-layout .brand {
  position: absolute;
  top: 18px;
  left: 30px;
  width: 204px;
}
.theme-hall .tv-layout .brand img {
  width: 100%;
}
.theme-hall .tv-layout .brand-note,
.theme-hall .tv-layout .rail-label,
.theme-hall .tv-layout .color-track {
  display: none;
}
/* Wide menu: labels always visible, grouped, scrolls when it grows (Радио…). */
.theme-hall .tv-layout .tabs,
.theme-hall .tv-layout .tabs.expanded {
  top: 76px;
  bottom: 14px;
  left: 16px;
  width: 232px;
  padding: 10px 8px;
  overflow-y: auto;
  border-color: #23262f;
  background: #14171e;
  box-shadow: none;
}
.theme-hall .tv-layout .tabs::-webkit-scrollbar {
  width: 0;
}
.theme-hall .tv-layout .nav {
  height: 38px;
  min-height: 38px;
  padding: 5px 10px;
  margin: 0 0 2px;
  font-size: 16px;
  border-radius: 8px;
  -webkit-box-ordinal-group: 3;
  -webkit-order: 2;
  order: 2;
}
.theme-hall .tv-layout .nav[data-section="all"] {
  -webkit-box-ordinal-group: 1;
  -webkit-order: 0;
  order: 0;
}
.theme-hall .tv-layout .nav[data-section="search"] {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  order: 1;
}
.theme-hall .tv-layout .nav-icon {
  width: 22px;
  height: 22px;
}
.theme-hall .tv-layout .nav-label {
  display: block;
  margin-left: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-hall .tv-layout .nav.library {
  margin-top: 0;
}
.theme-hall .tv-layout .nav-group {
  display: block;
  -webkit-box-ordinal-group: 3;
  -webkit-order: 2;
  order: 2;
  flex-shrink: 0;
  padding: 10px 12px 4px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7c8190;
}
.theme-hall .nav.active {
  background: #2a2417;
  color: #f2c46b;
}
.theme-hall .nav:hover,
.theme-hall .nav:focus {
  background: #f6efe0;
  color: #17140d;
}
/* Top line and the film strip. */
.theme-hall .tv-layout .tools {
  height: 40px;
}
.theme-hall .tv-layout .hero {
  height: 112px;
  margin-bottom: 12px;
  border-color: #23262f;
  background: #14171e;
}
.theme-hall .tv-layout .hero-shade {
  background: linear-gradient(90deg, #14171e 70%, rgba(20, 23, 30, 0.2) 100%);
}
.theme-hall .tv-layout .hero-content {
  width: 88%;
  padding: 10px 20px;
}
.theme-hall .tv-layout h1 {
  font-size: 26px;
  line-height: 30px;
  max-height: 30px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.theme-hall .tv-layout #hero-meta {
  font-size: 15px;
  line-height: 20px;
  margin-bottom: 4px;
  color: #f2c46b;
}
.theme-hall .tv-layout #hero-description {
  max-width: none;
  font-size: 16px;
  line-height: 20px;
  height: 40px;
}
.theme-hall .tv-layout .hero-art {
  top: 8px;
  bottom: 8px;
  right: 12px;
  width: 66px;
  padding: 0;
  border: 0;
  background: none;
}
.theme-hall .tv-layout .hero-art img {
  object-fit: cover;
  border-radius: 5px;
}
.theme-hall .tv-layout .hero-placeholder .hero-art {
  display: none;
}
.theme-hall .tv-layout .hero-placeholder .hero-shade {
  right: 0;
}
.theme-hall .tv-layout .hero-empty {
  height: 112px;
}
.theme-hall .tv-layout .hero-empty .hero-content {
  padding-top: 22px;
}
/* The 7×2 grid. */
.theme-hall .tv-layout .catalog {
  flex-wrap: wrap;
  align-content: flex-start;
  margin: 0 -7px;
  min-height: 490px;
  height: 490px;
}
.theme-hall .tv-layout .card {
  width: 14.2857%;
  height: 245px;
  padding: 0 7px;
}
.theme-hall .tv-layout .poster {
  height: 186px;
  border-radius: 7px;
}
.theme-hall .tv-layout .poster img {
  border-radius: 7px;
}
.theme-hall .tv-layout .poster:after {
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 10px;
}
.theme-hall .tv-layout .card:hover .poster:after,
.theme-hall .tv-layout .card:focus .poster:after {
  border-color: #f6efe0;
  box-shadow: 0 0 0 1px #f2c46b;
}
.theme-hall .tv-layout .film-title {
  font-size: 15px;
  line-height: 19px;
  height: 19px;
  margin-top: 7px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.theme-hall .tv-layout .film-meta {
  font-size: 13px;
  line-height: 17px;
  margin-top: 2px;
}
.theme-hall .card:hover .film-title,
.theme-hall .card:focus .film-title {
  color: #f2c46b;
}
.theme-hall .tv-layout .rating {
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 13px;
}
.theme-hall .tv-layout .catalog.catalog-empty {
  height: auto;
  min-height: 300px;
}
.theme-hall .tv-layout .bottom-bar {
  height: 40px;
  margin-top: 6px;
}
.theme-hall .primary,
.theme-hall .detail-tab.active,
.theme-hall .fact.score {
  background: #f2c46b;
  border-color: #f2c46b;
  color: #1a150b;
}
.theme-hall #hero-meta,
.theme-hall .eyebrow {
  color: #f2c46b;
}
/* Pieces that only «Сеанс» shows. */
.nav[data-section="browse"],
.hero-vhs,
.hero-osd,
.quick-bar,
.hero-backdrop,
.hero-glow,
.hero-actions {
  display: none;
}
.preview-show {
  background: #0c1118;
}
.preview-show:before {
  height: 30px;
  margin: 6px;
  background: #4b2c5e;
  border-bottom: 3px solid #9fe5da;
}
.preview-show:after {
  height: 9px;
  margin: 0 6px;
  border-left-color: #e8333a;
  border-right-color: #9fe5da;
  background: #9fe5da;
}

/* ================= «Сеанс» =================
   «Видеоклуб» colours, a video shop soul: a full-screen main page over one of
   the VideoTeka backdrops played «from tape», wide «cassette» cards in sections and a poster
   grid with a filter bar. The stage class says which: mode-home, mode-feature,
   mode-grid. No CSS grid, variables or flex gap (Chrome 38, Firefox 40). */
.theme-show {
  background: #0c1118;
}
.theme-show .nav[data-section="browse"] {
  display: flex;
}
.theme-show .tv-layout .app {
  height: 770px;
  padding: 0;
  overflow: hidden;
}
.theme-show .tv-layout header {
  position: absolute;
  top: 18px;
  left: 124px;
  right: 36px;
  height: 44px;
  margin: 0;
  z-index: 5;
}
.theme-show .tv-layout .brand img {
  width: 150px;
  height: 34px;
}
.theme-show .tv-layout .brand-note,
.theme-show .tv-layout .rail-label,
.theme-show .tv-layout .color-track,
.theme-show .tv-layout .hero-hint,
.theme-show .tv-layout .hero-number {
  display: none;
}
.theme-show .tv-layout #theme-button {
  border-color: transparent;
  color: #c6d2d8;
}
/* Menu: a slim icon rail that opens over the page with labels and groups. */
.theme-show .tv-layout .tabs {
  top: 0;
  bottom: 0;
  left: 0;
  width: 88px;
  padding: 84px 12px 18px;
  border: 0;
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(
    90deg,
    rgba(9, 14, 20, 0.95) 0%,
    rgba(9, 14, 20, 0.6) 70%,
    rgba(9, 14, 20, 0) 100%
  );
}
.theme-show .tv-layout .tabs::-webkit-scrollbar {
  width: 0;
}
.theme-show .tv-layout .tabs.expanded {
  width: 290px;
  background: #121e28;
  box-shadow: 30px 0 60px rgba(0, 0, 0, 0.7);
}
.theme-show .tv-layout .nav {
  height: 46px;
  min-height: 46px;
  padding: 10px 20px;
  margin: 0 0 4px;
  border-radius: 23px;
  font-size: 18px;
  color: #c6d2d8;
  -webkit-box-ordinal-group: 4;
  -webkit-order: 3;
  order: 3;
}
.theme-show .tv-layout .nav[data-section="all"] {
  -webkit-box-ordinal-group: 1;
  -webkit-order: 0;
  order: 0;
}
.theme-show .tv-layout .nav[data-section="search"] {
  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  order: 1;
}
.theme-show .tv-layout .nav[data-section="browse"] {
  -webkit-box-ordinal-group: 3;
  -webkit-order: 2;
  order: 2;
}
.theme-show .tv-layout .nav-icon {
  width: 24px;
  height: 24px;
}
.theme-show .tv-layout .nav-label {
  margin-left: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-show .tv-layout .tabs.expanded .nav-group {
  display: block;
  -webkit-box-ordinal-group: 4;
  -webkit-order: 3;
  order: 3;
  flex-shrink: 0;
  padding: 12px 20px 6px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6f8593;
}
.theme-show .nav.active {
  background: transparent;
  color: #a3eee1;
}
.theme-show .tabs.expanded .nav.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.theme-show .nav:hover,
.theme-show .nav:focus,
.theme-show .tabs.expanded .nav:focus {
  background: #fff;
  color: #111;
}
/* Page area right of the rail; the hero lies under everything. */
.theme-show .tv-layout main {
  position: absolute;
  top: 0;
  left: 104px;
  right: 0;
  bottom: 0;
  padding: 76px 36px 0 20px;
}
.theme-show .tv-layout main > * {
  position: relative;
  z-index: 1;
}
/* A small pill in the header, left of the style button; the base rule pins it bottom-left, so both
   of those anchors are released, or the pill stretches over the page. */
.theme-show .tv-layout #status {
  position: absolute;
  top: 24px;
  right: 270px;
  bottom: auto;
  left: auto;
  max-width: 600px;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(18, 30, 40, 0.92);
  font-size: 15px;
  color: #c6d2d8;
  z-index: 2;
}
.theme-show .tv-layout main > .hero {
  position: absolute;
  top: 0;
  left: -104px;
  width: 1370px;
  height: 770px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0c1118;
  z-index: 0;
}
.theme-show .tv-layout .hero-backdrop,
.theme-show .tv-layout .hero-glow {
  display: block;
  position: absolute;
}
.theme-show .tv-layout .hero-backdrop {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0c1118;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.theme-show .tv-layout .hero-glow {
  top: -40px;
  left: 820px;
  width: 640px;
  height: 680px;
}
.theme-show .tv-layout .hero-shade,
.theme-show .tv-layout .hero-placeholder .hero-shade {
  right: 0;
  /* Soft edges all round: the picture never stops abruptly at the screen. */
  background: linear-gradient(270deg, #0c1118 0%, rgba(12, 17, 24, 0) 7%),
    linear-gradient(180deg, #0c1118 0%, rgba(12, 17, 24, 0) 9%),
    linear-gradient(
      0deg,
      #0c1118 0%,
      rgba(12, 17, 24, 0.9) 26%,
      rgba(12, 17, 24, 0) 54%
    ),
    linear-gradient(
      90deg,
      #0c1118 0%,
      rgba(12, 17, 24, 0.94) 30%,
      rgba(12, 17, 24, 0.4) 52%,
      rgba(12, 17, 24, 0.05) 100%
    );
}
/* The main page shows the scene beside the poster, not behind it. */
.theme-show .tv-layout .mode-home .hero-backdrop {
  background-size: 1840px 1035px;
  background-position: -462px -132px;
}
/* «From tape»: scanlines, grain, a tracking streak and the deck's OSD. */
.theme-show .tv-layout .hero-vhs {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0,
      rgba(0, 0, 0, 0.18) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 3px
    ),
    url(/art-grain.svg);
  background-size:
    auto,
    200px 200px;
}
.theme-show .tv-layout .hero-vhs:after {
  content: "";
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.14) 55%,
    rgba(159, 229, 218, 0.2) 75%,
    rgba(255, 255, 255, 0) 100%
  );
}
.theme-show .tv-layout .mode-home .hero-osd {
  display: block;
  position: absolute;
  top: 532px;
  right: 64px;
  font: bold 22px "Courier New", monospace;
  letter-spacing: 2px;
  color: #fff;
  text-shadow:
    2px 0 rgba(255, 40, 90, 0.55),
    -2px 0 rgba(60, 220, 255, 0.55);
}
.theme-show .tv-layout .hero-osd span {
  margin-left: 14px;
  font-size: 17px;
  color: #d4dce1;
}
/* The poster stands like a VHS box; its spine takes the poster's colour. */
.theme-show .tv-layout .hero-art,
.theme-show .tv-layout .hero-placeholder .hero-art {
  top: 64px;
  left: 990px;
  right: auto;
  bottom: auto;
  width: 300px;
  height: 446px;
  padding: 0;
  border: 0 solid #6f8593;
  border-left-width: 14px;
  border-radius: 6px;
  background: #111;
  overflow: visible;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}
.theme-show .tv-layout .hero-art img {
  object-fit: cover;
  border-radius: 0 6px 6px 0;
}
.theme-show .tv-layout .hero-art:after {
  content: "VHS";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: bold 12px Arial, sans-serif;
  letter-spacing: 2px;
}
.theme-show .tv-layout .hero-placeholder .hero-art,
.theme-show .tv-layout .hero-empty .hero-art,
.theme-show .tv-layout .hero-empty .hero-actions {
  display: none;
}
.theme-show .tv-layout .hero-content,
.theme-show .tv-layout .hero-empty .hero-content {
  position: absolute;
  top: 96px;
  left: 124px;
  width: 660px;
  padding: 0;
}
.theme-show .tv-layout .tape-stamp {
  display: block;
  margin-bottom: 16px;
  font: bold 13px "Courier New", monospace;
  letter-spacing: 2px;
  color: #9fe5da;
}
.theme-show .tv-layout .tape-stamp span {
  padding: 2px 6px;
  margin-right: 6px;
  border-radius: 3px;
  background: #e8333a;
  color: #fff;
}
.theme-show .tv-layout .tape-stamp i {
  padding: 1px 5px;
  margin-left: 6px;
  border: 1px solid #9fe5da;
  border-radius: 3px;
  font-style: normal;
}
.theme-show .tv-layout h1 {
  max-width: none;
  max-height: 116px;
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 58px;
  letter-spacing: -1px;
  /* A touch of tape colour bleed. */
  text-shadow:
    -2px 0 rgba(255, 40, 90, 0.4),
    2px 0 rgba(60, 220, 255, 0.4),
    0 3px 18px rgba(0, 0, 0, 0.6);
}
.theme-show .tv-layout h1.hero-long {
  max-height: 92px;
  font-size: 40px;
  line-height: 46px;
}
.theme-show .tv-layout #hero-meta {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 26px;
  color: #d4dce1;
}
.theme-show #hero-meta .score {
  margin-right: 10px;
}
.theme-show #hero-meta .good {
  color: #3bb33b;
}
.theme-show #hero-meta .fair {
  color: #a0a0aa;
}
.theme-show #hero-meta .poor {
  color: #ff4b3e;
}
.theme-show .tv-layout .age {
  margin-left: 8px;
  padding: 0 5px;
  border: 1px solid #9baab7;
  border-radius: 4px;
  font-size: 15px;
  font-style: normal;
}
.theme-show .tv-layout #hero-description {
  max-width: 620px;
  height: auto;
  max-height: 112px;
  font-size: 20px;
  line-height: 28px;
  color: #c6d2d8;
}
.theme-show .tv-layout .hero-actions {
  display: block;
  margin-top: 22px;
}
.theme-show .tv-layout .hero-actions button,
.theme-show .tv-layout .tool-buttons button,
.theme-show .tv-layout .pagination button {
  border-color: transparent;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}
.theme-show .tv-layout .hero-actions button {
  min-height: 48px;
  padding: 10px 26px;
  margin-right: 12px;
  font-size: 18px;
}
.theme-show .tv-layout .hero-actions .primary {
  background: #9fe5da;
  color: #11232b;
}
.theme-show .tv-layout .hero-actions button:focus,
.theme-show .tv-layout .tool-buttons button:focus,
.theme-show .tv-layout .pagination button:focus,
.theme-show .tv-layout .quick-bar button:focus {
  background: #fff;
  color: #111;
  box-shadow: 0 0 0 3px rgba(159, 229, 218, 0.6);
}
/* Main page: the hero fills the screen, one row of cards at the bottom. */
.theme-show .tv-layout .mode-home .tools {
  position: absolute;
  top: 528px;
  left: 20px;
  height: 30px;
}
.theme-show .tv-layout .mode-home .tool-buttons,
.theme-show .tv-layout .mode-home .bottom-bar {
  display: none;
}
.theme-show .tv-layout .mode-home .tools h2 {
  font-size: 21px;
  font-weight: bold;
  color: #e8eef0;
}
.theme-show .tv-layout .mode-home .catalog {
  position: absolute;
  top: 562px;
  left: 0;
  right: 36px;
  height: 196px;
  min-height: 0;
  margin: 0;
  padding: 8px 0 8px 20px;
  overflow: hidden;
}
.theme-show .tv-layout .mode-home .catalog-empty {
  display: none;
}
/* Where the row of releases is and that it scrolls: «‹ 1–4 из 12 ›» by the
   heading and arrows at the edges while there is more that way. Static,
   no animation. */
.row-hint,
.row-edge {
  display: none;
}
.theme-show .tv-layout .mode-home .row-hint {
  display: block;
  margin-left: 18px;
  font-size: 16px;
  line-height: 28px;
  white-space: nowrap;
  color: #94a5b2;
}
.theme-show .tv-layout .mode-home .row-hint b {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin: 0 8px;
  border: 1px solid #2f4552;
  border-radius: 13px;
  font-size: 20px;
  line-height: 22px;
  text-align: center;
  vertical-align: top;
  color: #46596a;
}
.theme-show .tv-layout .mode-home .row-hint b.on {
  border-color: #9fe5da;
  background: #9fe5da;
  color: #0c1118;
}
.theme-show .tv-layout .mode-home .row-edge.on {
  display: block;
  position: absolute;
  top: 570px;
  width: 36px;
  height: 180px;
  z-index: 2;
  cursor: pointer;
}
.theme-show .tv-layout .mode-home .row-left {
  left: -18px;
  background: -webkit-linear-gradient(left, rgba(12, 17, 24, 0.9), rgba(12, 17, 24, 0));
  background: linear-gradient(90deg, rgba(12, 17, 24, 0.9), rgba(12, 17, 24, 0));
}
.theme-show .tv-layout .mode-home .row-right {
  right: 0;
  background: -webkit-linear-gradient(right, rgba(12, 17, 24, 0.9), rgba(12, 17, 24, 0));
  background: linear-gradient(270deg, rgba(12, 17, 24, 0.9), rgba(12, 17, 24, 0));
}
.theme-show .tv-layout .mode-home .row-edge:after {
  content: "";
  position: absolute;
  top: 80px;
  width: 14px;
  height: 14px;
  border-top: 3px solid #9fe5da;
  border-right: 3px solid #9fe5da;
}
.theme-show .tv-layout .mode-home .row-left:after {
  left: 9px;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}
.theme-show .tv-layout .mode-home .row-right:after {
  right: 13px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* Sections and the filter page: the backdrop only tints the page. */
.theme-show .tv-layout .mode-feature .hero-content,
.theme-show .tv-layout .mode-feature .hero-art,
.theme-show .tv-layout .mode-feature .hero-glow,
.theme-show .tv-layout .mode-grid .hero-content,
.theme-show .tv-layout .mode-grid .hero-art,
.theme-show .tv-layout .mode-grid .hero-glow {
  display: none;
}
.theme-show .tv-layout .mode-feature .hero-backdrop {
  opacity: 0.4;
}
.theme-show .tv-layout .mode-grid .hero-backdrop {
  opacity: 0.2;
}
.theme-show .tv-layout .mode-feature .hero-shade,
.theme-show .tv-layout .mode-grid .hero-shade {
  background: linear-gradient(270deg, #0c1118 0%, rgba(12, 17, 24, 0) 7%),
    linear-gradient(
      180deg,
      rgba(12, 17, 24, 0.55) 0%,
      rgba(12, 17, 24, 0.9) 55%,
      #0c1118 100%
    );
}
.theme-show .tv-layout .tools {
  height: 50px;
  margin-bottom: 12px;
}
.theme-show .tv-layout .tools h2 {
  font-size: 30px;
  font-weight: bold;
}
.theme-show .tv-layout .mode-grid .tools {
  margin-bottom: 8px;
}
.theme-show .tv-layout .mode-grid #filter-button {
  display: none;
}
/* «Cassette» cards: the film's backdrop, the poster on the left, text right. */
.theme-show .tv-layout .tape,
.theme-show .tv-layout .tape:hover,
.theme-show .tv-layout .tape:focus {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 287px;
  height: 170px;
  min-height: 0;
  margin-right: 16px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #162530;
  text-align: left;
}
.theme-show .tv-layout .tape:hover,
.theme-show .tv-layout .tape:focus {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(159, 229, 218, 0.55);
}
.theme-show .tv-layout .tape-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}
.theme-show .tv-layout .tape.painted .tape-art {
  opacity: 1;
}
.theme-show .tv-layout .tape-poster {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 113px;
  height: auto;
  border-radius: 0;
  background: #111;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.55);
}
.theme-show .tv-layout .tape-poster img {
  border-radius: 0;
}
.theme-show .tv-layout .tape .poster:after {
  display: none;
}
.theme-show .tv-layout .tape-info {
  position: absolute;
  top: 0;
  left: 113px;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      0deg,
      rgba(9, 14, 20, 0.92) 0%,
      rgba(9, 14, 20, 0.15) 78%
    ),
    linear-gradient(90deg, rgba(9, 14, 20, 0.55) 0%, rgba(9, 14, 20, 0) 100%);
}
.theme-show .tv-layout .tape .score {
  position: absolute;
  top: 12px;
  left: 16px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}
.theme-show .tv-layout .tape .good {
  background: #3bb33b;
}
.theme-show .tv-layout .tape .fair {
  background: #566978;
}
.theme-show .tv-layout .tape .poor {
  background: #e0453a;
}
.theme-show .tv-layout .tape .film-title {
  position: absolute;
  left: 16px;
  right: 14px;
  bottom: 36px;
  height: auto;
  max-height: 63px;
  margin: 0;
  font-size: 17px;
  line-height: 21px;
  font-weight: bold;
  color: #fff;
}
.theme-show .tv-layout .tape .film-meta {
  position: absolute;
  left: 16px;
  right: 14px;
  bottom: 12px;
  margin: 0;
  font-size: 14px;
  color: #c2ced5;
}
/* Sections: two large cards, then a row that scrolls sideways. */
.theme-show .tv-layout .mode-feature .catalog {
  flex-wrap: wrap;
  align-content: flex-start;
  height: 520px;
  min-height: 0;
  margin: 0;
  padding: 0 0 0 4px;
}
.theme-show .tv-layout .tape-big,
.theme-show .tv-layout .tape-big:hover,
.theme-show .tv-layout .tape-big:focus {
  width: 590px;
  height: 300px;
  margin: 4px 18px 0 0;
}
.theme-show .tv-layout .tape-big + .tape-big {
  margin-right: 0;
}
.theme-show .tv-layout .tape-big .tape-poster {
  width: 200px;
}
.theme-show .tv-layout .tape-big .tape-info {
  left: 200px;
}
.theme-show .tv-layout .tape-big .score {
  top: 18px;
  left: 24px;
  font-size: 17px;
}
.theme-show .tv-layout .tape-big .film-title {
  left: 24px;
  right: 22px;
  bottom: 52px;
  max-height: 99px;
  font-size: 28px;
  line-height: 33px;
}
.theme-show .tv-layout .tape-big .film-meta {
  left: 24px;
  right: 22px;
  bottom: 20px;
  font-size: 16px;
}
.theme-show .tv-layout .tape-row {
  position: relative;
  display: flex;
  width: 100%;
  margin-top: 14px;
  padding: 6px 4px;
  overflow: hidden;
}
/* Filter page: a bar of filters and an 8×2 poster grid, title and year only. */
.theme-show .tv-layout .mode-grid .quick-bar {
  display: flex;
  margin: 0 0 14px;
}
.theme-show .tv-layout main.search-mode .quick-bar {
  display: none;
}
.theme-show .tv-layout .quick-bar button {
  min-height: 46px;
  margin-right: 12px;
  padding: 8px 18px;
  border-color: #2b3b47;
  border-radius: 10px;
  background: #121e28;
  color: #9baab7;
  font-size: 16px;
}
.theme-show .tv-layout .quick-bar b {
  margin-left: 8px;
  font-weight: normal;
  color: #fff;
}
.theme-show .tv-layout .quick-bar b:after {
  content: " ▾";
  color: #a3eee1;
}
.theme-show .tv-layout .quick-bar button:focus b {
  color: #111;
}
.theme-show .tv-layout .mode-grid .catalog {
  flex-wrap: wrap;
  align-content: flex-start;
  height: 516px;
  min-height: 0;
  margin: 0 -7px;
}
.theme-show .tv-layout .mode-grid .card {
  width: 12.5%;
  height: 258px;
  padding: 0 7px;
}
.theme-show .tv-layout .mode-grid .poster {
  height: 200px;
  border-radius: 8px;
}
.theme-show .tv-layout .mode-grid .poster img {
  border-radius: 8px;
}
.theme-show .tv-layout .mode-grid .poster:after {
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 11px;
}
.theme-show .tv-layout .mode-grid .card:hover .poster:after,
.theme-show .tv-layout .mode-grid .card:focus .poster:after {
  border-color: #fff;
  box-shadow: 0 0 0 2px #9fe5da;
}
.theme-show .tv-layout .mode-grid .film-title {
  height: 19px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 19px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.theme-show .tv-layout .mode-grid .film-meta {
  margin-top: 2px;
  font-size: 13px;
  line-height: 17px;
}
.theme-show .card:hover .film-title,
.theme-show .card:focus .film-title {
  color: #a3eee1;
}
.theme-show .tv-layout .tape:hover .film-title,
.theme-show .tv-layout .tape:focus .film-title {
  color: #fff;
}
.theme-show .tv-layout .mode-grid .rating {
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  font-size: 13px;
}
.theme-show .tv-layout .catalog.catalog-empty {
  height: auto;
  min-height: 300px;
}
.theme-show .tv-layout .bottom-bar {
  height: 40px;
  margin-top: 4px;
  color: #94a5b2;
}
.theme-show .tv-layout .mode-feature .bottom-bar {
  margin-top: 18px;
}

/* Collections dialog. */
.collection-row small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #93a1ad;
}
.collection-row.selected {
  border-color: #a3eee1;
}

/* «Подборки»: rental VHS boxes in every style. No flex gap: margins. */
.cover-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5%;
}
.vhs-cover,
.vhs-cover:hover,
.vhs-cover:focus {
  position: relative;
  display: block;
  width: 19%;
  height: 340px;
  margin: 0 0.5% 18px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #111;
  text-align: left;
  color: #fff;
}
.vhs-cover:hover,
.vhs-cover:focus,
.vhs-cover.selected {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(159, 229, 218, 0.6);
}
.cover-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}
/* Shade for the text and the tape-label spine on the left. */
.vhs-cover:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.92) 100%
  );
}
.vhs-cover:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12px;
  background: repeating-linear-gradient(
    180deg,
    #e9e4d4 0,
    #e9e4d4 14px,
    #c8323a 14px,
    #c8323a 17px
  );
}
.cover-top {
  position: absolute;
  top: 0;
  left: 12px;
  right: 0;
  height: 32px;
  padding: 6px 10px;
  background: #e9e4d4;
  color: #1b252d;
  font: italic 900 15px Arial, Helvetica, sans-serif;
  letter-spacing: -0.5px;
  z-index: 1;
}
.cover-top i {
  float: right;
  padding: 1px 6px;
  border-radius: 3px;
  background: #1b252d;
  color: #e9e4d4;
  font: bold 12px Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
}
.cover-title,
.cover-desc,
.cover-foot,
.cover-sign {
  position: absolute;
  left: 24px;
  right: 14px;
  z-index: 1;
}
.cover-title {
  bottom: 84px;
  max-height: 90px;
  overflow: hidden;
  font: 900 25px/30px "Arial Black", Impact, Arial, sans-serif;
  text-transform: uppercase;
  text-shadow:
    -2px 0 rgba(255, 40, 90, 0.55),
    2px 0 rgba(60, 220, 255, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.8);
}
.cover-desc {
  bottom: 40px;
  max-height: 38px;
  overflow: hidden;
  font-size: 14px;
  line-height: 19px;
  color: #d4dce1;
}
.cover-foot {
  bottom: 14px;
  font: bold 11px "Courier New", monospace;
  letter-spacing: 2px;
  color: #9fe5da;
}
.cover-sign {
  left: auto;
  bottom: 10px;
  font: italic 600 15px "Segoe Print", "Comic Sans MS", cursive;
  color: #e9e4d4;
  -webkit-transform: rotate(-6deg);
  transform: rotate(-6deg);
}
@media (max-width: 959px) {
  .vhs-cover,
  .vhs-cover:hover,
  .vhs-cover:focus {
    width: 48%;
    margin: 0 1% 14px;
    height: 300px;
  }
}

/* Dialog scrolling: a themed bar instead of the system one. Chrome draws it
   with ::-webkit-scrollbar; the standard scrollbar-width/-color must not
   reach it, or Chrome 121+ drops the custom bar for a plain thin one, so
   those go to Firefox only (64+; older versions keep their own bar). */
.overlay::-webkit-scrollbar {
  width: 12px;
}
.overlay::-webkit-scrollbar-track {
  margin: 8px 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.overlay::-webkit-scrollbar-thumb {
  min-height: 60px;
  border: 3px solid transparent;
  border-radius: 6px;
  background: #4d6f7c;
  background-clip: padding-box;
}
.overlay::-webkit-scrollbar-thumb:hover {
  background: #9fe5da;
  background-clip: padding-box;
}
@supports (-moz-appearance: none) {
  .overlay {
    scrollbar-width: thin;
    scrollbar-color: #4d6f7c rgba(255, 255, 255, 0.04);
  }
  /* The «Сеанс» rail and the «Кинозал» menu scroll without a bar, as in Chrome. */
  .theme-show .tv-layout .tabs,
  .theme-hall .tv-layout .tabs {
    scrollbar-width: none;
  }
}

/* Our logo above every film card. */
.detail-logo {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 150px;
  height: 34px;
}

/* Search history chips under the search field, in every style. */
.search-history {
  margin-top: 12px;
}
.search-history:empty {
  display: none;
}
.search-history span {
  margin-right: 10px;
  font-size: 15px;
  color: #93a1ad;
}
.search-panel .search-history .recent {
  display: inline-block;
  max-width: 230px;
  min-height: 34px;
  margin: 0 8px 0 0;
  padding: 5px 14px;
  overflow: hidden;
  border-radius: 17px;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.search-panel .search-history .clear {
  padding: 5px 11px;
  color: #93a1ad;
}
/* «Сеанс»: the search field is the heading; room for the chips. */
.theme-show .tv-layout main.search-mode .tools {
  display: none;
}
