:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #1a1a24;
  --border: #2a2a3a;
  --accent: #c8f060;
  --accent2: #60c8f0;
  --text: #e8e8f0;
  --muted: #6a6a8a;
  --danger: #f06060;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(200,240,96,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(96,200,240,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 320px 1fr 360px;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
  min-height: 100vh;
}

/* Header */
.header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.clock {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 2px;
}

.clock-val {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 3px;
}

/* Timer panel */
.timer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.timer-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.timer-panel.running::before { opacity: 1; }

.timer-ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.timer-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.ring-progress.low { stroke: var(--danger); }

.timer-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-digits {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.timer-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.timer-status {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.timer-panel.running .timer-status { opacity: 1; }

.timer-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.min-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  padding: 12px 16px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  width: 80px;
}

.min-input:focus { border-color: var(--accent); }

.min-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

.preset-btns {
  display: flex;
  gap: 8px;
}

.preset-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ctrl-btns {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
}

/* Video panel */
.video-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.no-video {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}

.no-video-icon {
  font-size: 36px;
  opacity: 0.3;
}

.video-info {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.now-playing {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.now-playing span {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-top: 4px;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vid-nav {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover { border-color: var(--accent2); color: var(--accent2); }

/* Queue panel */
.queue-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  grid-row: 2 / 4;
  grid-column: 3;
}

.panel-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.queue-count {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
}

.add-url {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.url-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.url-input::placeholder { color: var(--muted); }
.url-input:focus { border-color: var(--accent2); }

.add-btn {
  background: var(--accent2);
  border: none;
  border-radius: 8px;
  color: #0a0a0f;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  width: 40px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.add-btn:hover { filter: brightness(1.1); }

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.queue-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.queue-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent2);
  opacity: 0;
  transition: opacity 0.2s;
}

.queue-item:hover { border-color: var(--border); transform: translateX(2px); }
.queue-item:hover::before { opacity: 0.5; }

.queue-item.active {
  border-color: var(--accent);
  background: rgba(200,240,96,0.05);
}

.queue-item.active::before {
  background: var(--accent);
  opacity: 1;
}

.q-num {
  font-size: 11px;
  color: var(--muted);
  min-width: 20px;
  text-align: center;
}

.queue-item.active .q-num { color: var(--accent); }

.q-thumb {
  width: 48px;
  height: 34px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.q-thumb img { width: 100%; height: 100%; object-fit: cover; }

.q-info {
  flex: 1;
  min-width: 0;
}

.q-title {
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.q-id {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.q-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.q-remove:hover { color: var(--danger); }

.empty-queue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
}

.empty-icon { font-size: 28px; opacity: 0.3; }

/* Status bar */
.status-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}

.status-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.status-dot.paused { background: var(--accent2); }

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

.status-msg { color: var(--text); }

/* Notification */
.notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 16px 28px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

.notification.show { transform: translateX(-50%) translateY(0); }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.timer-panel.running .timer-digits {
  background: linear-gradient(90deg, var(--text), var(--accent), var(--text));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ── Todo Panel ── */
.todo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.todo-progress {
  height: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.todo-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  width: 0%;
  transition: width 0.4s ease;
}

.add-todo {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.todo-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.todo-input::placeholder { color: var(--muted); }
.todo-input:focus { border-color: var(--accent); }

.todo-add-btn {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #0a0a0f;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  width: 40px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.todo-add-btn:hover { filter: brightness(1.1); }

.todo-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  max-height: 280px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.todo-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.todo-item:hover::before { opacity: 0.4; }

.todo-item.done {
  border-color: rgba(200,240,96,0.15);
  background: rgba(200,240,96,0.04);
}

.todo-item.done::before {
  background: var(--accent);
  opacity: 1;
}

.todo-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}

.todo-cb:hover { border-color: var(--accent); }

.todo-cb:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.todo-cb:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #0a0a0f;
  font-weight: 700;
  line-height: 1;
  top: 1px;
  left: 2px;
}

.todo-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  transition: all 0.3s;
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--muted);
}

.todo-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { color: var(--danger); }

.todo-stats {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.todo-stat-done {
  color: var(--accent);
  font-weight: 700;
}

.clear-done-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 1px;
  padding: 0;
  transition: color 0.2s;
}

.clear-done-btn:hover { color: var(--danger); }

.empty-todos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
}

.empty-icon2 { font-size: 24px; opacity: 0.3; }:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #1a1a24;
  --border: #2a2a3a;
  --accent: #c8f060;
  --accent2: #60c8f0;
  --text: #e8e8f0;
  --muted: #6a6a8a;
  --danger: #f06060;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(200,240,96,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(96,200,240,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 320px 1fr 360px;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
  min-height: 100vh;
}

/* Header */
.header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.clock {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 2px;
}

.clock-val {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 3px;
}

/* Timer panel */
.timer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.timer-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.timer-panel.running::before { opacity: 1; }

.timer-ring {
  position: relative;
  width: 200px;
  height: 200px;
}

.timer-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}

.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.ring-progress.low { stroke: var(--danger); }

.timer-display {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-digits {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.timer-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.timer-status {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.timer-panel.running .timer-status { opacity: 1; }

.timer-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.min-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  padding: 12px 16px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  width: 80px;
}

.min-input:focus { border-color: var(--accent); }

.min-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

.preset-btns {
  display: flex;
  gap: 8px;
}

.preset-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ctrl-btns {
  display: flex;
  gap: 12px;
  width: 100%;
}

.btn {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
}

/* Video panel */
.video-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.no-video {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}

.no-video-icon {
  font-size: 36px;
  opacity: 0.3;
}

.video-info {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.now-playing {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.now-playing span {
  display: block;
  color: var(--text);
  font-size: 12px;
  margin-top: 4px;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vid-nav {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover { border-color: var(--accent2); color: var(--accent2); }

/* Queue panel */
.queue-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  grid-row: 2 / 4;
  grid-column: 3;
}

.panel-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.queue-count {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
}

.add-url {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.url-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.url-input::placeholder { color: var(--muted); }
.url-input:focus { border-color: var(--accent2); }

.add-btn {
  background: var(--accent2);
  border: none;
  border-radius: 8px;
  color: #0a0a0f;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  width: 40px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.add-btn:hover { filter: brightness(1.1); }

.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.queue-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.queue-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent2);
  opacity: 0;
  transition: opacity 0.2s;
}

.queue-item:hover { border-color: var(--border); transform: translateX(2px); }
.queue-item:hover::before { opacity: 0.5; }

.queue-item.active {
  border-color: var(--accent);
  background: rgba(200,240,96,0.05);
}

.queue-item.active::before {
  background: var(--accent);
  opacity: 1;
}

.q-num {
  font-size: 11px;
  color: var(--muted);
  min-width: 20px;
  text-align: center;
}

.queue-item.active .q-num { color: var(--accent); }

.q-thumb {
  width: 48px;
  height: 34px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.q-thumb img { width: 100%; height: 100%; object-fit: cover; }

.q-info {
  flex: 1;
  min-width: 0;
}

.q-title {
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.q-id {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.q-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.q-remove:hover { color: var(--danger); }

.empty-queue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
}

.empty-icon { font-size: 28px; opacity: 0.3; }

/* Status bar */
.status-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}

.status-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.status-dot.paused { background: var(--accent2); }

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

.status-msg { color: var(--text); }

/* Notification */
.notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 16px 28px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

.notification.show { transform: translateX(-50%) translateY(0); }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.timer-panel.running .timer-digits {
  background: linear-gradient(90deg, var(--text), var(--accent), var(--text));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ── Todo Panel ── */
.todo-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.todo-progress {
  height: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.todo-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  width: 0%;
  transition: width 0.4s ease;
}

.add-todo {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.todo-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.todo-input::placeholder { color: var(--muted); }
.todo-input:focus { border-color: var(--accent); }

.todo-add-btn {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #0a0a0f;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  width: 40px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.todo-add-btn:hover { filter: brightness(1.1); }

.todo-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  max-height: 280px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.todo-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.todo-item:hover::before { opacity: 0.4; }

.todo-item.done {
  border-color: rgba(200,240,96,0.15);
  background: rgba(200,240,96,0.04);
}

.todo-item.done::before {
  background: var(--accent);
  opacity: 1;
}

.todo-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
}

.todo-cb:hover { border-color: var(--accent); }

.todo-cb:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.todo-cb:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #0a0a0f;
  font-weight: 700;
  line-height: 1;
  top: 1px;
  left: 2px;
}

.todo-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  transition: all 0.3s;
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--muted);
}

.todo-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  transition: color 0.2s;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { color: var(--danger); }

.todo-stats {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.todo-stat-done {
  color: var(--accent);
  font-weight: 700;
}

.clear-done-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 1px;
  padding: 0;
  transition: color 0.2s;
}

.clear-done-btn:hover { color: var(--danger); }

.empty-todos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
}

.empty-icon2 { font-size: 24px; opacity: 0.3; }
