*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: #efefef;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ibn--tv-open {
  overflow: hidden;
}

.ibn {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ibn__stage {
  --design-w: 1440;
  --design-h: 1024;
  --stage-pad-x: clamp(12px, 3.2vw, 48px);
  --stage-pad-top: max(clamp(18px, 9vh, 96px), env(safe-area-inset-top, 0px));
  --stage-pad-bottom: max(clamp(64px, 14vh, 148px), env(safe-area-inset-bottom, 0px));
  --stage-inset-x: calc(
    (var(--stage-pad-x) * 2) + env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)
  );
  --paper-max-w: 754px;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}

.ibn__wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.ibn__wallpaper-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.ibn__wallpaper-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.ibn__wallpaper-slide picture,
.ibn__wallpaper-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.ibn__wallpaper-slide img {
  object-fit: cover;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .ibn__wallpaper-slide {
    transition: none;
  }
}

.ibn__wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.ibn__paper-wrap {
  --paper-w: 754.069;
  --paper-h: 833;
  --paper-pad-x: 166;
  --paper-pad-y: 117;
  --paper-scale: min(
    var(--paper-max-w),
    calc(100% - var(--stage-inset-x)),
    calc((100svh - var(--stage-pad-top) - var(--stage-pad-bottom)) * var(--paper-w) / var(--paper-h)),
    calc((100dvh - var(--stage-pad-top) - var(--stage-pad-bottom)) * var(--paper-w) / var(--paper-h))
  );
  z-index: 3;
  position: absolute;
  left: 50%;
  top: var(--stage-pad-top);
  width: var(--paper-scale);
  max-height: calc(100dvh - var(--stage-pad-top) - var(--stage-pad-bottom));
  aspect-ratio: var(--paper-w) / var(--paper-h);
  transform: translateX(-50%);
  font-size: clamp(9px, calc((12 / var(--paper-w)) * var(--paper-scale)), 12px);
}

.ibn__paper-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  box-shadow:
    0 calc(572.247 / var(--paper-h) * 100%) calc(160.68 / var(--paper-h) * 100%) 0 rgba(48, 48, 48, 0),
    0 calc(366.464 / var(--paper-h) * 100%) calc(146.585 / var(--paper-h) * 100%) 0 rgba(48, 48, 48, 0.01),
    0 calc(205.783 / var(--paper-h) * 100%) calc(124.034 / var(--paper-h) * 100%) 0 rgba(48, 48, 48, 0.05),
    0 calc(91.616 / var(--paper-h) * 100%) calc(91.616 / var(--paper-h) * 100%) 0 rgba(48, 48, 48, 0.09),
    0 calc(22.552 / var(--paper-h) * 100%) calc(50.741 / var(--paper-h) * 100%) 0 rgba(48, 48, 48, 0.1);
}

.ibn__paper {
  position: absolute;
  display: block;
  width: 118.5%;
  height: 107.28%;
  max-width: none;
  left: -10.28%;
  top: -4.57%;
  object-fit: cover;
  object-position: center;
}

.ibn__paper-cloud {
  position: absolute;
  z-index: 2;
  left: calc((569 / var(--paper-w)) * 100%);
  top: calc((41 / var(--paper-h)) * 100%);
  width: calc((117 / var(--paper-w)) * 100%);
  height: auto;
  aspect-ratio: 117 / 54;
  display: block;
  pointer-events: none;
}

.ibn__paper-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    calc((var(--paper-pad-y) / var(--paper-w)) * 100%)
    calc((var(--paper-pad-x) / var(--paper-w)) * 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.ibn__paper-content::-webkit-scrollbar {
  display: none;
}

.ibn__manifesto {
  width: 100%;
  margin: 0;
  transform: translateY(-26px);
  flex-shrink: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 1em;
  font-weight: 400;
  font-style: normal;
  line-height: 1.42;
  color: #000;
  overflow-wrap: break-word;
  word-break: break-word;
}

.ibn__manifesto h1 {
  margin: 0 0 clamp(18px, calc((24 / var(--paper-w)) * var(--paper-scale)), 24px);
  font-family: "Instrument Serif", serif;
  font-size: clamp(30px, calc((40 / var(--paper-w)) * var(--paper-scale)), 40px);
  font-weight: 400;
  line-height: 1;
  color: rgba(155, 155, 155, 1);
}

.ibn__manifesto p {
  margin: 0;
}

.ibn__manifesto p + p {
  margin-top: 1.35em;
}

.ibn__manifesto p + p:last-child {
  margin-top: 1.65em;
}

.ibn__manifesto strong {
  font-weight: 700;
}

.ibn__brand {
  z-index: 3;
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  border-radius: 8px;
  width: max-content;
  max-width: calc(100% - var(--stage-inset-x));
}

.ibn__brand-icon {
  width: auto;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.ibn__brand-text {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(20px, 1.45vw + 12px, 24px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
}

.ibn__vinyl-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  border-radius: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ibn__vinyl-btn:hover {
  opacity: 0.85;
}

.ibn__vinyl-btn:active {
  transform: scale(0.96);
}

.ibn__vinyl-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ibn__view {
  position: absolute;
  inset: 0;
}

.ibn__view--home {
  z-index: 1;
}

.ibn__view--home:not(.is-active) {
  visibility: hidden;
  pointer-events: none;
}

.ibn__view--tv {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.ibn__view--tv.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ibn__tv-canvas {
  --tv-image-w: 1672;
  --tv-image-h: 941;
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, calc(100vh * var(--tv-image-w) / var(--tv-image-h)));
  width: max(100dvw, calc(100dvh * var(--tv-image-w) / var(--tv-image-h)));
  height: max(100vh, calc(100vw * var(--tv-image-h) / var(--tv-image-w)));
  height: max(100dvh, calc(100dvw * var(--tv-image-h) / var(--tv-image-w)));
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.ibn__tv-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.ibn__tv-bg picture,
.ibn__tv-bg img {
  display: block;
  width: 100%;
  height: 100%;
}

.ibn__tv-bg img {
  object-fit: cover;
  object-position: center center;
}

.ibn__tv-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
}

.ibn__tv-screen {
  position: absolute;
  left: calc(670.4 / var(--tv-image-w) * 100%);
  top: calc(257.7 / var(--tv-image-h) * 100%);
  width: calc(322.2 / var(--tv-image-w) * 100%);
  height: calc(206.6 / var(--tv-image-h) * 100%);
  background: #000;
  border-radius: clamp(12px, 1.65vw, 24px);
  overflow: hidden;
}

.ibn__tv-screen iframe,
#ibn-tv-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ibn__tv-btn--manifesto {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.ibn__tv-btn--manifesto img {
  display: block;
  width: auto;
  height: clamp(18px, 1.6vw, 24px);
}

.ibn__tv-btn--manifesto:hover,
.ibn__tv-btn--manifesto:focus-visible {
  background: transparent;
  transform: none;
}

.ibn__tv-controls {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 420px);
}

.ibn__tv-playlist {
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: hidden;
  border-radius: clamp(12px, 1.2vw, 16px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ibn__tv-playlist:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.ibn__tv-genre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(6px, 0.7vw, 10px);
  padding: clamp(6px, 0.6vw, 10px);
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ibn__tv-genre-grid[hidden] {
  display: none;
}

.ibn__tv-genre-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(8px, 0.9vw, 12px);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ibn__tv-genre-card:hover,
.ibn__tv-genre-card:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  outline: none;
}

.ibn__tv-genre-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.ibn__tv-genre-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ibn__tv-genre-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ibn__tv-genre-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: clamp(6px, 0.7vw, 10px) clamp(8px, 0.8vw, 12px);
  font-family: "Space Mono", monospace;
}

.ibn__tv-genre-name {
  font-size: clamp(10px, 0.75vw + 7px, 13px);
  font-weight: 700;
  line-height: 1.2;
}

.ibn__tv-genre-count {
  font-size: clamp(9px, 0.6vw + 6px, 11px);
  color: rgba(255, 255, 255, 0.66);
}

.ibn__tv-genre-back {
  display: block;
  width: 100%;
  padding: clamp(8px, 0.8vw, 12px) clamp(10px, 1vw, 14px);
  border: 0;
  border-radius: clamp(8px, 0.8vw, 10px);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Space Mono", monospace;
  font-size: clamp(10px, 0.75vw + 7px, 13px);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ibn__tv-genre-back:hover,
.ibn__tv-genre-back:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.ibn__tv-genre-back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 1px;
}

.ibn__tv-playlist-list {
  margin: 0;
  padding: clamp(6px, 0.6vw, 10px);
  list-style: none;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ibn__tv-playlist-list[hidden] {
  display: none;
}

.ibn__tv-playlist-item {
  margin: 0;
}

.ibn__tv-playlist-btn {
  display: block;
  width: 100%;
  padding: clamp(8px, 0.8vw, 12px) clamp(10px, 1vw, 14px);
  border: 0;
  border-radius: clamp(8px, 0.8vw, 10px);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Space Mono", monospace;
  font-size: clamp(10px, 0.75vw + 8px, 13px);
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ibn__tv-playlist-btn:hover,
.ibn__tv-playlist-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.ibn__tv-playlist-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 1px;
}

.ibn__tv-playlist-btn.is-active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.ibn__tv-remote {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(5px, 0.5vw, 8px) clamp(8px, 0.8vw, 12px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ibn__tv-btn {
  display: grid;
  place-items: center;
  width: clamp(30px, 2.6vw, 42px);
  height: clamp(30px, 2.6vw, 42px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ibn__tv-btn:hover,
.ibn__tv-btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
  outline: none;
}

.ibn__tv-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.ibn__tv-btn--play {
  width: clamp(38px, 3.2vw, 52px);
  height: clamp(38px, 3.2vw, 52px);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ibn__tv-btn--play:hover,
.ibn__tv-btn--play:focus-visible {
  background: rgba(255, 255, 255, 0.34);
}

.ibn__tv-btn--play .ibn__tv-ico-pause {
  display: none;
}

.ibn__tv-btn--play.is-playing .ibn__tv-ico-play {
  display: none;
}

.ibn__tv-btn--play.is-playing .ibn__tv-ico-pause {
  display: block;
}

.ibn__tv-btn[data-action="playlist"].is-open {
  background: rgba(255, 255, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .ibn__view--tv {
    transition: none;
  }

  .ibn__vinyl-btn {
    transition: none;
  }

  .ibn__tv-btn {
    transition: none;
  }
}

/* Tablet landscape / small laptop */
@media (max-width: 1024px) {
  .ibn__tv-controls {
    max-width: min(90vw, 400px);
  }

  .ibn__tv-playlist,
  .ibn__tv-genre-grid,
  .ibn__tv-playlist-list {
    max-height: min(48dvh, 400px);
  }
}

/* Tablet portrait */
@media (max-width: 960px) {
  .ibn__paper-wrap {
    --paper-pad-x: 150;
    --paper-pad-y: 108;
    --stage-pad-top: max(clamp(16px, 7vh, 72px), env(safe-area-inset-top, 0px));
    --stage-pad-bottom: max(clamp(68px, 16vh, 136px), env(safe-area-inset-bottom, 0px));
    font-size: clamp(8.5px, calc((12 / var(--paper-w)) * var(--paper-scale)), 12px);
  }

  .ibn__manifesto {
    transform: translateY(-18px);
  }

  .ibn__manifesto p + p {
    margin-top: 1.2em;
  }

  .ibn__manifesto p + p:last-child {
    margin-top: 1.45em;
  }

  .ibn__tv-screen {
    border-radius: clamp(10px, 1.4vw, 20px);
  }
}

/* Large phones / narrow tablets */
@media (max-width: 768px) {
  .ibn__stage {
    --stage-pad-x: clamp(10px, 2.8vw, 32px);
  }

  .ibn__brand-text {
    font-size: clamp(18px, 4.5vw, 22px);
  }

  .ibn__tv-controls {
    bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
    max-width: min(94vw, 380px);
    gap: 8px;
  }

  .ibn__tv-btn {
    width: max(44px, clamp(36px, 11vw, 44px));
    height: max(44px, clamp(36px, 11vw, 44px));
  }

  .ibn__tv-btn--play {
    width: max(48px, clamp(42px, 12vw, 48px));
    height: max(48px, clamp(42px, 12vw, 48px));
  }

  .ibn__tv-btn--manifesto img {
    height: clamp(20px, 5vw, 24px);
  }

  .ibn__tv-playlist,
  .ibn__tv-genre-grid,
  .ibn__tv-playlist-list {
    max-height: min(42dvh, 360px);
  }
}

/* Mobile portrait */
@media (max-width: 600px) {
  .ibn__paper-wrap {
    --paper-pad-top: 76;
    --paper-pad-right: 110;
    --paper-pad-bottom: 68;
    --paper-pad-left: 132;
    --stage-pad-x: 10px;
    --stage-pad-top: max(clamp(12px, 4vh, 28px), env(safe-area-inset-top, 0px));
    --stage-pad-bottom: max(clamp(80px, 14vh, 112px), env(safe-area-inset-bottom, 0px));
    top: calc(
      var(--stage-pad-top) +
      (100svh - var(--stage-pad-top) - var(--stage-pad-bottom)) / 2
    );
    top: calc(
      var(--stage-pad-top) +
      (100dvh - var(--stage-pad-top) - var(--stage-pad-bottom)) / 2
    );
    transform: translate(-50%, -50%);
    font-size: clamp(7.75px, calc((12 / var(--paper-w)) * var(--paper-scale)), 9.75px);
  }

  .ibn__paper-content {
    padding:
      calc((var(--paper-pad-top) / var(--paper-h)) * 100%)
      calc((var(--paper-pad-right) / var(--paper-w)) * 100%)
      calc((var(--paper-pad-bottom) / var(--paper-h)) * 100%)
      calc((var(--paper-pad-left) / var(--paper-w)) * 100%);
    -webkit-overflow-scrolling: touch;
  }

  .ibn__manifesto {
    width: 100%;
    transform: translateY(-8px);
    line-height: 1.34;
    color: #111;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .ibn__manifesto h1 {
    font-size: clamp(22px, calc((40 / var(--paper-w)) * var(--paper-scale)), 30px);
  }

  .ibn__manifesto p {
    line-height: 1.34;
  }

  .ibn__manifesto p + p {
    margin-top: 1.05em;
  }

  .ibn__manifesto p + p:last-child {
    margin-top: 1.3em;
  }

  .ibn__brand {
    gap: 4px;
    padding: 4px 12px;
  }

  .ibn__brand-icon {
    height: 22px;
  }

  .ibn__tv-genre-grid {
    gap: 8px;
    padding: 8px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .ibn__paper-wrap {
    --stage-pad-x: 8px;
    font-size: clamp(7.5px, calc((12 / var(--paper-w)) * var(--paper-scale)), 9px);
  }

  .ibn__manifesto h1 {
    font-size: clamp(20px, calc((40 / var(--paper-w)) * var(--paper-scale)), 28px);
  }

  .ibn__brand-text {
    font-size: clamp(17px, 5vw, 20px);
  }

  .ibn__tv-remote {
    gap: 6px;
    padding: 6px 8px;
  }

  .ibn__tv-controls {
    max-width: min(96vw, 340px);
  }
}

/* Short viewports (e.g. iPhone SE, zoomed UI) */
@media (max-height: 640px) {
  .ibn__stage {
    --stage-pad-top: max(clamp(10px, 3vh, 20px), env(safe-area-inset-top, 0px));
    --stage-pad-bottom: max(clamp(56px, 12vh, 88px), env(safe-area-inset-bottom, 0px));
  }

  .ibn__manifesto {
    transform: translateY(-8px);
  }

  .ibn__brand-icon {
    height: 20px;
  }

  .ibn__tv-playlist,
  .ibn__tv-genre-grid,
  .ibn__tv-playlist-list {
    max-height: min(36dvh, 280px);
  }
}

/* Mobile landscape */
@media (max-height: 520px) and (orientation: landscape) {
  .ibn__stage {
    --stage-pad-top: max(8px, env(safe-area-inset-top, 0px));
    --stage-pad-bottom: max(clamp(48px, 12vh, 64px), env(safe-area-inset-bottom, 0px));
  }

  .ibn__paper-wrap {
    top: calc(
      var(--stage-pad-top) +
      (100svh - var(--stage-pad-top) - var(--stage-pad-bottom)) / 2
    );
    top: calc(
      var(--stage-pad-top) +
      (100dvh - var(--stage-pad-top) - var(--stage-pad-bottom)) / 2
    );
    transform: translate(-50%, -50%);
    font-size: clamp(7px, calc((11 / var(--paper-w)) * var(--paper-scale)), 10px);
  }

  .ibn__manifesto {
    transform: translateY(-4px);
  }

  .ibn__manifesto h1 {
    margin-bottom: clamp(10px, calc((16 / var(--paper-w)) * var(--paper-scale)), 16px);
    font-size: clamp(18px, calc((32 / var(--paper-w)) * var(--paper-scale)), 26px);
  }

  .ibn__manifesto p + p {
    margin-top: 0.9em;
  }

  .ibn__manifesto p + p:last-child {
    margin-top: 1.1em;
  }

  .ibn__brand {
    bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
    gap: 3px;
  }

  .ibn__brand-icon {
    height: 18px;
  }

  .ibn__brand-text {
    font-size: clamp(15px, 3.2vw, 18px);
  }

  .ibn__tv-controls {
    bottom: max(10px, calc(8px + env(safe-area-inset-bottom, 0px)));
    gap: 6px;
  }

  .ibn__tv-playlist,
  .ibn__tv-genre-grid,
  .ibn__tv-playlist-list {
    max-height: min(32dvh, 220px);
  }

  .ibn__tv-remote {
    gap: 6px;
    padding: 5px 8px;
  }
}

/* Large desktop — keep paper from over-scaling on ultra-wide */
@media (min-width: 1600px) {
  .ibn__paper-wrap {
    --paper-max-w: min(754px, 52vw);
  }
}

