/* Feed — sol aside mini media player (Apple Music tarzı, site paleti) */
.gm-sidebar-player-mount {
  margin-bottom: 0;
  min-height: 0;
  max-height: min(52vh, 420px);
  overflow: hidden;
}

.gm-sidebar-player {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.75rem;
  max-height: min(52vh, 420px);
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(165deg, var(--card, #fff) 0%, var(--gray-50, #f8fafc) 100%);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
  box-sizing: border-box;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.gm-sidebar-player.is-visible {
  display: flex;
}

html.dark .gm-sidebar-player {
  background: linear-gradient(165deg, #131828 0%, #1a2236 100%);
  border-color: #2a3a5c;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.gm-sidebar-player--fixed-mobile {
  position: fixed;
  left: 0.65rem;
  right: 0.65rem;
  bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 185;
  margin: 0;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.gm-sp-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--gray-100, #f1f5f9);
  color: var(--gray-600, #475569);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

html.dark .gm-sp-close {
  background: #243049;
  color: #94a3b8;
}

.gm-sp-close:hover {
  background: var(--blue-50, #eff6ff);
  color: var(--blue-700, #1d4ed8);
}

html.dark .gm-sp-close:hover {
  background: #112240;
  color: #93c5fd;
}

.gm-sp-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 7.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--blue-500, #3b82f6), var(--blue-700, #1d4ed8));
  flex-shrink: 0;
}

.gm-sp-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gm-sp-art-img[hidden] {
  display: none !important;
}

.gm-sp-art-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.gm-sp-art-placeholder[hidden] {
  display: none !important;
}

.gm-sp-art-icon {
  width: 42%;
  height: 42%;
  opacity: 0.95;
}

.gm-sp-meta {
  min-width: 0;
  padding-right: 1.5rem;
}

.gm-sp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.gm-sp-text {
  min-width: 0;
  flex: 1;
}

.gm-sp-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

html.dark .gm-sp-title {
  color: #e8eeff;
}

.gm-sp-artist {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

html.dark .gm-sp-artist {
  color: #94a3b8;
}

.gm-sp-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.1rem;
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.gm-sidebar-player.is-playing .gm-sp-eq {
  opacity: 1;
}

.gm-sp-eq span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--blue-500, #3b82f6);
  height: 0.35rem;
  animation: gm-sp-eq-bar 0.9s ease-in-out infinite;
}

html.dark .gm-sp-eq span {
  background: #60a5fa;
}

.gm-sp-eq span:nth-child(1) { animation-delay: 0s; }
.gm-sp-eq span:nth-child(2) { animation-delay: 0.15s; }
.gm-sp-eq span:nth-child(3) { animation-delay: 0.3s; }

@keyframes gm-sp-eq-bar {
  0%, 100% { height: 0.35rem; }
  50% { height: 1.05rem; }
}

.gm-sidebar-player:not(.is-playing) .gm-sp-eq span {
  animation: none;
  height: 0.35rem;
}

.gm-sp-progress {
  width: 100%;
}

.gm-sp-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--gray-200, #e2e8f0);
  outline: none;
  cursor: pointer;
  margin: 0 0 0.35rem;
  display: block;
}

html.dark .gm-sp-seek {
  background: #2a3a5c;
}

.gm-sp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-600, #2563eb);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
}

.gm-sp-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-600, #2563eb);
  border: 2px solid #fff;
}

.gm-sp-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #64748b);
}

.gm-sp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.gm-sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text, #334155);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  transition: background 0.15s, transform 0.12s, color 0.15s;
  font-family: inherit;
}

html.dark .gm-sp-btn {
  color: #c8d4f0;
}

.gm-sp-btn:hover {
  background: var(--blue-50, #eff6ff);
  color: var(--blue-700, #1d4ed8);
}

html.dark .gm-sp-btn:hover {
  background: #112240;
  color: #93c5fd;
}

.gm-sp-btn:active {
  transform: scale(0.94);
}

.gm-sp-btn--primary {
  width: 2.85rem;
  height: 2.85rem;
  background: linear-gradient(135deg, var(--blue-500, #3b82f6), var(--blue-700, #1d4ed8));
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.gm-sp-btn--primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
}

.gm-sp-btn-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.gm-sp-btn--primary .gm-sp-btn-icon {
  font-size: 1.2rem;
}

.gm-sp-btn-icon[hidden] {
  display: none !important;
}

.gm-sp-skip-label {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gm-sp-volume {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gm-sp-vol-icon {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.7;
  flex-shrink: 0;
}

.gm-sp-vol {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--gray-200, #e2e8f0);
  outline: none;
  cursor: pointer;
  margin: 0;
}

html.dark .gm-sp-vol {
  background: #2a3a5c;
}

.gm-sp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-600, #2563eb);
  border: 2px solid #fff;
}

.gm-sp-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-600, #2563eb);
  border: 2px solid #fff;
}

@media (min-width: 901px) {
  .gm-sidebar-player--fixed-mobile {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: 0;
  }
}
