/* Visual layer: local typography, fluid catalogue and an edge-to-edge player. */
:root {
  font-family: 'Manrope', Arial, sans-serif;
  --page: clamp(20px, 4vw, 112px);
  --bg: #0c100e;
  --panel: #19211b;
  --accent: #d9f779;
  background: #0c100e;
}
html {
  scrollbar-width: none;
}
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}
body {
  background:
    radial-gradient(ellipse at 100% 5%, #23403224, transparent 35%),
    radial-gradient(ellipse at 0 65%, #29351a24, transparent 38%), var(--bg);
}
h1,
h2,
.brand {
  font-family: 'Unbounded', 'Manrope', sans-serif;
}
h1 {
  letter-spacing: -0.065em;
}
h2 {
  font-size: clamp(20px, 1.7vw, 30px);
  letter-spacing: -0.045em;
  font-weight: 500;
}
.brand {
  font-size: 27px;
  letter-spacing: -2px;
}
.header {
  background: linear-gradient(90deg, #0c100efa, #141d14ef);
  border-color: #d9f7790d;
}
.header nav {
  font-weight: 600;
}
.header .profile {
  background: linear-gradient(135deg, #c5dd6f33, #456b4433);
}
.page-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-inline: var(--page);
}
.hero {
  height: clamp(600px, 74vh, 920px);
  max-height: none;
}
.hero-content {
  padding-top: 100px;
  max-width: 850px;
}
.hero h1 {
  font-size: clamp(40px, 4.4vw, 88px);
  line-height: 1.13;
  overflow-wrap: anywhere;
}
.hero-description {
  max-width: 510px;
  font-size: 15px;
}
.hero-shade {
  background:
    linear-gradient(90deg, #0c100efa 0%, #0c100eb5 31%, #0c100e12 75%),
    linear-gradient(0deg, var(--bg), transparent 45%);
}
.hero .eyebrow {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  letter-spacing: 1.3px;
}
.hero-content .hero-note {
  display: none;
}
.hero-bottom {
  bottom: 28px;
}
.editor-choice {
  font-size: 10px;
  letter-spacing: 1.3px;
}
.discovery {
  gap: 12px;
  padding: 18px 0 30px;
}
.discovery a {
  background: linear-gradient(120deg, #233022aa, #19211bcc);
  border-color: #d9f77912;
  font-size: 12px;
  gap: 12px;
  padding: 13px 20px;
  min-height: 50px;
}
.discovery a > svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
}
.discovery a > span {
  margin-left: 6px;
}
.discovery-label {
  display: none;
}
.chips a {
  display: flex;
  align-items: center;
  gap: 9px;
}
.chips svg {
  width: 18px;
  height: 18px;
}
.rail,
.collections-rail,
.continue-rail,
.banner-rail,
.season-tabs {
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider {
  position: relative;
  min-width: 0;
}
.slider-arrow {
  position: absolute;
  z-index: 3;
  top: 38%;
  width: 44px;
  height: 44px;
  border: 1px solid #d9f7793a;
  border-radius: 50%;
  padding: 10px;
  display: grid;
  place-items: center;
  background: #172218ed;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px #0007;
  transition:
    opacity 0.2s,
    background 0.2s,
    transform 0.2s;
}
.slider-arrow:hover {
  background: #d9f779;
  color: #18200d;
  transform: scale(1.08);
}
.slider-back {
  left: -22px;
}
.slider-next {
  right: -22px;
}
.slider-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.slider:not(.has-overflow) > .slider-arrow {
  display: none;
}
.slider:has(.season-tabs) > .slider-arrow {
  top: 7px;
}
.slider:has(.continue-rail) > .slider-arrow {
  top: 28%;
}
.card {
  flex-basis: calc((100% - 100px) / 6);
}
.ranked {
  flex-basis: calc((100% - 80px) / 5);
}
.poster {
  border-radius: 12px;
}
.card h3 {
  font-size: 14px;
  font-weight: 700;
}
.card > p {
  font-size: 11px;
}
.rank {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}
.collection-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}
.section {
  margin-bottom: 52px;
}
.section-heading > a {
  font-size: 12px;
}
.section-heading .eyebrow {
  display: none;
}
.device-panel {
  display: none;
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #9aa797;
  position: relative;
}
.mobile-nav svg {
  width: 22px;
  height: 22px;
}
.mobile-nav a[aria-current='page'] {
  color: var(--accent);
}
.mobile-nav a[aria-current='page']:after {
  content: '';
  position: absolute;
  top: -13px;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 5px;
}
.detail-content {
  max-width: 1000px;
}
.detail h1 {
  font-size: clamp(36px, 4vw, 72px);
  overflow-wrap: anywhere;
}
.detail-description {
  max-width: 760px;
  font-size: 15px;
}
.detail-shade {
  background:
    linear-gradient(90deg, #0c100efa, #0c100ec9 40%, #0c100e15 85%),
    linear-gradient(0deg, var(--bg), transparent 65%);
}
.detail-facts {
  font-size: 12px;
}
.page-heading h1 {
  font-size: clamp(32px, 3vw, 60px);
}
.cinema {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  overflow: hidden;
  outline: none;
}
.cinema[open] {
  display: block;
}
.cinema::backdrop {
  background: #000;
}
.cinema:fullscreen {
  width: 100%;
  height: 100%;
}
.cinema #video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  cursor: pointer;
  background: #000;
}
.cinema .player-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  margin: 0;
  padding: clamp(20px, 3vw, 60px);
  padding-top: max(24px, env(safe-area-inset-top));
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  background: linear-gradient(#000b, transparent);
  min-height: 130px;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.cinema .player-header > * {
  pointer-events: auto;
}
.cinema .player-header h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(15px, 1.4vw, 24px);
  letter-spacing: -0.5px;
  font-weight: 700;
}
.player-brand {
  display: block;
  color: #d9f779;
  font-family: Unbounded, sans-serif;
  font-size: 11px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.cinema-button {
  color: #fff;
  background: transparent;
  border: 0;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cinema-button:hover {
  background: #ffffff18;
}
.cinema-button svg {
  width: 25px;
  height: 25px;
}
.cinema-button:disabled {
  opacity: 0.4;
}
.cinema #toggle-play svg {
  fill: currentColor;
  stroke-width: 1.7;
}
.cinema #toggle-play[aria-label='Пауза'] svg {
  fill: none;
  stroke-width: 3;
}
.cinema-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 90px clamp(20px, 3vw, 60px) max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #000a 40%, #000ed);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.cinema .cinema-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
}
.cinema-spacer {
  flex: 1;
}
.playback-time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: flex;
  gap: 9px;
}
.playback-time i {
  font-style: normal;
  color: #6f766c;
}
#total-time {
  color: #afb6aa;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.volume-control input {
  width: 75px;
  accent-color: var(--accent);
  height: 4px;
  margin: 0 12px 0 0;
}
.timeline {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}
.cinema .timeline progress {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff24;
  pointer-events: none;
}
.timeline progress::-webkit-progress-bar {
  background: transparent;
}
.timeline #timeline-buffered::-webkit-progress-value {
  background: #ffffff45;
}
.timeline #timeline-played::-webkit-progress-value {
  background: var(--accent);
}
.timeline #timeline-buffered::-moz-progress-bar {
  background: #ffffff45;
}
.timeline #timeline-played::-moz-progress-bar {
  background: var(--accent);
}
.timeline #timeline-played {
  background: transparent;
}
.timeline input {
  position: relative;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  margin: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  accent-color: var(--accent);
}
.timeline input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.timeline input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px #d9f77955;
}
.timeline input::-moz-range-track {
  background: transparent;
  height: 4px;
}
.timeline input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}
.playback-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 20px;
  margin-bottom: 12px;
}
.cinema #player-status {
  font-size: 11px;
  color: #b6c3a8;
  letter-spacing: 0.4px;
  margin: 0;
}
.cinema #player-retry {
  font-size: 11px;
  padding: 7px 12px;
  margin: 0;
  background: #d9f779;
  color: #18200d;
  border: 0;
}
.settings-wrap {
  position: relative;
}
.cinema .settings-button {
  width: auto;
  padding: 9px 13px;
  gap: 9px;
  border-radius: 10px;
  font-size: 12px;
  min-width: 78px;
}
.settings-button[aria-expanded='true'] {
  background: #ffffff18;
}
.settings-button svg {
  width: 22px;
  height: 22px;
}
#current-quality {
  white-space: nowrap;
}
#quality-menu {
  position: absolute;
  bottom: 64px;
  right: 0;
  min-width: 215px;
  padding: 10px;
  background: #172018f5;
  backdrop-filter: blur(28px);
  border: 1px solid #e0fbc52b;
  border-radius: 16px;
  box-shadow: 0 20px 60px #0009;
}
#quality-menu > p {
  font-size: 11px;
  color: #a7b59c;
  padding: 8px 12px 12px;
}
#quality-menu > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
  border-radius: 9px;
  color: #eef3e8;
  padding: 12px;
  font-size: 13px;
  text-align: left;
  min-height: 44px;
}
#quality-menu > button:hover {
  background: #ffffff0b;
}
#quality-menu > button svg {
  width: 17px;
  height: 17px;
  opacity: 0;
}
#quality-menu > button[aria-checked='true'] {
  background: #d9f77914;
  color: var(--accent);
}
#quality-menu > button[aria-checked='true'] svg {
  opacity: 1;
}
.cinema.controls-hidden:not(.is-paused) .player-header,
.cinema.controls-hidden:not(.is-paused) .cinema-controls {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.cinema.controls-hidden #video {
  cursor: none;
}
.cinema.controls-hidden .cinema-controls {
  transform: translateY(8px);
}
#player-feedback {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 18px 25px;
  background: #111c16c9;
  border: 1px solid #ffffff1a;
  backdrop-filter: blur(15px);
  border-radius: 14px;
  font-size: 16px;
  pointer-events: none;
  text-align: center;
  max-width: 80%;
}
#player-loading {
  display: none;
  position: absolute;
  left: calc(50% - 22px);
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border: 2px solid #ffffff20;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  pointer-events: none;
}
.is-buffering #player-loading {
  display: block;
}
.tv .cinema-button {
  width: 60px;
  height: 60px;
}
.tv .settings-button {
  width: auto;
  font-size: 20px;
}
.tv #quality-menu {
  min-width: 280px;
}
.tv #quality-menu > button {
  font-size: 20px;
  min-height: 56px;
}
.tv .playback-time {
  font-size: 20px;
}
@media (min-width: 1800px) {
  .card {
    flex-basis: calc((100% - 140px) / 8);
  }
  .ranked {
    flex-basis: calc((100% - 120px) / 7);
  }
  .grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .collection-card {
    flex-basis: calc((100% - 60px) / 4);
  }
  .hero-content {
    max-width: 1050px;
    padding-top: 130px;
  }
  .hero-description {
    font-size: 18px;
    max-width: 590px;
  }
  .hero .button {
    font-size: 15px;
    min-height: 54px;
  }
  .header {
    height: 96px;
  }
  .header nav {
    font-size: 16px;
    gap: 38px;
  }
  .section {
    margin-bottom: 62px;
  }
  .card h3 {
    font-size: 15px;
  }
  .card > p {
    font-size: 12px;
  }
  .detail-content {
    max-width: 1100px;
  }
}
@media (max-width: 1100px) {
  .card {
    flex-basis: calc((100% - 60px) / 4);
  }
  .ranked {
    flex-basis: calc((100% - 40px) / 3.5);
  }
  .hero-content {
    max-width: 780px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .header {
    gap: 40px;
  }
  .header nav {
    gap: 22px;
  }
}
@media (max-width: 700px) {
  .header .brand {
    font-size: 24px;
  }
  .hero {
    height: clamp(540px, calc(100svh - 245px), 650px);
    min-height: 0;
  }
  .hero-content {
    max-width: 100%;
    padding: 0 var(--page);
    bottom: 70px;
  }
  .hero h1 {
    font-size: clamp(29px, 8vw, 44px);
    max-width: 100%;
    letter-spacing: -0.06em;
  }
  .hero-description {
    font-size: 13px;
    max-width: 95%;
  }
  .hero-shade {
    background: linear-gradient(0deg, var(--bg) 12%, #0c100eea 30%, #0c100e44 65%, #0c100e15);
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .hero-bottom {
    bottom: 25px;
  }
  .editor-choice {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .discovery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 12px 0 25px;
  }
  .discovery a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px 3px 11px;
    font-size: 9px;
    border-radius: 13px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    min-height: 78px;
  }
  .discovery a > svg {
    width: 24px;
    height: 24px;
  }
  .discovery a > span {
    display: none;
  }
  .discovery a > strong {
    font-weight: 600;
  }
  .card {
    flex-basis: 43%;
  }
  .ranked {
    flex-basis: 57%;
  }
  .card h3 {
    font-size: 12px;
  }
  .card > p {
    font-size: 10px;
  }
  .slider-arrow {
    width: 34px;
    height: 34px;
    padding: 7px;
    top: 35%;
  }
  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
  .slider-back {
    left: -13px;
  }
  .slider-next {
    right: -13px;
  }
  .section {
    margin-bottom: 36px;
  }
  .section-heading > a {
    font-size: 10px;
  }
  .section-heading h2 {
    max-width: 75%;
    line-height: 1.35;
  }
  .collection-card {
    flex-basis: 86%;
  }
  .chips a {
    font-size: 11px;
    padding: 10px 13px;
  }
  .chips svg {
    width: 16px;
    height: 16px;
  }
  .detail h1 {
    font-size: 34px;
  }
  .detail-description {
    font-size: 13px;
  }
  .detail-shade {
    background: linear-gradient(0deg, var(--bg) 24%, #0c100ed9 57%, #0c100e33);
  }
  .mobile-nav {
    padding: 12px 8px max(12px, env(safe-area-inset-bottom));
    background: #111b15f5;
    border-color: #d9f77915;
  }
  .mobile-nav a {
    font-size: 10px;
    min-width: 60px;
  }
  .brand {
    font-size: 23px;
  }
  footer {
    padding-bottom: 110px;
  }
  .cinema .player-header {
    padding: 18px 14px;
    padding-top: max(18px, env(safe-area-inset-top));
    gap: 8px;
    min-height: 94px;
  }
  .cinema .player-header h2 {
    font-size: 13px;
    line-height: 1.5;
  }
  .player-brand {
    font-size: 9px;
    margin-bottom: 4px;
  }
  .cinema-controls {
    padding: 65px 14px max(20px, env(safe-area-inset-bottom));
  }
  .cinema .cinema-bottom {
    gap: 4px;
    padding-top: 7px;
  }
  .cinema-button {
    width: 36px;
    height: 40px;
    min-height: 40px;
    padding: 8px;
  }
  .cinema-button svg {
    width: 21px;
    height: 21px;
  }
  .skip-control {
    display: none;
  }
  .volume-control input {
    display: none;
  }
  .playback-time {
    font-size: 10px;
    gap: 4px;
  }
  .cinema .settings-button {
    min-width: 60px;
    gap: 5px;
    font-size: 10px;
    padding: 7px;
  }
  .settings-button svg {
    width: 18px;
    height: 18px;
  }
  #quality-menu {
    min-width: 190px;
    bottom: 58px;
    right: -40px;
  }
  .cinema #player-status {
    font-size: 10px;
  }
  .playback-notice {
    margin-bottom: 3px;
  }
  .timeline {
    height: 26px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .cinema .player-header {
    padding: 12px 24px;
    min-height: 70px;
  }
  .cinema-controls {
    padding: 45px 24px 12px;
  }
  .playback-notice {
    margin: 0;
  }
  .cinema .cinema-bottom {
    padding-top: 4px;
  }
  .player-brand {
    display: none;
  }
  .cinema #quality-menu {
    bottom: 45px;
    min-width: 185px;
    padding: 5px;
  }
  .cinema #quality-menu > button {
    min-height: 34px;
    padding: 8px 12px;
  }
  .cinema #quality-menu > p {
    padding: 4px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slider-arrow,
  .cinema-controls,
  .cinema .player-header {
    transition: none;
  }
}
.cinema-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
.cinema-stage:fullscreen {
  width: 100vw;
  height: 100dvh;
}
/* Fullscreen player panels stay inside the fullscreen stage. */
.cinema .player-header > div:not(.player-actions) {
  min-width: 0;
}
.cinema .player-header h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.player-actions .cinema-button {
  background: #ffffff12;
  border: 1px solid #ffffff18;
  border-radius: 50%;
}
.player-panel {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(155deg, #1a241ef5, #0b100efa);
  backdrop-filter: blur(24px);
  box-shadow: -30px 0 90px #0009;
  overflow-y: auto;
  scrollbar-width: none;
}
.player-panel::-webkit-scrollbar {
  display: none;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.panel-heading h3 {
  font-size: 20px;
  margin: 0;
}
.panel-field {
  display: grid;
  gap: 12px;
  font-size: 12px;
  color: #b4bdb6;
  margin-bottom: 24px;
}
.panel-field select {
  width: 100%;
  min-height: 48px;
  color: #f6f8f4;
  background: #202c24;
  border: 1px solid #ffffff1c;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
}
.autoplay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin: 20px 0;
  color: #bfc8c1;
}
.autoplay-option input {
  width: 18px;
  height: 18px;
  accent-color: #d9f779;
}
.player-episodes {
  display: grid;
  gap: 10px;
}
.cinema .player-episode {
  display: grid;
  text-align: left;
  gap: 7px;
  width: 100%;
  padding: 18px;
  background: #ffffff06;
  border: 1px solid #ffffff12;
  border-radius: 14px;
}
.player-episode strong {
  font-size: 14px;
}
.player-episode span {
  font-size: 11px;
  color: #aebbb2;
}
.cinema .player-episode[aria-current='true'] {
  border-color: #d9f77988;
  background: #d9f77910;
}
.player-episode[aria-current='true'] strong {
  color: #d9f779;
}
.player-episode progress {
  width: 100%;
  height: 3px;
  margin-top: 5px;
  border: 0;
  border-radius: 3px;
  accent-color: #d9f779;
}
.player-episode progress::-webkit-progress-bar {
  background: #ffffff16;
}
.player-episode progress::-webkit-progress-value {
  background: #d9f779;
}
#tracks-status {
  font-size: 12px;
  line-height: 1.6;
  color: #bfc8c1;
}
.up-next {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 3vw, 60px);
  bottom: 175px;
  padding: 22px;
  width: min(340px, calc(100% - 40px));
  border: 1px solid #d9f77940;
  background: linear-gradient(130deg, #243322f2, #111713f5);
  border-radius: 18px;
  box-shadow: 0 15px 55px #0007;
}
.up-next > span {
  display: block;
  font-size: 12px;
  color: #c0cabd;
  margin-bottom: 10px;
}
.up-next strong {
  display: block;
  font-size: 18px;
  margin-bottom: 20px;
}
.up-next > div {
  display: flex;
  gap: 8px;
}
.up-next button {
  min-height: 42px;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12px;
}
#up-next-play {
  background: #d9f779;
  color: #17210d;
  border-color: #d9f779;
  font-weight: 700;
}
.panel-open .up-next {
  visibility: hidden;
}
#video::cue {
  background: #000b;
  color: white;
  font-family: Manrope, sans-serif;
}
@media (max-width: 650px) {
  .player-actions {
    gap: 6px;
  }
  .player-actions .cinema-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }
  .player-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
  .up-next {
    right: 14px;
    bottom: 155px;
    padding: 18px;
    width: min(320px, calc(100% - 28px));
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .player-panel {
    width: min(400px, 70%);
    padding-top: 12px;
  }
  .panel-heading {
    margin-bottom: 12px;
  }
  .up-next {
    bottom: 125px;
    padding: 12px 16px;
  }
  .up-next strong {
    margin-bottom: 10px;
    font-size: 15px;
  }
}
/* Episode cards on the title page. */
.episode-grid {
  align-items: stretch;
  gap: 20px;
}
.episode-grid .episode {
  min-width: 0;
  padding: 10px;
  border: 1px solid #ffffff0c;
  border-radius: 18px;
  background: #ffffff03;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}
.episode-grid .episode:hover {
  background: #ffffff03;
}
.episode-grid .episode .episode-thumb {
  margin-bottom: 16px;
  border-radius: 11px;
  background: #1b251f;
  isolation: isolate;
}
.episode-grid .episode img {
  transition: transform 250ms ease;
}
.episode-grid .episode .episode-play {
  background: linear-gradient(180deg, transparent 40%, #0005);
}
.episode-grid .episode-play svg {
  width: 46px;
  height: 46px;
  padding: 13px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #101713a6;
  color: #fff;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}
.episode-grid .episode > small,
.episode-grid .episode > h3,
.episode-grid .episode > .episode-progress {
  margin-left: 4px;
  margin-right: 4px;
}
.episode-grid .episode > small {
  font-size: 10px;
  letter-spacing: 0.7px;
}
.episode-grid .episode > h3 {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 7px;
  margin-bottom: 12px;
}
.episode-grid .episode-progress {
  min-height: 30px;
}
.episode-grid .episode-progress progress {
  width: 100%;
  height: 3px;
}
.episode-grid .episode:focus-visible {
  border-color: #d9f77966;
}
.episode-grid .episode:focus-visible .episode-play svg {
  background: #d9f779;
  border-color: #d9f779;
  color: #17210d;
}
@media (hover: hover) and (pointer: fine) {
  .episode-grid .episode:hover {
    background: #ffffff06;
    border-color: #d9f77933;
  }
  .episode-grid .episode:hover img {
    transform: scale(1.025);
  }
  .episode-grid .episode:hover .episode-play svg {
    background: #d9f779;
    border-color: #d9f779;
    color: #17210d;
  }
}
@media (max-width: 650px) {
  .episode-grid {
    gap: 12px;
  }
  .episode-grid .episode {
    padding: 7px;
    border-radius: 14px;
  }
  .episode-grid .episode > h3 {
    font-size: 12px;
  }
  .episode-grid .episode > small {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .episode-grid .episode,
  .episode-grid .episode img,
  .episode-grid .episode-play svg {
    transition: none;
  }
  .episode-grid .episode:hover img {
    transform: none;
  }
}
/* Smotria wordmark: open letter spacing and a separate lime signature. */
.brand .brand-word {
  color: #f1f3ee;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 1.15em;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.brand .brand-word::after {
  content: '';
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.18em;
  border-radius: 50%;
  background: var(--accent);
}
.brand-parent {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.brand-parent strong {
  color: #e0e8d6;
  font-weight: 700;
}
.brand-parent > span {
  color: var(--accent);
  transition: transform 180ms ease;
}
.brand-parent:hover > span {
  transform: translate(2px, -2px);
}
.player-brand {
  color: #f1f3ee;
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
@media (prefers-reduced-motion: reduce) {
  .brand-parent > span {
    transition: none;
  }
}

@media (max-width: 380px) {
  .header {
    gap: 8px;
  }
  .header .brand {
    font-size: 21px;
  }
  .header-tools {
    gap: 2px;
  }
}

/* Keep the hero operable by swipe and explicit controls on narrow screens. */
.hero { touch-action: pan-y; }
.hero-shade, .hero-image { pointer-events: none; }
.hero-pagination button { min-height: 44px; }
@media (max-width: 700px) {
  .hero-bottom { align-items: flex-end; }
  .hero-bottom .editor-choice { max-width: 90px; line-height: 1.5; }
  .hero-pagination { gap: 1px; }
  .hero-pagination button { min-width: 22px; }
  .hero-pagination .hero-next { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 44px; margin-left: 3px; }
}
@media (max-width: 380px) {
  .hero-bottom .editor-choice { display: none; }
  .hero-pagination { margin-left: auto; }
}
