/* The television uses the same pages and player as desktop. This layer only
   increases viewing distance readability and exposes remote-control focus. */
@media (min-width: 850px) {
  body.tv-mode { font-size: 18px; }
  body.tv-mode .sidebar { width: 264px; padding: 34px 22px 24px; }
  body.tv-mode .content-area { margin-left: 264px; }
  body.tv-mode .topbar { height: 88px; padding-inline: clamp(32px, 4vw, 72px); }
  body.tv-mode .page-content { width: min(100%, 1560px); padding: 36px clamp(32px, 4vw, 72px) 70px; }
  body.tv-mode .brand { font-size: 25px; }
  body.tv-mode .brand-mark { width: 35px; height: 35px; }
  body.tv-mode .nav-label { margin-top: 52px; font-size: 13px; }
  body.tv-mode .nav-item { min-height: 62px; font-size: 18px; }
  body.tv-mode .breadcrumb { font-size: 17px; }
  body.tv-mode .search-box { min-height: 52px; }
  body.tv-mode .search-box input { font-size: 16px; }
  body.tv-mode .welcome-row h1, body.tv-mode .page-title-row h1 { font-size: clamp(44px, 3.8vw, 68px); }
  body.tv-mode .home-hero { min-height: 345px; }
  body.tv-mode .home-hero h2 { font-size: clamp(42px, 3.5vw, 62px); }
  body.tv-mode .home-hero p, body.tv-mode .welcome-row .muted, body.tv-mode .page-title-row .muted { font-size: 17px; }
  body.tv-mode .home-section-head h2 { font-size: 29px; }
  body.tv-mode .eyebrow { font-size: 12px; }
  body.tv-mode .collection-info h3 { font-size: 22px; }
  body.tv-mode .collection-info p { font-size: 15px; }
  body.tv-mode .item-grid { gap: 25px; }
  body.tv-mode .media-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  body.tv-mode .item-card h3, body.tv-mode .playlist-card strong { font-size: 17px; }
  body.tv-mode .item-card p, body.tv-mode .playlist-card small { font-size: 14px; }
  body.tv-mode .item-play { opacity: 1; transform: none; }
  body.tv-mode .button, body.tv-mode .filter-chip, body.tv-mode .settings-tab { min-height: 52px; font-size: 16px; }
  body.tv-mode .text-button, body.tv-mode .sort-button { font-size: 16px; }
  body.tv-mode .music-detail-track { min-height: 77px; }
  body.tv-mode .music-detail-track-meta strong { font-size: 16px; }
  body.tv-mode .music-detail-track-meta small { font-size: 13px; }
  body.tv-mode .settings-layout { grid-template-columns: 210px minmax(0, 1fr); }
  body.tv-mode .settings-panel { font-size: 16px; }
  body.tv-mode .settings-panel .muted { font-size: 14px; }
  body.tv-mode .player-controls button, body.tv-mode .player-tools button { min-width: 58px; min-height: 58px; }
  body.tv-mode .player-detail h2 { font-size: clamp(30px, 2.5vw, 46px); }
  body.tv-mode .player.video-mode .media-wrapper video { max-height: 68vh; }
}

body.tv-mode :is(button, a, input, select, [role="button"], [tabindex="0"]):focus-visible {
  outline: 4px solid #fa233b;
  outline-offset: 5px;
  box-shadow: 0 0 0 9px #ffffffd9, 0 0 0 14px #fa233b91;
  position: relative;
  z-index: 2;
}
body.tv-mode .item-card:focus-visible .item-cover,
body.tv-mode .collection-card:focus-visible,
body.tv-mode .playlist-card:focus-visible {
  transform: scale(1.035);
  transition: transform .18s ease;
}
body.tv-mode .item-card:focus-visible .item-cover { box-shadow: 0 19px 45px #37121f4d; }
body.tv-mode .player :focus-visible { scroll-margin-block: 100px; }
body.tv-mode :is(#player-art,#online-player-art):focus-visible {
  outline: none;
  box-shadow: none;
}
body.tv-mode :is(#player,#online-player) :is(#player-art,#online-player-art):focus-visible .coverflow-card[aria-current="true"] .coverflow-face {
  box-shadow: 0 0 0 3px #fff, 0 0 24px #ffffff55;
}
body.tv-mode .page-content :focus-visible { scroll-margin-block: 110px; }
.tv-glyph { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.tv-mode .player-top-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.tv-mode .player-tools .player-tool svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body.tv-mode :is(#repeat-toggle,#online-repeat-toggle) .repeat-one { display: none; fill: currentColor; stroke: none; font-size: 9px; font-weight: 700; }
body.tv-mode :is(#repeat-toggle,#online-repeat-toggle)[data-repeat="one"] .repeat-one { display: block; }
