/* ── Panel card ── */
.discord-panel {
  background: #1e2130;
  border: 1px solid #2e3348;
  border-radius: 10px;
  padding: 1.5rem;
  width: 380px;
  max-width: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: flex-start;
}

/* ── Header ── */
.discord-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.discord-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #e2e8f0;
}

.discord-header-icon {
  color: #5865f2;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── Section ── */
.discord-section {
  border-top: 1px solid #2e3348;
  padding-top: 1rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.discord-section h3 {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8892a4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Shared text variants ── */
.discord-muted {
  margin: 0;
  font-size: 0.85rem;
  color: #8892a4;
}

.discord-error {
  margin: 0;
  font-size: 0.8rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 5px;
  padding: 0.35rem 0.6rem;
}

/* ── Guild info ── */
.discord-guild-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.discord-select {
  background: #141622;
  border: 1px solid #2e3348;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.12s;
  width: 100%;
}

.discord-select:focus {
  border-color: #5865f2;
}

/* ── Voice channel ── */
.discord-channel-name {
  margin: 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.discord-channel-hash {
  color: #5865f2;
  font-weight: 700;
  font-size: 1rem;
}

/* ── Now playing ── */
.discord-now-playing {
  background: #141622;
  border: 1px solid #2e3348;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.discord-track-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-track-status {
  margin: 0;
  font-size: 0.75rem;
  color: #8892a4;
}

/* ── Playback controls ── */
.discord-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition:
    background 0.12s,
    opacity 0.12s;
}

.discord-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.discord-btn-play,
.discord-btn-pause {
  background: #5865f2;
  color: #fff;
}

.discord-btn-play:hover:not(:disabled),
.discord-btn-pause:hover:not(:disabled) {
  background: #4752c4;
}

.discord-btn-skip {
  background: #2e3348;
  color: #c4cde4;
}

.discord-btn-skip:hover:not(:disabled) {
  background: #3c4460;
  color: #e2e8f0;
}

.discord-btn-stop {
  background: transparent;
  border: 1px solid #4a5568;
  color: #8892a4;
}

.discord-btn-stop:hover:not(:disabled) {
  border-color: #ef4444;
  color: #f87171;
}

/* ── Queue ── */
.discord-queue-count {
  font-size: 0.7rem;
  color: #6b7280;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.discord-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 200px;
  overflow-y: auto;
}

.discord-queue-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #141622;
  border: 1px solid #2e3348;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  min-width: 0;
}

.discord-queue-index {
  font-size: 0.72rem;
  color: #8892a4;
  min-width: 16px;
  text-align: right;
  flex-shrink: 0;
}

.discord-queue-title {
  font-size: 0.82rem;
  color: #c4cde4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ── Add to queue form ── */
.discord-play-form {
  display: flex;
  gap: 0.5rem;
}

.discord-url-input {
  flex: 1;
  background: #141622;
  border: 1px solid #2e3348;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
  outline: none;
  transition: border-color 0.12s;
  min-width: 0;
}

.discord-url-input::placeholder {
  color: #4a5568;
}

.discord-url-input:focus {
  border-color: #5865f2;
}

.discord-btn-add {
  background: #5865f2;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
  transition: background 0.12s;
  flex-shrink: 0;
}

.discord-btn-add:hover:not(:disabled) {
  background: #4752c4;
}

.discord-btn-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
