:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --fg: #e8ebf0;
  --muted: #aab1bd;
  --accent: #4aa3ff;
  --border: #242936;
}

nav.navbar-fixed-top{position:relative}

#youtube-open {width:80px;}

* { box-sizing: border-box; }

.app-header, .app-footer {
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.app-footer { border-top: 1px solid var(--border); border-bottom: none;}
.app-header h1 { font-size: 16px; margin: 0; font-weight: 600; }

.split-container { display: flex; height:100%; min-height:90vh}

.pane {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pane + .pane {  }

.divider {
  width: 6px;
  background: #131722;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: col-resize;
}
.divider:hover { background: #182033; }
.divider.active { background: #1d2740; }


.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.pane-title { font-size: 14px; color: var(--muted); }

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.url-field {
  min-width: 260px;
  max-width: 40vw;
  padding: 8px 10px;
  background: #12151c;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}
.url-field:focus { border-color: #2a3448; }

.button {
  padding: 8px 12px;
  background: #2a3448;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.button:hover { background: #334059; }

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1e2430;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.file-button:hover { border-color: #2a3448; background: #222a3a; }
.file-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-area {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr;
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
}

.viewer {
  width: 100%;
  height: 100%;
  display: block;
  background: #0b0d12;
}

video.viewer {
  object-fit: contain;
  background: #000;
}

.score-viewer {
  display: grid;
}
.score-viewer iframe,
.score-viewer embed,
.score-viewer img {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: #0b0d12;
}

.drop-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
  font-size: 13px;
}

.drop-area.has-content .drop-hint { display: none; }

.drop-area.dragover::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed var(--accent);
  border-radius: 8px;
  box-shadow: inset 0 0 0 9999px rgba(74,163,255,0.08);
  pointer-events: none;
}

@media (max-width: 900px) {
  .split-container { flex-direction: column; height: auto; }
  .pane { min-height: 45vh; }
  .divider {
    width: 100%;
    height: 6px;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: row-resize;
  }
}
