* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #121212;
  color: #fff;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

h1 {
  color: #00d2ff;
  margin: 0 0 5px 0;
}

.subtitle {
  color: #888;
  font-size: 14px;
  margin: 0;
  font-style: italic;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-selector select {
  width: auto;
  padding: 5px 10px;
}

h3 {
  color: #00d2ff;
  margin-top: 15px;
}

.main-layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.controls-panel {
  flex: 1;
  min-width: 300px;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
}

.preview-panel {
  flex: 2;
  min-width: 320px;
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 10px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

input, select, button {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #333;
  background: #2a2a2a;
  color: #fff;
}

input[type="range"] {
  cursor: pointer;
}

button {
  background: #008cba;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

button:hover {
  background: #005f73;
}

.save-btn {
  background: #27ae60 !important;
}
.save-btn:hover {
  background: #219653 !important;
}

.load-btn {
  background: #8e44ad !important;
}
.load-btn:hover {
  background: #732d91 !important;
}

.video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

video {
  width: 100%;
  display: block;
}

/* Overlay flotante pegado a los extremos exactos */
.meter-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  padding: 0;
  transition: all 0.1s ease;
}

.meter-overlay.hidden {
  display: none;
}

.meter-overlay img {
  width: var(--icon-size, 65px);
  height: var(--icon-size, 65px);
  object-fit: contain;
  filter: drop-shadow(0px 0px 4px rgba(0,0,0,0.9));
}

.stars-container {
  color: #ffe600;
  font-size: calc(var(--icon-size, 65px) * 0.28);
  font-weight: bold;
  text-shadow: 2px 2px 4px #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  margin-top: 2px;
  white-space: nowrap;
}

/* Esquinas extremas */
.top-left { top: 15px; left: 15px; }
.top-right { top: 15px; right: 15px; }
.bottom-left { bottom: 15px; left: 15px; }
.bottom-right { bottom: 15px; right: 15px; }

#timeline-list {
  list-style: none;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

#timeline-list li {
  background: #2a2a2a;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.delete-btn {
  background: #e74c3c;
  width: auto;
  padding: 2px 6px;
}
