/* /css/player.override.css */
/* RIGHT PANEL — ultra compact + element alignment */

#rightPanelHost .aivo-player-card{
  padding: 6px !important;
  border-radius: 12px !important;
  min-height: 0 !important;

  /* Left(play) | mid(text+bar) | actions */
  display: grid !important;
  grid-template-columns: 40px 1fr auto !important;
  column-gap: 6px !important;

  align-items: center !important;
}

#rightPanelHost .aivo-player-card *{
  line-height: 1.10 !important;
}

/* LEFT (play area) varsa küçük kalıp ortalansın */
#rightPanelHost .aivo-player-left{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* MID: title/meta üstte, progress altta */
#rightPanelHost .aivo-player-mid{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;          /* text taşmalarını engeller */
}

/* Title / Meta */
#rightPanelHost .aivo-player-title{
  font-size: 11.5px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#rightPanelHost .aivo-player-meta,
#rightPanelHost .aivo-player-sub{
  font-size: 10.5px !important;
  margin: 0 !important;
  opacity: .9;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Tags (chip) */
#rightPanelHost .aivo-player-tags{
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  margin-top: 2px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

#rightPanelHost .aivo-tag{
  padding: 1px 5px !important;
  font-size: 9.5px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

/* Progress bar varsa düzgün otursun */
#rightPanelHost .aivo-player-progress,
#rightPanelHost .aivo-player-bar,
#rightPanelHost progress,
#rightPanelHost input[type="range"]{
  width: 100% !important;
  margin: 0 !important;
}

/* ACTIONS: sağda tek sıra, ortalı */
#rightPanelHost .aivo-player-actions{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  gap: 4px !important;
  padding-left: 4px !important;

  height: 28px !important;
  flex-wrap: nowrap !important;
}

/* Icon button kutuları */
#rightPanelHost .aivo-action{
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 9px !important;
}

/* SVG icon ölçüsü */
#rightPanelHost .aivo-action svg{
  width: 16px !important;
  height: 16px !important;
}
/* === FIX-1: Mid text play alanının altına girmesin === */
#rightPanelHost .aivo-player-card{
  grid-template-columns: 56px 1fr auto !important; /* 40px -> 56px */
}

/* Play alanı gerçekten 56px kalsın */
#rightPanelHost .aivo-player-left{
  width: 56px !important;
  min-width: 56px !important;
}

/* === FIX-2: Controls/progress bar grid içinde kalsın (absolute ise iptal) === */
#rightPanelHost .aivo-player-controls{
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  margin-top: 3px !important;
}

/* Bar/seek/progress hangi element olursa olsun mid içine otursun */
#rightPanelHost .aivo-player-controls *,
#rightPanelHost .aivo-player-progress,
#rightPanelHost .aivo-player-bar,
#rightPanelHost progress,
#rightPanelHost input[type="range"]{
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
}
/* Loading tag pulse */
.aivo-tag.is-loading{
  animation:aivoPulse 1.05s ease-in-out infinite;
}
@keyframes aivoPulse{
  0%,100%{ opacity:1 }
  50%{ opacity:.45 }
}
