@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
  src: url(/type-cinemaday-1/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
  src: url(/type-cinemaday-1/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 750;
  font-display: swap;
  src: url(/type-cinemaday-1/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/type-cinemaday-1/roboto-condensed-bold-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/type-cinemaday-1/roboto-condensed-bold-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/type-cinemaday-1/roboto-condensed-bold-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cinema-text: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --cinema-title: "Roboto Condensed", "Arial Narrow", var(--cinema-text);
  font-family: var(--cinema-text);
  font-size: 100%;
  font-weight: 500;
}
body { text-transform: uppercase }
button, .button, select, option, input::placeholder { text-transform: uppercase }
input, textarea, code, kbd, samp { text-transform: none }
button, .button, select { font-family: var(--cinema-text); font-weight: 650 }
button, .button { overflow-wrap: break-word }
.film-synopsis p, .personal-note, .online-note, .ev-note, .feedback {
  line-height: 1.58;
  letter-spacing: .012em;
}
.film-synopsis p {
  max-inline-size: 74ch;
  text-wrap: pretty;
  text-transform: none;
  letter-spacing: normal;
}
/* Keep one display face across the independently styled film, player and library sheets. */
body :is(h1,h2,h3,.ct,.ev-title,.podium-number,.personal-heading,.screen-title,
  .discovery-rail-head h3,.online-head h2,.watch-heading strong,.recommend-card strong,
  .career-feature button>span,.ev-item-title,.mood-rail button) {
  font-family: var(--cinema-title) !important;
  font-weight: 700 !important;
  font-size-adjust: cap-height from-font;
  letter-spacing: -.008em;
}
.hero h1, .hero h2, #detail .film-banner #filmTitle, .pagehead h1 {
  line-height: 1.1;
  letter-spacing: -.022em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.card .ct { font-size: 1.08rem; line-height: 1.3 }
.poster-item > .card > .ct {
  font-size: .875rem;
  line-height: 1.125rem;
  min-block-size: 2lh;
}
.poster-item > .card > .cy { display: block }
/* Search may find a title by its original name. Keep that line before the year. */
@supports (grid-template-rows: subgrid) {
  #hits .gridwrap:has(.poster-item .match-original) {
    row-gap: 0;
    & > .search-lead { margin-block-end: 18px }
    & > .poster-item, & > .poster-item > .card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      align-self: stretch;
    }
    & .poster-item .cy:last-child { grid-row: 4; margin-block-end: 18px }
  }
}
@media (min-width: 760px) {
  .poster-item > .card > .ct { font-size: .9375rem }
}
.card.search-feature .ct { font-size: clamp(1.8rem,4vw,3.8rem); line-height: 1.13 }
.podium-number { font-variant-numeric: tabular-nums }
.watch-invite input { font-family: var(--cinema-text); font-variant-numeric: tabular-nums }
.discovery-directors .discovery-person, .discovery-initials, .discovery-art>span {
  font-family: var(--cinema-text);
}
#nav .dock-track .dock-label { display: none }
@media not all and (min-width: 1024px) and (min-height: 480px) {
  #nav .dock-track button { flex: 1 1 0; align-items: center; justify-content: center; gap: 0; padding: 0 }
  #nav .dock-track button svg { width: 24px; height: 24px }
}
@media (min-width: 1024px) and (min-height: 480px) {
  #nav .dock-track .dock-label { display: inline }
}
@media (max-width: 480px) {
  .film-info .detail-actions button { min-width: 0; padding-inline: 3px; font-size: .77rem }
  #detail .film-banner .film-heading { max-width: 100% }
}

/* Shared picker surfaces in the catalogue, account and playback sheets. */
body select:not([multiple]):not([size]):not([aria-label="Таймер сна"]) {
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23e7be78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .85rem center / 14px no-repeat;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .6rem 2.5rem .6rem .85rem;
  min-height: 44px;
  max-width: 100%;
  text-transform: none;
  text-overflow: ellipsis;
  cursor: pointer;
}
body select option { color: var(--text); background: var(--panel); text-transform: none; }
body select:disabled { opacity: .65; cursor: default; }
#detail .seed-episode-picks {
  align-items: stretch;
  gap: 8px;
  padding-block: 0 12px;
}
#detail .seed-film-picks { grid-template-columns: minmax(0,1fr); }
#detail .seed-episode-picks label {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 8px 0 0;
  text-indent: 12px;
  font: 600 .8rem/1.3 var(--cinema-text);
  text-transform: none;
  color: var(--muted);
}
#detail .seed-episode-picks select {
  min-height: 38px;
  border: 0;
  background-color: transparent;
  color: var(--gold);
  text-indent: 0;
  font: 650 1rem/1.3 var(--cinema-text);
  padding-block: 4px 8px;
}
#detail .seed-episode-picks label:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
#detail .seed-episode-picks select:focus { outline: none!important; }
.tv-edition #detail .seed-episode-picks label:focus-within { background: var(--gold); color: #332815; }
.tv-edition #detail .seed-episode-picks select:focus { color: #201a11; }
@supports (appearance: base-select) {
  body select:not([multiple]):not([size]):not([aria-label="Таймер сна"]),
  body select:not([multiple]):not([size]):not([aria-label="Таймер сна"])::picker(select) { appearance: base-select; }
  body select::picker-icon { display: none; }
  body select::picker(select) {
    background: var(--panel); color: var(--text); border: 1px solid var(--line);
    border-radius: 12px; padding: 4px; max-height: 48vh; overflow-y: auto;
  }
  body select option { min-height: 44px; padding: 8px 12px; border-radius: 8px; }
  body select option:checked { color: var(--gold); background: #332d23; }
  body select option:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
}

#detail, #detail .sheet { scrollbar-width:none; }
#detail::-webkit-scrollbar, #detail .sheet::-webkit-scrollbar { display:none; }
.search-feature.missing-art .poster-mark { left:75%; }
.viewing-quick { align-items:start; }
.viewing-quick .sleep-picker, .seed-quality-note { background:var(--panel);border:1px solid var(--line);border-radius:12px; }
.sleep-picker summary, .seed-quality-note {display:grid;gap:2px;padding:8px 12px;text-align:start;min-height:58px;align-content:center;}
.sleep-picker summary {cursor:pointer;list-style:none;position:relative;}
.sleep-picker summary::-webkit-details-marker {display:none;}
.sleep-picker summary::after {content:'⌄';position:absolute;right:12px;top:17px;color:var(--gold);}
.sleep-picker small,.seed-quality-note span {color:var(--muted);font-size:.75rem;}
.sleep-picker strong,.seed-quality-note strong {color:var(--gold);font-size:1rem;}
.sleep-options {display:flex;flex-wrap:wrap;gap:6px;padding:4px 10px 10px;}
.sleep-options button {min-height:44px;border-radius:8px;}
.sleep-options button[aria-pressed=true]{background:var(--gold);color:#201a11;}
.sleep-picker summary:focus-visible,.sleep-options button:focus-visible {outline:2px solid var(--text);outline-offset:-2px;border-radius:10px;}
.seed-quality-note {margin-bottom:8px;}
.seed-quality-note button {justify-self:start;margin-top:4px;}

/* Picker sheet for browsers without base-select (Safari, older WebViews): no system wheel. */
dialog.cinema-picker {
  inset:auto 0 0; width:min(100%,480px); max-height:min(70dvh,560px); margin:0 auto;
  display:none; grid-template-rows:auto minmax(0,1fr);
  padding:6px 0 max(8px,var(--safe-bottom,0px)); border:1px solid var(--line); border-bottom:0;
  border-radius:20px 20px 0 0; background:var(--panel); color:var(--text);
}
dialog.cinema-picker[open] { display:grid }
.cinema-picker h2 {
  margin:0; padding:12px 18px 8px; color:var(--muted);
  font:650 .8rem/1.3 var(--cinema-text) !important; letter-spacing:.04em;
}
.cinema-picker-list { display:grid; align-content:start; gap:2px; padding:0 8px 8px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none }
.cinema-picker-list::-webkit-scrollbar { display:none }
.cinema-picker-list button {
  display:flex; align-items:center; min-height:48px; padding:8px 14px; border:0; border-radius:10px;
  background:transparent; color:var(--text); text-align:start; text-transform:none;
  font:600 1rem/1.3 var(--cinema-text); overflow-wrap:break-word; hyphens:auto;
}
.cinema-picker-list button[aria-selected=true] { color:var(--gold); background:#332d23 }
.cinema-picker-list button:disabled { opacity:.5 }
.cinema-picker-list button:focus-visible { outline:2px solid var(--gold); outline-offset:-2px }
.cinema-picker-group { margin:10px 14px 2px; color:var(--muted); font-size:.75rem; letter-spacing:.04em }
.cinema-picker-list > [role=group] { display:contents }
@media (min-width:760px) {
  dialog.cinema-picker { inset:0; margin:auto; border-bottom:1px solid var(--line); border-radius:16px; max-height:min(70dvh,520px) }
}
/* TV: the sheet sits in the middle, readable from the sofa, with the thick gold ring of the other TV focus states. */
.tv-edition dialog.cinema-picker { inset:0; margin:auto; width:min(calc(100% - 2 * var(--tv-safe-x,5vw)),620px); max-height:min(calc(100dvh - 2 * var(--tv-safe-y,5vh)),640px); border-bottom:1px solid var(--line); border-radius:16px }
.tv-edition .cinema-picker h2 { font-size:1rem !important; padding:16px 22px 10px }
.tv-edition .cinema-picker-list button { min-height:56px; font-size:1.2rem; padding-inline:18px }
.tv-edition .cinema-picker-list button:focus-visible, .tv-edition .cinema-picker-list button:focus { outline:3px solid var(--gold); outline-offset:-3px }
