/* LOPPZ STÜDYO — beyaz, kurumsal, 3D katmanlı arayüz */
:root {
  --bg: #eef1f7;
  --bg-2: #f7f8fc;
  --panel: #ffffff;
  --panel-2: #f3f5fa;
  --line: #e3e7f0;
  --line-2: #d5dbe7;
  --text: #0f1424;
  --text-2: #3a4258;
  --muted: #6b7489;
  --faint: #9aa2b5;
  --brand: #ff3d6e;
  --brand-2: #ff7a3d;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #ff3d6e 0%, #ff5a4f 45%, #ff8a3d 100%);
  --grad-ink: linear-gradient(135deg, #1e2235 0%, #0f1424 100%);
  --r: 20px;
  /* 3D katman gölgeleri */
  --e1: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(16, 24, 40, .06), 0 4px 10px -2px rgba(16, 24, 40, .06);
  --e2: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(16, 24, 40, .05), 0 14px 30px -10px rgba(16, 24, 40, .18);
  --e3: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 8px rgba(16, 24, 40, .05), 0 30px 60px -20px rgba(16, 24, 40, .28);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(255, 61, 110, .08), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(79, 70, 229, .08), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text); font: 14.5px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.err { color: var(--red); min-height: 1.4em; font-size: 13px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; color: var(--text); }
h2 { font-size: 16.5px; font-weight: 700; }
h3 { font-size: 15px; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* --- Düğmeler --- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #fff, #f4f6fb); color: var(--text); padding: 9px 16px; border-radius: 12px; font: 600 13.5px Inter, sans-serif; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; white-space: nowrap; box-shadow: var(--e1); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--e2); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(16, 24, 40, .12); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -2px 0 rgba(0, 0, 0, .12) inset, 0 12px 26px -10px rgba(255, 61, 110, .7); }
.btn.dark { background: var(--grad-ink); color: #fff; border: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 12px 26px -12px rgba(15, 20, 36, .7); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.wide { width: 100%; justify-content: center; padding: 13px; }
.btn.danger { color: var(--red); }
.icon-btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 17px; cursor: pointer; padding: 6px 10px; border-radius: 10px; box-shadow: var(--e1); }

/* --- Kartlar (3D katman) --- */
.card { background: var(--panel); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--r); padding: 22px; box-shadow: var(--e2); position: relative; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.pill.run { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.pill.bad { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.pill.vio { color: #5b21b6; background: #f5f3ff; border-color: #ddd6fe; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty h2 { margin-bottom: 6px; }
input, select, textarea { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font: inherit; box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(255, 61, 110, .18); border-color: var(--brand); background: #fff; }
label.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
label.field small { font-weight: 500; color: var(--faint); font-family: "JetBrains Mono", monospace; font-size: 11px; }

/* --- Marka (3D logo) --- */
.logo3d { width: 42px; height: 42px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; color: #fff; font: 400 22px Anton, sans-serif; box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -3px 0 rgba(0, 0, 0, .15) inset, 0 10px 20px -6px rgba(255, 61, 110, .6); transform: perspective(200px) rotateX(8deg) rotateY(-10deg); }
.brandline { display: flex; align-items: center; gap: 12px; }
.brandline b { font: 400 22px Anton, sans-serif; letter-spacing: .06em; display: block; line-height: 1; }
.brandline span { font-size: 10.5px; font-weight: 700; letter-spacing: .28em; color: var(--muted); }

/* --- Giriş --- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; perspective: 1200px; }
.login-card { width: 100%; max-width: 420px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); border: 1px solid #fff; border-radius: 28px; padding: 42px 34px; text-align: center; box-shadow: var(--e3); transform: rotateX(4deg); }
.login-card .brandline { justify-content: center; }
.login-card .muted { margin: 12px 0 28px; }
.login-card form { display: grid; gap: 16px; }
.pin { display: flex; justify-content: center; gap: 12px; }
.pin input { width: 64px; height: 72px; text-align: center; font: 700 30px Inter, sans-serif; border-radius: 16px; padding: 0; background: #fff; box-shadow: var(--e1); }

/* --- Yerleşim --- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px; }
.side-inner { height: 100%; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); border: 1px solid #fff; border-radius: 24px; box-shadow: var(--e2); display: flex; flex-direction: column; padding: 20px 14px; }
.side-brand { padding: 2px 8px 22px; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14px; transition: .15s; }
.nav a i { font-style: normal; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--panel-2); color: var(--muted); font-size: 14px; box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(16, 24, 40, .08); }
.nav a:hover { background: var(--panel-2); }
.nav a.active { background: var(--grad-ink); color: #fff; box-shadow: 0 12px 22px -12px rgba(15, 20, 36, .7); }
.nav a.active i { background: var(--grad); color: #fff; box-shadow: 0 6px 12px -4px rgba(255, 61, 110, .6); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.side-status { display: grid; gap: 7px; font-size: 12.5px; }
.side-status div { display: flex; justify-content: space-between; color: var(--muted); align-items: center; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 22px 30px 16px; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar h1 { font-size: 26px; font-weight: 800; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
#menu { display: none; }
.view { padding: 8px 30px 60px; max-width: 1440px; width: 100%; }
#flash { padding: 0 30px; }
.flash { margin: 10px 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; box-shadow: var(--e1); }
.flash.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* --- İstatistik kartları (3D) --- */
.stat { padding: 20px 22px; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), transparent 40%), var(--orb, var(--grad)); opacity: .18; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 34px; font-weight: 800; margin-top: 6px; letter-spacing: -.03em; }
.stat .hint { font-size: 12px; color: var(--faint); margin-top: 2px; }
.stat:nth-child(2) { --orb: linear-gradient(135deg, #4f46e5, #7c3aed); }
.stat:nth-child(3) { --orb: linear-gradient(135deg, #10b981, #06b6d4); }
.stat:nth-child(4) { --orb: linear-gradient(135deg, #f59e0b, #ef4444); }
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 9px 0; position: relative; }
.tl:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: -6px; width: 2px; background: var(--line); }
.tl .bul { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #fff; border: 2px solid var(--line-2); color: var(--faint); box-shadow: var(--e1); }
.tl.done .bul { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 12px -4px rgba(16, 185, 129, .6); }
.tl.active .bul { border-color: var(--brand); color: var(--brand); animation: pulse 1.2s infinite; }
.tl.fail .bul { background: var(--red); border-color: var(--red); color: #fff; }
.tl b { display: block; font-size: 14px; }
.tl span { font-size: 12.5px; color: var(--muted); }
.countdown { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.conn-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.conn-row:last-child { border-bottom: 0; }

/* --- Şarkı kartları (3D eğim) --- */
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; perspective: 1200px; }
.song { background: var(--panel); border: 1px solid #fff; border-radius: 22px; overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; box-shadow: var(--e2); transform-style: preserve-3d; }
.song:hover { transform: translateY(-6px) rotateX(4deg); box-shadow: var(--e3); }
.song .thumb { aspect-ratio: 1; background: #111 center/cover no-repeat; position: relative; margin: 10px 10px 0; border-radius: 16px; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .6); }
.song .thumb::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .7)); }
.song .thumb .tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.song .thumb .score { position: absolute; right: 12px; bottom: 10px; z-index: 1; font: 800 22px Inter; color: #fff; }
.song .body { padding: 12px 16px 16px; display: grid; gap: 3px; }
.song .body b { font-size: 15.5px; }
.song .body span { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.slot { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--grad); color: #fff; box-shadow: 0 4px 10px -4px rgba(255, 61, 110, .7); }
.slot.aksam { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 4px 10px -4px rgba(79, 70, 229, .7); }
.slot.ogle { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 4px 10px -4px rgba(16, 185, 129, .7); }
.slot.ozel { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--text-2); font: 600 13px Inter; cursor: pointer; box-shadow: var(--e1); }
.chip.active { background: var(--grad-ink); color: #fff; border-color: transparent; }

/* --- Çekmece --- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15, 20, 36, .35); backdrop-filter: blur(6px); }
.drawer-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(1000px, calc(100% - 24px)); background: var(--bg-2); border: 1px solid #fff; border-radius: 26px; overflow-y: auto; padding: 30px; animation: slide .25s ease-out; box-shadow: var(--e3); }
@keyframes slide { from { transform: translateX(40px) rotateY(-4deg); opacity: 0; } }
.drawer-x { position: absolute; right: 20px; top: 20px; }
.detail-head { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; padding-right: 40px; }
.detail-head img { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; box-shadow: 0 20px 30px -14px rgba(0, 0, 0, .55); transform: perspective(400px) rotateY(-10deg); }
.detail-head h2 { font-size: 28px; margin: 8px 0 4px; font-weight: 800; }
.videos { display: grid; grid-template-columns: 9fr 16fr; gap: 16px; align-items: start; }
.videos video { width: 100%; border-radius: 16px; background: #000; display: block; box-shadow: 0 20px 34px -18px rgba(0, 0, 0, .6); }
.vph { border-radius: 16px; background: #fff; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.vph.v { aspect-ratio: 9/16; } .vph.h { aspect-ratio: 16/9; }
.scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.scenes figure { margin: 0; }
.scenes img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; display: block; box-shadow: var(--e2); }
.scenes figcaption { font-size: 11.5px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
pre.lyrics { white-space: pre-wrap; font: 14px/1.8 Inter, sans-serif; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0; max-height: 560px; overflow: auto; box-shadow: var(--e1); }
pre.lyrics .tag { color: var(--brand); font-weight: 700; }
.caption-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; white-space: pre-wrap; font-size: 13.5px; box-shadow: var(--e1); }
audio { width: 100%; height: 44px; }
.section { margin-top: 28px; }
.section > h3 { margin-bottom: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* --- Laboratuvar --- */
.lab { display: grid; gap: 16px; }
.lab-item { background: #fff; border: 1px solid #fff; border-radius: 20px; padding: 20px; box-shadow: var(--e2); }
.lab-item.picked { box-shadow: 0 0 0 2px rgba(255, 61, 110, .5), var(--e2); }
.lab-top { display: flex; gap: 16px; align-items: start; }
.lab-top .big { font: 800 36px Inter; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 70px; text-align: right; }
.gate { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.bar { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 12px; box-shadow: inset 0 1px 2px rgba(16, 24, 40, .1); }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
details { margin-top: 12px; }
details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--brand); list-style: none; }
details summary::before { content: "▸ "; }
details[open] summary::before { content: "▾ "; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.cols h4 { margin: 0 0 6px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
ul.clean { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; }
ul.clean li { margin: 3px 0; }
.meter-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meter-grid span { font: 600 11.5px "JetBrains Mono", monospace; padding: 3px 8px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }

/* --- Kural kitabı / rapor / hitler --- */
textarea.rules { min-height: 64vh; font: 13.5px/1.7 "JetBrains Mono", monospace; resize: vertical; background: #fff; }
.md h1, .md h2, .md h3 { margin: 18px 0 8px; }
.md h1 { font-size: 20px; } .md h2 { font-size: 16px; } .md h3 { font-size: 14px; color: var(--brand); }
.md p { margin: 6px 0; color: var(--text-2); }
.md ul { margin: 6px 0; padding-left: 20px; color: var(--text-2); }
.md li { margin: 3px 0; }
.artist { padding: 14px 0; border-bottom: 1px solid var(--line); }
.artist:last-child { border: 0; }
.artist b { display: block; margin-bottom: 4px; }
.sources a { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources a:hover { color: var(--text); }
.hit-artist { margin-bottom: 18px; }
.hit-artist .formula { color: var(--text-2); margin: 6px 0 14px; }

/* --- Tablolar / kayıtlar --- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.logs { font: 12.5px/1.6 "JetBrains Mono", monospace; max-height: 70vh; overflow: auto; }
.logs div { padding: 7px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 12px; color: var(--text-2); }
.logs time { color: var(--faint); }
.logs .hata { color: var(--red); }
.logs .uyari { color: #b45309; }

/* --- Ayarlar --- */
.settings-group { margin-bottom: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px 18px; }
.save-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); display: flex; gap: 12px; align-items: center; }

/* --- Mobil --- */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; width: 280px; transform: translateX(-105%); transition: .25s; }
  .side.open { transform: none; }
  #menu { display: block; }
  .topbar { padding: 16px; }
  .topbar h1 { font-size: 20px; }
  .topbar { flex-wrap: wrap; }
  .top-actions { width: 100%; margin-left: 0; }
  .run-btn { flex: 1; justify-content: center; padding: 9px 8px; font-size: 12.5px; }
  .view { padding: 4px 16px 50px; }
  #flash { padding: 0 16px; }
  .g4, .g3, .g2, .cols { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: 1fr; }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .drawer-panel { padding: 22px 16px; top: 6px; right: 6px; bottom: 6px; width: calc(100% - 12px); }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .logs div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .g3, .g2, .cols { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; } .stat .value { font-size: 24px; } .stat .hint { display: none; }
  #view-sub { display: none; }
  .songs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .run-btn span { display: none; }
}
