:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f7;
  color: #f7fbff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #eef2f7; }
button, input, textarea { font: inherit; }
.page-shell { min-height: 100vh; padding: 28px 18px 42px; }
.player-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 480px);
  min-height: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: #061120;
  box-shadow: 0 24px 60px rgba(13, 34, 62, .25);
}
.player-backdrop { position: absolute; inset: 0; z-index: -2; background: url('/player/assets/background.jpg') center/cover; }
.player-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,11,24,.667) 0%, rgba(2,11,24,.094) 44%, rgba(2,11,24,.867) 100%); }
.player-content { display: flex; min-height: 760px; flex-direction: column; align-items: center; padding: 26px 28px 30px; text-align: center; }
.player-header { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border-radius: 50%; background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; flex: 1; }
.brand-copy h1, .brand-copy p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy h1 { font-size: 19px; }
.brand-copy p { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 12px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 99px; background: rgba(17, 177, 91, .16); color: #8ff0b3; font-size: 11px; white-space: nowrap; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #28d879; box-shadow: 0 0 0 4px rgba(40,216,121,.14); }
.artwork-wrap { width: min(64vw, 260px); height: min(64vw, 260px); margin: 62px auto 22px; padding: 8px; border: 2px solid #19b8ff; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 0 0 8px rgba(25,184,255,.12), 0 18px 44px rgba(0,0,0,.32); }
.artwork { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.program-title { max-width: 100%; margin: 0; font-size: 18px; font-weight: 400; line-height: 1.2; }
.listeners { margin-top: 14px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: #bde8ff; font-size: 12px; }
.play-button { display: grid; width: 86px; height: 86px; place-items: center; margin-top: 34px; border: 5px solid #19b8ff; border-radius: 50%; background: #f7fbff; color: #078ce2; cursor: pointer; box-shadow: 0 0 0 5px rgba(25,184,255,.14), 0 10px 24px rgba(0,0,0,.28); transition: transform .18s ease; }
.play-button:hover { transform: scale(1.05); }
.play-icon { margin-left: 4px; font-size: 30px; }
.volume-row { display: flex; width: min(100%, 340px); align-items: center; gap: 13px; margin-top: 30px; color: #fff; }
.volume-row input { flex: 1; accent-color: #11aeef; }
.player-message { min-height: 23px; max-width: 92%; margin: 17px 0 0; color: #ffb9b9; font-size: 13px; }
.embed-panel { width: min(100%, 860px); margin: 26px auto 0; padding: 26px; border: 1px solid #dce5ef; border-radius: 18px; background: #fff; color: #13233a; color-scheme: light; box-shadow: 0 12px 30px rgba(13, 34, 62, .08); }
.embed-panel h2 { margin: 0; font-size: 24px; }
.muted { margin: 8px 0 20px; color: #657387; }
.embed-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.embed-controls label { color: #526174; font-size: 14px; }
.embed-controls input { width: 76px; margin-left: 5px; padding: 9px 8px; border: 1px solid #cbd6e2; border-radius: 8px; background: #fff; color: #17263a; color-scheme: light; }
.copy-action { display: flex; min-width: 152px; margin-left: auto; flex-direction: column; align-items: stretch; }
.copy-button { padding: 11px 18px; border: 0; border-radius: 10px; background: #087e99; color: #fff; cursor: pointer; font-weight: 700; }
.embed-code { width: 100%; min-height: 95px; margin-top: 17px; padding: 13px; resize: vertical; border: 1px solid #d8e1eb; border-radius: 10px; background: #f7f9fb; color: #20324a; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-message { min-height: 20px; margin: 0 0 5px; color: #118548; font-size: 13px; text-align: center; }
@media (max-width: 520px) { .page-shell { padding: 0; } .player-card { border-radius: 0; min-height: 100vh; } .player-content { min-height: 100vh; } .embed-panel { border-radius: 0; margin-top: 0; } .copy-action { width: 100%; margin-left: 0; } }
.embed-mode .embed-panel { display: none; }
.embed-mode .page-shell { padding: 0; }
.embed-mode .player-card { width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
.embed-mode .player-content { min-height: 100vh; }
@media (max-height: 600px) {
  .embed-mode { overflow: hidden; }
  .embed-mode .player-card { height: 100vh; min-height: 100vh; }
  .embed-mode .player-content { min-height: 100vh; padding: 14px 18px 16px; }
  .embed-mode .player-header { gap: 8px; }
  .embed-mode .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .embed-mode .brand-copy h1 { font-size: 15px; }
  .embed-mode .brand-copy p { margin-top: 1px; font-size: 10px; }
  .embed-mode .live-badge { padding: 5px 7px; font-size: 9px; }
  .embed-mode .artwork-wrap { width: min(31vw, 150px); height: min(31vw, 150px); margin: 18px auto 12px; padding: 5px; }
  .embed-mode .program-title { font-size: 18px; font-weight: 400; }
  .embed-mode .listeners { margin-top: 7px; padding: 5px 10px; font-size: 10px; }
  .embed-mode .play-button { width: 64px; height: 64px; margin-top: 14px; border-width: 4px; }
  .embed-mode .play-icon { font-size: 23px; }
  .embed-mode .volume-row { margin-top: 14px; gap: 8px; }
  .embed-mode .player-message { min-height: 16px; margin-top: 6px; font-size: 11px; }
}
