*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --twitch: #9146FF;
  --tiktok-pink: #FE2C55;
  --bg: #0b0b0f;
  --surface: #131318;
  --surface2: #1c1c24;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8f0;
  --muted: #6b6b7e;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  overflow: hidden;
}

/* LAYOUT */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  gap: 0;
}

.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.panel:last-child { border-right: none; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.panel-sub {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.panel-twitch .panel-header { border-top: 2px solid var(--twitch); }
.panel-tiktok .panel-header { border-top: 2px solid var(--tiktok-pink); }

/* Panel body – BEZ PASKÓW (overflow hidden) */
.panel-body {
  flex: 1;
  position: relative;
  overflow: hidden;  /* kluczowe */
  background: #000000;
}

/* IFRAMES */
.twitch-frame,
#tiktok-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
  transform-origin: top left; /* dla skali */
}

/* ZOOM CONTROLS */
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
  padding: 2px 6px;
  margin-left: 8px;
}

.zoom-controls button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: monospace;
}

.zoom-controls button:hover {
  background: rgba(255,255,255,0.25);
}

.zoom-controls .zoom-value {
  font-size: 11px;
  min-width: 45px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .panels {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    min-height: 100vh;
  }
  .panel { border-right: none; border-bottom: 1px solid var(--border); }
  .panel-body { height: 380px; }
  html, body { overflow: auto; }
}