/* ============================================================================
   PLAYER SUPERIOR (Topbar Player de Podcasts)
   ========================================================================== */

:root {
  --sidebar-width-desktop: 250px;
  /* Largura padrão da sidebar */
  --navbar-height: 90px;
  /* Altura estimada da navbar */
  --player-height: 60px;
  /* Altura do player */
}

.podcast-topbar-player {
  background: linear-gradient(to bottom, rgba(64, 64, 64, 0.95), rgba(48, 48, 48, 0.95));
  border-bottom: 1px solid rgba(66, 66, 69, 0.4);
  border-top: 1px solid rgba(66, 66, 69, 0.5);
  padding: 0 28px;
  position: fixed;
  top: var(--navbar-height, 90px);
  left: var(--sidebar-width-desktop);
  right: 0;
  width: calc(100% - var(--sidebar-width-desktop));
  height: 60px;
  z-index: 97;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

/* Mobile: Player flutuante no rodapé (Padrão Spotify/Ergonômico) */
/* Mobile: Player fixo abaixo da Topbar (Revertido conforme pedido) */
@media (max-width: 767.98px) {

  /* Alvo por ID para máxima precedência contra herança de sidebar desktop e garantir BG */
  #podcastTopbarPlayer.podcast-topbar-player {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 90px !important;
    bottom: auto !important;
    width: 100vw !important;
    max-width: 100% !important;
    height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2000 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    background: #232328 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
  }

  #podcastTopbarPlayer .player-container {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 50px !important;
    gap: 12px !important;
  }

  #podcastTopbarPlayer .player-controls-left,
  #podcastTopbarPlayer .player-controls-right {
    display: contents !important;
  }

  #podcastTopbarPlayer .player-artwork,
  #podcastTopbarPlayer .player-empty-rectangle,
  #podcastTopbarPlayer .player-content-section,
  #podcastTopbarPlayer .volume-control,
  #podcastTopbarPlayer .player-time-display,
  #podcastTopbarPlayer .player-center {
    display: none !important;
  }

  #podcastTopbarPlayer .podcasts-sidebar-toggle {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    display: flex !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
  }

  #podcastTopbarPlayer #playerInfoBtn {
    display: flex !important;
    margin: 0 !important;
    color: #ffffff !important;
    order: 10 !important;
  }

  #podcastTopbarPlayer .player-controls-right>*:not(#playerInfoBtn) {
    display: none !important;
  }

  #podcastTopbarPlayer .control-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #podcastTopbarPlayer .control-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  #podcastTopbarPlayer .control-btn.primary svg {
    width: 28px !important;
    height: 28px !important;
  }

  #podcastTopbarPlayer .playback-speed {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #b8b8b8 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
}

/* Full-width player em páginas individuais */
.single-player-topbar .podcast-topbar-player {
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 16px;
}

.single-player-topbar .podcasts-sidebar-toggle {
  display: none !important;
}

.player-container {
  width: 100%;
  height: 90%;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 0;
}

.player-controls-left {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.control-label {
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 2px;
  opacity: 0.9;
  line-height: 1;
}

.rewind-icon svg,
.forward-icon svg {
  width: 22px;
  height: 22px;
  display: inline-block;
  line-height: 1;
  font-size: inherit;
}

.player-controls-left .play-icon {
  font-size: 0.7rem;
  line-height: 1;
  display: inline-block;
  margin-left: 0;
}

.player-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  flex: 1;
  min-width: 0;
  max-width: 700px;
  position: relative;
  height: 90%;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 300ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  visibility: visible;
  --player-display-total-width: 640px;
}

.player-center.hidden-mobile {
  opacity: 0;
  visibility: hidden;
}

.player-content-section {
  display: none;
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  overflow: hidden;
  transform: translateX(6px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  pointer-events: none;
}

.player-empty-rectangle {
  flex: 1 1 auto;
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  background: rgb(77, 77, 77);
  border: 0px;
  border-radius: 0px;
  display: none;
  align-items: center;
  justify-content: center;
  padding-left: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #a1a1a6;
  font-size: 0.7rem;
  position: relative;
}

/* content handled by JS */
.player-empty-rectangle::before {
  content: none;
}

.player-center .player-empty-rectangle {
  display: flex;
}

.player-center.has-podcast .player-empty-rectangle {
  display: none;
}

.player-center.has-podcast {
  justify-content: center;
  gap: 0px;
}

.player-center.has-podcast .player-content-section {
  display: flex !important;
  position: static;
  pointer-events: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1px;
  padding: 8px 5px 0px 5px;
  min-width: 100px;
  /* Largura do display carregado = largura total - largura da thumbnail (52px) */
  max-width: calc(var(--player-display-total-width) - 52px);
  width: 100%;
  height: 52px;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  background: rgb(77, 77, 77);
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .player-center {
    max-width: 100%;
    --player-display-total-width: 100%;
    width: 100%;
    flex: 1;
  }

  .player-center.has-podcast .player-content-section {
    max-width: 100%;
    width: 100%;
    padding: 6px 8px;
    height: auto;
    min-height: 48px;
  }

  .player-episode-title {
    font-size: 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.3;
  }

  .player-episode-header {
    font-size: 8px;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }

  .player-progress-track {
    width: 100%;
    padding: 4px 0 0 0;
  }
}

.player-artwork {
  width: 52px;
  height: 52px;
  min-width: 42px;
  min-height: 42px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  background: #424245;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.player-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 0;
}

.player-artwork.has-image img {
  display: block;
}

.player-artwork-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #424245 0%, #2c2c2e 100%);
  color: #a1a1a6;
  position: absolute;
  inset: 0;
}

.player-artwork-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.7;
}

.player-artwork.has-image .player-artwork-placeholder {
  display: none;
}

.player-artwork:hover {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 1px rgba(153, 102, 204, 0.3);
}

.player-artwork.has-image::after {
  content: '\2197';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.player-artwork.has-image:hover::after {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.player-info-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.player-episode-header {
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  font-weight: 500;
  color: #a1a1a6;
  line-height: 1;
}

.player-episode-number {
  font-size: 11px;
  font-weight: 600;
  color: var(--pod-accent);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.player-episode-header:hover .player-episode-number {
  color: #ffffff;
}

.player-episode-separator {
  color: #8e8e93;
  flex-shrink: 0;
}

.player-season-info,
.player-episode-date {
  color: #a1a1a6;
  flex-shrink: 0;
  font-size: 11px;
}

.player-episode-header:hover .player-season-info,
.player-episode-header:hover .player-episode-date {
  color: #c9c9d0;
}

.player-episode-title-line {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  justify-content: center;
  font-size: 11px;
}

.player-episode-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  transition: color 0.3s ease;
  flex: 1;
  text-align: center;
}

.player-episode-title-line:hover .player-episode-title {
  color: #ffffff;
}

.player-podcast-info {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 11px;
  color: #a1a1a6;
  width: 100%;
  justify-content: center;
}

.player-podcast-name {
  font-weight: 500;
  color: #c9c9d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

.player-podcast-info:hover .player-podcast-name {
  color: var(--pod-accent);
}

.player-progress-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 0;
  padding: 0;
}

.player-time-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: #a1a1a6;
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
  opacity: 0.8;
  order: -1;
  margin-bottom: 2px;
  padding: 0 2px;
  line-height: 1;
}

.player-progress-track:hover .player-time-display {
  opacity: 1;
  color: #c9c9d0;
}

.current-time,
.total-time {
  transition: color 0.3s ease;
  font-weight: 500;
}

.player-time-display .current-time {
  text-align: left;
}

.player-time-display .total-time {
  text-align: right;
}

.player-progress-bar {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  appearance: none;
  background: linear-gradient(to right, #555558 0%, #555558 var(--progress-value, 0%), #424245 var(--progress-value, 0%), #424245 100%);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-sizing: border-box;
  margin-bottom: 7px;
  min-height: 1px;
  padding: 0;
}

.player-progress-bar:hover {
  background: linear-gradient(to right, #6d6d70 0%, #6d6d70 var(--progress-value, 0%), #555558 var(--progress-value, 0%), #555558 100%);
  height: 2px;
  min-height: 1px;
}

.player-progress-bar:focus {
  outline-offset: 2px;
  box-shadow: 0 0 0 1px rgba(177, 35, 233, 0.3);
}

.player-progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 3px;
  height: 7px;
  border-radius: 0;
  background: #b79bff;
  cursor: pointer;
  -webkit-appearance: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  box-shadow: 0 2px 6px rgba(183, 155, 255, 0.4);
}

.player-progress-bar:active::-webkit-slider-thumb,
.player-progress-bar:hover::-webkit-slider-thumb,
.player-progress-bar:focus::-webkit-slider-thumb {
  opacity: 1;
}

.player-progress-bar::-webkit-slider-thumb:hover {
  width: 3px;
  height: 8px;
  background: var(--pod-primary);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.player-progress-bar::-webkit-slider-thumb:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}

.player-progress-bar::-moz-range-thumb {
  width: 3px;
  height: 7px;
  border-radius: 10%;
  background: #ffffff;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.player-progress-bar:active::-moz-range-thumb,
.player-progress-bar:hover::-moz-range-thumb,
.player-progress-bar:focus::-moz-range-thumb {
  opacity: 1;
}

.player-progress-bar::-moz-range-thumb:hover {
  width: 3px;
  height: 8px;
  background: var(--pod-primary);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.player-progress-bar::-moz-range-thumb:active {
  transform: scale(0.15);
  box-shadow: 0 2px 8px rgba(207, 36, 250, 0.6);
}

.player-progress-bar::-moz-range-track {
  background: transparent;
  border: none;
}

.player-controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.control-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  flex-shrink: 0;
}

.control-btn:hover {
  color: #ffffff;
  transform: scale(1.12);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn:focus-visible {
  outline: 2px solid var(--pod-primary);
  outline-offset: 2px;
  color: #ffffff;
}

.control-btn.primary {
  color: white !important;
  lighting-color: #ffffff !important;
  width: 38px !important;
  height: 38px !important;
}

.control-btn.primary:hover {
  transform: scale(1.15);
}

.control-btn.primary:active {
  transform: scale(0.93);
}

.control-btn svg {
  width: 22px;
  height: 22px;
  fill: rgba(255, 255, 255, 0.64);
  stroke: rgba(255, 255, 255, 0.64);
  color: rgba(255, 255, 255, 0.64);
}

.control-btn:hover svg {
  fill: #ffffff;
  stroke: #ffffff;
  color: #ffffff;
}

.control-btn.primary svg {
  width: 38px;
  height: 38px;
}

.control-btn .rewind-icon,
.control-btn .forward-icon {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6d6b6bff !important;
  transition: color 0.3s ease;
}

.control-btn.primary .play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

.control-btn.primary .pause-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

.control-btn.primary .pause-icon svg {
  width: 32px;
  height: 32px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  position: relative;
}

/* Ocultar controle de volume quando desativado nas configurações */
.volume-control.hidden {
  display: none !important;
  pointer-events: none;
  visibility: hidden;
}

.volume-icon-btn {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-icon-btn i {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.64);
  transition: color 0.3s ease;
}

.volume-icon-btn:hover i {
  color: #ffffff;
}

.volume-icon-btn:focus-visible {
  outline: 2px solid var(--pod-primary);
  outline-offset: 2px;
}

.volume-icon-btn:focus-visible i {
  color: #ffffff;
}

/* Estado MUTED (silenciado) */
.volume-icon-btn.muted i {
  color: #ff6b6b;
  filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.3));
}

.volume-icon-btn.muted:hover i {
  color: #ff8787;
  filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.5));
}

.volume-icon-btn.muted:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

.volume-icon-btn.muted:focus-visible i {
  color: #ff8787;
}

/* Transição suave entre estados */
.volume-icon-btn i {
  transition: color 0.3s ease, filter 0.3s ease;
}

.volume-slider {
  width: 80px;
  height: 4px;
  appearance: none;
  background: linear-gradient(to right, #b79bff 0%, #b79bff var(--volume-value, 80%), #555558 var(--volume-value, 80%), #555558 100%);
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  transition: background 0.1s linear, height 0.15s ease;
  min-height: 2px;
}

.volume-slider:hover {
  background: linear-gradient(to right, #c38bff 0%, #c38bff var(--volume-value, 80%), #6d6d70 var(--volume-value, 80%), #6d6d70 100%);
  height: 5px;
  min-height: 3px;
}

.volume-popup {
  position: absolute;
  bottom: 50px;
  right: 0;
  width: 48px;
  height: 150px;
  background: rgba(64, 64, 68, 0.95);
  border: 1px solid rgba(66, 66, 69, 0.6);
  border-radius: 8px;
  padding: 12px 8px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.volume-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.volume-popup-slider {
  width: 3px;
  height: 120px;
  appearance: none;
  background: #555558;
  border-radius: 1.5px;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
}

.volume-popup-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pod-accent);
  cursor: pointer;
  -webkit-appearance: none;
  transition: all 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-popup-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(153, 102, 204, 0.3);
}

.volume-popup-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pod-accent);
  cursor: pointer;
  border: none;
  transition: all 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b79bff;
  cursor: pointer;
  -webkit-appearance: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(183, 155, 255, 0.4);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #c38bff;
  box-shadow: 0 2px 10px rgba(195, 139, 255, 0.6);
}

.volume-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b79bff;
  cursor: pointer;
  border: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(183, 155, 255, 0.4);
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
  background: #c38bff;
  box-shadow: 0 2px 10px rgba(195, 139, 255, 0.6);
}

.volume-slider::-moz-range-track {
  background: transparent;
  border: none;
}

.speed-control {
  display: flex;
  align-items: center;
  min-width: 60px;
}

.playback-speed {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.playback-speed:hover {
  color: #ffffff;
  transform: scale(1.12);
}

.playback-speed:active {
  transform: scale(0.95);
}

.playback-speed:focus-visible {
  outline: 2px solid var(--pod-primary);
  outline-offset: 2px;
  color: #ffffff;
}

.podcast-info-panel {
  position: fixed;
  top: calc(var(--navbar-height) + var(--player-height));
  bottom: 0;
  width: var(--sidebar-width-desktop);
  right: 0;
  background: rgba(32, 33, 36, 0.95);
  border-left: 1px solid rgba(90, 90, 110, 0.6);
  z-index: 96;
  overflow-y: auto;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.podcast-info-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.info-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.info-panel-title {
  font-size: 14px;
  font-weight: 400;
  color: #e4e4e8;
}

.info-panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-section-title {
  font-size: 10px;
  font-weight: 400;
  color: #d4d4dc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-section-content.p {
  font-size: 10px;
  color: #b6b6b6;
  line-height: 1.5;
}

.info-section-text {
  font-size: 10px;
  color: #b6b6b6;
  line-height: 1.5;
  text-align: left;
}

#podcastInfoPanel #infoEpisodeDescription {
  font-size: 10px;
  color: #b6b6b6;
  line-height: 1.5;
  text-align: left;
}

#podcastInfoPanel #infoEpisodeDescription p.info-section-text {
  font-size: 10px;
  color: #b6b6b6;
  line-height: 1.5;
  margin: 0 0 6px 0;
}

/* ===== ESTILOS PARA O NOVO LAYOUT: RESUMO, PROGRAMA, CATEGORIA, DATA ===== */

/* Rolagem vertical para o Resumo */
.info-section-scrollable {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 8px;
}

.info-section-scrollable::-webkit-scrollbar {
  width: 4px;
}

.info-section-scrollable::-webkit-scrollbar-track {
  background: rgba(90, 90, 110, 0.2);
  border-radius: 2px;
}

.info-section-scrollable::-webkit-scrollbar-thumb {
  background: rgba(180, 180, 200, 0.4);
  border-radius: 2px;
}

.info-section-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 180, 200, 0.6);
}

#infoResumeText {
  font-size: 11px;
  color: #b6b6b6;
  line-height: 1.6;
  white-space: normal;
  word-wrap: break-word;
  text-align: justify;
}

#infoProgramName,
#infoCategoryText,
#infoDateText {
  font-size: 11px;
  color: #b6b6b6;
  line-height: 1.6;
  white-space: normal;
  word-wrap: break-word;
}

/* ===== FIM DO NOVO LAYOUT ===== */

.info-section+.info-section {
  margin-top: 1.5rem;
}

.info-program-title {
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.info-program-tags,
.info-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.info-tag-badge,
.info-topic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4ea;
}

.info-topic-link {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-topic-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.info-episode-title {
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.info-episode-description {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 0.5rem;
}

.info-episode-progress {
  font-size: 10px;
  color: #c9c9dd;
}

@media (max-width: 1199px) {
  .podcast-info-panel {
    width: var(--sidebar-width-tablet);
  }
}

@media (max-width: 767.98px) {
  .podcast-info-panel {
    top: 97px;
    width: 280px;
    max-width: 80vw;
  }
}

.podcasts-main-content::-webkit-scrollbar {
  width: 8px;
}

.podcasts-main-content::-webkit-scrollbar-track {
  background: var(--pod-bg-dark);
}

.podcasts-main-content::-webkit-scrollbar-thumb {
  background: #424245;
  border-radius: 4px;
}

.podcasts-main-content::-webkit-scrollbar-thumb:hover {
  background: #555558;
}

.podcast-topbar-player.playing .control-btn.primary i::before {
  content: "\f4c4";
}

.podcast-topbar-player:not(.playing) .control-btn.primary i::before {
  content: "\f4c7";
}

@keyframes pulse-artwork {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 4px 16px rgba(171, 36, 250, 0.5);
    transform: scale(1.02);
  }
}

@keyframes pulse-play {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(189, 36, 250, 0.5);
  }

  50% {
    box-shadow: 0 6px 20px rgba(189, 36, 250, 0.7);
  }
}

.podcast-topbar-player.loading .player-artwork {
  opacity: 0.6;
  animation: shimmer 1.2s infinite;
}

.podcast-topbar-player.loading .player-progress-bar {
  opacity: 0.5;
  pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
  .player-progress-bar {
    height: 8px;
    padding: 4px 0;
  }

  .player-progress-bar::-webkit-slider-thumb {
    width: 3px;
    height: 7px;
  }

  .player-progress-bar::-moz-range-thumb {
    width: 3px;
    height: 7px;
  }

  .control-btn {
    width: 44px;
    height: 44px;
  }

  .playback-speed {
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Otimizações específicas para mobile 480px */
@media (max-width: 480px) {
  .player-center.has-podcast .player-content-section {
    max-width: calc(100vw - 112px) !important;
    width: calc(100vw - 112px) !important;
    padding: 6px 8px;
  }

  .player-info-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .player-episode-header {
    font-size: 8px;
    color: #a1a1a6;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    word-break: break-word;
  }

  .player-episode-title {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
  }

  .player-progress-track {
    width: 100%;
    padding: 3px 0 0 0;
    margin-top: 2px;
  }

  .player-time-display {
    font-size: 7px;
    padding: 0;
  }

  .player-progress-bar {
    height: 2px;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .player-progress-bar::-webkit-slider-thumb {
    width: 3px;
    height: 7px;
  }

  .player-progress-bar::-moz-range-thumb {
    width: 3px;
    height: 7px;
  }

  .player-episode-header {
    font-size: 9px;
  }

  .player-episode-title {
    font-size: 12px;
  }

  .player-podcast-info {
    font-size: 10px;
  }

  .player-time-display {
    font-size: 0.6rem;
  }
}

/* ============================================================================
   MUTE BUTTON STYLES (Botão de Silenciar Volume)
   ========================================================================== */

.volume-btn {
  background: none;
  border: none;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  border-radius: 4px;
}

.volume-icon {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Estado padrão - Volume ativado */
.volume-btn:hover .volume-icon {
  color: #ffffff;
  transform: scale(1.08);
}

.volume-btn:focus-visible {
  outline: 2px solid var(--pod-primary, #a855f7);
  outline-offset: 2px;
}

.volume-btn:focus-visible .volume-icon {
  color: #ffffff;
}

/* Estado MUTED (silenciado) */
.volume-btn[aria-pressed="true"] .volume-icon {
  color: #ff6b6b;
  filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.4));
  animation: pulse-mute 0.4s ease-out;
}

.volume-btn[aria-pressed="true"]:hover .volume-icon {
  color: #ff8787;
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
  transform: scale(1.12);
}

.volume-btn[aria-pressed="true"]:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

.volume-btn[aria-pressed="true"]:focus-visible .volume-icon {
  color: #ff8787;
}

/* Animação de pulso para mute */
@keyframes pulse-mute {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(255, 107, 107, 0.6));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.4));
  }
}

/* Animação de transição suave do ícone */
@keyframes icon-toggle {
  0% {
    transform: rotate(-180deg) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

.volume-icon {
  animation: icon-toggle 0.3s ease-out;
}

/* Tooltip acessível */
.volume-status-text {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.volume-btn:hover .volume-status-text,
.volume-btn:focus-visible .volume-status-text {
  opacity: 1;
  visibility: visible;
}

/* Responsividade */
@media (max-width: 768px) {
  .volume-btn {
    padding: 5px 6px;
  }

  .volume-icon {
    font-size: 0.9rem;
  }

  .volume-status-text {
    font-size: 0.65rem;
    padding: 4px 8px;
    bottom: -28px;
  }
}

@media (max-width: 480px) {
  .volume-control {
    min-width: auto;
    gap: 4px;
  }

  .volume-btn {
    padding: 4px 4px;
  }

  .volume-icon {
    font-size: 0.85rem;
  }

  .volume-slider {
    width: 60px;
  }
}