/* CarMediaPro iPhone web app. Colours come from the theme variables (Ayarlar → Tema), like the Android app. */
:root {
  --neon: #2fa8ff; --light: #7fd3ff; --acc: #2e8bff; --acc2: #145bd6; --rim: #bde8ff;
  --panel: #0a1630; --deep: #050a18; --tintc: transparent;
  --text: #fff; --sub: #b9c6da; --dim: #8d98ae;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--deep); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; overscroll-behavior: none; }
body { display: flex; flex-direction: column; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
#bg { position: fixed; inset: 0; z-index: -1; background:
  linear-gradient(180deg, color-mix(in srgb, var(--deep) 85%, transparent), color-mix(in srgb, var(--deep) 55%, transparent) 30%, var(--deep) 95%),
  url(img/bg.jpg) center / cover; }
#bg::after { content: ""; position: absolute; inset: 0; background: var(--tintc, transparent); mix-blend-mode: color; opacity: .85; }

.top { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 16px 8px; }
.logo { height: 36px; }
.brand { font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: .02em; white-space: nowrap; }
.brand b { color: var(--light); }
.clock { margin-left: auto; font-size: 22px; font-weight: 700; }

main { flex: 1; overflow: hidden; position: relative; }
.screen { position: absolute; inset: 0; overflow-y: auto; padding: 6px 14px 16px; display: none; -webkit-overflow-scrolling: touch; }
.screen.active { display: block; }

.glass, .tile, .card, .row-item, .offer, .theme { background: linear-gradient(color-mix(in srgb, var(--light) 14%, transparent), color-mix(in srgb, var(--panel) 70%, transparent));
  border: 1.5px solid color-mix(in srgb, var(--light) 35%, transparent); border-radius: 18px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px;
  aspect-ratio: 1 / 1; text-decoration: none; color: inherit; font-weight: 600; font-size: 14px; text-align: center; }
.tile img { width: 54%; max-width: 72px; }
.tile:active { transform: scale(.95); }

.bar { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.bar h2 { margin: 0; font-size: 22px; white-space: nowrap; }
.bar input[type=search] { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--light) 35%, transparent);
  background: rgba(0,0,0,.35); }
.back { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); font-size: 28px; line-height: 1; }
.hint { color: var(--sub); }

.list { display: flex; flex-direction: column; gap: 8px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; width: 100%; }
.row-item img, .row-item .mono { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #f5f5f7; flex: none; }
.row-item .mono { display: grid; place-items: center; background: linear-gradient(var(--acc), var(--acc2)); color: #fff; font-weight: 800; }
.row-item b { display: block; font-size: 16px; } .row-item span { color: var(--sub); font-size: 13px; }
.row-item.on { background: linear-gradient(var(--acc), var(--acc2)); border-color: var(--rim); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.grid .row-item { flex-direction: column; text-align: center; font-size: 13px; }
.video-wrap { position: sticky; top: 0; z-index: 2; margin-bottom: 12px; background: #000; border-radius: 16px; overflow: hidden; }
video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.video-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.video-bar span { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-bar button { width: 44px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 18px; }

.np { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.np-art { width: 120px; height: 120px; border-radius: 22px; display: grid; place-items: center; font-size: 56px;
  background: linear-gradient(var(--acc), var(--acc2)); box-shadow: 0 0 40px color-mix(in srgb, var(--neon) 50%, transparent); flex: none; }
.np-info { flex: 1; min-width: 220px; }
.np-tag { color: var(--light); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.np-title { font-size: 24px; font-weight: 800; margin-top: 2px; }
.np-sub { color: var(--sub); font-size: 15px; }
#seek { width: 100%; margin-top: 12px; accent-color: var(--neon); }
.np-times { display: flex; justify-content: space-between; color: var(--sub); font-size: 13px; }
.np-ctl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px; }
.np-ctl button { border: 0; background: none; font-size: 30px; }
.np-ctl .big, #miniPlay { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(var(--acc), var(--acc2));
  border: 2px solid var(--rim); box-shadow: 0 0 24px color-mix(in srgb, var(--neon) 55%, transparent); font-size: 28px; }
#viz { width: 100%; height: 110px; display: block; margin: 14px 0; }

h3 { margin: 18px 0 8px; color: var(--light); font-size: 17px; }
.card { padding: 14px; line-height: 1.5; }
.card small { color: var(--sub); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.theme { padding: 10px; text-align: left; }
.theme .sw { height: 46px; border-radius: 10px; margin-bottom: 8px; }
.theme.on { outline: 3px solid var(--rim); }

.offer { padding: 16px; display: flex; flex-direction: column; gap: 10px; text-align: center;
  background: linear-gradient(135deg, #2a1b6b, #0e5a8a); }
.price { font-weight: 900; } .price b { color: #7cf7ff; font-size: 30px; margin-left: 6px; }
.offer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
code { color: #7cf7ff; font-weight: 700; font-size: 16px; }
.offer small { color: var(--sub); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--light) 40%, transparent); background: rgba(255,255,255,.08); text-decoration: none; color: inherit; font-weight: 600; }
.pill.accent { background: linear-gradient(var(--acc), var(--acc2)); border-color: var(--rim); }
.pill.wide { width: 100%; }
.keyrow { display: flex; gap: 8px; margin-top: 14px; }
.keyrow input { flex: 1; min-width: 0; padding: 12px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--light) 35%, transparent);
  background: rgba(0,0,0,.35); text-transform: uppercase; letter-spacing: .06em; }
.msg { color: #ff6b7a; min-height: 1.2em; }

.mini { display: flex; align-items: center; gap: 10px; margin: 0 12px 8px; padding: 8px 10px 8px 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1.5px solid color-mix(in srgb, var(--light) 40%, transparent); }
.mini-info { flex: 1; min-width: 0; } .mini-info b, .mini-info span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info span { color: var(--sub); font-size: 13px; }
#miniPlay { width: 48px; height: 48px; font-size: 20px; }
.nav { display: flex; justify-content: space-around; padding: 6px 6px calc(var(--safe-b) + 6px);
  background: color-mix(in srgb, var(--deep) 92%, transparent); border-top: 1px solid color-mix(in srgb, var(--light) 25%, transparent); }
.nav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px;
  padding: 6px 0; border-radius: 14px; color: var(--sub); }
.nav button span { font-size: 22px; }
.nav button.on { color: #fff; background: linear-gradient(var(--acc), var(--acc2)); }
.locked .nav, .locked .mini { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 150px); transform: translateX(-50%); padding: 10px 16px; border-radius: 12px;
  background: rgba(0,0,0,.85); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
