/* Video önde, arayüz geri planda. Savoy'dan kalan tek dokunuş: logo ve hardal vurgu.
   İlke: süs yok, tek vurgu rengi, geniş boşluk, TV'de 3 metreden okunur yazı. */
:root {
  color-scheme: dark;
  --zemin: #14110e;
  --yuzey: #1f1a15;
  --yuzey2: #2a231c;
  --yuzey3: #362d24;
  --yazi: #efe6d4;
  --soluk: #a89a83;
  --hardal: #e3bf63;       /* tek vurgu: odak, seçili, ana eylem */
  --hardal-yazi: #1a140c;  /* hardal üstündeki yazı */
  --yesil: #6dbb8c;        /* sadece "öğrendim" ve ilerleme */

  --f-logo: "Lobster", "Brush Script MT", cursive;
  --f-baslik: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-metin: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --r: 0.6rem;
  /* 1920 genişlikte ~24px */
  font-size: clamp(15px, 1.25vw, 30px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--zemin);
  color: var(--yazi);
  font-family: var(--f-metin);
  line-height: 1.45;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
kbd {
  font-family: var(--f-metin); font-weight: 700; font-size: 0.85em;
  padding: 0 0.4em; border-radius: 0.25em; background: var(--yuzey2); color: var(--yazi);
}

.uyari {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--hardal); color: var(--hardal-yazi);
  padding: 0.6rem 1.2rem; text-align: center; font-size: 0.9rem; font-weight: 700;
}

/* ---------- Ekranlar ---------- */
.ekran {
  display: none;
  height: 100%;
  flex-direction: column;
  padding-inline: clamp(16px, 3vw, 72px);
  padding-block: 1.2rem 0;
}
.ekran.aktif { display: flex; }

.ust {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding-bottom: 1.4rem;
}
.logo { display: flex; align-items: baseline; gap: 0.6rem; margin-right: auto; line-height: 1; }
.logo-ad { font-family: var(--f-logo); font-size: 2.3rem; color: var(--hardal); }
.logo-alt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--soluk); }
.ust-eylem { display: flex; gap: 0.6rem; }

/* ---------- Butonlar ---------- */
.btn {
  background: var(--yuzey2); color: var(--yazi);
  border: 0; border-radius: var(--r);
  padding: 0.5em 1.1em;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--yuzey3); }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn-ana { background: var(--hardal); color: var(--hardal-yazi); font-weight: 700; }
.btn-ana:hover { background: #ecca72; }
.btn-ikon { padding-inline: 0.75em; }
.btn-buyuk { font-size: 1.5rem; min-width: 3.2rem; }
.btn-geri { background: transparent; color: var(--soluk); padding-inline: 0.6em; }
.btn-geri:hover { background: var(--yuzey2); color: var(--yazi); }

.mod { display: inline-flex; background: var(--yuzey); border-radius: var(--r); padding: 0.2rem; gap: 0.2rem; }
.mod-btn {
  background: transparent; border: 0; border-radius: calc(var(--r) - 0.15rem);
  padding: 0.4em 0.9em; cursor: pointer; color: var(--soluk);
}
.mod-btn.secili { background: var(--yazi); color: var(--zemin); font-weight: 700; }
.mod-btn small { font-weight: 400; opacity: 0.8; }

.tog.acik { background: var(--yazi); color: var(--zemin); font-weight: 700; }

/* Odak: TV'de tek bakışta görünen hardal halka */
.f:focus { outline: 4px solid var(--hardal); outline-offset: 3px; }

/* ---------- Ana sayfa ---------- */
.raflar {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 2.4rem;
  padding-bottom: 2rem;
  scroll-padding-block: 2rem;
  scrollbar-color: var(--yuzey3) transparent;
}

/* Üst kartlar: bugünün pratiği · devam et · bu hafta */
.ust-kartlar {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1.4rem; align-items: stretch;
}
.pratik-kart {
  background: var(--yuzey2); border-radius: var(--r); padding: 1.3rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.pratik-kart .eyebrow { color: var(--hardal); }
.pratik-baslik { font-family: var(--f-baslik); font-weight: 800; font-size: 2.3rem; line-height: 1; }
.pratik-plan { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.pratik-plan li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.6rem; align-items: baseline; }
.pratik-plan span { color: var(--soluk); font-size: 0.85rem; }
.pratik-plan b { font-weight: 700; }
.pratik-alt { margin-top: auto; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; padding-top: 0.5rem; }
.pratik-basla { font-size: 1.1rem; padding-inline: 1.4em; }

.devam-kart {
  display: flex; flex-direction: column;
  background: var(--yuzey); border: 0; border-radius: var(--r); overflow: hidden;
  padding: 0; text-align: left; cursor: pointer;
  transition: transform 140ms ease;
}
.devam-kart:focus, .devam-kart:hover { transform: scale(1.02); }
.devam-kart img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.devam-metin { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1.1rem 1rem; }
.devam-ad { font-family: var(--f-baslik); font-weight: 800; font-size: 1.6rem; line-height: 1.05; text-wrap: balance; }
.devam-alt { color: var(--soluk); font-size: 0.85rem; }

.genel {
  background: var(--yuzey); border-radius: var(--r); padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.genel-not { color: var(--soluk); font-size: 0.9rem; }
.genel-not b { color: var(--yazi); }
.gunler { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.gun { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.7rem; color: var(--soluk); }
.gun i { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--yuzey3); display: block; }
.gun.dolu i { background: var(--yesil); }
.gun.bugun { color: var(--yazi); font-weight: 700; }
.gun.bugun i { box-shadow: 0 0 0 2px var(--yazi); }
.ogrenilen { margin-top: auto; display: flex; flex-direction: column; gap: 0.4rem; }
.cubuk { height: 0.5rem; border-radius: 1rem; background: var(--yuzey3); overflow: hidden; }
.cubuk span { display: block; height: 100%; background: var(--yesil); border-radius: 1rem; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--soluk); font-weight: 700; }

.raf-bas { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.raf-no { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hardal); }
.raf-ad { font-family: var(--f-baslik); font-weight: 800; font-size: 1.75rem; margin: 0; line-height: 1.1; }
.raf-alt { color: var(--soluk); font-size: 0.9rem; }
.raf-ilerleme { margin-left: auto; color: var(--soluk); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.raf-satir {
  display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem 0.5rem 0.9rem 0.3rem;
  scroll-padding-inline: 3rem; scrollbar-width: thin; scrollbar-color: var(--soluk) var(--yuzey);
}
.raf-satir::-webkit-scrollbar { height: 8px; }
.raf-satir::-webkit-scrollbar-track { background: var(--yuzey); border-radius: 8px; }
.raf-satir::-webkit-scrollbar-thumb { background: var(--soluk); border-radius: 8px; }

/* Rafın devamı olduğunu gösteren kenar solması ve ok düğmeleri */
.raf-kap { position: relative; }
.raf-kap::before, .raf-kap::after {
  content: ""; position: absolute; top: 0; bottom: 0.9rem; width: 5rem; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity 150ms ease;
}
.raf-kap::before { left: 0; background: linear-gradient(to right, var(--zemin), transparent); }
.raf-kap::after { right: 0; background: linear-gradient(to left, var(--zemin), transparent); }
.raf-kap.var-sol::before, .raf-kap.var-sag::after { opacity: 1; }
.raf-ok {
  position: absolute; top: calc(50% - 0.45rem); transform: translateY(-50%); z-index: 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--yuzey3); color: var(--yazi); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 150ms ease;
}
.raf-ok:hover { background: var(--hardal); color: var(--hardal-yazi); }
.raf-ok.sol { left: 0.3rem; }
.raf-ok.sag { right: 0.3rem; }
.raf-kap.var-sol .raf-ok.sol, .raf-kap.var-sag .raf-ok.sag { opacity: 1; pointer-events: auto; }

.kart {
  flex: 0 0 auto; width: 16rem;
  background: var(--yuzey); border: 0; border-radius: var(--r);
  padding: 0; overflow: hidden; text-align: left; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 140ms ease;
}
.kart:focus, .kart:hover { transform: scale(1.04); }
.kart-resim { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.kart-resim img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kart-govde { padding: 0.65rem 0.9rem 0.85rem; display: flex; flex-direction: column; gap: 0.1rem; }
.kart-ad { font-family: var(--f-baslik); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.kart-tr { color: var(--soluk); font-size: 0.85rem; }
.rozet {
  position: absolute; bottom: 0.45rem; left: 0.45rem;
  font-size: 0.72rem; font-weight: 700;
  background: rgba(20, 17, 14, 0.82); color: var(--yazi);
  border-radius: 0.3rem; padding: 0.1em 0.5em;
}
.kart.tamam .kart-ad::after { content: " ✓"; color: var(--yesil); }

.kart-seri { width: 19rem; background: var(--yuzey2); }
.kart-seri .kart-govde { padding: 1rem 1.1rem; gap: 0.35rem; }
.kart-seri .kart-ad { font-size: 1.55rem; color: var(--hardal); }
.seri-akis { color: var(--soluk); font-size: 0.78rem; line-height: 1.4; }

/* ---------- Ders ---------- */
.seri-serit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 0.9rem; }
.seri-ad { font-family: var(--f-baslik); font-weight: 800; font-size: 1.3rem; }
.seri-noktalar { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.seri-nokta { width: 2.2rem; height: 0.4rem; border-radius: 1rem; background: var(--yuzey3); }
.seri-nokta.gecti { background: var(--soluk); }
.seri-nokta.simdi { background: var(--hardal); }
.seri-tekrar { margin-left: auto; color: var(--soluk); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* Video ekranın yaklaşık dörtte üçü */
.ders-izgara {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1.4rem;
}
.video-kolon { display: flex; flex-direction: column; gap: 0.8rem; min-height: 0; }
.video-kutu {
  position: relative; width: 100%; max-width: 100%;
  aspect-ratio: 16 / 9; max-height: calc(100vh - 10.5rem);
  background: #000; border-radius: var(--r); overflow: hidden;
}
.video-kutu iframe, #oynatici { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-kutu.ayna iframe { transform: scaleX(-1); }
.video-hata {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.8rem;
  align-items: center; justify-content: center; text-align: center; padding: 2rem;
  background: var(--yuzey); font-size: 1.1rem;
}
.video-hata a { color: var(--hardal); font-weight: 700; }

.siradaki {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  background: rgba(20, 17, 14, 0.95); text-align: center; padding: 1rem;
}
.siradaki-etiket { text-transform: uppercase; letter-spacing: 0.3em; color: var(--soluk); font-size: 0.9rem; font-weight: 700; }
.siradaki-ad { font-family: var(--f-baslik); font-weight: 800; font-size: 3.4rem; line-height: 1.05; text-wrap: balance; }
.siradaki-tr { color: var(--soluk); font-size: 1.2rem; }
.siradaki-sayac { font-family: var(--f-baslik); font-weight: 800; font-size: 5rem; color: var(--hardal); line-height: 1; margin-top: 0.4rem; }

.kontrol { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.kontrol .btn { font-size: 0.9rem; padding-inline: 0.85em; }
.hiz { display: inline-flex; gap: 0.25rem; }
.hiz-btn.secili { background: var(--yazi); color: var(--zemin); font-weight: 700; }

.panel {
  background: var(--yuzey); border-radius: var(--r); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.6rem; min-height: 0; overflow-y: auto;
}
.panel-ust { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.panel-ust .eyebrow { color: var(--hardal); }
.hareket-ad {
  font-family: var(--f-baslik); font-weight: 800; font-size: 2.2rem; line-height: 1.02;
  margin: 0.1rem 0 0; text-wrap: balance;
}
.hareket-tr { margin: 0; font-size: 1.05rem; color: var(--soluk); }
.cipler { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.cip { font-size: 0.75rem; padding: 0.15em 0.6em; border-radius: 1rem; background: var(--yuzey2); color: var(--soluk); }
.cip-vurus { color: var(--yazi); font-weight: 700; }
.cip-solo { color: var(--yesil); }

.adimlar { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.adimlar li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.7rem; align-items: baseline; }
.adim-say {
  font-family: var(--f-baslik); font-weight: 800; font-size: 1.4rem; color: var(--hardal);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.adim-say.yazi { font-family: var(--f-metin); font-weight: 700; font-size: 0.72rem; color: var(--soluk); text-transform: uppercase; letter-spacing: 0.06em; }
.adim-ne { font-size: 0.95rem; }

.panel-alt { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.8rem; }
.panel-alt .btn { text-align: left; }
.ogrendim.acik { background: var(--yesil); color: #10261a; font-weight: 700; }

/* ---------- Ritim ---------- */
.ritim-baslik { font-family: var(--f-baslik); font-weight: 800; font-size: 2rem; margin: 0 auto 0 0; }
/* Sayım kutuları hep tek satırda kalır; ekranın genişliğine ve yüksekliğine göre küçülür.
   Alan, içeriğinden küçük olamaz: sığmazsa ekran kayar, alttaki video kutuların önüne geçmez. */
.sayim {
  flex: 1 0 auto;
  display: flex; align-items: center; justify-content: center; gap: min(0.7rem, 0.8vw); flex-wrap: nowrap;
  padding-block: 0.6rem;
}
.vurus {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  width: min(8.5rem, 8.6vw); height: min(11rem, 20vh); border-radius: var(--r);
  background: var(--yuzey); flex-shrink: 0;
  transition: transform 60ms linear;
}
.vurus-c { font-family: var(--f-baslik); font-weight: 800; font-size: min(5.5rem, 5.6vw, 10vh); line-height: 1; }
.vurus-t { font-size: min(0.95rem, 1.1vw, 1.9vh); color: var(--soluk); text-transform: uppercase; letter-spacing: 0.1em; }
.vurus.ve { width: min(5rem, 5vw); height: min(8rem, 14vh); background: transparent; }
.vurus.ve .vurus-c { font-size: min(3.4rem, 3.5vw, 6.5vh); color: var(--soluk); }
#ritim { overflow-y: auto; }
.vurus.yan { background: var(--hardal); transform: translateY(0.35rem); }
.vurus.yan .vurus-c, .vurus.yan .vurus-t { color: var(--hardal-yazi); }
.ritim-not { text-align: center; margin: 0.6rem auto; max-width: 46rem; color: var(--soluk); }
.ritim-not b { color: var(--yazi); }
.ritim-not.kucuk { font-size: 0.85rem; }
.ritim-kontrol { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.bpm { display: flex; flex-direction: column; align-items: center; min-width: 6rem; }
.bpm span { font-family: var(--f-baslik); font-weight: 800; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.bpm small { color: var(--soluk); letter-spacing: 0.2em; font-size: 0.72rem; }

/* ---------- Pencereler ---------- */
.perde {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.65);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pencere {
  background: var(--yuzey); border-radius: calc(var(--r) * 1.5); padding: 1.6rem 1.8rem;
  width: min(44rem, 100%); max-height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.pencere h2 { font-family: var(--f-baslik); font-weight: 800; font-size: 2.2rem; margin: 0; }
.pencere-alt { margin: 0; color: var(--soluk); }
.secim { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.secim-etiket { min-width: 9rem; color: var(--soluk); }
.pencere-onizleme {
  margin: 0; padding: 0.9rem 1rem; background: var(--zemin); border-radius: var(--r);
  font-size: 0.92rem; color: var(--soluk); line-height: 1.6;
}
.pencere-onizleme b { color: var(--yazi); font-weight: 700; }
.pencere-eylem { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Alt bar ---------- */
.ipucu-bar {
  display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center;
  padding-block: 0.7rem 0.9rem; color: var(--soluk); font-size: 0.78rem;
}
.kaynak { margin-left: auto; }

/* ---------- Dar ekran ---------- */
@media (max-width: 820px) {
  body { overflow: auto; }
  .ekran { height: auto; min-height: 100%; }
  .ders-izgara, .devam, .devam-kart { grid-template-columns: 1fr; }
  .video-kutu { max-height: none; }
  .ipucu-bar { display: none; }
  .kart { width: 12rem; }
  .sayim { flex-wrap: wrap; }
  .vurus { width: 3.6rem; height: 6rem; }
  .vurus-c { font-size: 2.6rem; }
  .vurus.ve { width: 2.4rem; height: 4.6rem; }
  .vurus.ve .vurus-c { font-size: 1.8rem; }
  .vurus-t { font-size: 0.6rem; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Aşama 1 eklemeleri ---------- */
.kart-rastgele { background: var(--yuzey); outline: 2px dashed var(--yuzey3); outline-offset: -2px; }
.kart-rastgele:focus { outline: 4px solid var(--hardal); outline-offset: 3px; }

.kart-alistirma .kart-sayim {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 0.6rem;
  background: var(--yuzey2); text-align: center;
}
.kart-sayim span { font-family: var(--f-baslik); font-weight: 800; font-size: 1.7rem; color: var(--hardal); line-height: 1.1; word-spacing: 0.15em; }

/* Pratik oturumu şeridi */
.oturum-serit {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--yuzey2); border-radius: var(--r); padding: 0.55rem 0.6rem 0.55rem 1rem;
  margin-bottom: 0.9rem;
}
.oturum-ad { font-family: var(--f-baslik); font-weight: 800; font-size: 1.2rem; color: var(--hardal); }
.ot-adimlar { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.ot-adim { font-size: 0.75rem; padding: 0.15em 0.65em; border-radius: 1rem; background: var(--yuzey3); color: var(--soluk); }
.ot-adim.gecti { color: var(--yesil); }
.ot-adim.simdi { background: var(--hardal); color: var(--hardal-yazi); font-weight: 700; }
.ot-bilgi { font-size: 0.9rem; }
.ot-sure { margin-left: auto; font-family: var(--f-baslik); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* Video köşesindeki durum yazısı */
.video-rozet {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  background: rgba(20, 17, 14, 0.85); color: var(--yazi);
  border-radius: 0.4rem; padding: 0.25em 0.7em; font-size: 0.85rem; font-weight: 700;
  font-variant-numeric: tabular-nums; pointer-events: none;
}

.parca-bar {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  background: var(--yuzey); border-radius: var(--r); padding: 0.5rem 0.6rem 0.5rem 0.9rem;
}
.parca-bar .btn { font-size: 0.85rem; }
.parca-yazi { margin-right: auto; font-size: 0.85rem; color: var(--soluk); font-variant-numeric: tabular-nums; }
.parca-yazi b { color: var(--yazi); }

.not-metin {
  margin: 0.2rem 0 0; padding: 0.6rem 0.8rem; border-radius: 0.4rem;
  background: var(--yuzey2); font-size: 0.9rem; white-space: pre-wrap;
}
.not-metin::before { content: "Notun: "; color: var(--hardal); font-weight: 700; }
textarea {
  width: 100%; font: inherit; color: var(--yazi); background: var(--zemin);
  border: 2px solid var(--yuzey3); border-radius: var(--r); padding: 0.7rem 0.9rem; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--hardal); }

/* Ritim: kalıp seçimi */
.ritim-secim { display: flex; flex-direction: column; gap: 0.5rem; }
.secim-satir { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.secim-satir .secim-etiket { min-width: 6.5rem; font-size: 0.85rem; }
.ritim-aciklama { margin: 0.1rem 0 0; color: var(--soluk); font-size: 0.9rem; }
.ritim-bolum { margin: 0.8rem 0 0; text-align: center; font-size: 1.05rem; }
.ritim-bolum b { color: var(--hardal); }
.soluk { color: var(--soluk); }

@media (max-width: 1100px) {
  .ust-kartlar { grid-template-columns: 1fr 1fr; }
  .ust-kartlar .pratik-kart { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .ust-kartlar { grid-template-columns: 1fr; }
}

.parca-hazir { display: inline-flex; gap: 0.3rem; }
.parca-hazir .btn.secili { background: var(--hardal); color: var(--hardal-yazi); font-weight: 700; }

/* ---------- Şarkıyla çalış ---------- */
.sarki-alan {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem; align-items: start; padding-bottom: 1rem;
}
.sarki-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--yuzey); border-radius: var(--r); overflow: hidden; }
.sarki-bos { display: none; }
.sarki-video.bos .sarki-bos {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: 1rem 1.3rem;
}
.sarki-bos p { margin: 0; color: var(--soluk); font-size: 0.92rem; }
.sarki-liste {
  display: flex; flex-direction: column; gap: 0.3rem;
  max-height: 15rem; overflow-y: auto; padding: 0.2rem 0.4rem 0.2rem 0.2rem;
  scrollbar-color: var(--yuzey3) transparent;
}
.sarki-satir {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; text-align: left;
  background: var(--yuzey); border: 0; border-radius: 0.45rem; padding: 0.45rem 0.8rem; cursor: pointer;
}
.sarki-satir:hover { background: var(--yuzey2); }
.sarki-satir.secili { background: var(--yuzey3); box-shadow: inset 3px 0 0 var(--hardal); }
.sarki-ad { font-weight: 700; font-size: 0.95rem; }
.sarki-alt { color: var(--soluk); font-size: 0.75rem; }
.sarki-kontrol { display: flex; flex-direction: column; gap: 0.7rem; }
.sarki-dugmeler { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.sarki-bas { font-size: 1.3rem; padding: 0.55em 1.3em; }
.sarki-bpm { display: flex; align-items: center; gap: 0.8rem; }
.sarki-bpm .bpm span { font-size: 2.6rem; }
.sarki-durum { margin: 0; font-size: 0.92rem; }
.sarki-sigar { margin: 0; font-size: 0.8rem; color: var(--soluk); }
.sekizlikler { display: inline-flex; gap: 0.25rem; vertical-align: middle; margin: 0 0.2rem; }
.sekizlikler i { width: 1.6rem; height: 0.45rem; border-radius: 1rem; background: var(--yuzey3); display: block; }
.sekizlikler i.gecti { background: var(--soluk); }
.sekizlikler i.simdi { background: var(--hardal); }
@media (max-width: 1100px) {
  .sarki-alan { grid-template-columns: 1fr 1fr; }
  .sarki-kontrol { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .sarki-alan { grid-template-columns: 1fr; }
}

/* Yüklenen şarkılar */
.yuklu-kart { display: none; }
.sarki-video.yuklu .yuklu-kart {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: 1rem 1.2rem;
}
.yuklu-ad { font-family: var(--f-baslik); font-weight: 800; font-size: 1.6rem; line-height: 1.1; overflow-wrap: anywhere; }
.yuklu-kart audio { width: 100%; margin-top: 0.4rem; }
.yuklu-bas { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.2rem 0.2rem 0.3rem; font-size: 0.85rem; color: var(--soluk); }
.yuklu-bas b { color: var(--yazi); }
.yuklu-bas .btn { font-size: 0.85rem; padding: 0.35em 0.8em; }
.yuklu-not { margin: 0 0.2rem 0.3rem; font-size: 0.78rem; color: var(--hardal); }
.sarki-satir-kap { display: flex; gap: 0.3rem; }
.sarki-satir-kap .sarki-satir { flex: 1; min-width: 0; }
.sarki-sil { font-size: 0.8rem; padding: 0.3em 0.8em; }
.sarki-sil.onay { background: #8a3a2a; color: var(--yazi); }
.sarki-liste { max-height: 18rem; }
.yuklu-bos { margin: 0.4rem 0.2rem; font-size: 0.85rem; color: var(--soluk); }

/* Rastgele seri önizlemesi: müzik bölümleri */
.onizleme-bolum { display: block; padding: 0.15rem 0; }
.onizleme-bolum + .onizleme-bolum { border-top: 1px solid var(--yuzey3); margin-top: 0.4rem; padding-top: 0.5rem; }
.onizleme-etiket { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hardal); font-weight: 700; }
.onizleme-not { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--hardal); }

/* Şarkıyla çalışırken figürün müzikle hizası */
.ritim-hiza { margin: 0.5rem auto 0; text-align: center; font-size: 1.05rem; max-width: 60rem; min-height: 1.6em; white-space: nowrap; }
.ritim-hiza-not { margin: 0.2rem auto 0; text-align: center; font-size: 0.85rem; color: var(--soluk); max-width: 60rem; }
.hiza { display: inline-block; font-weight: 700; font-size: 0.9rem; padding: 0.1em 0.7em; border-radius: 1rem; margin-right: 0.4rem; min-width: 7.5em; }
.hiza.notr { background: var(--yuzey3); color: var(--yazi); }
.hiza.ok { background: var(--yesil); color: #10261a; }
.hiza.kay { background: var(--hardal); color: var(--hardal-yazi); }
@media (max-width: 820px) { .ritim-hiza { white-space: normal; } }
