/* ==========================================================================
   ATI ARCADE — Logo İkizi Müzik Oynatıcı (music/player.css)
   Sol üstteki logonun ayna simetrisi: [ PARÇA ADI ]  [ 76x40 siyah kutu ]
   Kutunun içinde: dönen plak + pikap kolu, ekolayzer, ince ilerleme hattı
   ========================================================================== */

.arcade-music {
  --ink: #000;
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  user-select: none;
  -webkit-user-select: none;
  z-index: 25;
  font-family: Montserrat, system-ui, Arial, sans-serif;
}
.arcade-music button { font-family: inherit; -webkit-tap-highlight-color: transparent; }

/* ---------- Kontrol şeridi (altın oran: 40 → 24.7 → 15.3 → 9.4 → 5.8 → 3.6) ---------- */
.mp-axis {
  position: relative;
  width: var(--axis-w, 94px);
  height: 40px;
}

/* Şarkı adı: çok küçük, seyrek harfli; tıklayınca liste açılır */
.mp-label-btn {
  position: absolute;
  left: 0;
  top: -6.27px;
  display: block;
  width: 100%;
  height: 5.8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  opacity: .62;
  transition: opacity .2s;
}
.mp-label-btn:hover { opacity: 1; }
.mp-title-viewport {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  line-height: 5.8px;
}
.mp-title {
  display: inline-block;
  font-size: 6.8px;
  font-weight: 600;
  line-height: 5.8px;
  letter-spacing: .309em;
  margin-right: -.309em;
}
/* Şarkı çalarken: yazının üzerinden yumuşak bir ışık süzülür ve hafifçe nefes alır */
.arcade-music.is-playing .mp-title {
  background: linear-gradient(100deg, #000 38%, rgba(13, 13, 13, .22) 50%, #000 62%) 0 0 / 260% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: mpTitleShine 3.2s ease-in-out infinite;
}
.arcade-music.is-playing .mp-title.is-scrolling {
  animation: mpTitleShine 3.2s ease-in-out infinite, mpMarquee 7s ease-in-out infinite alternate;
}
@keyframes mpTitleShine {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.mp-title.is-scrolling { animation: mpMarquee 7s ease-in-out infinite alternate; }
@keyframes mpMarquee {
  0%, 15% { transform: translateX(0); }
  85%, 100% { transform: translateX(var(--scroll-dist, 0)); }
}
.mp-dots { display: none; }

.mp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  top: 7.65px;
  height: 15.3px;
}
.mp-nav-btn, .mp-pp {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .3s cubic-bezier(.22, 1.4, .36, 1), opacity .2s;
}
.mp-nav-btn { width: 9.4px; height: 15.3px; opacity: .8; }
.mp-nav-btn svg { width: 9.4px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.mp-nav-btn svg .f { fill: currentColor; stroke-width: 1; }
.mp-nav-btn:hover { opacity: 1; }
.mp-nav-btn.prev:hover { transform: translateX(-1.5px); }
.mp-nav-btn.next:hover { transform: translateX(1.5px); }
.mp-nav-btn:active, .mp-pp:active { transform: scale(.82); }

.mp-pp { width: 15.3px; height: 15.3px; border-radius: 50%; }
.mp-pp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.3px solid var(--ink);
  transition: transform .35s cubic-bezier(.22, 1.4, .36, 1), background .25s;
}
.mp-pp:hover::before { transform: scale(1.12); }
.mp-pp svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5.8px;
  height: 5.8px;
  fill: currentColor;
  transition: opacity .2s, transform .3s cubic-bezier(.22, 1.4, .36, 1);
}
.mp-pp .i-play { transform: translateX(.5px); }
.mp-pp .i-pause { opacity: 0; transform: scale(.4); }
.arcade-music.is-playing .mp-pp::before { background: var(--ink); }
.arcade-music.is-playing .mp-pp { color: #fff; }
.arcade-music.is-playing .mp-pp .i-play { opacity: 0; transform: scale(.4); }
.arcade-music.is-playing .mp-pp .i-pause { opacity: 1; transform: none; }

.mp-time {
  display: flex;
  align-items: center;
  gap: 3.6px;
  position: absolute;
  left: 0;
  right: 0;
  top: 26.55px;
  height: 5.8px;
}
.mp-t {
  flex: none;
  font-size: 5.8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  opacity: .62;
}
.mp-bar-track {
  position: relative;
  flex: 1;
  height: 5.8px;
  cursor: pointer;
}
.mp-bar-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2.4px;
  height: 1px;
  background: rgba(13, 13, 13, .16);
}
.mp-bar-fill {
  position: absolute;
  left: 0;
  top: 2.4px;
  height: 1px;
  width: 0;
  background: var(--ink);
}
.mp-bar-fill i {
  position: absolute;
  right: -1.9px;
  top: -1.4px;
  width: 3.8px;
  height: 3.8px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .2s;
}
.mp-bar-track:hover .mp-bar-fill i { transform: scale(1.5); }

/* ---------- Logo kutusu ---------- */
.mp-box-wrap { position: relative; width: 76px; height: 40px; flex: none; }
.mp-box {
  position: relative;
  display: block;
  width: 76px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22, 1.4, .36, 1);
}
.mp-box svg { display: block; width: 100%; height: 100%; }
.mp-box:hover { transform: scale(1.03); }
.mp-box:active { transform: scale(.94); }

.mp-rotor { transform-origin: 22px 22px; animation: mpSpin 2.2s linear infinite; animation-play-state: paused; }
.arcade-music.is-playing .mp-rotor { animation-play-state: running; }
@keyframes mpSpin { to { transform: rotate(360deg); } }

.mp-core-play, .mp-core-dot { transform-origin: 22px 22px; transition: opacity .25s, transform .35s cubic-bezier(.22, 1.4, .36, 1); }
.mp-core-dot { opacity: 0; transform: scale(.3); }
.arcade-music.is-playing .mp-core-play { opacity: 0; transform: scale(.3); }
.arcade-music.is-playing .mp-core-dot { opacity: 1; transform: none; }

.mp-arm { transform-origin: 39px 9px; transform: rotate(-24deg); transition: transform .7s cubic-bezier(.34, 1.3, .5, 1); }
.arcade-music.is-playing .mp-arm { transform: rotate(0); }

/* ---------- Kutudan yayılan halkalar ve notalar ---------- */
.mp-fx { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.mp-ring {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 1.4px solid var(--ink);
  animation: mpRing 1.9s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes mpRing {
  0% { opacity: 0; transform: scale(1.06); }
  20% { opacity: .22; }
  100% { opacity: 0; transform: scale(1.3, 1.62); }
}
.mp-note {
  position: absolute;
  left: 23px;
  top: 14px;
  width: 9px;
  height: 11px;
  fill: var(--ink);
  animation: mpNote 2.2s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes mpNote {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  20% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--nx), var(--ny)) scale(1) rotate(var(--nr)); }
}
.mp-puff {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  border: 1.6px solid var(--ink);
  pointer-events: none;
  animation: mpPuff .55s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes mpPuff {
  0% { opacity: .4; transform: scale(.96); }
  100% { opacity: 0; transform: scale(1.2, 1.4); }
}

/* ==========================================================================
   Açılır Altın Oran Mini Parça & İlerleme Kartı (Drawer)
   ========================================================================== */
.mp-drawer {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  background: #fff;
  border: 2px solid var(--ink, #000);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(13, 13, 13, .11);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.96);
  transform-origin: 100% 0;
  transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1.4, .36, 1);
  z-index: 90;
}

.arcade-music.drawer-open .mp-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 7px;
}

.mp-drawer-title {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink, #000);
}

.mp-add-btn {
  border: 1.5px solid var(--ink, #000);
  background: #fff;
  color: var(--ink, #000);
  border-radius: 5px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2.5px 7px;
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}

.mp-add-btn:hover {
  background: var(--ink, #000);
  color: #fff;
}

.mp-add-btn:active {
  transform: scale(.92);
}

/* Kart İçi İlerleme Çubuğu (Seek Bar) */
.mp-seek {
  position: relative;
  height: 12px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 6px;
  cursor: pointer;
}

.mp-seek-track {
  position: relative;
  width: 100%;
  height: 2.5px;
  background: rgba(13, 13, 13, .12);
  border-radius: 2px;
}

.mp-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--ink, #000);
  border-radius: 2px;
}

.mp-seek-knob {
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ink, #000);
  transform: scale(.85);
  transition: transform .18s;
}

.mp-seek:hover .mp-seek-knob {
  transform: scale(1.2);
}

.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 152px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-list::-webkit-scrollbar {
  width: 4px;
}

.mp-list::-webkit-scrollbar-thumb {
  background: rgba(13, 13, 13, .2);
  border-radius: 2px;
}

.mp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink, #000);
  cursor: pointer;
  transition: background .18s, color .18s;
}

.mp-item:hover {
  background: rgba(13, 13, 13, .06);
}

.mp-item.active {
  background: var(--ink, #000);
  color: #fff;
}

.mp-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.mp-item-idx {
  font-size: 9.5px;
  font-weight: 700;
  opacity: .55;
}

.mp-drawer-foot {
  margin-top: 6px;
  padding: 5px 4px 1px;
  border-top: 1.5px solid rgba(13, 13, 13, .08);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--ink, #000);
  opacity: .52;
  text-align: center;
}

/* Mobil: logodaki yazı gizlendiği gibi parça adı da gizlenir, yalnız kutu kalır */
@media (max-width: 700px) {
  .mp-axis { display: none; }
}

/* Ses ayarı: kutunun altında ince çizgi; düzeni kaydırmaz */
.mp-vol {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 11px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
.mp-vol::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: rgba(13, 13, 13, .16);
}
.mp-vol-fill {
  position: absolute;
  left: 0;
  top: 5px;
  height: 1px;
  background: #0d0d0d;
}
.mp-vol-fill i {
  position: absolute;
  right: -1.9px;
  top: -1.4px;
  width: 3.8px;
  height: 3.8px;
  border-radius: 50%;
  background: #0d0d0d;
  transition: transform .2s;
}
.mp-vol:hover .mp-vol-fill i,
.mp-vol:focus-visible .mp-vol-fill i,
.mp-vol.drag .mp-vol-fill i { transform: scale(1.5); }
.mp-drawer-foot { display: none; }
