/* ============================================================
   PLAYER PAGE (Player) — CSS
   Refactor goals:
   - Reorder + group related rules
   - Merge duplicate selectors (same scope)
   - Preserve existing behaviour and breakpoints
   ============================================================ */

/* ============================================================
   1) Top controls (mode + view toggles)
   ============================================================ */

.player-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.player-controls__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- Mode pills (Audio / Video) -------------------------- */
/* Targets the first toggle row: aria-label="Media mode" */
.player-controls__row[aria-label="Media mode"] .player-toggle {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  user-select: none;
  flex: 1 1 0; /* expand equally like calendar */
  text-align: center; /* centred label */
}

/* Dark mode: inactive Audio / Video tabs need lighter text */
body.theme-dark .player-controls__row[aria-label="Media mode"] .player-toggle {
  color: rgba(255, 255, 255, 0.65);
}

.player-controls__row[aria-label="Media mode"] .player-toggle:hover {
  background: var(--bg-hover);
}

.player-controls__row[aria-label="Media mode"] .player-toggle.player-toggle--active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.player-controls__row[aria-label="Media mode"] .player-toggle.player-toggle--active:hover {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

/* --- View links (Library / Favourites) ------------------- */
/* Targets the second toggle row: aria-label="View" */
.player-controls__row[aria-label="View"] .player-toggle {
  flex: 0 1 auto;
  min-width: 22%;
  padding: 0.2rem 0.25rem;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-primary);
  text-decoration: underline;
  text-align: center;
  border-radius: 0;
}

.player-controls__row[aria-label="View"] .player-toggle:hover {
  color: var(--brand-primary-dark);
  background: none;
}

.player-controls__row[aria-label="View"] .player-toggle.player-toggle--active {
  color: var(--brand-primary-dark);
  background: none;
  border: none;
  font-weight: 600;
  text-decoration: underline;
}

.player-controls__row[aria-label="View"] .player-toggle.player-toggle--active,
.player-controls__row[aria-label="View"] .player-toggle.player-toggle--active:hover {
  background: none !important;
}

/* ============================================================
   2) Now Playing (compact summary panel)
   ============================================================ */

.player-now-playing {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;

  background: var(--bg-muted);
  /* border-radius: 12px; */
}

.player-now-playing__artwork {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  flex-shrink: 0;
}

.player-now-playing__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-now-playing__title {
  font-weight: 600;
  color: var(--text-main);
}

.player-now-playing__subtitle {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ============================================================
   3) Main player shell (sticky)
   ============================================================ */

.player-now {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 1.5rem;
  /* Keep the player visible while Library/Favourites scroll */
  position: sticky;
  top: 65px;
  z-index: 20;

  width: 100%;
  aspect-ratio: 16 / 9;
}

/* @media (orientation: landscape) {
  .player-now {
    border: 3px dotted orange;
    height: 100%;
    aspect-ratio: 16 / 9;
  }
} */

/* pull player-now up and left on small screens so it sits flush with sides and top */
@media (max-width: 720px) {
  .player-now {
    margin-left: -1rem;
    margin-right: -1rem;
    /* margin-right: -1rem; */
    border-radius: 0;
    border: none;
    width: calc(100% + 2rem); /* 1rem left + 1rem right padding */
  }

  .members-page__content {
    padding-top: 0;
  }
}

/* Move player now to top */
@media (max-width: 520px) {
  .members-page {
    /* remove *global* top padding applied in members.css to keep calendar pill buttons clickable */
    padding-top: 0;
    margin-top: 0;
  }
  .player-now {
    top: 0;
  }
  .navbar {
    background: transparent;
    border: none;
  }
  /* .members-page__content {
    padding-top: 0;
  } */
}

@media (max-width: 520px) {
  body.theme-dark .navbar {
    background: transparent;
  }
}

.player-now__main {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   4) Media elements (audio/video) + 16:9 visual frame
   ============================================================ */

/* Media elements */
.player-media {
  width: 100%;
  max-width: 100%;
  display: none;
}

.player-media--audio {
  height: 0; /* audio has no visual height */
}

.player-media--video {
  width: 100%;
  height: 100%;
  /* max-height: 60vh; */
  background: #000;
}

.player-media--video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Visual frame wrapper */
.player-now__visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* max-height: 60vh; */

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  background: var(--bg-muted);
  border-radius: 12px;
  overflow: hidden;
  /* border: 2px dashed var(--brand-primary); */
}

@media (max-width: 720px) {
  .player-now__visual {
    border-radius: 0;
  }
}

/* Artwork (disc) */
.player-now__artwork {
  /* Scale artwork relative to player HEIGHT */
  height: 70%;
  aspect-ratio: 1 / 1;

  border-radius: 50%;
  object-fit: cover;

  /* Disc rotation setup */
  transform-origin: 50% 50%;

  /* Subtle depth */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

/* Dark mode: default (non-playing) shadow */
body.theme-dark .player-now__artwork {
  box-shadow: 0 6px 14px rgba(187, 187, 187, 0.25);
}

/* Dark mode: lighter shadow so artwork still lifts from background */
body.theme-dark .player-now__artwork.is-playing {
  box-shadow: 0 8px 20px rgba(187, 187, 187, 0.45);
}

/* --- Disc rotation (play state) -------------------------- */

@keyframes player-disc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Only spin when explicitly marked as playing */
.player-now__artwork.is-playing {
  animation: player-disc-spin 6s linear infinite;
}

/* ============================================================
   5) Overlays inside the 16:9 frame (meta + controls)
   ============================================================ */

/* Top meta overlay */
.player-now__meta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  padding: 0.65rem 0.75rem;
  min-height: 7rem;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  color: #ffffff;

  margin: 0;
  z-index: 2;

  /* Fade with controls (JS toggles .controls-hidden on .player-now__visual) */
  opacity: 1;
  transition: opacity 2000ms ease;
}

.player-now__visual.controls-hidden .player-now__meta {
  opacity: 0;
  pointer-events: none;
}

/* Bottom controls overlay */
.player-now__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.65rem 0.75rem;
  min-height: 7rem;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  z-index: 2;

  /* Controls visibility (YouTube-style)
     - Visible by default
     - JS toggles .controls-hidden on .player-now__visual */
  opacity: 1;
  transition: opacity 2000ms ease;
}

.player-now__visual.controls-hidden .player-now__controls {
  opacity: 0;
  pointer-events: none;
}

/* Meta typography (title/subtitle) */
.player-now__title,
.player-now__subtitle {
  color: #ffffff;
}

.player-now__title {
  font-size: 1.3rem;
  font-weight: 600;
}

.player-now__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
}

/* Mobile: reduce title/subtitle size inside player window */
@media (max-width: 720px) {
  .player-now__meta .player-now__title {
    font-size: 0.8rem;
  }
  .player-now__meta .player-now__subtitle {
    font-size: 0.7rem;
  }
}

/* ============================================================
   6) Transport + scrubber + repeat (inside controls overlay)
   ============================================================ */

.player-now__transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.15rem, 3vw, 2rem);

  flex-wrap: wrap;
  margin-bottom: 0.4rem;

  /* Inside the overlay, ensure contrast */
  color: #ffffff;
}

.player-transport--primary {
  font-weight: 600;
}

/* Scrubber */
.player-now__scrub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-now__time {
  font-size: 0.8rem;
  color: #fff;
  min-width: 2.5rem;
  text-align: center;
}

.player-now__range {
  flex: 1;
}

/* ============================================================
   7) Panels (Library / Favourites) + headers
   ============================================================ */

.player-panels {
  margin-top: 1.5rem;
  padding-bottom: 4rem; /* space for fixed bottom view bar */
}

.player-panel__title {
  margin: 0;
}

.player-library__header,
.player-favs__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* Library header layout */
.player-library__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.player-library__view {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  align-self: flex-start; /* force left alignment within the column header */
}

/* Segmented control (Calendar status style) */
.player-segmented {
  display: inline-flex;
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-muted);
}

/* Remove inherited gap from .player-library__view */
.player-library__view.player-segmented {
  gap: 0;
}

/* Each segment */
.player-segmented__btn {
  flex: 1 1 50%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;

  padding: 0.6rem 1.4rem;

  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

/* Hover */
.player-segmented__btn:hover {
  background: var(--bg-hover);
}

/* Active */
.player-segmented__btn.player-toggle--active {
  background: var(--brand-primary);
  color: #ffffff;
}

.player-segmented__btn.player-toggle--active:hover {
  background: var(--brand-primary-dark);
}

/* Sort pills */
.player-library__sort {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end; /* right-align Title / Date added pills */
  align-self: flex-end;
}

/* Make sort buttons equal width */
.player-library__sort .player-sort {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.player-sort {
  font-size: 0.85rem;
}

/* Lists (content rendered by JS) */
.player-library__list,
.player-favs__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================================
   8) Drag & drop indicator + sync status
   ============================================================ */

.player-drop-indicator {
  height: 3px;
  background: var(--brand-primary);
  border-radius: 999px;
  margin: 0.15rem 0;
  display: none;
}

.player-drop-indicator.is-visible {
  display: block;
}

/* Favourites sync status */
.player-sync-status {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.player-sync-status__btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.85em;

  cursor: pointer;

  color: var(--text-subtle);

  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.player-sync-status__btn:hover {
  color: var(--brand-primary);
  text-decoration-thickness: 2px;
}

/* ============================================================
   9) Accordion (song rows) + file rows
   ============================================================ */

.player-song {
  border-radius: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.player-song + .player-song {
  margin-top: 0.5rem;
}

.player-song__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-song__summary::-webkit-details-marker {
  display: none;
}

.player-song__title {
  font-weight: 600;
  min-width: 0;
}

/* Chevron */
.resources-row-chevron {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.player-song[open] .resources-row-chevron {
  transform: translateY(4px) rotate(180deg);
  color: var(--text-main);
}

/* Accordion body */
.player-song__body {
  padding: 0.25rem 0.75rem 0.75rem;
}

/* File row */
.player-file {
  display: grid;
  /* drag | play | label | heart  (play removed, but grid kept as-is for now) */
  grid-template-columns: auto auto 1fr auto;

  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  min-width: 0;
}

/* Library rows don’t include the drag handle, so collapse the grid to keep ♥ aligned */
.player-panel--library .player-file {
  grid-template-columns: 1fr auto;
}

.player-file:hover {
  background: rgba(101, 0, 0, 0.06);
}

.player-file__label {
  min-width: 0;
  color: var(--text-main);
}

.player-file__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

/* -----------------------------------------------------
   Resource type pill (Player)
   ----------------------------------------------------- */
.player-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.1rem 0.45rem;
  margin-right: 0.35rem;

  border-radius: 999px;
  border: 1px solid currentColor;

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;

  opacity: 0.9;

  vertical-align: middle;
}

.player-badge--video {
  opacity: 0.75;
}

.player-badge--audio {
  opacity: 0.9;
}

.player-file__desc {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 0.15rem;
}

/* Current / playing row indicator (JS adds .is-current / .is-playing) */
.player-file.is-current {
  background: rgba(101, 0, 0, 0.06);
}

/* Put the indicator after the TITLE line so it appears in both Library and Favourites */
/* .player-file.is-playing .player-file__title::after {
  content: " · Now playing";
  font-weight: 600;
  font-size: 0.85em;
  color: var(--brand-primary);
} */

/* Tiny equaliser after the TITLE line:
   - .is-current (loaded) = static bars
   - .is-playing (playing) = animated bars */
.player-file.is-current .player-file__title::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 10px;
  margin-left: 0.45rem;
  vertical-align: middle;

  /* Static (paused/loaded) bars: different heights so it doesn't look like three dots */
  background:
    linear-gradient(currentColor, currentColor) 0% 100% / 4px 35% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 100% / 4px 70% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 4px 45% no-repeat;

  color: var(--brand-primary);
}

.player-file.is-playing .player-file__title::after {
  animation: pcc-eq 900ms ease-in-out infinite;
}

/* Animate bar heights */
@keyframes pcc-eq {
  0%,
  100% {
    background-size:
      4px 35%,
      4px 70%,
      4px 45%;
  }
  50% {
    background-size:
      4px 75%,
      4px 35%,
      4px 80%;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .player-file.is-playing .player-file__title::after {
    animation: none;
    background-size:
      4px 55%,
      4px 55%,
      4px 55%;
  }
}

/* Drag handle */
.player-file__drag {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 50%;

  color: #000000;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: grab;

  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;

  background: transparent;
  box-shadow: none;
}

.player-file__drag:active {
  cursor: grabbing;
}

/* Dark mode: simple inversion */
body.theme-dark .player-file__drag {
  color: #ffffff;
}

/* Favourite button */
.player-file__fav {
  /* fixed-size, right-aligned column for consistent alignment */
  justify-self: end;

  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  min-width: 0;

  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);

  font-size: 1.1rem;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  text-align: center;
}

.player-file__fav:hover {
  color: var(--brand-primary);
  background: rgba(101, 0, 0, 0.06);
}

.player-file__fav.is-favourite {
  color: var(--brand-primary);
  background: rgba(101, 0, 0, 0.08);
  font-size: 0; /* hide original text */
}

/* Hover affordance for favourited hearts */
.player-file__fav.is-favourite:hover {
  color: var(--brand-primary);
  background: rgba(101, 0, 0, 0.12);
}

.player-file__fav.is-favourite::before {
  content: "♥";
  font-size: 1.1rem;
  line-height: 1;
}

/* ============================================================
   10) State helpers (behavioural)
   ============================================================ */

.player-panel[hidden] {
  display: none;
}

/* Disabled transport/repeat/timeline: no interaction affordance */
.player-now__transport .player-transport:disabled,
.player-now__repeat .player-transport:disabled,
.player-now__scrub input[type="range"]:disabled {
  cursor: default;
}

/* When timeline is disabled (no song loaded), grey out the time labels */
.player-now__scrub:has(input[type="range"]:disabled) .player-now__time {
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   Sticky bottom view bar (Library / Favourites)
   ============================================================ */

.player-viewbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 30; /* above content, below modals */

  display: flex;
  justify-content: center;

  /* padding: 0.75rem 1rem 0.9rem; */
  padding: 0.75rem 1rem 2rem 0.9rem;

  background: linear-gradient(to top, var(--bg-card) 75%, rgba(255, 255, 255, 0));
}

/* Invisible drag guard zone above the fixed viewbar */
.player-viewbar-guard-lower {
  position: fixed;
  left: 0;
  right: 0;
  height: 14px;
  bottom: 4rem;

  z-index: 29; /* just under the viewbar */
  background: transparent;
  pointer-events: auto; /* must be hittable for elementFromPoint() */
}

/* Ensure segmented control doesn’t stretch oddly */
.player-viewbar .player-segmented {
  max-width: 420px;
  width: 100%;
}

/* ============================================================
   11) Responsive overrides
   ============================================================ */

/* Short-but-wide laptops/desktops (e.g. 1366×768):
   If a 16:9 player at full content width would be too tall,
   cap the player width so its height stays <= ~50vh. */
@media (min-width: 900px) and (max-height: 820px) {
  /* Make the sticky player container full-width so it reaches the section edges,
     and keep its height <= 50vh */
  .player-now {
    max-width: none;
    width: 100%;
    height: 35vh;
    aspect-ratio: auto;
    margin-left: 0;
    margin-right: 0;

    background: rgba(255, 255, 255, 0.93);
    /* border: 1px solid var(--border-soft); */
    border: none;
    border-radius: 12px;
    overflow: hidden; /* keep everything clean inside the frame */
  }

  .player-now__main {
    height: 100%;
  }

  /* Center the actual 16:9 content inside the black frame */
  .player-now__visual {
    width: calc(50vh * (16 / 9));
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    border: 1px solid #000000;
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  body.theme-dark .player-now {
    background: rgba(22, 22, 24, 0.93); /* matches --bg-card in dark mode */
  }
}

/* DEBUG (temporary): detect "phone-like landscape" using aspect ratio + coarse pointer
   Pixel 7 landscape (915x412) should match.
   Remove once verified. */
/* @media (min-aspect-ratio: 2/1) and (hover: none) and (pointer: coarse) { */

@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .player-now {
    /* Full-screen takeover (16:9 height-driven) */
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    height: 100vh;
    width: min(100vw, calc(100vh * (16 / 9)));

    /* Mask any 1px join artefact against the black bars */
    box-shadow: 0 0 0 2px #000;

    background: var(--bg-card);
    z-index: 999;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  /* Fullscreen-landscape: ensure no rounding anywhere inside the player */
  .player-now,
  .player-now__visual,
  .player-media--video,
  .player-media--video video {
    border-radius: 0 !important;
  }

  /* Backdrop to cover the rest of the page (behind the player, above the page) */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 998;
  }

  html,
  body {
    background: #000;
  }
}

/* <=720px: Library | View button segment fills width + sort edge layout + favourites desc truncation */
@media (max-width: 720px) {
  .player-segmented {
    width: 100%;
  }

  .player-segmented__btn {
    flex: 1 1 0;
  }

  .player-library__sort {
    width: 100%;
    justify-content: space-between;
  }

  .player-library__sort .player-sort {
    flex: 0 0 calc(50% - 0.25rem);
  }

  /* Favourites: hide the explanation after "Type:" on small screens */
  .player-panel--favourites .player-file__desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* <=520px: transport micro-layout */
@media (max-width: 520px) {
  .player-now__transport {
    flex-wrap: nowrap;
    gap: 0.35rem;
    justify-content: space-between;
    padding: 0.35rem 0.6rem;
    min-width: 0;

    position: relative;
    bottom: -1rem;
  }

  /* Compact buttons so everything fits on one row */
  .player-now__transport .player-transport,
  .player-now__repeat .player-transport {
    -webkit-appearance: none;
    appearance: none;
    padding: 0.35rem 0.6rem;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    color: rgb(255, 255, 255);
  }

  .player-now__repeat {
    display: flex;
    align-items: center;
  }

  .player-now__repeat .player-transport {
    padding: 0.35rem 0.55rem;
  }

  .player-library__view.player-segmented {
    margin-top: 0.75rem;
  }
}

/* ============================================================
   12) Dark mode — transport button text/icons
   (Preserved order to maintain current behaviour)
   ============================================================ */

body.theme-dark .player-now__transport .player-transport {
  color: #ffffff;
}

/* Muted/disabled state in dark mode */
body.theme-dark .player-now__transport .player-transport:disabled {
  color: rgba(255, 255, 255, 0.45);
}

/* Ensure SVG repeat icons inherit correct colour */
body.theme-dark .player-now__transport .player-transport svg {
  color: currentColor;
}

/* Dark mode: enabled transport buttons use dark icons on light pill */
body.theme-dark .player-now__transport .player-transport:not(:disabled) {
  color: #000000;
}

body.theme-dark .player-now__transport .player-transport:not(:disabled) svg {
  color: #000000;
}

/* Dark mode + mobile: transport buttons should be white over artwork/video */
@media (max-width: 520px) {
  body.theme-dark .player-now__transport .player-transport:not(:disabled),
  body.theme-dark .player-now__transport .player-transport:not(:disabled) svg {
    color: #ffffff;
  }
}
