/* =====================================================================
   style.css — bio-link sitesi
   Bölümler: değişkenler · temel · arka plan · üst bar · hero · linkler
             · müzik çalar · tam ekran sözler · giriş ekranı · mobil
   ===================================================================== */

/* ---------- Tasarım değişkenleri ---------- */
:root {
  --bg: #07070a;
  --text: #ededf2;
  --muted: rgba(237, 237, 242, 0.56);
  --faint: rgba(237, 237, 242, 0.32);

  /* Cam yüzeyler */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-blur: 18px;

  /* Tek vurgu rengi: soğuk, hafif lila beyaz */
  --accent: #cfd3ff;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px rgba(207, 211, 255, 0.95);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-name: "Anybody", "Unbounded", system-ui, sans-serif; /* isim ve sözler: genişliği değişebilen yazı tipi */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --edge: clamp(16px, 3vw, 32px); /* kenar boşluğu */
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #11121c 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 110%, #0d0d16 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Sayfa kaydırma çubuğu: ince, şeffaf ray; cam gibi parlayan lila tutamaç.
   Üstüne gelince kalınlaşır ve parlar. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 4px solid transparent;           /* kenardan boşluk: çubuk incecik görünür */
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(207, 211, 255, .38), rgba(207, 211, 255, .16)) padding-box;
  min-height: 48px;
}
::-webkit-scrollbar-thumb:hover {
  border-width: 3px;
  background: linear-gradient(180deg, rgba(225, 228, 255, .7), rgba(207, 211, 255, .35)) padding-box;
}
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #e9ecff, rgba(207, 211, 255, .6)) padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; }
/* Firefox: yalnız renk ve incelik ayarlanabiliyor (Chrome'da bunlar
   yukarıdaki özel çizimi ezeceği için sadece Firefox'a uygulanır) */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: rgba(207, 211, 255, .35) transparent; }
}

/* Fare ile tıklamada halka görünmesin, klavyede net görünsün */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }

button { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Ortak ikon butonu */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.icon-btn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn:hover { background: var(--glass-hover); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.icon-btn[hidden] { display: none; }

/* Önceki/sonraki şarkı: oynat butonundan küçük, ikincil */
.skip-btn { width: 32px; height: 32px; }
.skip-btn svg { width: 17px; height: 17px; }

/* ---------- Arka plan ---------- */
.stars {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(190, 198, 255, 0.075), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
/* Dokunmatik cihazlarda imleç ışığı yok */
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Özel imleç (cursor.js) ---------- */
.cursor { display: none; transition: opacity .2s; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none; }
.has-cursor input[type="range"] { cursor: pointer; }
.has-cursor:has(input[type="range"]:hover) .cursor { opacity: 0; }
/* Giriş ekranının kendi imleci var; tam ekran sözlerde imleç gizli */
.has-cursor:has(body.is-intro) .cursor,
.has-cursor:has(.fs.is-open) .cursor { opacity: 0; }

.cursor-blob, .cursor-ghost {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.cursor-blob {
  display: grid;
  place-items: center;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: #fff;
  mix-blend-mode: difference;
  transition: opacity .25s;
}
.cursor-ghost {
  visibility: hidden;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,.25) 55%, transparent 72%);
  filter: blur(.6px);
}
[data-cursor-visible] .cursor-blob { opacity: 1; }
[data-cursor-visible] .cursor-ghost { visibility: visible; }
.cursor-label {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
  color: #000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .18s;
}
[data-cursor-mode="label"] .cursor-label { opacity: 1; transition-delay: 80ms; }

/* ---------- Site iskeleti ---------- */
.site {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--edge);
}
/* İlk ekran: üst bar + isim; altta çalar ve söz şeridi için yer bırakır */
.screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--edge));
  padding-bottom: calc(230px - var(--edge) + env(safe-area-inset-bottom)); /* çalar + söz şeridi */
}

/* ---------- Üst bar ---------- */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.who { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Gök kadranı: minik kara delik + yerel saate göre dönen güneş/ay.
   --turn: günün ne kadarı geçti (0 = gece yarısı, alt; 0.5 = öğle, üst) */
.sky {
  --turn: 0;
  --body: #e9ecff;                    /* gece: soğuk ay ışığı */
  --body-glow: rgba(207, 211, 255, .7);
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0b0b12 0 34%, #12131c 60%, #0a0a0f 100%);
  box-shadow: 0 0 0 1px var(--glass-border), 0 6px 24px rgba(0, 0, 0, .4);
}
.sky.is-day {
  --body: #ffe2b8;                    /* gündüz: sıcak güneş */
  --body-glow: rgba(255, 196, 140, .75);
}
.sky-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* Güneş/ay: gece yarısı en altta, öğlen en üstte */
.sky-orbit {
  position: absolute; inset: 2px;
  border-radius: 50%;
  transform: rotate(calc(var(--turn) * 360deg + 180deg));
  transition: transform 1s linear;
}
.sky-body {
  position: absolute;
  left: 50%; top: 0;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--body);
  box-shadow: 0 0 6px 1px var(--body-glow);
}

.who-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who-city {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.who-clock {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ---------- Discord profil kartı (sağ üst) ---------- */
.dc {
  position: relative;
  isolation: isolate;
  width: min(300px, 58vw);
  padding: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  font-size: 12.5px;
  color: var(--muted);
  animation: dc-in .6s var(--ease-out) both;
}
.dc[hidden], .dc [hidden] { display: none; }
@keyframes dc-in { from { opacity: 0; transform: translateY(-6px); } }

/* İsim plakası (Discord koleksiyonu): kartın arkasında soluk görsel */
.dc-plate {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .24;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}

.dc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Avatar + aksesuar (avatar dekorasyonu avatarın %120'si kadar taşar) */
.dc-ava { position: relative; width: 52px; height: 52px; flex: none; }
.dc-ava-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1a1b24;
}
.dc-deco {
  position: absolute;
  left: -10%; top: -10%;
  width: 120%; height: 120%;
  pointer-events: none;
}
.dc-status {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 3px solid #121219;
  background: #80848e;
  z-index: 1;
}
.dc-status[data-status="online"] { background: #23a55a; }
.dc-status[data-status="idle"]   { background: #f0b232; }
.dc-status[data-status="dnd"]    { background: #f23f43; }

.dc-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
.dc-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Discord'daki renkli isim stili varsa gradyan yazı */
.dc-name.is-styled {
  background: var(--name-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: dc-name 6s linear infinite;
}
@keyframes dc-name { to { background-position: -200% 0; } }
.dc-tag {
  display: inline-flex; align-items: center; gap: 3px;
  flex: none;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
}
.dc-tag img { display: block; }
.dc-user { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Özel durum (Discord'da "Durum ayarla" yazısı) */
.dc-custom { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 2px; color: var(--muted); }
.dc-emoji { width: 15px; height: 15px; flex: none; }
.dc-custom-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* O anki aktivite (oyun, Spotify, izleme …) */
.dc-act {
  display: flex; gap: 11px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--glass-border);
  min-width: 0;
}
.dc-act-art { position: relative; width: 58px; height: 58px; flex: none; }
.dc-act-img {
  width: 100%; height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, .06);
}
/* Görsel yoksa yerine nota/oyun kolu simgesi gibi düz bir kutu */
.dc-act-art:not(:has(.dc-act-img:not([hidden]))) {
  border-radius: 10px;
  background: rgba(255, 255, 255, .06) center / 26px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ededf2' stroke-opacity='.5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='11' rx='5'/%3E%3Cpath d='M7 11v3M5.5 12.5h3'/%3E%3Ccircle cx='16' cy='11.5' r='.6' fill='%23ededf2'/%3E%3Ccircle cx='18' cy='13.5' r='.6' fill='%23ededf2'/%3E%3C/svg%3E");
}
.dc-act-small {
  position: absolute;
  right: -4px; bottom: -4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #121219;
  background: #121219;
}
.dc-act-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.dc-act-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-act-text > span:empty { display: none; }
.dc-act-kind {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.dc-act-name { font-weight: 600; color: var(--text); font-size: 13px; }
.dc-act-time { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--faint); }
.dc-bar {
  height: 3px;
  margin: 5px 0 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.dc-bar-fill { display: block; height: 100%; width: 0; background: var(--text); border-radius: inherit; }

/* ---------- Hero (isim + bio + linkler) ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 8vh, 80px) 0 clamp(16px, 4vh, 40px);
}
.hero:focus-visible { box-shadow: none; }

/* Akılda kalan öğe: geniş, ağır, beyazdan griye akan dev isim */
.name-wrap { position: relative; max-width: 100%; }
.name {
  margin: 0;
  font-family: var(--font-name);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(64px, min(18.5vw, 26svh), 236px);
  line-height: .92;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  background: linear-gradient(#fff 35%, #9a9a9a 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  padding-inline: .06em; /* gradyan harf kenarını kesmesin */
}
/* Sıvı katman hazırsa yazıyı o çizer; HTML yazısı yerini ve erişilebilirliği korur */
.name[data-liquid] { -webkit-text-fill-color: transparent; background: none; }
.liquid {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.liquid[hidden] { display: none; }

/* İsim noktalardan oluşurken gerçek yazı gizli; patlamayla bulanıklıktan netleşerek belirir */
.name { transition: opacity .35s var(--ease-out); }
.name.is-dots, .name.is-dots + .liquid { opacity: 0; transition: none; }
.name.is-pop, .name.is-pop + .liquid { animation: condense 1.1s var(--ease-out) both; }
@keyframes condense {
  0%   { opacity: 0; filter: blur(12px); scale: 1.03; }
  100% { opacity: 1; filter: none; scale: 1; }
}

.name-fx {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 3; /* sitenin üstünde, giriş ekranının altında */
  pointer-events: none;
}
.name-fx[hidden] { display: none; }


.bio {
  margin: clamp(16px, 2.6vh, 26px) 0 0;
  min-height: 1.6em; /* yazılırken sayfa zıplamasın */
  max-width: 34ch;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--accent);
  border-radius: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Link çubuğu ---------- */
/* Koyu hap şeklinde dock: ikon + yazı, aralarında ince ayraç çizgisi */
.links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: clamp(28px, 4.5vh, 44px);
  padding: 5px;
  border-radius: 999px;
  background: rgba(18, 18, 20, .72);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .075),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 18px 40px -24px rgba(0, 0, 0, .9);
}
.links:not(:has(.dock-item)) { display: none; }

.dock-glow {
  position: absolute;
  left: 0; top: 0;
  width: var(--gw, 0);
  height: var(--gh, 0);
  transform: translate(var(--gx, 0), var(--gy, 0));
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease-expo), width .45s var(--ease-expo), opacity .25s ease;
}
.links[data-glow] .dock-glow { opacity: 1; }
.links.no-glow-anim .dock-glow { transition: none; }

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, scale .16s var(--ease-out);
}
.dock-item + .dock-item::before {
  content: "";
  position: absolute;
  left: -2px; top: 30%;
  width: 1px; height: 40%;
  background: rgba(255, 255, 255, .09);
}
.dock-item:hover, .dock-item:focus-visible { color: var(--text); }
.dock-item:focus-visible { outline-offset: -2px; }
.dock-item:active { scale: .96; }
.dock-ico { width: 16px; height: 16px; flex: none; }
.dock-ico--line, .dock-trail {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock-trail { width: 13px; height: 13px; flex: none; color: var(--faint); }

/* Dar ekranda sadece ikonlar (yazılar ekran okuyucuda kalır) */
@media (max-width: 560px) {
  .dock-label, .dock-trail {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .dock-item { justify-content: center; min-width: 48px; min-height: 44px; padding: 0 12px; }
}

/* ---------- Şimdi çalıyor (aşağı kaydırınca) ----------
   --np-p: 0 = ilk ekran, 1 = bölüm tam görünüyor (JS kaydırmaya göre ayarlar).
   Alttaki çalar aşağı inip kaybolurken kapağı buradaki büyük kapağa uçar,
   yazılar ve sözler sırayla belirir. */
:root { --np-p: 0; }
html { scroll-snap-type: y proximity; }
.screen, .np { scroll-snap-align: start; }

.np {
  padding-top: var(--edge);
}
.np-card {
  --np-rgb: 40 42 60;               /* kapağın baskın rengi (JS) */
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 64px);
  width: min(1180px, 100%);
  height: calc(100svh - 2 * var(--edge));
  min-height: 460px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 52px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #0c0c13;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}
/* Kapağın renginden gelen Spotify tarzı arka plan */
.np-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(var(--np-rgb) / .75), transparent 70%),
    radial-gradient(90% 80% at 100% 100%, rgb(var(--np-rgb) / .35), transparent 70%),
    linear-gradient(180deg, rgb(var(--np-rgb) / .25), rgba(8, 8, 12, .85));
  transition: background .8s;
}
.np-bg::after { /* hafif ritim ışığı */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 30% 40%, rgba(255, 255, 255, .06), transparent 70%);
  opacity: var(--np-glow, 0);
}

.np-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 22px);
  min-width: 0;
}
.np-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(140deg, #2b2c3d, #12131b);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
.np-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-cover img[hidden] { display: none; }
/* Kapak uçarken asıl yerdeki kapaklar gizli (uçan kopya görünür) */
.is-flying .np-cover img, .is-flying .player-cover img { visibility: hidden; }
.is-flying .np-cover { background: none; box-shadow: none; }

.np-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.np-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.np-title {
  font-family: var(--font-name);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-artist { margin-top: 4px; font-size: 15px; color: var(--muted); }

.np-bar {
  position: relative;
  height: 16px;
  cursor: pointer;
  touch-action: none;
}
.np-bar::before, .np-bar-fill {
  content: "";
  position: absolute; left: 0; top: 50%;
  height: 4px; margin-top: -2px;
  border-radius: 4px;
}
.np-bar::before { right: 0; background: rgba(255, 255, 255, .18); }
.np-bar-fill { width: 0; background: #fff; }
.np-bar-fill::after { /* tutamaç: üstüne gelince görünür */
  content: "";
  position: absolute; right: -6px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.np-bar:hover .np-bar-fill::after, .np-bar:focus-visible .np-bar-fill::after { opacity: 1; }
.np-times {
  display: flex; justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}
.np-controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.np-controls .play-btn { width: 54px; height: 54px; }
.np-controls .play-btn svg { width: 22px; height: 22px; }
.np.is-playing .play-btn .i-play { display: none; }
.np.is-playing .play-btn .i-pause { display: block; }

/* Sözler: Spotify'daki gibi büyük, kalın; geçenler soluk beyaz, sıradakiler koyu */
.np-lyrics {
  position: relative;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 30vh 4px 40vh;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 82%, transparent);
          mask: linear-gradient(transparent, #000 14%, #000 82%, transparent);
}
.np-lyrics::-webkit-scrollbar { display: none; }
.np-line {
  margin: 0 0 .5em;
  font-family: var(--font-name);
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, .26);
  cursor: pointer;
  transform-origin: 0 50%;
  transition: color .35s var(--ease-out), transform .5s var(--ease-expo), filter .5s var(--ease-out);
}
.np-line:hover { color: rgba(255, 255, 255, .7); }
.np-line.is-past { color: rgba(255, 255, 255, .55); }
.np-line.is-now { color: rgba(255, 255, 255, .5); transform: scale(1.03); }
.np-w { transition: color .25s var(--ease-out), text-shadow .4s; }
.np-line.is-now .np-w.on { color: #fff; text-shadow: 0 0 24px rgba(255, 255, 255, .35); }
.np-empty { color: var(--faint); font-size: 15px; }

/* Kaydırdıkça sırayla belirme: --k öğenin sırası */
.np-in, .np-lyrics {
  --a: clamp(0, calc((var(--np-p) - .4 - var(--k, 4) * .07) * 3.2), 1);
}
.np-in { opacity: var(--a); translate: 0 calc((1 - var(--a)) * 28px); }
/* Sözler kutusu yerinde durur (uçan satırın hedefi kaymasın); satırlar belirir.
   Şu anki satırı alttaki şeritten uçarak gelen satır temsil eder (--now-a). */
.np-lyrics { --k: 4; --now-a: 1; }
.np-line { opacity: var(--a); }
.np-line.is-now { opacity: var(--now-a); }
.mini-lyric .kl[data-role="next"] { opacity: calc(.8 * var(--next-a, 1)); }
/* Uçarken satır listedeki gibi sola hizalı kırılır */
.mini-lyric.is-flying .kl { text-align: left; text-wrap: wrap; }

/* Kapağın alttan büyük kapağa uçan kopyası */
.np-fly {
  position: fixed;
  left: 0; top: 0;
  z-index: 11;
  object-fit: cover;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, border-radius;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
}
.np-fly[hidden] { display: none; }

@media (max-width: 760px) {
  .np-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
  }
  .np-side {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px 16px;
    align-items: center;
  }
  .np-cover { grid-row: span 2; border-radius: 10px; }
  .np-seek, .np-controls { grid-column: 1 / -1; }
  .np-title { font-size: 22px; }
  .np-line { font-size: 24px; }
  .np-lyrics { padding-top: 12vh; }
}

/* ---------- Biyografi ---------- */
.about {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(40px, 10vh, 120px) 0;
  text-align: center;
}
.about-title {
  position: relative;
  width: 100%;
  margin: 0;
  font-size: inherit;
  transition: transform 1s var(--ease-expo);
}
/* Noktalı isim: ölçüleri JS ayarlar */
.about-dots { display: block; width: 100%; height: clamp(120px, 26vw, 300px); touch-action: pan-y; }

/* İsim toplanınca: isim biraz yukarı çıkar, balon altında açılır.
   Balon başta yer kaplamaz (sayfa zıplamasın), isimle birlikte yukarı kayar. */
.about.is-open .about-title { transform: translateY(calc(-1 * clamp(40px, 9vh, 90px))); }

.about-bubble {
  --bub: #0e0f17;
  position: relative;
  margin-top: calc(-1 * clamp(40px, 9vh, 90px) + 18px);
  width: min(560px, 100%);
  text-align: left;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 23, 34, .92), rgba(12, 13, 20, .92));
  border: 1px solid rgba(207, 211, 255, .14);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: 50% 0;
  opacity: 0;
  transform: translateY(-10px) scale(.86);
  filter: blur(6px);
  transition: opacity .45s var(--ease-out), transform .7s var(--ease-expo), filter .5s var(--ease-out);
  transition-delay: .25s;
}
/* Konuşma balonu kuyruğu: yukarıdaki isme doğru */
.about-bubble::before {
  content: "";
  position: absolute;
  left: 50%; top: -7px;
  width: 14px; height: 14px;
  margin-left: -7px;
  background: rgb(22, 23, 34);
  border-left: 1px solid rgba(207, 211, 255, .14);
  border-top: 1px solid rgba(207, 211, 255, .14);
  border-radius: 3px 0 0 0;
  transform: rotate(45deg);
}
.about.is-open .about-bubble { opacity: 1; transform: none; filter: none; }

/* Editör başlığı: üç nokta + dosya adı */
.ab-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ab-head i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ab-head i:nth-child(1) { background: #ff6b81; }
.ab-head i:nth-child(2) { background: #ffcf6b; }
.ab-head i:nth-child(3) { background: #7be3a2; }
.ab-file { margin-left: 8px; font: 500 12px/1 ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace; color: var(--faint); }

.ab-code {
  display: flex;
  align-items: baseline;
  margin: 0;
  padding: 16px 18px 18px 0;
  font: 500 clamp(13px, 1.5vw, 15px)/1.6 ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color: #d7dbf5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ab-ln {
  flex: none;
  width: 42px;
  padding-right: 14px;
  text-align: right;
  color: rgba(255, 255, 255, .2);
  user-select: none;
}
.ab-code code { flex: 1; min-width: 0; font: inherit; }
/* Sözdizimi renkleri */
.tk-k { color: #c792ea; }   /* anahtar kelime */
.tk-v { color: #82aaff; }   /* değişken */
.tk-p { color: #89ddff; }   /* noktalama */
.tk-s { color: #c3e88d; }   /* yazı */
.tk-c { color: #5c6370; font-style: italic; } /* yorum */
.ab-caret {
  display: inline-block;
  width: .55em; height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--accent);
  opacity: .8;
  animation: blink 1.05s steps(1) infinite;
}

/* ---------- Bildirim ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--edge) + 4px);
  z-index: 60;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(20, 21, 30, .9);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Müzik çalar ---------- */
.player {
  position: fixed;
  left: 50%;
  bottom: calc(var(--edge) + env(safe-area-inset-bottom));
  z-index: 10;
  width: min(740px, calc(100% - 2 * var(--edge)));
  transform: translateX(-50%);
}

/* ---------- Söz şeridi (çaların üstü) ----------
   Şu anki satır ortada büyük; sıradaki satır altında küçük ve soluk bekler.
   Satır değişince eskisi yukarı kayıp bulanıklaşarak söner, sıradaki büyüyüp yerine geçer.
   Kelimenin zamanı gelince harfleri soldan sağa sırayla kalınlaşıp genişler. */
.mini-lyric {
  --fs: clamp(21px, 2.35vw, 34px);
  --lh: 1.12;
  --rows: 2;
  --zone: calc(var(--fs) * var(--lh) * var(--rows)); /* şu anki satırın alanı (2 satıra sarabilir) */
  position: relative;
  isolation: isolate;
  width: min(100%, 940px);
  height: calc(var(--zone) + var(--fs) * 1.35);
  margin: 0 auto 10px;
  font-size: var(--fs);
  color: var(--text);
  pointer-events: none;
}
.kl {
  position: absolute;
  top: 0;
  inset-inline: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--font-name);
  letter-spacing: -0.02em;
  line-height: var(--lh);
  text-transform: lowercase; /* lang="tr" sayesinde I → ı doğru küçülür */
  text-align: center;
  text-wrap: balance;
  transform-origin: 50% 0;
  opacity: 0;
  transition: transform .52s var(--ease-expo), opacity .36s var(--ease-out), filter .36s var(--ease-out);
}
.kl[data-role="current"] { opacity: 1; transform: translateY(calc(var(--zone) / 2 - 50%)); }
.kl[data-role="next"] {
  opacity: .8;
  transform: translateY(calc(var(--zone) + .25em)) scale(.58);
  animation: lr-arrive .42s var(--ease-out) .24s both;
}
.kl[data-role="next"] .kc { opacity: .6; }
.kl[data-role="prev"] {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(calc(var(--zone) / 2 - 50% - .45em));
  transition-duration: .36s;
}
.kl[data-role="prev"] .kc { font-stretch: 50%; transition-duration: .36s; transition-delay: calc(var(--i, 0) * 10ms); }
@keyframes lr-arrive { from { opacity: 0; } }
/* Duraklatınca satır söner */
.player:not(.is-playing) .kl[data-role="current"] { opacity: .45; }

/* Kelime: görünmez "kalın" kopyası yeri ayırır, harfler genişlese de satır zıplamaz */
.kw { display: inline-grid; vertical-align: bottom; white-space: nowrap; }
.kw-size, .kw-ink { grid-area: 1 / 1; white-space: pre; }
.kw-size { visibility: hidden; font-weight: 760; font-stretch: 118%; }
.kw-ink { contain: size; display: flex; justify-content: center; }
.kc {
  display: inline-block;
  opacity: .34;
  font-weight: 420;
  font-stretch: 80%;
  translate: 0 .07em;
  transition-property: font-stretch, font-weight, opacity, translate;
  transition-duration: .48s, .48s, .22s, .48s;
  transition-timing-function: var(--ease-expo), var(--ease-expo), var(--ease-out), var(--ease-expo);
}
.kw.on .kc {
  opacity: 1; font-weight: 760; font-stretch: 118%; translate: 0;
  transition-delay: calc(var(--i, 0) * var(--step, 30ms)); /* soldan sağa harf harf */
}
.kl.is-meta .kc { opacity: .7; } /* sözler başlamadan önce şarkı adı */

/* Çalarken satırın arkasında hafif bir ışık */
.lr-light {
  position: absolute;
  z-index: -1;
  inset-inline: -10%;
  top: calc(var(--zone) * -.4);
  height: calc(var(--zone) * 1.8);
  background: radial-gradient(50% 50%, rgba(255, 255, 255, .07), transparent 72%);
  opacity: 0;
  transition: opacity .7s;
}
.player.is-playing .lr-light { opacity: 1; }

.player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  border-radius: 999px;
  background: rgba(14, 15, 22, .55);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 60px rgba(0, 0, 0, .45);
}

.player-cover {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(140deg, #2b2c3d, #12131b);
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-cover img[hidden] { display: none; }
/* Çalarken kapak yavaşça döner (plak hissi) */
.player.is-playing .player-cover img { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 128px;
  flex: none;
  line-height: 1.25;
}
.player-title, .player-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-title { font-size: 13px; font-weight: 600; }
.player-artist { font-size: 12px; color: var(--faint); }

.play-btn { width: 40px; height: 40px; background: rgba(255, 255, 255, .92); color: #0b0b10; }
.play-btn:hover { background: #fff; color: #000; }
.play-btn svg { width: 18px; height: 18px; stroke: none; }
.play-btn .i-pause { display: none; }
.is-playing .play-btn .i-play,
.fs.is-playing .play-btn .i-play { display: none; }
.is-playing .play-btn .i-pause,
.fs.is-playing .play-btn .i-pause { display: block; }

.wave {
  position: relative;
  flex: 1;
  min-width: 60px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  touch-action: none; /* sürüklerken sayfa kaymasın */
}
.wave canvas { display: block; width: 100%; height: 100%; }
.wave[aria-disabled="true"] { cursor: default; opacity: .4; }

.time {
  flex: none;
  min-width: 78px;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}

.volume { display: flex; align-items: center; flex: none; }
.volume .vol-x { display: none; }
.volume.is-muted .vol-waves { display: none; }
.volume.is-muted .vol-x { display: block; }

/* Ses kaydırıcısı */
.vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 72px; height: 18px;
  margin: 0 4px 0 0;
  background: transparent;
  cursor: pointer;
  --v: 60%;
}
.vol-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.85) var(--v), rgba(255,255,255,.16) var(--v));
}
.vol-range::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.16); }
.vol-range::-moz-range-progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.85); }
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 0;
}
.vol-range::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 0; }
.vol-range:focus-visible { box-shadow: none; }
.vol-range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }
.vol-range:focus-visible::-moz-range-thumb { box-shadow: var(--focus); }

/* Müzik dosyası yoksa çalar sade kalır */
.player.is-missing .time,
.player.is-missing .volume { opacity: .35; pointer-events: none; }

/* ---------- Tam ekran söz modu ---------- */
.fs {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #050507;
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.fs[hidden] { display: none; }
/* Sözlere odaklanma: imleç gizli (parçacıkları itmeye devam eder). Esc ile çıkınca geri gelir. */
.fs, .fs * { cursor: none; }
.fs.is-open { opacity: 1; }

/* Albüm kapağı: dev, bulanık, karartılmış arka plan */
.fs-bg {
  position: absolute;
  inset: -10%;
  background-color: #10111a;
  background-size: cover;
  background-position: center;
  filter: blur(70px) saturate(130%) brightness(.45);
  transform: scale(1.1);
}
.fs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 7, .7) 75%);
}

.fs-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
}

.fs-top, .fs-bottom {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  padding: var(--edge);
  gap: 14px;
}
.fs-top { top: 0; justify-content: space-between; }
.fs-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fs-cover {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
  box-shadow: 0 10px 30px -10px #000;
}
.fs-cover[hidden] { display: none; }
.fs-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.fs-title { font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.fs-artist { font-size: 13px; color: var(--faint); }
.fs-close { background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); width: 42px; height: 42px; }

/* Alt bölüm: söz şeridi + oynat, süre, satır işaretli ilerleme çubuğu */
.fs-bottom {
  bottom: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: min(100%, 880px);
  margin-inline: auto;
  padding-bottom: calc(var(--edge) + env(safe-area-inset-bottom));
}
.fs-controls { display: flex; align-items: center; gap: 12px; }
.fs-time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 34px; text-align: center; }
.fs-seek { position: relative; flex: 1; height: 24px; }
.fs-seek-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}
.fs-seek-fill { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, .85); }
.fs-ticks { position: absolute; inset: 0; }
.fs-ticks i {
  position: absolute; top: 50%;
  width: 1px; height: 9px;
  translate: 0 -50%;
  background: rgba(255, 236, 190, .35);
  transition: background-color .3s;
}
.fs-ticks i.on { background: rgba(255, 236, 190, .9); }
.fs-esc {
  font-family: var(--font-body);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--muted);
}

/* Söz şeridi tam ekranda: tek satır, küçük; sıradaki satır gizli */
.fs-sub .mini-lyric { --fs: clamp(16px, 1.6vw, 21px); --rows: 1; margin: 0 auto 4px; }
.fs-sub .kl[data-role="next"] { opacity: 0; animation: none; }
.fs:not(.is-playing) .fs-sub .kl[data-role="current"] { opacity: .55; }
.fs-sub .lr-light { display: none; }

/* ---------- Giriş ekranı ----------
   Tam ekran uzay: yıldızlar ve kara delik #introCanvas'a JS ile çizilir.
   --p: 0–1 basılı tutma ilerlemesi (JS günceller). */
.intro {
  --p: 0;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  /* Derin uzay: çok hafif iki nebula lekesi + neredeyse siyah zemin */
  background:
    radial-gradient(60% 50% at 22% 28%, rgba(70, 78, 140, .16), transparent 70%),
    radial-gradient(55% 45% at 80% 75%, rgba(120, 70, 130, .12), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, #08080e 0%, #030305 100%);
  touch-action: none; /* mobilde basılı tutarken sayfa kaymasın/zoom olmasın */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 1s var(--ease-out);
}
/* Fareyle gezilen cihazlarda sistem imleci gizlenir; yerine siyah nokta çizilir */
@media (pointer: fine) { .intro, .intro * { cursor: none; } }
/* Patlama anı: uzay perdesi kalkar, canvas'taki parlama sitenin üstünde oynar */
.intro.is-bang { background: transparent; pointer-events: none; }
.intro.is-bang .intro-ui { display: none; }

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Ekranın tam ortasındaki yönerge + ilerleme çizgisi.
   Harfler ve çizgi JS ile tek tek kara deliğe çekilir (transform). */
.intro-ui {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
/* Basmaya başlayınca odak çerçevesi kalksın (harfler dağılınca boş kutu kalmasın) */
.intro.is-active .intro-hold:focus-visible { box-shadow: none; }

.intro-label .ch,
.intro-bar {
  display: inline-block;
  will-change: transform;
}
.intro-label .ch.is-eaten,
.intro-bar.is-eaten { opacity: 0; }
.intro-label .ch.is-back,
.intro-bar.is-back { transition: opacity .6s; } /* yeniden doğarken yumuşak belirme */
.intro-hold {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  pointer-events: auto;
}
.intro-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  margin-right: -.34em; /* harf aralığı ortalamayı kaydırmasın */
  text-transform: uppercase;
  animation: hint 3.2s ease-in-out infinite;
}
@keyframes hint { 50% { opacity: .45; } }
.intro-bar {
  position: relative;
  width: 120px; height: 1px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.intro-bar-fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(var(--p));
  transform-origin: left;
}

/* Girişten önce site görünmez; kara delik kapanınca bulanıktan netleşerek belirir */
/* Açılışta site, ortada açılan dairenin içinden hafifçe yaklaşarak görünür
   (transform-origin JS'te kara deliğin konumuna ayarlanır) */
.site {
  transition: opacity .25s var(--ease-out), transform 1s var(--ease-expo), filter .6s var(--ease-out);
}
.is-intro .site {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(6px);
}
.is-intro, .is-opening { overflow: hidden; }
/* Öğeler açılan daire kendilerine ulaşınca merkez yönünden kayıp netleşir */
.materialise { animation: materialise .6s var(--ease-expo) var(--delay, .15s) both; }
@keyframes materialise {
  0% {
    opacity: 0;
    translate: var(--dx, 0px) var(--dy, 12px);
    scale: .96;
    filter: blur(8px) drop-shadow(3px 0 rgba(255, 80, 100, .6)) drop-shadow(-3px 0 rgba(80, 160, 255, .6));
  }
  55% {
    opacity: 1;
    translate: calc(var(--dx, 0px) * -.15) calc(var(--dy, 12px) * -.15);
    scale: 1;
    filter: blur(0) drop-shadow(0 0 rgba(255, 80, 100, 0)) drop-shadow(0 0 rgba(80, 160, 255, 0));
  }
  100% { opacity: 1; translate: 0 0; scale: 1; filter: none; }
}

/* ---------- Mobil (~390px) ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .screen { padding-bottom: calc(200px - var(--edge) + env(safe-area-inset-bottom)); }

  .sky { width: 38px; height: 38px; }
  .who-clock { font-size: 14px; }
  /* Mobilde kart küçülür: aktivitenin ayrıntı satırları gizlenir */
  .dc { padding: 10px; border-radius: 15px; font-size: 11.5px; }
  .dc-head { gap: 10px; }
  .dc-ava { width: 40px; height: 40px; }
  .dc-status { width: 13px; height: 13px; border-width: 2.5px; }
  .dc-name { font-size: 13px; }
  .dc-user { display: none; }
  .dc-act { margin-top: 9px; padding-top: 9px; gap: 9px; }
  .dc-act-art { width: 42px; height: 42px; }
  .dc-act-small { width: 17px; height: 17px; }
  .dc-act-name { font-size: 12px; }
  #dcActState { display: none; }


  .player-bar { gap: 6px; padding: 6px 8px 6px 6px; }
  .player-meta, .volume { display: none; } /* başlık söz satırında görünür; ses donanımdan */
  .player-cover { width: 36px; height: 36px; }
  .time { min-width: 0; font-size: 11px; }
  .mini-lyric { --fs: clamp(19px, 5.6vw, 26px); --rows: 3; margin-bottom: 8px; }
  .fs-esc { display: none; }
  .fs-controls { gap: 8px; }
  .player-bar .skip-btn { width: 28px; }
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .name, .caret, .intro-label, .player.is-playing .player-cover img, .dc, .dc-name.is-styled { animation: none; }
  .intro, .fs, .toast { transition-duration: .01s; }
  .site { transition-duration: .3s; }
  .is-intro .site { transform: none; filter: none; }
  .dock-glow { transition: opacity .2s; }
  .name.is-pop, .kl { animation: none; }
  .kl, .kc { transition: opacity .2s !important; transition-delay: 0s !important; }
}
