/* Cozy Talk Radio: floating bar and full player. */
:root { --ctr-ink: #241C17; --ctr-ink2: #33271F; --ctr-sand: #F4EBDF; --ctr-muted: #D9CBBB; --ctr-line: #4A3D34; --ctr-accent: #F0B27A; }

.ctr-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 9999; transform: translateX(-50%);
  width: min(780px, calc(100% - 24px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px;
  border-radius: 999px; background: rgba(36, 28, 23, 0.94); color: var(--ctr-sand);
  box-shadow: 0 24px 60px rgba(36, 28, 23, 0.28); font-family: 'Commissioner', system-ui, sans-serif;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body { padding-bottom: 110px; }
.ctr-popup-body { padding: 0; margin: 0; background: var(--ctr-ink); }

.ctr-play {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--ctr-accent); color: var(--ctr-ink); cursor: pointer;
}
.ctr-play--big { width: 96px; height: 96px; }
.ctr-play:focus-visible, .ctr-btn:focus-visible, .ctr-channel:focus-visible, .ctr-timer button:focus-visible { outline: 3px solid var(--ctr-accent); outline-offset: 3px; }
.ctr-icon { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
.ctr-play--big .ctr-icon { border-width: 16px 0 16px 26px; margin-left: 6px; }
.ctr-play.is-playing .ctr-icon { width: 16px; height: 18px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%); }
.ctr-play--big.is-playing .ctr-icon { width: 28px; height: 32px; }

.ctr-bar__meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ctr-status { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ctr-accent); }
.ctr-bar__name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ctr-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; opacity: 0; transition: opacity .3s; }
.ctr-eq i { display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--ctr-accent); }
.is-playing .ctr-eq { opacity: 1; }
.is-playing .ctr-eq i { animation: ctr-eq 1.1s ease-in-out infinite; }
.ctr-eq i:nth-child(2) { animation-delay: -.3s; } .ctr-eq i:nth-child(3) { animation-delay: -.6s; }
.ctr-eq i:nth-child(4) { animation-delay: -.9s; } .ctr-eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes ctr-eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .is-playing .ctr-eq i { animation: none; height: 70%; } }

.ctr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid var(--ctr-line); border-radius: 999px; background: transparent; color: var(--ctr-sand);
  font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
}
.ctr-btn--icon { width: 44px; padding: 0; border: 0; background: var(--ctr-ink2); }
.ctr-bar__vol input { width: 110px; accent-color: var(--ctr-accent); }

@media (max-width: 640px) {
  .ctr-bar { bottom: 12px; gap: 10px; }
  .ctr-bar__vol, .ctr-btn[data-ctr-next] { display: none; }
  .ctr-play { width: 48px; height: 48px; }
  body { padding-bottom: 96px; }
}

/* Full player: [cozytalk_radio] and the pop-out window */
.ctr-full {
  display: grid; gap: 28px; padding: clamp(20px, 4vw, 40px); border-radius: 40px; background: var(--ctr-ink2); color: var(--ctr-sand);
  font-family: 'Commissioner', system-ui, sans-serif;
}
.ctr-popup-body .ctr-full { border-radius: 0; min-height: 100vh; box-sizing: border-box; }
.ctr-cover { position: relative; height: clamp(200px, 32vw, 380px); border-radius: 30px; overflow: hidden; background: #4A3A30; }
.ctr-sun { position: absolute; left: 10%; top: 14%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--ctr-accent); }
.ctr-arch { position: absolute; left: 34%; top: 34%; width: 44%; height: 70%; border-radius: 999px 999px 0 0; background: rgba(255, 248, 239, 0.12); }
.ctr-eq--big { position: absolute; right: 8%; bottom: 12%; height: 90px; gap: 7px; }
.ctr-eq--big i { width: 10px; border-radius: 5px; }
.ctr-now { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ctr-now__meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ctr-now__name { font-size: clamp(28px, 4vw, 46px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.ctr-now__desc { color: var(--ctr-muted); }
.ctr-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--ctr-line); }
.ctr-vol, .ctr-timer { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ctr-muted); }
.ctr-vol input { accent-color: var(--ctr-accent); }
.ctr-timer__opts { display: flex; gap: 8px; flex-wrap: wrap; }
.ctr-timer button { height: 44px; padding: 0 16px; border: 1px solid #5A4A3F; border-radius: 999px; background: transparent; color: var(--ctr-sand); font: inherit; cursor: pointer; }
.ctr-timer button[aria-pressed="true"] { background: var(--ctr-accent); border-color: var(--ctr-accent); color: var(--ctr-ink); font-weight: 600; }
.ctr-channels { display: grid; gap: 12px; }
.ctr-channels__title { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #B7A796; }
.ctr-channels > div { display: grid; gap: 12px; }
.ctr-channel {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px; border: 2px solid transparent; border-radius: 26px;
  background: var(--ctr-ink); color: var(--ctr-sand); font: inherit; text-align: left; cursor: pointer;
}
.ctr-channel.is-current { border-color: var(--ctr-accent); }
.ctr-channel__dot { width: 52px; height: 52px; flex-shrink: 0; border-radius: 18px; background: var(--ctr-dot); }
.ctr-channel__text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ctr-channel__text strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ctr-channel__text small { font-size: 14px; color: var(--ctr-muted); }
.ctr-channel__tag { display: none; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ctr-accent); }
.ctr-channel.is-current .ctr-channel__tag { display: inline; }
.ctr-credit { margin: 0; font-size: 14px; color: var(--ctr-muted); }
.ctr-credit a { color: var(--ctr-accent); }
