:root {
  --bg: #070b18;
  --panel: rgba(18, 26, 51, 0.78);
  --panel-2: rgba(21, 32, 64, 0.92);
  --text: #f8fbff;
  --muted: #aab5d7;
  --line: rgba(255,255,255,0.1);
  --pink: #ff4fd8;
  --cyan: #32e4ff;
  --blue: #6d8cff;
  --purple: #9b5cff;
  --green: #59f2b0;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  width: 100%; min-width: 0; margin: 0; overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d1552 0, transparent 34%), radial-gradient(circle at top right, #003d57 0, transparent 30%), var(--bg);
  color: var(--text);
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.bg-orb { position: fixed; width: 320px; height: 320px; border-radius: 999px; filter: blur(90px); opacity: .38; pointer-events: none; z-index: -1; }
.orb-1 { background: var(--purple); left: -120px; top: 120px; }
.orb-2 { background: var(--cyan); right: -130px; top: 360px; }

.topbar {
  width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8, 12, 28, .76); backdrop-filter: blur(16px); position: sticky; top: 12px; z-index: 30;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .2px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--pink), var(--cyan)); color: #fff; box-shadow: 0 10px 30px rgba(93, 92, 255, .38); }
.desktop-nav { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.desktop-nav a:hover { color: var(--text); }
.lang-btn { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); padding: 10px 12px; border-radius: 999px; }

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 20px auto 54px; min-width: 0; }
.hero-card {
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(135deg, rgba(23,34,75,.92), rgba(23,15,60,.72)); box-shadow: var(--shadow);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 24px; padding: clamp(22px, 4vw, 48px); position: relative;
}
.hero-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 68% 28%, rgba(50,228,255,.24), transparent 30%), radial-gradient(circle at 26% 65%, rgba(255,79,216,.18), transparent 32%); pointer-events:none; }
.hero-copy, .hero-visual { position: relative; z-index: 1; min-width: 0; }
.eyebrow { color: var(--cyan); text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: 12px; margin: 0 0 10px; }
h1 { font-size: clamp(35px, 6vw, 68px); line-height: .98; margin: 0 0 18px; letter-spacing: -0.055em; max-width: 780px; }
h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.035em; }
h3 { margin: 0 0 8px; }
.hero-text { color: #d5dcff; max-width: 580px; font-size: 17px; line-height: 1.65; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.primary-btn, .ghost-btn { display:inline-flex; align-items:center; justify-content:center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 900; }
.primary-btn { background: linear-gradient(135deg, var(--pink), var(--blue), var(--cyan)); color: white; box-shadow: 0 16px 42px rgba(76, 118, 255, .36); }
.ghost-btn { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); }
.hero-visual { min-height: 280px; display: grid; place-items: center; }
.wave { width: min(390px, 90%); height: 210px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(50,228,255,.5) 12px 16px, transparent 16px 28px), radial-gradient(circle, rgba(155,92,255,.55), transparent 63%); filter: drop-shadow(0 0 45px rgba(50,228,255,.25)); transform: rotate(-8deg); }
.headphone { position: absolute; font-size: 72px; opacity: .88; text-shadow: 0 0 28px rgba(255,79,216,.7); }
.floating-note { position: absolute; color: var(--cyan); font-size: 28px; text-shadow: 0 0 20px rgba(50,228,255,.75); }
.n1 { left: 10%; top: 16%; } .n2 { right: 12%; top: 18%; } .n3 { right: 30%; bottom: 18%; }

.search-panel { margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 15, 35, .72); padding: 14px; min-width: 0; overflow: hidden; }
.search-wrap { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); padding: 0 14px; min-width: 0; }
.search-wrap input { width: 100%; min-width: 0; height: 48px; background: transparent; border: 0; outline: 0; color: var(--text); }
.search-wrap input::placeholder { color: #7f8bb7; }
.filter-row { display: flex; gap: 9px; overflow-x: auto; padding-top: 12px; scrollbar-width: none; max-width: 100%; }
.filter-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--muted); border-radius: 999px; padding: 10px 14px; font-weight: 800; }
.chip.active { color: white; background: linear-gradient(135deg, rgba(255,79,216,.45), rgba(50,228,255,.28)); border-color: rgba(255,255,255,.22); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; min-width: 0; }
.main-content { min-width: 0; }
.section { margin-top: 30px; min-width: 0; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap: 12px; margin-bottom: 16px; min-width: 0; }
.count-pill { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 12px; font-weight: 800; white-space: nowrap; }
.track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.track-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 16px 45px rgba(0,0,0,.22); }
.thumb { position: relative; height: 190px; background: linear-gradient(135deg, #341669, #07394d); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.72), transparent 52%); }
.play-floating { position:absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border:0; border-radius: 999px; color: white; background: linear-gradient(135deg, var(--pink), var(--cyan)); z-index: 2; font-weight: 900; box-shadow: 0 10px 28px rgba(50,228,255,.3); }
.track-body { padding: 15px; min-width: 0; }
.track-title { margin: 0 0 8px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: var(--muted); font-size: 13px; display:flex; gap: 7px; flex-wrap: wrap; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 12px; color: #e9edff; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); border-radius: 999px; padding: 6px 9px; }
.card-footer { display:flex; justify-content:space-between; align-items:center; margin-top: 14px; gap: 10px; }
.listen-btn { border:0; border-radius: 999px; padding: 10px 14px; color:white; font-weight: 900; background: rgba(255,255,255,.1); }
.source-badge { font-size: 12px; color: var(--green); }

.category-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.category-card { min-width: 0; border:1px solid var(--line); border-radius: 20px; padding: 16px; background: rgba(255,255,255,.06); display:flex; align-items:center; justify-content:space-between; gap: 12px; font-weight: 900; }
.category-card span { color: var(--cyan); }
.latest-list { display: grid; gap: 10px; min-width: 0; }
.latest-item { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.055); padding: 10px; display:grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 12px; align-items:center; }
.latest-thumb { width:64px; height:64px; border-radius: 14px; background: linear-gradient(135deg, #38166a, #07546f); overflow:hidden; }
.latest-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.latest-title { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.mini-play { width: 38px; height:38px; border:0; border-radius:999px; background: linear-gradient(135deg, var(--purple), var(--cyan)); color:white; }

.side-panel { min-width: 0; display: grid; gap: 14px; }
.ad-card, .info-card { min-width: 0; border: 1px dashed rgba(255,255,255,.22); border-radius: 24px; background: rgba(255,255,255,.055); padding: 22px; color: var(--muted); }
.ad-card { display: grid; place-items: center; text-align:center; min-height: 170px; }
.ad-card strong { color: var(--text); display:block; margin: 6px 0; }
.ad-icon { font-size: 34px; color: var(--cyan); }
.sticky-ad { position: sticky; top: 100px; min-height: 360px; }
.mobile-ad { display: none; margin-top: 24px; }
.bottom-ad { margin-top: 30px; }
.info-card ul { padding-left: 18px; margin-bottom: 0; }

.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 96px; border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); display:flex; align-items:center; justify-content:space-between; gap: 16px; flex-wrap:wrap; }
.footer strong { color: var(--text); }
.footer-links { display:flex; flex-wrap:wrap; gap: 14px; }
.footer-links a { color: var(--muted); }

.mobile-nav { display: none; }
.modal { display:none; position:fixed; inset:0; z-index: 100; }
.modal.show { display:block; }
.modal-backdrop { position:absolute; inset:0; background: rgba(0,0,0,.74); }
.player-box { position:absolute; width: min(840px, calc(100% - 28px)); max-height: calc(100svh - 40px); overflow:auto; left:50%; top:50%; transform:translate(-50%, -50%); border:1px solid var(--line); border-radius: 28px; background: #0d142b; padding: 20px; box-shadow: var(--shadow); }
.close-btn { position:absolute; right: 14px; top: 12px; width:40px; height:40px; border:0; border-radius:999px; background: rgba(255,255,255,.1); color:white; font-size: 24px; }
.muted { color: var(--muted); }
.iframe-wrap { width:100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow:hidden; background: linear-gradient(135deg, rgba(255,79,216,.2), rgba(50,228,255,.12)); display:grid; place-items:center; color: var(--muted); }
.iframe-wrap iframe { width:100%; height:100%; border:0; display:block; }
.player-desc { color:#d9e0ff; line-height:1.6; }
.source-note { border:1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 16px; padding: 12px; color: var(--muted); font-size: 13px; }

@media (max-width: 920px) {
  .desktop-nav { display:none; }
  .content-grid { grid-template-columns: 1fr; }
  .side-panel { display:none; }
  .mobile-ad { display:grid; }
  .track-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 190px; }
  .wave { height: 150px; }
}

@media (max-width: 640px) {
  .topbar { width: min(100% - 20px, 1180px); margin-top: 10px; top: 8px; padding: 9px 10px; }
  .brand { font-size: 15px; }
  .brand-mark { width:32px; height:32px; border-radius: 11px; }
  .page-shell { width: min(100% - 20px, 1180px); margin-top: 12px; margin-bottom: 32px; }
  .hero-card { border-radius: 26px; padding: 22px 16px; }
  h1 { font-size: clamp(32px, 11vw, 46px); }
  .hero-text { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .primary-btn, .ghost-btn { width: 100%; }
  .search-panel { border-radius: 20px; padding: 10px; }
  .section { margin-top: 24px; }
  .section-head { align-items: flex-start; }
  .count-pill { font-size: 12px; }
  .thumb { height: 178px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { padding: 13px 12px; font-size: 14px; }
  .latest-item { grid-template-columns: 54px minmax(0,1fr) 36px; gap: 10px; padding: 9px; }
  .latest-thumb { width:54px; height:54px; }
  .ad-card { min-height: 138px; padding: 16px; }
  .footer { width: min(100% - 20px, 1180px); margin-bottom: 90px; font-size: 13px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4px; border:1px solid var(--line); border-radius: 24px; padding: 8px; background: rgba(8, 12, 28, .9); backdrop-filter: blur(16px); box-shadow: 0 18px 48px rgba(0,0,0,.35); }
  .mobile-nav a { min-width:0; display:grid; place-items:center; gap:2px; color: var(--muted); font-size: 16px; }
  .mobile-nav span { display:block; font-size: 10px; white-space: nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 100%; }
  .mobile-nav .active { color:white; }
}

@media (max-width: 360px) {
  .category-grid { grid-template-columns: 1fr; }
  .track-title { font-size: 16px; }
  .tag { font-size: 11px; }
  .latest-meta { font-size: 12px; }
}

/* V2.4: Pop-up yerine tek tıkla kart içinde oynatma */
.thumb { cursor: pointer; }
.thumb.playing { height: 235px; background: #050814; cursor: default; }
.thumb.playing::after { display: none; }
.thumb iframe,
.inline-latest-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 3;
  background: #050814;
}
.thumb-hint {
  position: absolute;
  left: 14px;
  bottom: 17px;
  z-index: 2;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}
.latest-thumb {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.latest-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: rgba(0,0,0,.28);
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.inline-latest-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #050814;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.inline-error {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 3;
}

@media (max-width: 640px) {
  .thumb.playing { height: auto; aspect-ratio: 16 / 9; min-height: 190px; }
  .thumb-hint { font-size: 11px; left: 10px; bottom: 12px; }
  .play-floating { right: 10px; bottom: 10px; width: 42px; height: 42px; }
  .inline-latest-player { border-radius: 16px; }
}

/* V2.7 Mobil tek player ve sade akış düzeltmesi */
.track-grid { grid-template-columns: 1fr; }
.featured-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(27,36,75,.88), rgba(17,24,52,.78));
  box-shadow: 0 18px 55px rgba(0,0,0,.26);
}
.featured-thumb {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}
.featured-thumb img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block; }
.featured-thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.78), transparent 55%); }
.featured-copy { padding: 16px; }
.featured-title { font-size: clamp(20px, 4vw, 28px); line-height: 1.16; margin: 10px 0 8px; }
.featured-copy p { color: var(--muted); line-height: 1.55; margin: 12px 0 0; }
.featured-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.featured-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.featured-player-slot { padding: 0 16px 16px; }
.player-placeholder {
  min-height: 88px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  font-weight: 900;
  text-align: center;
  padding: 12px;
}
.active-inline-player,
.featured-player-slot .inline-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050814;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.active-inline-player { margin: 8px 0 12px; }
.inline-frame { width: 100%; height: 100%; }
.inline-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #050814; }
.player-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(255,255,255,.065);
}
.player-inline-head + .inline-frame { border-radius: 0 0 18px 18px; }
.inline-close,
.listen-btn.is-playing,
.mini-play.is-playing {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5e73, #9b5cff);
  color: white;
  font-weight: 900;
  padding: 9px 12px;
}
.latest-item.is-active { border-color: rgba(50,228,255,.45); }
.category-details {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
}
.category-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  font-weight: 950;
}
.category-details summary::-webkit-details-marker { display:none; }
.category-details .category-grid { padding: 0 14px 14px; }

@media (max-width: 640px) {
  .hero-card { display: none; }
  .search-panel { margin-top: 4px; }
  #featured.section { margin-top: 18px; }
  .section-head .eyebrow { margin-bottom: 4px; }
  .featured-thumb { min-height: 168px; }
  .featured-thumb img { min-height: 168px; }
  .featured-copy { padding: 14px; }
  .featured-title { font-size: 21px; }
  .featured-note { width: 100%; }
  .featured-player-slot { padding: 0 12px 12px; }
  .player-placeholder { min-height: 74px; font-size: 13px; }
  .player-inline-head { font-size: 13px; }
  .active-inline-player { margin: 7px 0 12px; }
  .latest-list { gap: 9px; }
  .latest-title { font-size: 14px; }
  .mini-play.is-playing { width: auto; min-width: 58px; padding: 8px 9px; font-size: 12px; }
  .category-details summary { padding: 14px; }
}


/* =========================================================
   AI Muziko SITE ONLY V3.0
   Sadece şu 3 düzeltme:
   1) Öne çıkan müzik sade satır: kapak/açıklama yok.
   2) Tek player + tek kapat: player içinde ikinci kapat yok.
   3) YouTube iframe kırpılmadan tam 16:9 görünür.
   ========================================================= */

#featured .track-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
}

.featured-simple {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(27,36,75,.88), rgba(17,24,52,.78));
  box-shadow: 0 16px 45px rgba(0,0,0,.22);
}

.featured-simple-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  min-width: 0;
}

.featured-simple-copy {
  min-width: 0;
}

.featured-simple .featured-title {
  margin: 6px 0 6px;
  font-size: clamp(15px, 4.5vw, 22px);
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-simple .meta {
  min-width: 0;
  overflow: hidden;
}

.featured-simple .source-badge {
  display: inline-flex;
  max-width: 100%;
}

.featured-player-slot {
  padding: 0 12px 12px !important;
}

.featured-player-slot:empty {
  display: none;
}

.featured-simple.is-active .featured-player-slot {
  display: block;
}

/* Eski öne çıkan kapak/açıklama yapısı herhangi bir eski DOM'dan kalırsa sakla. */
.featured-thumb,
.featured-copy > p,
.featured-note,
.player-placeholder,
.player-inline-head,
.inline-close {
  display: none !important;
}

.latest-thumb {
  position: relative;
  border: 0;
  padding: 0;
  cursor: default !important;
}

.latest-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 58%);
  pointer-events: none;
}

.latest-thumb span,
.latest-thumb button,
.play-floating,
.thumb-hint {
  display: none !important;
}

.latest-item.is-active {
  border-color: rgba(50,228,255,.48);
  background: rgba(50,228,255,.075);
}

.mini-play {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.mini-play.is-playing,
.featured-play-btn.is-playing {
  width: 44px;
  min-width: 44px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5e73, #9b5cff);
  color: #fff;
  font-weight: 950;
}

/* Player tam görünür: header yok, sadece 16:9 iframe. */
.active-inline-player,
.featured-player-slot .inline-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #050814;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.active-inline-player {
  margin: 8px 0 12px;
}

.inline-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: #050814;
  overflow: hidden;
}

.inline-frame iframe,
.active-inline-player iframe,
.featured-player-slot iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  display: block !important;
  background: #050814;
}

.inline-error {
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .featured-simple-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    padding: 10px;
    gap: 10px;
  }

  .featured-simple .featured-title {
    font-size: 15px;
  }

  .featured-simple .source-badge {
    font-size: 11px;
  }

  .featured-player-slot {
    padding: 0 10px 10px !important;
  }

  .active-inline-player,
  .featured-player-slot .inline-frame {
    border-radius: 14px;
    margin-top: 7px;
  }

  .mini-play.is-playing,
  .featured-play-btn.is-playing {
    width: 40px;
    min-width: 40px;
    height: 36px;
    font-size: 12px;
  }
}


/* =========================================================
   AI Muziko SITE ONLY V3.2
   İbrahim'in istediği net değişiklikler:
   - Kategoriler arama motorunun ÜSTÜNDE, tek açılır bölüm.
   - Alttaki ikinci kategori bölümü yok.
   - Öne çıkan şarkı sayfa açılınca açık gelir.
   - "En çok öne çıkan" yazısı kaldırıldı, başlık "Öne Çıkan Şarkı".
   ========================================================= */

.top-category-panel {
  width: 100%;
  margin: 18px 0 12px;
  min-width: 0;
}

.top-category-panel .category-details {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(155,92,255,.20), rgba(50,228,255,.08)),
    rgba(10, 15, 35, .78);
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
}

.top-category-panel .category-details summary {
  padding: 17px 18px;
  font-size: 17px;
  color: #fff;
}

.top-category-panel .category-details summary span {
  font-weight: 1000;
  letter-spacing: -.02em;
}

.top-category-panel .category-details summary strong {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.top-category-panel .category-grid {
  padding: 0 14px 14px !important;
}

.category-card {
  border-color: rgba(255,255,255,.18) !important;
  background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045)) !important;
  color: #fff !important;
}

.category-card strong {
  color: #fff;
  font-weight: 1000;
  letter-spacing: -.01em;
}

.category-card span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #06101c !important;
  background: linear-gradient(135deg, var(--cyan), #fff);
  font-weight: 1000;
}

.category-card.active {
  border-color: rgba(50,228,255,.75) !important;
  background: linear-gradient(135deg, rgba(255,79,216,.34), rgba(50,228,255,.18)) !important;
  box-shadow: 0 0 0 1px rgba(50,228,255,.18), 0 14px 38px rgba(50,228,255,.10);
}

.search-panel {
  margin-top: 12px !important;
}

.filter-row {
  display: none !important;
}

/* Eski altta kalan kategori section'ı herhangi bir önbellekte görünürse sakla. */
.main-content > #categories.section {
  display: none !important;
}

#featured .section-head .eyebrow {
  display: none !important;
}

#featured .section-head h2 {
  font-size: clamp(24px, 5vw, 34px);
}

.featured-simple {
  border-color: rgba(50,228,255,.18);
}

.featured-simple.is-active .featured-player-slot {
  padding-top: 0 !important;
}

.featured-player-slot .inline-frame {
  display: block !important;
}

@media (max-width: 640px) {
  .top-category-panel {
    margin: 8px 0 10px;
  }

  .top-category-panel .category-details {
    border-radius: 20px;
  }

  .top-category-panel .category-details summary {
    padding: 15px 14px;
    font-size: 16px;
  }

  .top-category-panel .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 10px 12px !important;
  }

  .category-card {
    min-height: 56px;
    padding: 12px 11px !important;
    font-size: 14px;
    border-radius: 16px;
  }

  .category-card strong {
    font-size: 14px;
  }

  .category-card span {
    min-width: 30px;
    height: 25px;
    font-size: 12px;
  }

  .search-panel {
    margin-top: 10px !important;
  }

  #featured.section {
    margin-top: 16px !important;
  }

  #featured .section-head h2 {
    font-size: 24px;
  }

  #trackCount {
    display: none;
  }
}


/* =========================================================
   AI Muziko SITE ONLY V3.4
   Kesin hedef:
   - Kategoriler arama motorunun üstünde.
   - Alt kategori bölümü yok.
   - Öne Çıkan Şarkı sayfa açılır açılmaz player açık gelir.
   - İlk açılışta autoplay yok; kullanıcı YouTube player içinden play'e basar.
   ========================================================= */

.top-category-panel {
  margin: 18px 0 10px;
  min-width: 0;
}

.top-category-panel .category-details {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(50,228,255,.05));
  box-shadow: 0 14px 42px rgba(0,0,0,.20);
  overflow: hidden;
}

.top-category-panel .category-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  font-weight: 950;
  color: var(--text);
  letter-spacing: .01em;
}

.top-category-panel .category-details summary::-webkit-details-marker {
  display: none;
}

.top-category-panel .category-details summary span {
  font-size: 18px;
}

.top-category-panel .category-details summary strong {
  color: var(--cyan);
  font-size: 13px;
  white-space: nowrap;
}

.top-category-panel .category-grid {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.top-category-panel .category-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 15px 14px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 950;
  color: var(--text);
}

.top-category-panel .category-card strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.18;
}

.top-category-panel .category-card span {
  color: #06111e;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  min-width: 30px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(50,228,255,.22);
}

/* Eski alttaki kategori section kalırsa gizle. Top panel etkilenmez. */
.content-grid #categories.section {
  display: none !important;
}

#featured .section-head .eyebrow,
#featured .section-head p.eyebrow {
  display: none !important;
}

#featured .section-head h2 {
  font-size: clamp(24px, 5vw, 36px);
}

#featured .track-grid {
  display: grid;
  grid-template-columns: 1fr !important;
}

.featured-simple {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(27,36,75,.92), rgba(12,18,42,.88));
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.featured-simple-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.featured-simple .source-badge {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--green);
  font-weight: 950;
}

.featured-title {
  margin: 0 0 7px;
  font-size: clamp(18px, 4.5vw, 27px);
  line-height: 1.15;
  color: var(--text);
}

.featured-player-slot {
  padding: 0 14px 14px;
}

.featured-player-slot .inline-frame,
.active-inline-player .inline-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #050814;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.inline-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050814;
}

.active-inline-player {
  width: 100%;
  margin: 8px 0 12px;
}

.mini-play {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  font-weight: 950;
  display: inline-grid;
  place-items: center;
}

.mini-play.is-playing {
  background: linear-gradient(135deg, #ff5e73, #9b5cff);
}

.latest-item.is-active,
.featured-simple.is-active {
  border-color: rgba(50,228,255,.42);
}

.search-panel {
  margin-top: 12px;
}

@media (max-width: 920px) {
  .top-category-panel .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-card {
    display: none;
  }

  .top-category-panel {
    margin: 12px 0 10px;
  }

  .top-category-panel .category-details summary {
    padding: 14px;
  }

  .top-category-panel .category-details summary span {
    font-size: 17px;
  }

  .top-category-panel .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 12px 12px;
  }

  .top-category-panel .category-card {
    padding: 13px 12px;
  }

  .top-category-panel .category-card strong {
    font-size: 14px;
  }

  #featured.section {
    margin-top: 18px;
  }

  .featured-simple-row {
    grid-template-columns: minmax(0,1fr) 44px;
    padding: 12px;
  }

  .featured-title {
    font-size: 19px;
  }

  .featured-player-slot {
    padding: 0 12px 12px;
  }

  .mini-play {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

@media (max-width: 360px) {
  .top-category-panel .category-grid {
    grid-template-columns: 1fr;
  }
}

/* V3.5 REKLAM ALANLARI KALDIRILDI - V3.4 OYNATICI KORUNDU */


/* =========================================================
   AI Muziko SITE DIRECT V3.6
   Arama motoru düzeltmesi:
   - Arama aktif YouTube player'ı kapatmaz.
   - Arama öne çıkan şarkıyı değiştirmez.
   - Türkçe karakterli/karaktersiz arama daha iyi çalışır.
   ========================================================= */
.search-status {
  display: none;
  margin: 10px 4px 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
}
.search-status.is-visible { display: block; }

@media (max-width: 640px) {
  .search-status {
    font-size: 12px;
    margin-top: 8px;
    padding-left: 2px;
  }
}


/* =========================================================
   AI Muziko SITE DIRECT V3.7
   Son Eklenenler: mobil dostu ilk 12 kayıt + Daha Fazla Göster.
   Player ve arama koruması V3.6'daki gibi kalır.
   ========================================================= */
.load-more-wrap {
  display: grid;
  place-items: center;
  margin: 16px 0 4px;
}
.load-more-btn {
  width: min(100%, 360px);
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(155,92,255,.38), rgba(50,228,255,.24));
  color: white;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}
.load-more-btn:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .load-more-wrap {
    margin-top: 14px;
  }
  .load-more-btn {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }
}


/* =========================================================
   AI Muziko SITE DIRECT V3.8 / V3.9
   Player altında şık ilerleme çubuğu + Sonra Dinle/Favoriler.
   V3.7 ilk 12 + Daha Fazla Göster korunur.
   ========================================================= */
.featured-head-row {
  align-items: center;
}
.featured-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
.saved-top-btn {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 12px;
  color: white;
  font-weight: 950;
  background: rgba(255,255,255,.07);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.saved-top-btn span {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(50,228,255,.18);
  color: var(--cyan);
  font-size: 12px;
}
.saved-top-btn.is-active,
.category-card.is-active {
  border-color: rgba(50,228,255,.48);
  background: linear-gradient(135deg, rgba(155,92,255,.30), rgba(50,228,255,.18));
}
.player-tools {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}
.listen-progress {
  position: relative;
  height: 13px;
  border-radius: 999px;
  overflow: visible;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 10px rgba(0,0,0,.28);
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  box-shadow: 0 0 18px rgba(50,228,255,.34);
  transition: width .45s ease;
}
.progress-note {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 8px 25px rgba(50,228,255,.35);
  transition: left .45s ease;
  z-index: 2;
}
.listen-progress.is-waiting .progress-fill {
  opacity: .72;
}
.player-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.save-later-btn {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  font-weight: 950;
  background: rgba(255,255,255,.07);
}
.save-later-btn.is-saved {
  color: #07101d;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-color: rgba(255,255,255,.24);
}
.progress-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  white-space: nowrap;
}
.featured-player-slot .player-tools,
.active-inline-player .player-tools {
  margin-top: 0;
}

@media (max-width: 640px) {
  .featured-head-row {
    align-items: flex-start;
  }
  .featured-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .saved-top-btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .player-tools {
    padding: 11px;
    border-radius: 16px;
  }
  .listen-progress {
    height: 12px;
  }
  .progress-note {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .save-later-btn {
    flex: 1 1 auto;
    min-height: 40px;
    font-size: 13px;
  }
  .progress-time {
    font-size: 11px;
  }
}


/* =========================================================
   AI Muziko SITE DIRECT V3.9
   İlerleme çubuğu aktif şarkı satırının üstünde.
   Player alanı daha ferah: Sonra Dinle + Favori küçük butonlar.
   ========================================================= */
.track-progress-strip {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  padding: 0 2px 4px;
}
.latest-item.is-active .track-progress-strip,
.featured-simple.is-active .track-progress-strip {
  display: block;
}
.track-progress-strip .listen-progress {
  height: 12px;
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.16);
}
.track-progress-strip .progress-note {
  width: 26px;
  height: 26px;
  font-size: 14px;
}
.featured-progress-strip {
  margin-bottom: 2px;
}
.player-tools-compact {
  padding: 8px 10px !important;
  margin: 8px 0 8px !important;
  border-radius: 16px !important;
}
.player-tools-compact .player-tool-row {
  gap: 7px;
  flex-wrap: nowrap;
}
.player-tools-compact .save-later-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  flex: 0 1 auto;
  white-space: nowrap;
}
.player-tools-compact .save-main-btn {
  border-color: rgba(89,242,176,.25);
}
.player-tools-compact .progress-time {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.active-inline-player {
  padding-bottom: 16px;
  margin: 8px 0 18px !important;
  scroll-margin-top: 74px;
}
.active-inline-player .inline-frame,
.featured-player-slot .inline-frame {
  min-height: 210px;
}
.latest-item.is-active {
  grid-template-rows: auto auto;
  padding-top: 10px;
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .track-progress-strip {
    padding: 0 1px 5px;
  }
  .track-progress-strip .listen-progress {
    height: 11px;
  }
  .track-progress-strip .progress-note {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .player-tools-compact {
    padding: 7px 8px !important;
  }
  .player-tools-compact .player-tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
    align-items: center;
  }
  .player-tools-compact .save-later-btn {
    width: 100%;
    min-height: 34px;
    padding: 0 7px;
    font-size: 11.5px;
  }
  .player-tools-compact .progress-time {
    font-size: 10.5px;
  }
  .active-inline-player .inline-frame,
  .featured-player-slot .inline-frame {
    min-height: 216px;
  }
}

@media (max-width: 370px) {
  .player-tools-compact .player-tool-row {
    grid-template-columns: 1fr 1fr;
  }
  .player-tools-compact .progress-time {
    grid-column: 1 / -1;
    justify-self: end;
  }
}


/* =========================================================
   AI Muziko SITE DIRECT V4.0
   Özel kontrol kartı: ilerleme + oynat/duraklat + sonra dinle/kaydet.
   YouTube video alanı tam 16:9 görünür, kırpılmaz.
   ========================================================= */
.custom-control-card {
  position: relative;
  overflow: hidden;
}
.latest-item.custom-control-card {
  grid-template-columns: 64px minmax(0, 1fr) 56px;
  grid-template-rows: auto auto auto;
  border-color: rgba(50,228,255,.32);
}
.latest-item.custom-control-card.is-active,
.featured-simple.custom-control-card.is-active {
  background: linear-gradient(135deg, rgba(29,38,79,.9), rgba(8,38,55,.82));
  border-color: rgba(50,228,255,.62);
  box-shadow: 0 18px 55px rgba(0,0,0,.34), 0 0 0 1px rgba(50,228,255,.08) inset;
}
.custom-control-row {
  position: relative;
}
.control-cover {
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.32);
}
.featured-simple .control-cover {
  width: 68px;
  height: 68px;
  overflow: hidden;
  flex: 0 0 auto;
}
.featured-simple .control-cover img,
.latest-item .control-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.control-main-toggle {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  font-size: 24px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.control-main-toggle.is-playing {
  font-size: 25px;
  letter-spacing: -5px;
  padding-right: 5px;
  background: linear-gradient(135deg, #ff4fd8, #9b5cff) !important;
}
.track-progress-strip {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  padding: 0 4px 8px;
}
.latest-item.is-active .track-progress-strip,
.featured-simple.is-active .track-progress-strip {
  display: block;
}
.listen-progress {
  position: relative;
  width: 100%;
  height: 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  box-shadow: 0 0 20px rgba(50,228,255,.35);
  pointer-events: none;
}
.progress-range {
  position: absolute;
  inset: -12px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 6;
  touch-action: pan-x;
}
.progress-note {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 10px 30px rgba(50,228,255,.42);
  z-index: 4;
  transition: left .18s linear;
  pointer-events: none;
}
.listen-progress.is-playing .progress-note {
  animation: aiMuzikoNotePulse .72s ease-in-out infinite;
}
@keyframes aiMuzikoNotePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(-5deg); }
  45% { transform: translate(-50%, -62%) scale(1.1) rotate(8deg); }
}
.active-row-tools {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}
.latest-item.is-active .active-row-tools,
.featured-simple.is-active .active-row-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.active-row-tools .compact-action {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}
.active-row-tools .progress-time {
  justify-self: end;
  color: #cfd8ff;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  letter-spacing: .02em;
}
.player-tools,
.player-tools-compact {
  display: none !important;
}
.active-inline-player,
.featured-player-slot {
  width: 100%;
  overflow: visible;
}
.active-inline-player {
  padding: 0 0 28px !important;
  margin: 10px 0 22px !important;
  scroll-margin-top: 72px;
}
.active-inline-player .inline-frame,
.featured-player-slot .inline-frame,
.full-visible-youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #050814;
  box-shadow: 0 16px 50px rgba(0,0,0,.34);
}
.inline-frame iframe,
.full-visible-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050814;
}
.featured-simple.custom-control-card {
  padding: 12px;
}
.featured-simple-row.custom-control-row {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr) 56px;
  gap: 12px;
  align-items: center;
}
.featured-player-slot {
  padding: 10px 0 0 !important;
}

@media (max-width: 640px) {
  .latest-item.custom-control-card {
    grid-template-columns: 56px minmax(0, 1fr) 50px;
    gap: 10px;
    padding: 10px;
  }
  .featured-simple.custom-control-card {
    padding: 10px;
  }
  .featured-simple-row.custom-control-row {
    grid-template-columns: 56px minmax(0,1fr) 50px;
    gap: 10px;
  }
  .featured-simple .control-cover,
  .latest-item .control-cover {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .control-main-toggle {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    font-size: 22px;
  }
  .track-progress-strip {
    padding: 0 2px 7px;
  }
  .listen-progress {
    height: 12px;
  }
  .progress-note {
    width: 27px;
    height: 27px;
    font-size: 14px;
  }
  .latest-item.is-active .active-row-tools,
  .featured-simple.is-active .active-row-tools {
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
  }
  .active-row-tools .compact-action {
    min-height: 34px;
    padding: 0 8px;
    font-size: 11.5px;
  }
  .active-row-tools .progress-time {
    font-size: 11px;
  }
  .active-inline-player .inline-frame,
  .featured-player-slot .inline-frame,
  .full-visible-youtube {
    border-radius: 16px;
  }
}
@media (max-width: 370px) {
  .latest-item.is-active .active-row-tools,
  .featured-simple.is-active .active-row-tools {
    grid-template-columns: 1fr 1fr;
  }
  .active-row-tools .progress-time {
    grid-column: 1 / -1;
    justify-self: end;
  }
}


/* =========================================================
   V4.1: Sonra Dinle + Favoriler kalıcı kayıt düzeltmesi
   ========================================================= */
.compact-action {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.save-main-btn.is-saved,
.save-later-btn.is-saved {
  border-color: rgba(89, 242, 176, .55) !important;
  background: rgba(89, 242, 176, .12) !important;
  color: #ffffff !important;
}
.saved-top-btn.is-active {
  border-color: rgba(89, 242, 176, .65) !important;
  background: rgba(89, 242, 176, .12) !important;
}
@media (max-width: 640px) {
  .active-row-tools .compact-action {
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }
}


/* =========================================================
   AI Muziko SITE DIRECT V4.2
   Sadece mobilde: Öne Çıkan Şarkı yanındaki Favoriler
   butonu başlığın ortasında durmasın, sağ kenara otursun.
   ========================================================= */
@media (max-width: 640px) {
  #featured .featured-head-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #featured .featured-head-row > div:first-child {
    min-width: 0 !important;
  }

  #featured .featured-head-actions {
    width: auto !important;
    min-width: max-content !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    transform: translateX(2px);
  }

  #featured .saved-top-btn {
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    gap: 5px !important;
  }

  #featured .saved-top-btn span {
    min-width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
  }

  #featured .section-head h2 {
    font-size: 24px !important;
    line-height: 1.18 !important;
    max-width: 150px !important;
  }
}


/* =========================================================
   AI Muziko SITE DIRECT V4.5
   Sonra Dinle + Favoriler butonları artık Öne Çıkan başlığında değil;
   Kategoriler ile arama motoru arasında yan yana durur.
   ========================================================= */
.saved-shortcuts-panel {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.saved-shortcut-btn {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(50, 228, 255, .30);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(50,228,255,.075));
  color: #f8fbff;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.saved-shortcut-btn span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.saved-shortcut-btn.is-active {
  border-color: rgba(89, 242, 176, .72);
  background: linear-gradient(135deg, rgba(89,242,176,.17), rgba(50,228,255,.11));
  box-shadow: 0 0 0 1px rgba(89,242,176,.08) inset, 0 16px 38px rgba(0,0,0,.22);
}
.favorite-shortcut-btn.is-active span,
.later-shortcut-btn.is-active span {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}
.track-count-hidden {
  display: none !important;
}
#featured .featured-head-row {
  display: block !important;
  margin-bottom: 12px !important;
}
#featured .featured-head-row h2 {
  max-width: none !important;
  white-space: nowrap !important;
  font-size: clamp(24px, 6.5vw, 36px) !important;
  line-height: 1.12 !important;
}

@media (max-width: 640px) {
  .saved-shortcuts-panel {
    gap: 8px;
    margin: 8px 0 12px;
  }
  .saved-shortcut-btn {
    min-height: 40px;
    padding: 0 8px;
    font-size: 12.5px;
    gap: 6px;
  }
  .saved-shortcut-btn span {
    min-width: 22px;
    height: 22px;
    font-size: 11px;
  }
  #featured .featured-head-row h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 360px) {
  .saved-shortcut-btn {
    font-size: 11.5px;
    padding: 0 6px;
  }
  .saved-shortcut-btn span {
    min-width: 20px;
    height: 20px;
  }
}


/* =========================================================
   AI Muziko SITE DIRECT V4.5
   Favoriler / Sonra Dinle görünümü:
   - Öne Çıkan Şarkı alanı gizlenir.
   - Liste başlığı Favoriler veya Sonra Dinle olur.
   - Tüm Şarkılara Dön butonu görünür.
   ========================================================= */
.section.is-hidden {
  display: none !important;
}
.latest-head-row {
  align-items: center;
}
.back-to-all-btn {
  display: none;
  border: 1px solid rgba(50, 228, 255, .34);
  background: linear-gradient(135deg, rgba(50,228,255,.16), rgba(155,92,255,.16));
  color: var(--text);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.back-to-all-btn.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.saved-shortcut-btn.is-active {
  box-shadow: 0 0 0 2px rgba(50,228,255,.20), 0 12px 32px rgba(50,228,255,.16);
}
@media (max-width: 640px) {
  .latest-head-row {
    align-items: flex-start;
    gap: 10px;
  }
  .back-to-all-btn {
    padding: 9px 10px;
    font-size: 12px;
    max-width: 160px;
  }
}


/* =========================================================
   ZekAi Fm SITE DIRECT V4.6
   Politika / hakkımızda / telif / iletişim sayfaları
   ========================================================= */
.policy-shell {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto 92px;
}
.policy-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(18,26,51,.92), rgba(9,20,40,.82));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.policy-hero {
  padding: clamp(22px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15% 15%, rgba(255,79,216,.16), transparent 32%), radial-gradient(circle at 90% 10%, rgba(50,228,255,.16), transparent 28%);
}
.policy-hero .brand { margin-bottom: 24px; }
.policy-hero h1 {
  font-size: clamp(34px, 7vw, 58px);
  margin: 0 0 12px;
  letter-spacing: -0.045em;
}
.policy-hero p { color: #d5dcff; line-height: 1.7; max-width: 760px; margin: 0; }
.policy-content {
  padding: clamp(20px, 4vw, 38px);
  color: #dce4ff;
}
.policy-section {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.045);
  margin-bottom: 16px;
}
.policy-section h2 {
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 10px;
}
.policy-section h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}
.policy-section p,
.policy-section li {
  color: #c9d3f7;
  line-height: 1.72;
}
.policy-section ul { margin: 10px 0 0; padding-left: 20px; }
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.policy-mini {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,.14);
}
.policy-mini strong { display:block; color: var(--text); margin-bottom: 6px; }
.policy-mini span,
.policy-mini a { color: #cbd6ff; line-height: 1.55; }
.policy-link {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.policy-alert {
  border: 1px solid rgba(50,228,255,.32);
  background: rgba(50,228,255,.08);
  border-radius: 18px;
  padding: 15px;
  color: #dff8ff;
  line-height: 1.65;
}
.contact-card-list {
  display: grid;
  gap: 12px;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 15px;
}
.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  font-weight: 900;
}
.map-box {
  border: 1px solid rgba(50,228,255,.25);
  border-radius: 24px;
  min-height: 210px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(50,228,255,.2), transparent 28%), linear-gradient(135deg, rgba(21,32,64,.9), rgba(7,11,24,.95));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}
.map-box strong { font-size: 22px; color: white; display:block; margin-bottom: 8px; }
.map-box span { color: #c7d2ff; display:block; margin-bottom: 14px; }
.policy-footer-nav {
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 20px;
}
.policy-footer-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #dce4ff;
  background: rgba(255,255,255,.055);
  font-weight: 800;
}
@media (max-width: 640px) {
  .policy-shell { width: min(100% - 20px, 980px); margin-top: 12px; }
  .policy-card { border-radius: 24px; }
  .policy-grid { grid-template-columns: 1fr; }
  .policy-section { padding: 15px; }
  .contact-line { padding: 13px; }
}


/* =========================================================
   ZekAi Fm SITE DIRECT V4.7
   Benzer Şarkılar butonu: Sonra / Favori / Benzer aynı satırda.
   ========================================================= */
.latest-item.is-active .active-row-tools,
.featured-simple.is-active .active-row-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  gap: 6px !important;
}
.similar-btn {
  border: 1px solid rgba(50, 228, 255, .36);
  background: linear-gradient(135deg, rgba(50,228,255,.13), rgba(155,92,255,.12));
  color: #ffffff;
}
.similar-btn:active {
  transform: translateY(1px);
}
.active-row-tools .compact-action {
  min-width: 0 !important;
  justify-content: center;
  text-align: center;
}
@media (max-width: 640px) {
  .latest-item.is-active .active-row-tools,
  .featured-simple.is-active .active-row-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
    gap: 5px !important;
  }
  .active-row-tools .compact-action {
    min-height: 32px !important;
    padding: 0 5px !important;
    font-size: 10.8px !important;
    letter-spacing: -.02em;
  }
  .active-row-tools .progress-time {
    font-size: 10px !important;
    min-width: 68px;
  }
}
@media (max-width: 380px) {
  .latest-item.is-active .active-row-tools,
  .featured-simple.is-active .active-row-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .active-row-tools .progress-time {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: -1px;
  }
}


/* =========================================================
   ZekAi Fm V5.2 - YouTube embed kesin düzeltme
   iframe doğal tıklanır; üstünde link/overlay/shield yok.
   ========================================================= */
.official-youtube-embed,
.full-visible-youtube,
.inline-frame {
  position: relative !important;
}
.official-youtube-embed iframe,
.full-visible-youtube iframe,
.inline-frame iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  background: #050814 !important;
}
.official-youtube-embed::before,
.official-youtube-embed::after,
.full-visible-youtube::before,
.full-visible-youtube::after,
.inline-frame::before,
.inline-frame::after,
.site-player-shield,
.site-player-shield-icon,
.site-player-shield-text,
.site-listen-overlay,
.youtube-click-blocker,
.site-youtube-shield,
.youtube-cover,
.youtube-overlay,
.video-cover,
.video-overlay {
  display: none !important;
  pointer-events: none !important;
  content: none !important;
}


/* =========================================================
   ZekAi Fm V5.4 - Player hızlı açılış / stabilite
   ========================================================= */
.player-load-note {
  margin: 8px 4px 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  color: #cfd8ff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.player-load-note[hidden] {
  display: none !important;
}
.player-load-note.is-error {
  border-color: rgba(255, 126, 126, .36);
  background: rgba(255, 77, 109, .10);
  color: #ffd8df;
}
.player-load-note.is-ok {
  border-color: rgba(95, 255, 189, .30);
  background: rgba(95, 255, 189, .08);
  color: #d7fff0;
}

/* =========================================================
   ZekAi Fm V5.3 - Telefona Ekle / PWA
   Player, kategori ve liste davranışlarına dokunmaz.
   ========================================================= */
.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.install-app-btn {
  border: 1px solid rgba(50, 228, 255, .35);
  background: linear-gradient(135deg, rgba(50,228,255,.16), rgba(155,92,255,.18));
  color: var(--text);
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(50, 228, 255, .08);
}
.install-app-btn.is-ready,
.install-hero-btn.is-ready {
  border-color: rgba(89, 242, 176, .5);
  box-shadow: 0 12px 34px rgba(89, 242, 176, .18);
}
.install-hero-btn {
  border: 0;
}
.install-help-modal[hidden] { display: none !important; }
.install-help-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.64);
  backdrop-filter: blur(10px);
}
.install-help-card {
  width: min(440px, 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18,26,51,.98), rgba(12,18,38,.98));
  box-shadow: var(--shadow);
  padding: 22px;
  color: #dce6ff;
  line-height: 1.55;
  position: relative;
}
.install-help-card strong {
  display: block;
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
}
.install-help-card p { margin: 10px 0 0; }
.install-help-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: white;
  font-size: 24px;
  line-height: 1;
}
@media (max-width: 640px) {
  .top-actions { gap: 5px; }
  .install-app-btn, .lang-btn { padding: 8px 9px; font-size: 12px; }
  .install-app-btn { max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
  .install-help-card { border-radius: 22px; padding: 20px 16px; }
}


/* =========================================================
   ZekAi Fm V5.5 - Telefona Ekle Native Prompt Fix
   Büyük açıklama kutusu yok; kısa durum bildirimi var.
   ========================================================= */
.install-status-toast[hidden] { display: none !important; }
.install-status-toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%) translateY(16px);
  z-index: 9999;
  width: min(92vw, 420px);
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(15, 23, 42, .96);
  color: #f8fafc;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.install-status-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.install-app-btn:disabled,
.install-hero-btn:disabled {
  opacity: .72;
  cursor: wait;
}
@media (max-width: 640px) {
  .install-status-toast {
    bottom: 92px;
    font-size: 13px;
    border-radius: 16px;
  }
}
