:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --page: #f4f9ff;
  --surface: rgb(255 255 255 / 82%);
  --surface-solid: #ffffff;
  --surface-blue: rgb(234 245 255 / 78%);
  --surface-blue-strong: #d9ebff;
  --blue: #4f8ef7;
  --blue-hover: #3b82f6;
  --blue-pressed: #2f6ed5;
  --cyan: #2dd4bf;
  --navy: #10233f;
  --muted: #6b7f99;
  --line: #dce9f7;
  --line-strong: #bfd5ec;
  --focus: #0f766e;
  --glass-border: rgb(157 200 241 / 58%);
  --blue-icon-filter: invert(55%) sepia(78%) saturate(2636%) hue-rotate(196deg) brightness(100%) contrast(95%);
  --player-height: 186px;
  --section-gap: 8px;
  --content-padding: clamp(20px, 2.2vw, 36px);
  background: var(--page);
  color: var(--navy);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 720px;
  background:
    radial-gradient(circle at 86% -10%, rgb(155 226 255 / 32%), transparent 34%),
    radial-gradient(circle at 4% 96%, rgb(178 212 255 / 24%), transparent 30%),
    linear-gradient(145deg, #fbfdff 0%, var(--page) 56%, #eef8ff 100%);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) var(--player-height);
  width: 100%;
  height: 100dvh;
  background: transparent;
}

.notice-region {
  position: relative;
  margin-bottom: 10px;
}

.notice-region[hidden] {
  display: none;
}

.notice-content {
  max-height: min(160px, 22vh);
  padding: 10px 52px 10px 14px;
  border: 1px solid rgb(142 194 241 / 48%);
  border-radius: 12px;
  background: linear-gradient(105deg, rgb(239 248 255 / 94%), rgb(225 244 255 / 78%));
  color: #294767;
  font-size: 15px;
  line-height: 1.55;
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-color: var(--line-strong) transparent;
}

.notice-dismiss {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgb(142 194 241 / 52%);
  border-radius: 10px;
  background: rgb(255 255 255 / 62%);
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transform: translateY(-50%);
}

.notice-dismiss:hover {
  border-color: rgb(117 175 237 / 72%);
  background: rgb(255 255 255 / 88%);
  color: var(--blue-pressed);
}

.notice-dismiss:active {
  background: var(--surface-blue-strong);
}

.notice-dismiss svg {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.notice-content > :first-child {
  margin-top: 0;
}

.notice-content > :last-child {
  margin-bottom: 0;
}

.notice-content :is(p, ul, ol, blockquote, pre, table) {
  margin-block: 0.45em;
}

.notice-content :is(ul, ol) {
  padding-inline-start: 1.5em;
}

.notice-content a {
  color: var(--blue-pressed);
  font-weight: 600;
}

.notice-content a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.notice-content code {
  padding: 0.12em 0.35em;
  border-radius: 5px;
  background: rgb(255 255 255 / 72%);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.notice-content pre {
  padding: 10px;
  overflow-x: auto;
  border-radius: 8px;
  background: rgb(255 255 255 / 72%);
}

.notice-content pre code {
  padding: 0;
  background: transparent;
}

.notice-content blockquote {
  padding-inline-start: 12px;
  border-inline-start: 3px solid var(--blue);
  color: var(--muted);
}

.notice-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.notice-content :is(th, td) {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
}

.page-header {
  padding: 24px var(--content-padding) 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 10px 36px rgb(59 130 246 / 4%);
  backdrop-filter: blur(18px) saturate(130%);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(30px, 2.7vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.header-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgb(191 213 236 / 66%);
  border-radius: 12px;
  background: rgb(226 239 252 / 64%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
}

.language-switcher a {
  min-width: 52px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.language-switcher a:hover {
  color: var(--blue-hover);
}

.language-switcher a[aria-current="page"] {
  background: rgb(255 255 255 / 88%);
  color: var(--blue-hover);
  box-shadow: 0 4px 12px rgb(79 142 247 / 10%);
}

.language-switcher a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.github-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(191 213 236 / 66%);
  border-radius: 12px;
  background: rgb(255 255 255 / 72%);
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 82%);
}

.github-link:hover {
  border-color: rgb(117 175 237 / 72%);
  background: var(--surface-blue);
  color: var(--blue-hover);
}

.github-link:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.github-link img {
  width: 25px;
  height: 25px;
}

.date-tabs {
  display: flex;
  align-items: stretch;
  gap: 34px;
  min-height: 66px;
  border-bottom: 0;
}

.date-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 66px;
  padding: 8px 2px 14px;
  border: 1px solid transparent;
  border-radius: 15px 15px 0 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 600;
  white-space: nowrap;
}

.date-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.date-tab:hover {
  background: rgb(255 255 255 / 48%);
  color: var(--blue);
}

.date-tab[aria-selected="true"] {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  backdrop-filter: none;
}

.date-tab[aria-selected="true"]::after {
  height: 5px;
  background: linear-gradient(90deg, var(--blue), #69b9fb);
}

.date-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgb(174 207 240 / 62%);
  border-radius: 10px;
  background: rgb(255 255 255 / 66%);
  color: currentColor;
  font-size: 0.68em;
  font-variant-numeric: tabular-nums;
}

.source-filter-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px var(--content-padding);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 54%);
  backdrop-filter: blur(14px) saturate(125%);
}

.source-filter-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.source-filters {
  display: flex;
  min-width: 0;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgb(191 213 236 / 58%);
  background: rgb(226 239 252 / 68%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 74%);
  overflow-x: auto;
  scrollbar-width: none;
}

.source-filters::-webkit-scrollbar {
  display: none;
}

.source-filter {
  flex: 0 0 auto;
  min-width: 142px;
  min-height: 50px;
  padding: 8px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  white-space: nowrap;
}

.source-filter:hover {
  background: rgb(255 255 255 / 64%);
  color: var(--blue-hover);
}

.source-filter[aria-pressed="true"] {
  background: linear-gradient(135deg, rgb(242 249 255 / 96%), rgb(218 237 255 / 88%));
  color: var(--blue-hover);
  box-shadow: inset 0 0 0 1px rgb(126 181 239 / 52%), inset 0 1px 0 rgb(255 255 255 / 92%), 0 5px 14px rgb(79 142 247 / 10%);
}

.episode-region {
  position: relative;
  min-height: 0;
  padding: var(--section-gap) var(--content-padding) 0;
  overflow: hidden;
  background: transparent;
}

.episode-list {
  height: 100%;
  padding: 0;
  border-radius: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
}

.episode-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(130px, 174px) minmax(0, 1fr) 108px;
  align-items: center;
  gap: 22px;
  min-height: 88px;
  padding: 8px 18px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgb(255 255 255 / 74%);
  box-shadow: none;
  cursor: pointer;
}

.episode-row:focus-visible {
  z-index: 1;
  outline: 4px solid var(--focus);
  outline-offset: -4px;
}

.episode-row:first-child {
  border-radius: 16px 16px 0 0;
}

.episode-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 16px 16px;
}

.episode-row:only-child {
  border-radius: 16px;
}

.episode-row:hover {
  background: rgb(248 252 255 / 92%);
}

.episode-row.is-current {
  z-index: 1;
  background: linear-gradient(105deg, rgb(239 248 255 / 92%), rgb(225 244 255 / 74%));
  box-shadow: inset 0 0 0 1px rgb(142 194 241 / 48%), 0 8px 22px rgb(79 142 247 / 8%);
  backdrop-filter: blur(14px) saturate(130%);
}

.episode-row.is-current::before {
  display: none;
}

.episode-play-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.episode-play-button {
  width: 58px;
  height: 58px;
  border: 1px solid rgb(176 209 241 / 70%);
  border-radius: 50%;
  background: rgb(255 255 255 / 70%);
  box-shadow: 0 4px 12px rgb(59 130 246 / 8%), inset 0 1px 0 rgb(255 255 255 / 90%);
  backdrop-filter: blur(10px);
}

.episode-play-button:hover {
  border-color: rgb(117 175 237 / 72%);
  background: var(--surface-blue);
  box-shadow: 0 6px 16px rgb(59 130 246 / 14%), inset 0 1px 0 rgb(255 255 255 / 90%);
}

.episode-play-button:active {
  background: #c7ddff;
}

.episode-play-button img {
  width: 34px;
  height: 34px;
  filter: var(--blue-icon-filter);
}

.episode-row.is-playing .episode-play-button {
  border-color: rgb(255 255 255 / 62%);
  background: linear-gradient(145deg, #67b9ff, var(--blue));
  box-shadow: 0 8px 20px rgb(79 142 247 / 26%), inset 0 1px 0 rgb(255 255 255 / 38%);
}

.episode-row.is-playing .episode-play-button img {
  filter: brightness(0) invert(1);
}

.episode-source {
  overflow: hidden;
  color: var(--blue);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-title {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: clamp(19px, 1.65vw, 25px);
  font-weight: 590;
  line-height: 1.3;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.episode-time {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 19px);
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  text-align: right;
  white-space: nowrap;
}

.status-message {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.status-message[hidden] {
  display: none;
}

.player-dock {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: var(--section-gap) 20px 16px;
  padding: 14px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: linear-gradient(118deg, rgb(255 255 255 / 86%), rgb(236 247 255 / 74%));
  box-shadow: 0 18px 44px rgb(35 106 176 / 13%), inset 0 1px 0 rgb(255 255 255 / 92%);
  backdrop-filter: blur(24px) saturate(145%);
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  flex: 0 0 auto;
}

.icon-button img {
  width: 42px;
  height: 42px;
}

.icon-button-primary {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 58%);
  background: linear-gradient(145deg, #67b9ff, var(--blue));
  box-shadow: 0 10px 24px rgb(79 142 247 / 28%), inset 0 1px 0 rgb(255 255 255 / 38%);
}

.icon-button-primary:hover:not(:disabled) {
  background: linear-gradient(145deg, #57adfb, var(--blue-hover));
}

.icon-button-primary:active:not(:disabled) {
  background: linear-gradient(145deg, var(--blue-hover), var(--blue-pressed));
}

.icon-button-primary img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}

.icon-button-secondary {
  width: 58px;
  height: 58px;
  border: 1px solid rgb(181 210 238 / 68%);
  border-radius: 14px;
  background: rgb(255 255 255 / 62%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 88%);
}

.icon-button-secondary:hover:not(:disabled) {
  border-color: rgb(119 177 237 / 70%);
  background: var(--surface-blue);
  box-shadow: 0 6px 16px rgb(59 130 246 / 12%), inset 0 1px 0 rgb(255 255 255 / 88%);
}

.icon-button-secondary img {
  filter: var(--blue-icon-filter);
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.now-playing {
  min-width: 0;
}

.now-playing-title {
  display: -webkit-box;
  margin: 3px 0 8px;
  overflow: hidden;
  font-size: clamp(18px, 1.5vw, 23px);
  font-weight: 620;
  line-height: 1.3;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.now-playing-label {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.now-playing-source:not(:empty)::before {
  margin-inline: 7px;
  color: var(--line-strong);
  content: "·";
}

.now-playing-source {
  color: var(--muted);
  letter-spacing: 0;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
}

.progress {
  --progress-value: 0%;

  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.progress::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--blue) 0,
    var(--blue) var(--progress-value),
    #dce8f2 var(--progress-value),
    #dce8f2 100%
  );
  box-shadow: inset 0 1px 2px rgb(55 106 151 / 12%);
}

.progress::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  appearance: none;
  background: linear-gradient(145deg, #67b9ff, var(--blue));
  box-shadow: 0 2px 8px rgb(79 142 247 / 34%);
}

.progress::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dce8f2;
  box-shadow: inset 0 1px 2px rgb(55 106 151 / 12%);
}

.progress::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.progress::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 8px rgb(79 142 247 / 34%);
}

.progress:disabled {
  cursor: default;
  opacity: 0.45;
}

.time-readout {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.speed-panel {
  display: grid;
  gap: 5px;
}

.speed-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.speed-control {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  border: 1px solid rgb(191 213 236 / 58%);
  background: rgb(226 239 252 / 58%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 76%);
}

.speed-control button {
  min-width: 76px;
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.speed-control button:hover {
  background: rgb(255 255 255 / 68%);
  color: var(--blue-hover);
}

.speed-control button[aria-pressed="true"] {
  background: linear-gradient(135deg, #5ba1ff, #3f83f1);
  color: #ffffff;
  box-shadow: 0 7px 16px rgb(79 142 247 / 20%), inset 0 1px 0 rgb(255 255 255 / 34%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  :root {
    --player-height: 170px;
    --content-padding: 22px;
  }

  .page-header {
    padding-top: 18px;
  }

  .header-heading-row {
    margin-bottom: 14px;
  }

  .date-tab {
    padding-inline: 0;
  }

  .source-filter-section {
    padding-block: 12px 10px;
  }

  .source-filter {
    min-width: 140px;
    min-height: 56px;
  }

  .episode-row {
    grid-template-columns: 66px 124px minmax(0, 1fr) 92px;
    gap: 18px;
    min-height: 88px;
    padding-inline: 10px;
  }

  .episode-play-button {
    width: 54px;
    height: 54px;
  }

  .player-dock {
    gap: 18px;
    margin-inline: 12px;
  }

  .icon-button-primary {
    width: 74px;
    height: 74px;
  }

  .icon-button-secondary {
    width: 54px;
    height: 54px;
  }

  .speed-control {
    gap: 8px;
  }

  .speed-control button {
    min-width: 64px;
    min-height: 54px;
    padding-inline: 10px;
    font-size: 19px;
  }
}

@media (max-height: 720px) {
  :root {
    --player-height: 156px;
  }

  .page-header {
    padding-top: 14px;
  }

  .header-heading-row {
    margin-bottom: 12px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .date-tabs,
  .date-tab {
    min-height: 60px;
  }

  .date-tab {
    height: 60px;
    padding-block: 6px;
    font-size: 22px;
  }

  .date-count {
    height: 36px;
    min-width: 36px;
  }

  .source-filter-section {
    padding-block: 8px;
  }

  .source-filter {
    min-height: 52px;
  }

  .episode-row {
    min-height: 82px;
  }

  .player-dock {
    margin-bottom: 10px;
    padding-block: 10px;
  }

  .icon-button-primary {
    width: 76px;
    height: 76px;
  }

  .icon-button-secondary,
  .speed-control button {
    min-height: 58px;
    height: 58px;
  }
}

@media (max-width: 700px) {
  :root {
    --content-padding: 14px;
    --player-height: calc(174px + env(safe-area-inset-bottom));
    --section-gap: 4px;
  }

  body {
    min-width: 0;
  }

  .page-header,
  .source-filter-section,
  .episode-region,
  .player-dock {
    min-width: 0;
  }

  .page-header {
    padding: 16px var(--content-padding) 0;
  }

  .header-heading-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .page-header h1 {
    font-size: clamp(25px, 7.4vw, 30px);
  }

  .language-switcher {
    padding: 3px;
  }

  .language-switcher a {
    min-width: 42px;
    padding: 6px 7px;
    font-size: 12px;
  }

  .github-link {
    width: 42px;
    height: 42px;
  }

  .github-link img {
    width: 23px;
    height: 23px;
  }

  .date-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 62px;
  }

  .date-tab {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 62px;
    height: 62px;
    padding: 5px 2px 9px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.15;
  }

  .date-tab > span:first-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .date-count {
    min-width: 24px;
    height: 24px;
    padding-inline: 6px;
    border-radius: 7px;
    font-size: 11px;
  }

  .source-filter-section {
    display: block;
    padding: 8px 10px;
  }

  .notice-content {
    padding: 8px 46px 8px 10px;
    font-size: 14px;
  }

  .notice-dismiss {
    right: 5px;
  }

  .source-filter-label {
    display: none;
  }

  .source-filters {
    width: 100%;
    max-width: 100%;
    gap: 4px;
    padding: 3px;
    border-radius: 12px;
  }

  .source-filter {
    min-width: 78px;
    min-height: 44px;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 14px;
  }

  .episode-region {
    padding: var(--section-gap) 10px 0;
  }

  .episode-list {
    padding-block: 0;
  }

  .episode-row {
    grid-template-areas:
      "play source time"
      "play title title";
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 3px;
    min-height: 84px;
    width: 100%;
    padding: 10px 12px;
  }

  .episode-play-button {
    grid-area: play;
    width: 48px;
    height: 48px;
  }

  .episode-play-button img {
    width: 29px;
    height: 29px;
  }

  .episode-source {
    grid-area: source;
    align-self: end;
    font-size: 14px;
  }

  .episode-title {
    display: -webkit-box;
    grid-area: title;
    align-self: start;
    overflow: hidden;
    font-size: 16px;
    font-weight: 590;
    line-height: 1.32;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .episode-time {
    grid-area: time;
    align-self: end;
    font-size: 13px;
  }

  .episode-row.is-current::before {
    top: 12px;
    bottom: 12px;
  }

  .status-message {
    width: calc(100% - 40px);
    font-size: 18px;
    text-align: center;
  }

  .player-dock {
    grid-template-areas:
      "now now"
      "transport speed";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 8px;
    width: calc(100% - 16px);
    margin: var(--section-gap) 8px calc(8px + env(safe-area-inset-bottom));
    padding: 8px 10px;
    border-radius: 16px;
  }

  .transport-controls {
    grid-area: transport;
    gap: 6px;
  }

  .now-playing {
    grid-area: now;
  }

  .now-playing-label {
    font-size: 11px;
  }

  .now-playing-title {
    margin: 2px 0;
    font-size: 16px;
  }

  .progress-row {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
  }

  .progress {
    height: 32px;
  }

  .time-readout {
    font-size: 13px;
  }

  .icon-button img {
    width: 30px;
    height: 30px;
  }

  .icon-button-primary {
    width: 58px;
    height: 58px;
  }

  .icon-button-primary img {
    width: 34px;
    height: 34px;
  }

  .icon-button-secondary {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .speed-panel {
    grid-area: speed;
    align-self: center;
    justify-self: end;
  }

  .speed-label {
    display: none;
  }

  .speed-control {
    justify-content: flex-end;
    width: max-content;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
  }

  .speed-control button {
    min-width: 45px;
    min-height: 44px;
    height: 44px;
    padding: 6px 5px;
    border-radius: 8px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* The admin route reuses player cards and keeps visibility controls distinct. */
[hidden] { display: none !important; }
.admin-panel { margin: 12px 0 20px; font-size: 14px; }
.admin-panel.is-authenticated { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.admin-panel.is-authenticated #admin-message { margin-right: auto; }
.admin-panel p { line-height: 1.6; }
#admin-message:empty { display: none; }
#admin-logout { flex-shrink: 0; min-height: 44px; font-size: 14px; white-space: nowrap; }
.admin-login { width: min(100%, 480px); padding: 24px; border: 1px solid #cfdeeb; border-radius: 20px; background: #ffffffb8; }
.admin-login h2 { margin-top: 0; }
.admin-login label { display: block; margin-bottom: 8px; font-weight: 600; }
.admin-login-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-panel button, #admin-logout, .admin-visibility { padding: 10px 14px; border: 1px solid #bfd2e2; border-radius: 12px; background: #f4f9ff; color: #244560; font: inherit; cursor: pointer; }
.admin-panel button:disabled, #admin-logout:disabled, .admin-visibility:disabled { opacity: .5; cursor: wait; }
.admin-panel input { min-width: 0; width: 160px; padding: 10px; font: inherit; font-size: 20px; letter-spacing: .2em; border: 1px solid #bfd2e2; border-radius: 12px; }
.admin-panel :focus-visible, #admin-logout:focus-visible, .admin-visibility:focus-visible { outline: 3px solid #2584c4; outline-offset: 3px; }
.admin-visibility { color: #244560; border-color: #bfd2e2; background: #f4f9ff; justify-self: end; }
.episode-row.admin-episode-row { grid-template-columns: 60px minmax(100px, 150px) minmax(0, 1fr) 100px auto; }
@media (max-width: 700px) {
  .episode-row.admin-episode-row { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "play source action" "play title action" "play time action"; }
  .admin-episode-row .admin-visibility { grid-area: action; font-size: 12px; padding: 8px; }
  .admin-episode-row .episode-time { grid-column: 2; grid-row: 3; justify-self: start; padding-top: 4px; }
  .admin-episode-row .episode-title { padding-right: 8px; }
}

.admin-hidden-badge { display: inline-block; margin-right: 8px; color: #586b7c; font-size: 12px; border: 1px solid #bfd2e2; border-radius: 5px; padding: 1px 5px; vertical-align: middle; }
.episode-row.is-hidden { background: #edf1f5; }

.admin-locked .app-shell {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto minmax(0, 1fr);
  overflow-y: auto;
}

.admin-locked .app-shell::after {
  content: "";
}

.admin-locked .page-header {
  align-self: start;
}

.admin-locked .admin-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px var(--content-padding);
}

.admin-locked .admin-login {
  flex-shrink: 0;
  box-shadow: 0 16px 48px rgb(66 119 163 / 8%);
}

.admin-locked #admin-message {
  width: min(100%, 480px);
}

.admin-panel.is-authenticated:has(#admin-message:empty) {
  display: none;
}

@media (max-width: 700px) {
  .admin-authenticated .header-heading-row {
    flex-wrap: wrap;
  }

  .admin-authenticated .header-actions {
    margin-left: auto;
  }

  #admin-logout {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
}
