:root {
  --bg: #0f1115;
  --panel: #1a1f29;
  --text: #eef2ff;
  --muted: #b8c0d6;
  --ok: #1f8f4f;
  --err: #a43131;
  --accent: #2e6cff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.auth-page,
.admin-page {
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  max-width: 420px;
  margin: 80px auto;
  background: var(--panel);
  border-radius: 12px;
  padding: 24px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
}

input,
select,
button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
  padding: 10px;
  background: #111620;
  color: var(--text);
}

button {
  margin-top: 14px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.danger {
  background: var(--err);
}

.flash-list {
  margin-bottom: 16px;
}

.flash {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.flash.success {
  background: #11361f;
}

.flash.error {
  background: #3a1616;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-header form,
.video-list form,
.playlist form {
  margin: 0;
}

.admin-header .danger,
.video-list .danger,
.playlist .danger {
  width: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 16px;
}

.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.playlist {
  background: #121723;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.video-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #262d3a;
}

.player-page {
  background: #000;
  overflow: hidden;
}

#player {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.fullscreen-btn {
  position: fixed;
  z-index: 10;
  top: 20px;
  right: 20px;
  width: auto;
  padding: 10px 14px;
}

.empty-player {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
