body[data-page="design2"] { padding-bottom: 5.5rem; }

#app { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem 3rem; }

.stream-hero { display: flex; gap: 1.75rem; align-items: center; padding: 2.75rem 0 2rem; flex-wrap: wrap; }
.stream-hero__cover { width: 140px; height: 140px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow); }
.stream-hero__cover img, .stream-hero__cover.cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.stream-hero__info { min-width: 0; }
.stream-hero__eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.stream-hero__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: .3rem 0 .5rem; }
.stream-hero__desc { color: var(--text-muted); font-size: 0.9rem; max-width: 34rem; white-space: pre-line; }
.stream-hero__actions { margin-top: 1rem; display: flex; gap: 0.75rem; align-items: center; }
.btn-round-play {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-round-play svg { width: 1.3rem; height: 1.3rem; }
.btn-round-play:hover { filter: brightness(1.08); }

.ep-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.ep-row {
  display: grid; grid-template-columns: 2.4rem 3rem 1fr auto; gap: 0.9rem; align-items: center;
  padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border); border-radius: var(--radius-sm);
}
.ep-row:hover { background: var(--surface-2); }
.ep-row.is-playing { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.ep-row__index { color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.ep-row__play {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.ep-row__play svg { width: 0.85rem; height: 0.85rem; }
.ep-row.is-playing .ep-row__play { background: var(--accent); border-color: var(--accent); color: #fff; }
.ep-row__main { min-width: 0; }
.ep-row__title { font-size: 0.92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-row.is-playing .ep-row__title { color: var(--accent); }
.ep-row__sub { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-row__meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 0.9rem; white-space: nowrap; }

.load-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.load-more button { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0.65rem 1.5rem; border-radius: 999px; font-size: 0.88rem; }

.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr) auto; gap: 1.25rem; align-items: center;
  padding: 0.6rem 1.25rem; box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.3);
}
.player-bar__track { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.player-bar__cover { width: 2.8rem; height: 2.8rem; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.player-bar__cover img, .player-bar__cover.cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.player-bar__info { min-width: 0; }
.player-bar__title { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__sub { font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar__controls { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.player-bar__btn { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: none; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.player-bar__btn svg { width: 1rem; height: 1rem; }
.player-bar__seek { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.player-bar__time { font-size: 0.72rem; color: var(--text-muted); width: 2.4rem; text-align: center; flex-shrink: 0; }
.player-bar__seek input[type="range"] { flex: 1; accent-color: var(--accent); }
.player-bar__volume { display: none; align-items: center; gap: 0.4rem; color: var(--text-muted); }
.player-bar__volume input { width: 5rem; accent-color: var(--accent); }

@media (min-width: 720px) { .player-bar__volume { display: flex; } }

@media (max-width: 640px) {
  .player-bar { grid-template-columns: 1fr; grid-template-rows: auto auto; gap: 0.5rem; padding: 0.6rem 0.9rem 0.8rem; }
  .player-bar__controls { order: 2; }
  .stream-hero { padding-top: 1.75rem; }
}

.toast {
  position: fixed; bottom: 6rem; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--text); color: var(--bg); padding: 0.7rem 1.15rem; border-radius: var(--radius-sm);
  font-size: 0.83rem; transition: transform .25s ease; z-index: 100; max-width: 90vw; text-align: center;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
