/* Player Expandido - Dumont App */

.expanded-player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 1001;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-player-overlay.active {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
}

.expanded-player-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.expanded-player-overlay.active .expanded-player-container {
  transform: translateY(0);
}

/* Seção Superior Verde */
.expanded-player-top {
  background: #2d6769;
  padding: 16px;
  position: relative;
  flex-shrink: 0;
  height: 50vh;
  overflow: hidden;
}

.expanded-player-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.expanded-player-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 103, 105, 0.9);
  z-index: 1;
}

.expanded-player-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.expanded-player-header.ios-app {
  padding-top: env(safe-area-inset-top);
}

.expanded-player-title {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.expanded-player-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  z-index: 3;
}

.expanded-player-close:active {
  transform: scale(0.9);
}

/* Botão Play/Pause Circular Grande */
.expanded-player-play-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.expanded-play-circle {
  width: 120px;
  height: 120px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.expanded-play-circle:active {
  transform: scale(0.95);
}

.expanded-play-circle.hidden {
  display: none;
}

/* Seção Central Branca */
.expanded-player-middle {
  background: #f5f5f5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
}

.expanded-player-info-text {
  font-size: 32px;
  font-weight: 900;
  color: #030322;
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -1px;
  width: 100%;
}

.expanded-player-program-text {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  min-height: 20px;
  width: 100%;
}

/* Barra de progresso */
.expanded-player-progress-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.expanded-player-progress-container {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.expanded-player-progress-filled {
  height: 100%;
  background: #1a8ccc;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.expanded-player-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #1a8ccc;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: left 0.1s ease;
  z-index: 10;
}

/* Aumenta a área de clique do thumb */
.expanded-player-progress-thumb::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.expanded-player-progress-thumb:active {
  cursor: grabbing;
}

.expanded-player-time {
  font-size: 14px;
  font-weight: 600;
  color: #030322;
  min-width: 35px;
  text-align: center;
}

/* Botão Azul Inferior */
.expanded-player-bottom {
  flex-shrink: 0;
  padding: 0;
}

a.expanded-request-btn,
button.expanded-request-btn {
  display: block;
  width: 100%;
  background: #1a8ccc;
  border: none;
  padding: 20px 20px 20px 0;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  text-decoration: none;
  text-align: center;
}

a.expanded-request-btn svg,
button.expanded-request-btn svg {
  stroke-width: 0.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

a.expanded-request-btn:active,
button.expanded-request-btn:active {
  background: #1577b3;
}

/* Responsive */
@media (min-width: 768px) {

  /* Esconde o expanded player apenas em desktop (não app layout) */
  body:not(.app-layout) .expanded-player-overlay {
    display: none;
  }
}
