* { box-sizing: border-box; }
:root {
  --bg: #0f0f0f;
  --panel: #181818;
  --panel2: #212121;
  --line: #303030;
  --txt: #f1f1f1;
  --muted: #aaa;
  --red: #ff0000;
}
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.brand small { font-weight: 400; color: var(--muted); font-size: 13px; }
.dot {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.tag { color: var(--muted); font-size: 13px; }

.wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 900px) { .wrap { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.panel h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.panel h2:first-child { margin-top: 0; }

input[type=text] {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--txt);
  font-size: 14px;
}
input[type=text]:focus { outline: none; border-color: var(--red); }

.detected { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 18px; }
.detected b { color: #fff; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.grid label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--txt); }
.grid input[type=color] { width: 100%; height: 38px; background: none; border: 1px solid var(--line); border-radius: 8px; }

.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.tab.active { background: var(--red); color: #fff; border-color: var(--red); }

.code {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: #d6e9ff;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 60px;
  overflow-x: auto;
}
.copy {
  margin-top: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--txt);
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.copy:hover { border-color: var(--red); }

.preview {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.preview .stage { position: absolute; inset: 0; }
.preview .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.preview .ph.err { color: #ff8080; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 12px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--line); }

/* Plyr önizlemede tam kaplasın */
.preview .plyr { position: absolute; inset: 0; width: 100%; height: 100%; }
