/* ---------------------------------------------------------------------------
   Shorts (#landing-shorts): 9:16 video cards on the blog's light sheet, plus
   the fixed player overlay (#ls-player, appended to <body> by LandingShorts.js).
   --------------------------------------------------------------------------- */

#landing-shorts {
  --primary-color: #0f9457;
  --primary-color-dark: #0b6b41;
  --primary-color-hover: #0d823f;
  --primary-color-rgb: 15, 148, 87;

  --lc-line: rgba(11, 58, 45, 0.1);
  --lc-line-strong: rgba(11, 58, 45, 0.16);
  --lc-surface: #ffffff;
  --lc-bg-alt: #eaf4ee;
  --lc-ink: #0c2e26;
  --lc-ink-2: #33514a;
  --lc-muted: #5a726b;
  --lc-muted-2: #7c948d;
  --lc-primary: #0f9457;
  --lc-primary-deep: #0b6b41;

  /* Cards per row. LandingShorts.js reads this to size pages as rows. */
  --ls-cols: 6;

  display: none;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  color: var(--lc-ink);
  background: #f0f5f2;
  -webkit-font-smoothing: antialiased;
}
#landing-page[data-page="shorts"] #landing-shorts {
  display: block;
  margin-top: calc(-1 * var(--lp-navh));
}
@media (min-width: 901px) {
  body[data-route="landing"] #landing-page[data-page="shorts"] .landing-navbar {
    display: none;
  }
  #landing-page[data-page="shorts"] #landing-shorts {
    margin-top: 0;
  }
}

/* Hero: the blog's light hero shell with a tighter mast and a flush sheet. */
#landing-shorts .lb-hero-mast {
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}
#landing-shorts .ccb-sheet-sec {
  padding-top: 0;
}

/* Topic chips ------------------------------------------------------------- */
.ls-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0 0 1rem;
}
.ls-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}
.ls-chip {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #33514a;
  background: #ffffff;
  border: 1px solid rgba(11, 58, 45, 0.16);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ls-chip:hover {
  border-color: #0c2e26;
}
.ls-chip.is-active {
  color: #63ea71;
  background: #0c2e26;
  border-color: #0c2e26;
}

/* Grid + 9:16 cards -------------------------------------------------------- */
.ls-grid {
  display: grid;
  grid-template-columns: repeat(var(--ls-cols, 6), minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  padding: 0.25rem 0 0.5rem;
}
.ls-card {
  position: relative;
  aspect-ratio: 9 / 16;
  -webkit-tap-highlight-color: transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #07120f;
  border: 1px solid #dbe7e1;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.28s ease;
}
.ls-card:hover,
.ls-card:focus-visible {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(15, 148, 87, 0.5);
  box-shadow: 0 20px 60px -12px rgba(15, 148, 87, 0.22);
}
.ls-card:focus-visible {
  outline: 2px solid #63ea71;
  outline-offset: 2px;
}
.ls-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ls-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 7, 0.9) 0%, rgba(5, 8, 7, 0.3) 45%, transparent 70%);
}
.ls-card-duration {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ls-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(5, 8, 7, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
}
.ls-card-play svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 2px;
}
.ls-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ls-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #63ea71;
}
.ls-card-meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.ls-card-views {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-card-title {
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}
.ls-card-post {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.62);
  min-width: 0;
}
.ls-card-post svg {
  width: 0.72rem;
  height: 0.72rem;
  flex: none;
}
.ls-card-post span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty topic ------------------------------------------------------------- */
.ls-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 3rem 1rem;
  border: 1px dashed #b4cabf;
  border-radius: 16px;
  text-align: center;
}
.ls-empty-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0c2e26;
  margin: 0;
}
.ls-empty-text {
  font-size: 0.85rem;
  color: #5a726b;
  margin: 0;
}

/* Page reveal (mirrors the blog cards' entrance) --------------------------- */
@keyframes lsCardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  #landing-page.lp-reveal[data-page="shorts"] #landing-shorts .ls-card {
    animation: lsCardIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  #landing-shorts .ls-card:nth-child(2) { animation-delay: 0.05s; }
  #landing-shorts .ls-card:nth-child(3) { animation-delay: 0.1s; }
  #landing-shorts .ls-card:nth-child(4) { animation-delay: 0.15s; }
  #landing-shorts .ls-card:nth-child(5) { animation-delay: 0.2s; }
  #landing-shorts .ls-card:nth-child(6) { animation-delay: 0.25s; }
  #landing-shorts .ls-card:nth-child(7) { animation-delay: 0.3s; }
  #landing-shorts .ls-card:nth-child(8) { animation-delay: 0.35s; }
  #landing-shorts .ls-card:nth-child(9) { animation-delay: 0.4s; }
  #landing-shorts .ls-card:nth-child(10) { animation-delay: 0.45s; }
  #landing-shorts .ls-card:nth-child(11) { animation-delay: 0.5s; }
  #landing-shorts .ls-card:nth-child(12) { animation-delay: 0.55s; }
}

/* Column ladder: keeps every card between roughly 165px and 285px wide. */
@media (max-width: 1239px) {
  #landing-shorts { --ls-cols: 5; }
}
@media (max-width: 1023px) {
  #landing-shorts { --ls-cols: 4; }
}
@media (max-width: 767px) {
  #landing-shorts { --ls-cols: 3; }
}
@media (max-width: 720px) {
  .ls-toolbar {
    justify-content: flex-start;
  }
  .ls-filters {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 560px) {
  #landing-shorts { --ls-cols: 2; }
  .ls-card-body {
    padding: 0.75rem;
    gap: 0.3rem;
  }
  .ls-card-title {
    font-size: 0.9rem;
  }
  .ls-card-play {
    width: 2.6rem;
    height: 2.6rem;
  }
}
/* Touch screens: no lift on tap, since :hover sticks after a touch. */
@media (hover: none) {
  .ls-card:hover {
    transform: none;
    border-color: #dbe7e1;
    box-shadow: none;
  }
  .ls-player-read:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 234, 113, 0.3);
  }
}

/* Player overlay: one dark card, the 9:16 player plus a reading panel ------- */
@keyframes lsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lsModalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.ls-player {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 2rem);
  background: rgba(7, 18, 15, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: lsFade 0.25s ease both;
}
.ls-player[hidden] {
  display: none !important;
}
.ls-player-card {
  display: flex;
  height: min(86vh, 720px);
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0b1512;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 80px -20px rgba(99, 234, 113, 0.25);
  animation: lsModalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ls-player-stage {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  flex: none;
  background: #000000;
}
.ls-player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ls-player-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  width: clamp(300px, 32vw, 380px);
  min-width: 0;
  padding: 1.5rem;
  overflow: auto;
  color: #ffffff;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(99, 234, 113, 0.14) 0%, rgba(99, 234, 113, 0) 60%),
    #0b1512;
}
.ls-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ls-player-cat {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.ls-player-close,
.ls-player-btn {
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ls-player-close {
  width: 2.25rem;
  height: 2.25rem;
}
.ls-player-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.ls-player-close svg {
  width: 15px;
  height: 15px;
}
.ls-player-close:focus-visible,
.ls-player-btn:focus-visible,
.ls-player-read:focus-visible,
.ls-player-dot:focus-visible {
  outline: 2px solid #63ea71;
  outline-offset: 2px;
}
.ls-player-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.ls-player-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}
.ls-player-dek {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}
.ls-player-channel {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}
.ls-player-read {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 234, 113, 0.3);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ls-player-read:hover {
  background: rgba(99, 234, 113, 0.1);
  border-color: rgba(99, 234, 113, 0.6);
  transform: translateY(-2px);
  color: #ffffff;
}
.ls-player-read-cover {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
}
.ls-player-read-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ls-player-read-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}
.ls-player-read-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #63ea71;
  white-space: nowrap;
}
.ls-player-read-title {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ls-player-read-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ls-player-read-arrow {
  display: inline-flex;
  flex: none;
  color: #63ea71;
}
.ls-player-read-arrow svg {
  width: 16px;
  height: 16px;
}
.ls-player-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}
.ls-player-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.ls-player-dot {
  width: 6px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ls-player-dot.is-active {
  width: 18px;
  background: #63ea71;
}
.ls-player-nav {
  display: flex;
  gap: 0.4rem;
  flex: none;
}
.ls-player-btn {
  width: 2.5rem;
  height: 2.5rem;
}
.ls-player-btn:hover {
  background: rgba(99, 234, 113, 0.14);
  border-color: rgba(99, 234, 113, 0.45);
}
.ls-player-btn svg {
  width: 17px;
  height: 17px;
}

/* Phones and narrow windows: a full-screen Shorts feed. LandingShorts.js
   toggles .is-feed (portrait or narrow, but not landscape phones, which
   keep the side-by-side card). The screen is three bands: a top row, the
   video fitted at 9:16, and the bottom bar that expands the details sheet.
   Nothing is drawn over the video itself. */
.ls-player.is-feed {
  display: block;
  padding: 0;
  background: #000000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  touch-action: none;
  overscroll-behavior: none;
  animation: none;
}
.ls-player.is-feed .ls-player-card {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000000;
  overflow: hidden;
  animation: none;
}
.ls-player.is-feed .ls-player-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.ls-player.is-feed .ls-player-panel {
  display: none;
}
.ls-player-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000000;
  container-type: size;
}
.ls-player.is-feed .ls-player-frame iframe {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, calc((100vh - 9rem) * 9 / 16));
  width: min(100%, calc(100cqh * 9 / 16));
  height: auto;
  max-height: 100%;
  aspect-ratio: 9 / 16;
}
.ls-player-hud-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  padding: max(0.7rem, env(safe-area-inset-top, 0px)) 0.9rem 0.6rem;
  background: #000000;
  color: #ffffff;
}
.ls-player-hud-count {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}
.ls-player-hud-top .ls-player-close {
  margin-left: auto;
}
.ls-player-hud-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.6rem 0.75rem max(0.7rem, env(safe-area-inset-bottom, 0px));
  background: #000000;
  color: #ffffff;
}
/* Compact bar: title + article line; tap or swipe up to open the sheet. */
.ls-player-hud-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ls-player-hud-bar:focus-visible {
  outline: 2px solid #63ea71;
  outline-offset: 2px;
}
.ls-player-hud-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.ls-player-hud-bar-title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-player-hud-bar-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-player-hud-bar-sub b {
  color: #63ea71;
  font-weight: 700;
}
.ls-player-hud-bar > svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ls-player.is-expanded .ls-player-hud-bar > svg {
  transform: rotate(180deg);
}
.ls-player-hud-rail {
  display: flex;
  gap: 0.4rem;
  flex: none;
}
.ls-player-hud-rail .ls-player-btn {
  width: 2.35rem;
  height: 2.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Details sheet: slides up over the lower part of the video. */
.ls-player-scrim,
.ls-player-sheet {
  display: none;
}
.ls-player.is-feed .ls-player-scrim {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ls-player.is-feed.is-expanded .ls-player-scrim {
  opacity: 1;
  pointer-events: auto;
}
.ls-player.is-feed .ls-player-sheet {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  max-height: min(78%, 600px);
  border-radius: 22px 22px 0 0;
  background: #0b1512;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.55);
  color: #ffffff;
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.38s;
}
.ls-player.is-feed.is-expanded .ls-player-sheet {
  transform: none;
  visibility: visible;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.ls-player-sheet-handle {
  display: grid;
  place-items: center;
  flex: none;
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ls-player-sheet-handle span {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}
.ls-player-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: none;
  padding: 0 0.85rem 0.6rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ls-player-sheet-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.ls-player-sheet-close {
  width: 2rem;
  height: 2rem;
}
.ls-player-sheet-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem max(1.15rem, env(safe-area-inset-bottom, 0px));
}
.ls-player-sheet-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.ls-player-sheet-dek {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.ls-player-sheet-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ls-player-sheet-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
/* Landscape phones: keep the player beside the panel, just smaller. */
@media (max-width: 860px) and (min-width: 640px) and (max-height: 520px) {
  .ls-player {
    align-items: center;
  }
  .ls-player-card {
    flex-direction: row;
    width: auto;
    height: min(92vh, 720px);
    max-height: none;
    overflow: hidden;
  }
  .ls-player-stage {
    width: auto;
    height: 100%;
    aspect-ratio: 9 / 16;
  }
  .ls-player-stage iframe {
    inset: 0;
    transform: none;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-width: none;
  }
  .ls-player-panel {
    width: clamp(240px, 40vw, 320px);
    overflow: auto;
  }
}
/* Short viewports: tighter panel so the article card and controls stay in view. */
@media (max-height: 560px) {
  .ls-player-card {
    height: min(92vh, 720px);
  }
  .ls-player-panel {
    padding: 1rem;
    gap: 0.75rem;
  }
  .ls-player-title {
    font-size: 1.15rem;
  }
  .ls-player-dek {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .ls-player-read {
    padding: 0.65rem;
    gap: 0.65rem;
  }
  .ls-player-read-cover {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-player,
  .ls-player-card,
  .ls-card,
  .ls-player-dot,
  .ls-player-read {
    animation: none !important;
    transition: none !important;
  }
}
