/* ===========================================================================
   Daily Junction Play — editorial portal polish (2026-07-16)

   Presentation-only layer loaded after the canonical Play sheet. It leaves
   consent, notification state, Shorts, watch-later, autoplay/up-next,
   subscriptions, tracking and every interaction contract unchanged.
   ========================================================================== */

body {
  --font-body: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  background: #fff;
  font-family: var(--font-body);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

/* Video-app chrome: full-width top bar, topic chips and persistent rail. */
.play-header {
  border-top: 0;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
  box-shadow: none;
}

.play-header-bar {
  width: 100%;
  max-width: none;
  min-height: 56px;
  gap: 0.72rem;
  padding: 0.45rem clamp(0.75rem, 2vw, 1.75rem);
}

.play-menu-button,
.play-mobile-search-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  cursor: pointer;
}

.play-menu-button:hover,
.play-mobile-search-toggle:hover {
  background: #f2f2f2;
}

.play-menu-button .dj-ico,
.play-mobile-search-toggle .dj-ico {
  width: 1.35rem;
  height: 1.35rem;
}

.play-mobile-search-toggle {
  display: none;
}

.play-header .play-brand-name {
  color: #111827;
  font-size: 1.03rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.play-header .play-brand-play {
  color: var(--pp);
}

.play-brand-logo {
  border-radius: 8px;
}

.play-search {
  max-width: 640px;
  margin-inline: auto;
}

.play-search-input {
  height: 40px;
  border-color: #cfd3d8;
  border-radius: 999px 0 0 999px;
  background: #fff;
  font-size: 0.92rem;
}

.play-search-btn {
  width: 62px;
  height: 40px;
  border-color: #cfd3d8;
  border-radius: 0 999px 999px 0;
  background: #f8f8f8;
}

.play-typeahead {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.16);
}

.play-typeahead-row img {
  border-radius: 0.25rem;
}

.play-bell {
  color: #111827;
}

.dj-audience-signal--play {
  border-color: #f1a4a4;
  background: linear-gradient(135deg, #fff1f2, #fff 74%);
}

.dj-audience-signal--play .dj-audience-beacon {
  background: #fee2e2;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.1);
}

.dj-audience-signal--play .dj-audience-beacon > span {
  background: #dc2626;
}

/* Audience signal lives in the header actions row on every viewport.
   Compact chip styling kicks in below the header-search breakpoint. */
.play-audience-chip {
  min-height: 2.2rem;
  padding: 0.32rem 0.65rem;
  gap: 0.5rem;
  border-radius: 0.4rem;
  box-shadow: 0 2px 8px rgba(15, 27, 45, 0.1);
}

.play-audience-chip .dj-audience-copy strong {
  font-size: 0.98rem;
}

.play-audience-chip .dj-audience-copy > span {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.play-queue-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111827;
  cursor: pointer;
}

.play-queue-button .dj-ico {
  width: 1.3rem;
  height: 1.3rem;
}

.play-queue-badge {
  position: absolute;
  top: 1px;
  right: -1px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 0.25rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--pp);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.play-bell:hover,
.play-queue-button:hover {
  background: #f2f2f2;
}

.play-tabs {
  border-top: 1px solid #f0f1f2;
  background: #fff;
}

.play-tabs-track {
  width: 100%;
  max-width: none;
  gap: 0.7rem;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.75rem);
}

/* Centre the complete topic set when it fits. Narrower viewports retain the
   left-origin scroll track so the first and last categories stay reachable. */
@media (min-width: 1100px) {
  .play-tabs-track {
    justify-content: center;
  }
}

.play-tab {
  min-height: 32px;
  padding: 0.38rem 0.78rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f2f2f2;
  color: #242424;
  font-size: 0.84rem;
  font-weight: 620;
}

.play-tab:hover {
  border-color: #d5d8dc;
  background: #e5e5e5;
}

.play-tab.is-active {
  border-color: #111827;
  background: #111827;
  color: #fff;
  box-shadow: none;
}

/* Persistent desktop navigation. */
.play-sidebar {
  position: fixed;
  top: 105px;
  bottom: 0;
  left: 0;
  z-index: 35;
  width: 232px;
  overflow-y: auto;
  padding: 0.72rem 0.75rem 1.5rem;
  border-right: 1px solid #eceef0;
  background: #fff;
  transition: width 0.16s ease;
  scrollbar-width: thin;
}

.play-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.play-sidebar-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 1.35rem;
  padding: 0.55rem 0.78rem;
  border-radius: 10px;
  color: #171717;
  font-size: 0.88rem;
  font-weight: 520;
  text-decoration: none;
}

.play-sidebar-link:hover {
  background: #f2f2f2;
}

.play-sidebar-link.is-active {
  background: #e8f1fb;
  color: #084f96;
  font-weight: 720;
}

.play-sidebar-icon {
  display: inline-grid;
  width: 24px;
  flex: none;
  place-items: center;
}

.play-sidebar-icon .dj-ico {
  width: 1.28rem;
  height: 1.28rem;
}

.play-sidebar-heading {
  padding: 0.35rem 0.78rem 0.18rem;
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.play-sidebar-rule {
  height: 1px;
  margin: 0.55rem 0;
  background: #e5e7eb;
}

.play-sidebar-activity {
  display: grid;
  gap: 0.18rem;
  margin: 0.6rem 0 0.2rem;
  padding: 0.7rem;
  border: 1px solid #e3e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.play-sidebar-activity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0 0.15rem 0.28rem;
}

.play-sidebar-activity-head p {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 750;
}

.play-sidebar-activity-head span {
  color: #6b7280;
  font-size: 0.62rem;
}

.play-activity-row {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0.42rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 0.72rem;
  text-align: left;
  text-decoration: none;
}

button.play-activity-row {
  width: 100%;
  cursor: pointer;
}

.play-activity-row:not(.play-activity-row--static):hover {
  background: #e9eef4;
}

.play-activity-row > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.42rem;
}

.play-activity-row .dj-ico {
  width: 0.95rem;
  height: 0.95rem;
}

.play-activity-row strong {
  min-width: 1.55rem;
  color: #111827;
  font-size: 0.7rem;
  text-align: right;
}

.dj-host-play .drawer-content > .dj-shell > main,
.dj-host-play .drawer-content > .dj-shell > .play-footer {
  padding-left: 232px;
  transition: padding-left 0.16s ease;
}

.play-bottom-nav {
  display: none;
}

body.play-sidebar-collapsed .play-sidebar {
  width: 80px;
  padding-inline: 0.42rem;
}

body.play-sidebar-collapsed .play-sidebar-link {
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 0.15rem;
  font-size: 0.66rem;
}

body.play-sidebar-collapsed .play-sidebar-heading,
body.play-sidebar-collapsed .play-sidebar-rule,
body.play-sidebar-collapsed .play-sidebar-activity {
  display: none;
}

.dj-host-play.play-sidebar-collapsed .drawer-content > .dj-shell > main,
.dj-host-play.play-sidebar-collapsed .drawer-content > .dj-shell > .play-footer {
  padding-left: 80px;
}

/* Editorial rhythm and lead story. */
.play-page {
  gap: 1.45rem;
}

.play-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(290px, 0.8fr);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.play-hero-media {
  /* Fill the grid cell; DON'T derive width from height. min-height:100% +
     aspect-ratio made the media as wide as (row-height × 16/9), overflowing
     its column into the text and clipping the title. The cell (1.6fr) sizes
     the width; object-fit:cover on .play-hero-bg fills whatever the row height
     ends up (driven by the text column). */
  min-width: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
}

.play-hero-scrim {
  display: none;
}

.play-hero-badge {
  border-radius: 5px;
  background: rgba(11, 18, 32, 0.84);
}

.play-hero-title {
  color: #111827;
  font-size: clamp(1.25rem, 2.25vw, 1.9rem);
  font-weight: 740;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.play-hero-inner {
  position: static;
  justify-content: center;
  gap: 0.62rem;
  padding: clamp(1.1rem, 2.3vw, 2rem);
  pointer-events: auto;
}

.play-hero-chan {
  color: var(--pp);
  font-size: 0.76rem;
}

.play-hero-desc {
  color: #5f6368;
  font-size: 0.9rem;
  -webkit-line-clamp: 3;
}

.play-hero-actions .btn-ghost {
  color: var(--ptx);
}

.play-hero-later {
  border-color: #d1d5db;
  background: #f2f2f2;
  color: #111827;
}

/* Flat editorial rails and thumbnail cards. */
.play-rail {
  gap: 0.72rem;
}

.play-rail-head {
  gap: 0.55rem;
  padding-bottom: 0.2rem;
  border-bottom: 0;
}

.play-rail-title {
  padding-left: 0;
  border-left: 0;
  font-size: 1.22rem;
  font-weight: 740;
  letter-spacing: -0.015em;
}

.play-rail-all {
  padding: 0.26rem 0.55rem;
  border-radius: 0.22rem;
  font-size: 0.8rem;
}

.play-rail-track,
.play-livestrip-track {
  gap: 0.72rem;
}

.play-rail-ghost,
.play-rail-cta {
  border-radius: 0.35rem;
  box-shadow: none;
}

.play-card-thumb {
  border-radius: 10px;
}

.play-card-img {
  transition: none;
}

.play-card:hover .play-card-img {
  transform: none;
}

.play-card-body {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.62rem 0.08rem 0.3rem;
}

.play-card-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.12rem;
}

.play-card-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pp), #1f7acb);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
}
.play-card-avatar--img {
  background: transparent;
}
.play-card-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.play-card-title {
  order: -1;
  color: #0f0f0f;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.play-card-channel {
  color: #606060;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.play-card-meta {
  display: flex;
  flex-wrap: wrap;
  color: #606060;
  font-size: 0.73rem;
}

.play-card--rail {
  width: 300px;
}

.play-card-later {
  width: 36px;
  height: 36px;
  opacity: 0;
}

.play-card.has-play-options .play-card-body {
  grid-template-columns: 36px minmax(0, 1fr) 34px;
}

.play-card-options-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: start;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #30343a;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.play-card-options-button:hover,
.play-card-options-button[aria-expanded="true"] {
  background: #ededed;
}

.play-card-menu {
  position: fixed;
  z-index: 95;
  display: grid;
  width: min(250px, calc(100vw - 16px));
  overflow: hidden;
  padding: 0.4rem;
  border: 1px solid #d9dde2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.play-card-menu[hidden] {
  display: none;
}

.play-card-menu button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #202124;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}

.play-card-menu button:hover,
.play-card-menu button:focus-visible,
.play-card-menu button[aria-checked="true"] {
  background: #edf4fb;
  color: #084f96;
}

.play-card-menu .dj-ico {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

/* Device-local Up Next dialog. It is deliberately labelled as personal
   activity and never presents these values as audience or community totals. */
.play-queue-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.play-queue-layer[hidden] {
  display: none;
}

.play-queue-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 39, 0.46);
}

.play-queue-dialog {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(430px, 100vw);
  height: 100%;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 34px rgba(15, 23, 42, 0.22);
}

.play-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.78rem;
  border-bottom: 1px solid #e5e7eb;
}

.play-queue-title {
  color: #111827;
  font-size: 1.08rem;
  font-weight: 760;
}

.play-queue-subtitle {
  margin-top: 0.12rem;
  color: #68707b;
  font-size: 0.74rem;
}

.play-queue-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f3f5;
  color: #111827;
  cursor: pointer;
}

.play-queue-list {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  padding: 0.8rem;
  list-style: none;
}

.play-queue-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.48rem;
  border-radius: 10px;
}

.play-queue-item:hover {
  background: #f5f6f8;
}

.play-queue-thumb {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
}

.play-queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-queue-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.22rem;
  color: #111827;
  text-decoration: none;
}

.play-queue-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.play-queue-channel {
  overflow: hidden;
  color: #69717c;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-queue-item-actions {
  display: flex;
  align-items: center;
  gap: 0.18rem;
}

.play-queue-item-actions button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
}

.play-queue-item-actions button:hover {
  background: #e7eaee;
  color: #111827;
}

.play-queue-item-actions .dj-ico {
  width: 0.98rem;
  height: 0.98rem;
}

.play-queue-empty {
  display: grid;
  flex: 1;
  place-content: center;
  padding: 2rem;
  color: #5f6670;
  text-align: center;
}

.play-queue-empty strong {
  display: block;
  margin-bottom: 0.28rem;
  color: #111827;
  font-size: 1rem;
}

.play-queue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e7eb;
}

.play-queue-footer span {
  color: #68707b;
  font-size: 0.72rem;
}

.play-queue-clear {
  border: 0;
  background: transparent;
  color: #235e99;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

body.play-queue-open {
  overflow: hidden;
}

.play-lib-tabs .tab:not(.tab-active) {
  color: #374151;
}

.play-livetile-screen {
  border-radius: 0.35rem;
  box-shadow: none;
}

.play-chan-avatar {
  box-shadow: none;
}

/* Passive watch-page reading surfaces. */
.play-player-frame {
  border-radius: 0.4rem;
}

.play-meta-card,
.play-related-reading,
.play-comments {
  border-radius: 0.35rem;
  box-shadow: none;
}

.play-meta-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.play-summary {
  border-radius: 0.3rem;
  background: #f5f6f8;
}

.play-read-card {
  border-radius: 0.3rem;
}

/* Categories, search and directory pages. */
.play-cat-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.play-chip {
  border-radius: 0.22rem;
  background: var(--pbg);
  font-weight: 600;
}

.play-wall,
.play-guide-box,
.play-chan-header,
.play-chan-livecard {
  border-radius: 0.4rem;
  box-shadow: none;
}

.play-chan-banner {
  background: var(--tv-accent, #1257a5);
}

.play-chan-h1,
.play-wall-grouptitle {
  font-weight: 700;
}

/* Live TV and guide: retain all player/chat/favourite behaviour. */
.dj-host-play #main:has(> .play-live-stage) {
  padding-top: 0.65rem;
}

.play-page.play-live-stage {
  gap: 0.65rem;
  margin-top: 0;
}

.play-live-stage > .tv-crumb {
  margin-bottom: 0;
}

.tv-crumb {
  color: color-mix(in srgb, var(--color-base-content) 72%, transparent);
}

.tv-hero {
  border-radius: 0.4rem;
  background: #101722;
  box-shadow: none;
}

.tv-hero-title {
  font-weight: 700;
}

.tv-hero-chip,
.tv-tab {
  border-radius: 0.22rem;
}

.tv-tile {
  border-radius: 0.35rem;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.tv-tile:hover {
  transform: none;
  box-shadow: none;
}

.tv-tile-logo,
.tv-logo-fallback {
  border-radius: 0.25rem;
  box-shadow: none;
}

.tv-tile-live {
  border-radius: 0.2rem;
}

.tv-tile-now,
.tv-grid-empty {
  color: color-mix(in srgb, var(--color-base-content) 74%, transparent);
}

/* Production carries persistent channel comments that the data-free preview
   does not. Keep their dates secondary without dropping below text contrast. */
#tv-comment-list .text-base-content\/50 {
  color: color-mix(in srgb, var(--color-base-content) 74%, transparent);
}

.tvg-shell {
  border-radius: 0.35rem;
}

.tvg-block {
  border-radius: 0.22rem;
}

/* Listen and long-form feature cards. */
.play-audio-card,
.play-retro-hero,
.play-apod-card {
  border-radius: 0.35rem;
  box-shadow: none;
}

.play-audio-art,
.play-retrocard-thumb {
  border-radius: 0.3rem;
}

.play-audio-title,
.play-retro-hero-title,
.play-apod-title {
  font-weight: 700;
}

.play-footer {
  background: var(--pbg);
}

.play-menu-button:focus-visible,
.play-mobile-search-toggle:focus-visible,
.play-queue-button:focus-visible,
.play-sidebar-link:focus-visible,
.play-activity-row:focus-visible,
.play-bottom-link:focus-visible,
.play-tab:focus-visible,
.play-card-later:focus-visible,
.play-card-options-button:focus-visible,
.play-queue-close:focus-visible,
.play-queue-clear:focus-visible,
.play-queue-item-actions button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--pp) 45%, transparent);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .play-sidebar {
    display: none;
  }

  .dj-host-play .drawer-content > .dj-shell > main,
  .dj-host-play .drawer-content > .dj-shell > .play-footer,
  body.play-sidebar-collapsed .dj-shell > main,
  body.play-sidebar-collapsed .dj-shell > .play-footer {
    padding-left: 0;
  }
}

@media (max-width: 1199px) {
  .play-audience-chip .dj-audience-copy > span {
    display: none;
  }
}

@media (max-width: 767px) {
  .play-header-bar {
    gap: 0.48rem;
    flex-wrap: wrap;
    padding-inline: 0.65rem;
  }

  .play-mobile-search-toggle {
    display: inline-grid;
  }

  .play-search {
    display: none;
    order: 10;
    max-width: none;
    margin-inline: 0;
    flex: 1 0 100%;
  }

  body.play-mobile-search-open .play-search {
    display: flex;
  }

  .play-search-btn {
    width: 52px;
  }

  .play-header-actions {
    gap: 0.2rem;
    margin-left: auto;
  }

  .play-audience-chip {
    min-height: 2rem;
    padding: 0.28rem 0.5rem;
    gap: 0.35rem;
    border-radius: 0.35rem;
  }

  .play-audience-chip .dj-audience-copy strong {
    font-size: 0.88rem;
  }

  .play-audience-chip .dj-audience-beacon {
    width: 0.78rem;
    height: 0.78rem;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
  }

  .play-audience-chip .dj-audience-beacon > span {
    width: 0.48rem;
    height: 0.48rem;
  }

  .play-signin {
    min-height: 36px;
    height: 36px;
    padding-inline: 0.75rem;
    font-size: 0.78rem;
  }

  .play-tabs-track {
    padding-inline: 0.7rem;
  }

  .play-bottom-nav {
    position: fixed;
    right: 0;
    bottom: var(--dj-dock-h, 0px);
    left: 0;
    z-index: 46;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 58px;
    padding: 0.25rem 0.3rem calc(0.22rem + env(safe-area-inset-bottom));
    border-top: 1px solid #dedede;
    background: rgba(255, 255, 255, 0.98);
  }

  .play-bottom-link {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.08rem;
    border-radius: 8px;
    color: #4b5563;
    font-size: 0.62rem;
    font-weight: 600;
    text-decoration: none;
  }

  .play-bottom-link.is-active {
    color: var(--pp);
  }

  .play-bottom-icon {
    display: inline-flex;
  }

  .play-bottom-icon .dj-ico {
    width: 1.22rem;
    height: 1.22rem;
  }

  .dj-host-play .drawer-content > .dj-shell > main {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .dj-host-play .drawer-content > .dj-shell {
    padding-bottom: calc(58px + var(--dj-dock-h, 0px) + env(safe-area-inset-bottom));
  }

  .play-page {
    gap: 1rem;
  }

  .play-hero {
    grid-template-columns: 1fr;
  }

  .play-hero-inner {
    padding: 1rem;
  }

  .play-hero-desc {
    display: -webkit-box;
  }

  .play-hero-actions .btn {
    min-height: 40px;
  }

  .play-rail-title {
    font-size: 1.06rem;
  }

  .play-card--rail {
    width: min(84vw, 300px);
  }

  .play-toast {
    bottom: calc(4.5rem + var(--dj-dock-h, 0px) + env(safe-area-inset-bottom));
  }
}

@media (hover: none), (pointer: coarse) {
  .play-card-later {
    width: 44px;
    height: 44px;
    opacity: 1;
  }
}

/* Desktop sidebar + play's own (behind-quicktabs) bottom nav are hidden on
   shorts; the shared dj-quicktabs stays as the permanent bottom appliance and
   the shorts stage reserves its height (--play-nav-h) so content clears it. */
body.play-shorts-mode .play-sidebar,
body.play-shorts-mode .play-bottom-nav {
  display: none;
}

body.play-shorts-mode .drawer-content > .dj-shell > main,
body.play-shorts-mode .drawer-content > .dj-shell > .play-footer {
  padding-left: 0;
}

body.play-shorts-mode .drawer-content > .dj-shell > main {
  padding-bottom: 0;
}

body.play-shorts-mode .drawer-content > .dj-shell {
  padding-bottom: 0;
}

@media (max-width: 479px) {
  .play-queue-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .play-queue-item-actions {
    grid-column: 2;
    justify-content: flex-end;
  }
}
