body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background-color: #f4f6f9;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.vid {
  display: block;
  margin: auto;
  text-align: center;

}

h1 {
  text-align: center;
  margin-bottom: 2rem;
}

#timestamp {
  font-family: monospace;
  margin-top: 0.1rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

button {
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

.pip-video {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: white;
  padding: 0.5rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  z-index: 1000;
  width: 300px;
  min-width: 200px;
  min-height: 150px;
  resize: none;
  overflow: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: move;
}

.resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: se-resize;
  background: transparent;
}

.resizer::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, transparent 50%, #aaa 50%);
  transform: rotate(0deg);
  pointer-events: none;
}

.pip-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  cursor: pointer;
}

.steps-container {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  border-top: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  background-color: white;
}

.step-card {
  min-width: 320px;
  background: #eee;
  padding: 0.2rem 0.5rem;
  color: black;
  border: 2px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  position: relative;
}

.step-card .group-label {
  background: #4caf50;
}

.step-card.selected {
  border-color: #ffa500;
  box-shadow: 0 0 0 3px rgba(255,165,0,0.3);
}

.group-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #f4f4f4;
  border: 2px dashed #bbb;
  margin-top: 1rem;
}

.group-entry {
  background: #d9fadd;
  padding: 0.3rem 0.6rem;
  border: 2px solid #4caf50;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.group-entry.selected {
  background: #ffe5b4;
  border-color: #ffa500;
}

.group-entry .over-label {
  font-size: 0.7rem;
  margin-top: 0.3rem;
  background: #0066cc;
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
}


input[type="text"], select, textarea {
  width: 100%;
  padding: 0.1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.delete-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: crimson;
  border: none;
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.instructions {
  background: #fff;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.instructions h2 {
  margin-top: 0;
}

.instructions ol {
  padding-left: 1.25rem;
}

.instructions li {
  margin-bottom: 0.5rem;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.time-btn {
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  background-color: #e0e0e0;
  border: 1px solid #aaa;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
}

.time-btn:hover {
  background-color: #d0d0d0;
}