/* Renkler Enerjisa "Sen Varsan Sınır Yok" KV'sinden ölçüldü: lacivert → kraliyet mavisi zemin, turuncu vurgu. */
:root {
  --navy: #000a5e;
  --kv-alt: #0136e6;
  --surface: rgba(255, 255, 255, 0.1);
  --line: rgba(170, 195, 255, 0.2);
  --text: #ffffff;
  --muted: #b3c6f7;
  --orange: #ff9000;
  --orange-2: #ffb300;
  --ink: #00124f;
  --radius: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

/* Site ekranın boyutunu hiç aşmaz: sayfa kaymaz ve esnemez, yalnız .app kendi içinde dikey kayar. */
html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: linear-gradient(180deg, #011c9c 0%, var(--navy) 60%), var(--navy);
  color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

button,
input { font: inherit; color: inherit; }

.app {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

/* KV hiç kırpılmadan, uzatılmadan kendi oranında durur. */
.kv {
  margin: 0;
  padding-top: env(safe-area-inset-top);
  line-height: 0;
  background: var(--navy);
}
.kv img {
  display: block;
  width: 100%;
  height: auto;
}

.controls {
  padding: 12px 16px;
  background: linear-gradient(180deg, var(--kv-alt), #01209e);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.tab:active { transform: scale(0.98); }
.tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: var(--ink);
  box-shadow: 0 6px 22px -8px rgba(255, 144, 0, 0.8);
}

.search {
  position: relative;
  max-width: 640px;
  margin: 10px auto 0;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: #4a5c96;
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 44px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 16px; /* 16px altı iOS'ta sayfayı yakınlaştırır */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: #6474a6; }
.search input:focus { border-color: var(--orange); }
.search input::-webkit-search-cancel-button { display: none; }
.clear {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4a5c96;
  font-size: 1rem;
  cursor: pointer;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px calc(env(safe-area-inset-bottom) + 40px);
}

.intro {
  padding: 10vh 8px 0;
  text-align: center;
}
.intro-big { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; }
.intro-small { margin: 0; color: var(--muted); }

.count {
  margin: 14px 2px 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.other {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1.5px dashed var(--orange);
  border-radius: var(--radius);
  background: rgba(255, 144, 0, 0.12);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.songs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.songs li {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.songs .title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.songs .artist {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.empty {
  padding: 40px 8px;
  text-align: center;
  color: var(--muted);
}

/* Geniş ekranda site ortalanmış tek sütun olur; KV sütun genişliğinde kendi oranında kalır. */
@media (min-width: 600px) {
  .top {
    max-width: 560px;
    margin: 0 auto;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
  }
  main { max-width: 560px; }
  .tab { font-size: 1.05rem; }
}

/* Yatay tutulan telefon: ekran çok alçak. KV kaydırınca yukarı kayıp çıkar, sekmeler ve arama sabit kalır. */
@media (max-height: 500px) and (orientation: landscape) {
  .top { top: calc(-560px * 599 / 1600); }
  .controls { padding-block: 8px; }
  .tab { min-height: 44px; }
  .search { margin-top: 8px; }
  .search input { height: 44px; }
  .intro { padding-top: 6vh; }
}
