.radio-layout {
  width: min(1120px, 94%);
  margin: 1.5rem auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.25rem;
  align-items: start;
}

.radio-main {
  display: grid;
  gap: 1rem;
}

.radio-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}

.radio-panel h2 {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 1.25rem;
  text-shadow: 0 0 20px var(--accent-glow);
}

.radio-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.radio-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.radio-form input[type="url"],
.radio-form input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
}

.radio-form input:focus {
  outline: 2px solid rgba(0, 212, 255, 0.35);
  outline-offset: 1px;
}

.radio-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.radio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.radio-submit {
  appearance: none;
  border: 1px solid var(--accent);
  background: rgba(0, 212, 255, 0.12);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.radio-submit:hover:not(:disabled) {
  background: rgba(0, 212, 255, 0.22);
}

.radio-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.radio-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.radio-status--ok {
  color: var(--success);
}

.radio-status--err {
  color: var(--danger);
}

.radio-player-meta {
  margin: 0 0 0.75rem;
}

.radio-player-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.radio-player-artist {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.radio-embed-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border-subtle);
  min-height: 152px;
}

.radio-embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  min-height: 152px;
}

.radio-embed-wrap--youtube {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.radio-embed-wrap--youtube iframe {
  height: 100%;
  min-height: 0;
}

.radio-player-empty {
  margin: 0;
  color: var(--muted);
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.radio-player-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
  align-items: center;
}

.radio-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.radio-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.radio-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.radio-btn--like.is-liked {
  border-color: var(--success);
  color: var(--success);
}

.radio-like-count {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.9rem;
}

.radio-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.radio-track-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 212, 255, 0.03);
}

.radio-track-item.is-current {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

.radio-track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface2);
}

.radio-track-info {
  min-width: 0;
}

.radio-track-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-track-sub {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-track-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.radio-source-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.radio-side {
  position: sticky;
  top: 0.75rem;
}

.radio-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  counter-reset: radio-top;
}

.radio-top-item {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.45rem;
  align-items: start;
  counter-increment: radio-top;
}

.radio-top-item::before {
  content: counter(radio-top);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
}

.radio-top-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.radio-top-title a {
  color: inherit;
  text-decoration: none;
}

.radio-top-title a:hover {
  color: var(--accent);
}

.radio-top-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.radio-top-likes {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.radio-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.radio-month-label {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .radio-layout {
    grid-template-columns: 1fr;
  }

  .radio-side {
    position: static;
    order: 3;
  }
}
