/* Modo Podcast — player imersivo */

body.podcast-page {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(99, 102, 241, 0.14), transparent 55%),
    radial-gradient(700px 360px at 90% 100%, rgba(139, 92, 246, 0.12), transparent 50%),
    #0f172a;
  color: #e2e8f0;
}

.podcast-page .shell-title span {
  color: #c7d2fe;
}

.podcast-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.podcast-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
}

.podcast-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.podcast-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.podcast-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.podcast-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.podcast-inline select {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #1e293b;
  color: #f1f5f9;
  padding: 6px 8px;
}

.podcast-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.podcast-btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.podcast-setup-generate {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed rgba(148, 163, 184, 0.28);
}

.podcast-btn--generate {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #047857, #10b981);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.podcast-btn--generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.45);
}

.podcast-btn--generate:active {
  transform: translateY(0);
}

.podcast-btn--generate:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.podcast-embed .podcast-setup-generate {
  border-top-color: rgba(148, 163, 184, 0.4);
}

.podcast-embed .podcast-btn--generate {
  background: linear-gradient(135deg, #047857, #10b981);
  color: #fff;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}

.podcast-btn--ghost {
  margin-top: 14px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.podcast-player {
  max-width: 760px;
  margin: 0 auto;
}

.podcast-now {
  padding: 20px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.25);
  min-height: 220px;
}

.podcast-now-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.podcast-now-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
  color: #f8fafc;
}

.podcast-now-body {
  font-size: 14px;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
}

.podcast-now-body .podcast-alt {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
}

.podcast-now-body .podcast-answer {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}

.podcast-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 18px 0 12px;
}

.podcast-ctrl {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: #f1f5f9;
  font-size: 18px;
  cursor: pointer;
}

.podcast-ctrl--main {
  width: 64px;
  height: 64px;
  font-size: 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
}

.podcast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #94a3b8;
}

.podcast-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.podcast-setup-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.podcast-voice-row select {
  min-width: 180px;
  max-width: 100%;
}

.podcast-format-switch {
  display: flex;
  gap: 0;
  padding: 3px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.podcast-format-opt {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  opacity: 0.75;
}

.podcast-format-opt.is-active {
  opacity: 1;
  background: #fff;
  color: #4338ca;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.podcast-embed .podcast-format-switch {
  background: #eef2f7;
  border-color: rgba(148, 163, 184, 0.35);
}

.podcast-embed .podcast-format-opt {
  color: #64748b;
}

.podcast-embed .podcast-format-opt.is-active {
  background: #fff;
  color: #4338ca;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.podcast-option-list {
  display: grid;
  gap: 10px;
}

.podcast-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.06);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.podcast-option:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.06);
}

.podcast-option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.podcast-option-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 2px solid rgba(148, 163, 184, 0.55);
  background: transparent;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.podcast-option-input:checked + .podcast-option-box {
  border-color: #6366f1;
  background: #6366f1;
}

.podcast-option-input:checked + .podcast-option-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.podcast-option-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.podcast-option-text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.podcast-option-text small {
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.78;
}

.podcast-embed .podcast-option {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.4);
}

.podcast-embed .podcast-option:hover {
  background: #f8fafc;
}

.podcast-embed .podcast-option-text strong {
  color: #334155;
}

.podcast-embed .podcast-option-text small {
  color: #64748b;
}

.podcast-page .podcast-option-text strong {
  color: #f1f5f9;
}

.podcast-page .podcast-option-text small {
  color: #94a3b8;
}

.podcast-ambient-wrap {
  display: grid;
  gap: 6px;
}

.podcast-option--ambient {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 10px;
}

.podcast-option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.podcast-track-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  max-width: 42%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.podcast-track-toggle:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
}

.podcast-track-toggle-chevron {
  display: inline-block;
  transition: transform 0.15s ease;
}

.podcast-track-toggle.is-open .podcast-track-toggle-chevron {
  transform: rotate(180deg);
}

.podcast-track-picker {
  margin: 0 0 0 32px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.05);
}

.podcast-track-picker[hidden] {
  display: none !important;
}

.podcast-track-list {
  display: grid;
  gap: 6px;
}

.podcast-track-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.podcast-track-opt {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.podcast-track-preview {
  flex-shrink: 0;
  width: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.podcast-track-preview:hover,
.podcast-track-preview.is-playing {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.12);
}

.podcast-track-opt-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.podcast-track-opt-hint {
  font-size: 10px;
  line-height: 1.35;
  opacity: 0.78;
}

.podcast-track-opt.is-active {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.podcast-embed .podcast-track-toggle {
  background: #fff;
  color: #475569;
}

.podcast-embed .podcast-track-picker {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.4);
}

.podcast-embed .podcast-track-preview {
  background: #fff;
  color: #475569;
}

.podcast-plan-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  font-size: 12px;
  line-height: 1.45;
}

.podcast-plan-chip {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.podcast-plan-upgrade {
  border: none;
  background: none;
  color: #6366f1;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: inherit;
}

.podcast-warm-box {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.podcast-warm-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.podcast-warm-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.2s ease;
}

.podcast-warm-label {
  font-size: 11px;
  opacity: 0.85;
}

.podcast-pro-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  color: #4338ca;
  font-size: 9px;
  font-weight: 800;
  vertical-align: middle;
}

.podcast-track-row.is-locked .podcast-track-opt {
  opacity: 0.72;
}

.podcast-embed .podcast-plan-banner {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

.podcast-embed .podcast-track-opt {
  background: #fff;
  color: #334155;
}

.podcast-embed .podcast-track-opt-hint {
  color: #64748b;
}

.podcast-embed .podcast-track-opt.is-active {
  color: #312e81;
}

/* Embed no combat card do dashboard */
.podcast-embed {
  padding: 4px 0 0;
}

.podcast-embed .podcast-card,
.podcast-embed .podcast-now {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
  color: #334155;
}

.podcast-embed .podcast-lead,
.podcast-embed .podcast-now-body,
.podcast-embed .podcast-meta,
.podcast-embed .podcast-inline {
  color: #64748b;
}

.podcast-embed .podcast-now-title {
  color: #0f172a;
}

.podcast-embed .podcast-now-kicker {
  color: #6366f1;
}

.podcast-embed .podcast-now-body .podcast-alt {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.podcast-embed .podcast-now-body .podcast-answer {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}

.podcast-embed .podcast-ctrl {
  background: #fff;
  color: #334155;
}

.podcast-embed .podcast-inline select {
  background: #fff;
  color: #334155;
}

.podcast-embed .podcast-btn--ghost {
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.45);
}

.podcast-now-body .podcast-reveal {
  margin: 10px 0 0;
  font-weight: 800;
  color: #a5b4fc;
}

.podcast-embed .podcast-now-body .podcast-reveal {
  color: #6366f1;
}
