/* MeloAz v2 — Şarkı sayfası (melo-song.css) */
.melo-sp { display: flex; flex-direction: column; gap: 18px; }
.melo-sp .melo-sec { margin-top: 8px; }

/* Üst kart */
.melo-sp-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(300px, 1.15fr); gap: 22px; align-items: center; padding: 22px; }
.melo-sp-cover { position: relative; width: 120px; height: 120px; border-radius: 16px; overflow: hidden; background: var(--melo-primary-50); box-shadow: 0 10px 26px rgba(15, 23, 42, .14); }
.melo-sp-cover img { width: 100%; height: 100%; object-fit: cover; }
.melo-sp-cover.is-fallback { background: linear-gradient(135deg, #dbe6ff, #eef3ff); }
.melo-sp-cover.is-fallback::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; background: #2563eb; opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l11-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.melo-sp-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.melo-sp-title { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; color: var(--melo-ink); overflow-wrap: anywhere; }
.melo-sp-artist { align-self: flex-start; font-size: 16px; font-weight: 800; color: var(--melo-primary); }
.melo-sp-artist:hover, .melo-sp-album:hover { text-decoration: underline; }
.melo-sp-album { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--melo-ink-2); }
.melo-sp-album span { color: var(--melo-muted); }
.melo-sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.melo-sp-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: var(--melo-ink-2); background: #f1f5fb; }

.melo-sp-ctrl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.melo-sp-bar { position: relative; height: 6px; border-radius: 6px; background: #e6ebf3; cursor: pointer; touch-action: none; }
.melo-sp-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
.melo-sp-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--melo-primary); }
.melo-sp-bar:focus-visible { outline: 2px solid var(--melo-primary); outline-offset: 5px; }
.melo-sp-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--melo-muted); font-variant-numeric: tabular-nums; }
.melo-sp-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.melo-sp-play {
  position: relative; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: var(--melo-primary); box-shadow: 0 10px 24px rgba(37, 99, 235, .35); transition: transform .15s, background .2s;
}
.melo-sp-play:hover { transform: scale(1.05); background: var(--melo-primary-d); }
.melo-sp-play > span { display: grid; place-items: center; }
.melo-sp-play .melo-sp-ic-play { padding-left: 3px; }
.melo-sp-ic-pause { display: none !important; }
.melo-sp.is-playing .melo-sp-ic-pause { display: grid !important; }
.melo-sp.is-playing .melo-sp-ic-play { display: none !important; }
.melo-sp.is-loading .melo-sp-play::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--melo-primary);
  animation: melo-sp-spin .8s linear infinite;
}
@keyframes melo-sp-spin { to { transform: rotate(360deg); } }
.melo-sp-round { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--melo-ink-2); background: #fff; border: 1px solid var(--melo-line); transition: color .15s, border-color .15s, background .15s; }
.melo-sp-round:hover { color: var(--melo-primary); border-color: var(--melo-primary-100); background: var(--melo-primary-50); }
.melo-sp-dl { margin-left: auto; height: 44px; }

/* Paylaş */
.melo-sp-share { display: flex; flex-wrap: wrap; gap: 8px; }
.melo-sp-share a, .melo-sp-share button {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px;
  font-size: 13px; font-weight: 800; color: var(--melo-ink-2); background: #fff; border: 1px solid var(--melo-line); transition: all .15s;
}
.melo-sp-share a:hover, .melo-sp-share button:hover { transform: translateY(-1px); }
.melo-sp-share .is-wa:hover { color: #fff; background: #22c55e; border-color: #22c55e; }
.melo-sp-share .is-tg:hover { color: #fff; background: #229ed9; border-color: #229ed9; }
.melo-sp-share .is-fb:hover { color: #fff; background: #1877f2; border-color: #1877f2; }
.melo-sp-share .is-x:hover { color: #fff; background: #0f172a; border-color: #0f172a; }
.melo-sp-share button:hover { color: var(--melo-primary); border-color: var(--melo-primary-100); }

/* Bilgi + video */
.melo-sp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.melo-sp-grid:has(.melo-sp-video) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.melo-sp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; font-weight: 900; color: var(--melo-ink); }
.melo-sp-h .melo-icon { color: var(--melo-primary); }
.melo-sp-details dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.melo-sp-details dl > div { padding: 11px 12px; border-radius: 12px; background: #f6f8fc; border: 1px solid var(--melo-line-2); min-width: 0; }
.melo-sp-details dt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: var(--melo-muted); text-transform: uppercase; letter-spacing: .03em; }
.melo-sp-details dd { margin: 4px 0 0; font-size: 15px; font-weight: 900; color: var(--melo-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.melo-sp-video { overflow: hidden; padding: 0; }
.melo-sp-vthumb { position: relative; display: block; width: 100%; height: 100%; min-height: 180px; background: linear-gradient(135deg, #1e293b, #0f172a); cursor: pointer; }
.melo-sp-vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: blur(1px); transition: opacity .2s; }
.melo-sp-vthumb:hover img { opacity: .7; }
.melo-sp-vthumb.is-fallback img { opacity: 0; }
.melo-sp-vplay { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--melo-red); box-shadow: 0 10px 30px rgba(239, 68, 68, .45); transition: transform .2s; }
.melo-sp-vthumb:hover .melo-sp-vplay { transform: scale(1.08); }
.melo-sp-vlabel { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #fff; }

/* Söz + biyografi */
.melo-sp-hrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.melo-sp-mini { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--melo-ink-2); background: #f1f5fb; }
.melo-sp-mini:hover { color: var(--melo-primary); background: var(--melo-primary-50); }
.melo-sp-lyrics-text { font-size: 15px; line-height: 1.85; color: var(--melo-ink-2); white-space: normal; overflow-wrap: anywhere; }
.melo-sp-bio-text { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--melo-ink-2); }
.melo-sp-lyrics.is-clamped .melo-sp-lyrics-text, .melo-sp-bio.is-clamped .melo-sp-bio-text {
  max-height: 22em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.melo-sp-bio.is-clamped .melo-sp-bio-text { max-height: 9em; }
.melo-sp-more { margin-top: 10px; font-size: 13.5px; font-weight: 800; color: var(--melo-primary); }
.melo-sp-more:hover { text-decoration: underline; }

/* Etiketler */
.melo-sp-tags .melo-sp-h { margin-bottom: 10px; }
.melo-sp-tags div { display: flex; flex-wrap: wrap; gap: 8px; }
.melo-sp-tags a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--melo-ink-2); background: #fff; border: 1px solid var(--melo-line); }
.melo-sp-tags a:hover { color: var(--melo-primary); border-color: var(--melo-primary-100); background: var(--melo-primary-50); }

@media (max-width: 1180px) {
  .melo-sp-hero { grid-template-columns: auto minmax(0, 1fr); }
  .melo-sp-ctrl { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .melo-sp-grid:has(.melo-sp-video) { grid-template-columns: minmax(0, 1fr); }
  .melo-sp-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .melo-sp-hero { padding: 16px; gap: 14px; }
  .melo-sp-cover { width: 92px; height: 92px; }
  .melo-sp-title { font-size: 19px; }
  .melo-sp-dl { margin-left: 0; flex: 1 0 100%; justify-content: center; }
  .melo-sp-share a, .melo-sp-share button { padding: 0 10px; }
}
/* Part 9: YouTube klibi (tıklayınca yüklenir) */
.melo-yt { margin: 0 0 18px; }
.melo-yt-btn { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; display: grid; place-items: center; color: #fff; background: radial-gradient(120% 120% at 50% 0%, #1e3a8a, #0f172a); }
.melo-yt-play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #dc2626; box-shadow: 0 12px 30px -10px rgba(220, 38, 38, .7); transition: transform .15s; }
.melo-yt-play .melo-icon { width: 32px; height: 32px; }
.melo-yt-btn:hover .melo-yt-play { transform: scale(1.08); }
.melo-yt-label { position: absolute; left: 16px; bottom: 14px; font-weight: 800; font-size: 14px; opacity: .9; }
.melo-yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; display: block; background: #000; }
