:root {
  --bg-color: #0d0d0d;
  --panel-bg: #1a1a1a;
  --accent-color: #00f2ff;
  --text-color: #ffffff;
  --border-radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color);
}

.controls-top {
  display: flex;
  gap: 15px;
}

.btn {
  background: var(--panel-bg);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
}

.btn-primary {
  background: var(--accent-color);
  color: #000;
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #00d8e6;
  transform: translateY(-1px);
}

.main-container {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background-color: #000;
}

.view-panel {
  flex: 1;
  min-width: 300px;
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.view-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 1px;
}

video, iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mirror {
  transform: scaleX(-1);
}

.placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.4);
  padding: 30px;
  z-index: 5;
}

.placeholder-icon {
  font-size: 3rem;
}

.btn-star {
  background: #ffca28;
  color: #000;
  border: none;
  font-size: 1.1rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
}

.my-list-container {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.my-list-title {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.favorites-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.fav-item {
  background: var(--panel-bg);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.fav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-color);
}

.fav-delete {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.fav-delete:hover {
  background: rgba(255, 75, 75, 0.2);
  color: #ff4b4b;
}

.footer-controls {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-record {
  background: #ff4b4b;
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-record:hover {
  background: #ff3232;
}

.btn-recording {
  background: #fff;
  color: #ff4b4b;
}

.recording-status {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 75, 75, 0.9);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

#recording-timer {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.hidden {
  display: none;
}

.url-input-group {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-text {
  background: transparent;
  border: none;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}

iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .controls-top {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  .header {
    height: auto;
    flex-direction: column;
    padding: 10px;
  }
  .input-text {
    width: 150px;
  }
}
