* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1115;
  color: #e6e8eb;
  margin: 0;
  padding: 0 0 60px;
}
header {
  padding: 24px 32px;
  border-bottom: 1px solid #23262d;
}
header h1 { margin: 0; font-size: 22px; }
header .sub { color: #8b909a; font-size: 13px; margin-top: 4px; }

main {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  gap: 20px;
}

.panel {
  background: #171a20;
  border: 1px solid #23262d;
  border-radius: 10px;
  padding: 20px;
}
.panel h2 { margin: 0 0 14px; font-size: 16px; color: #cfd3da; }

.row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.row label { width: 170px; color: #9aa0aa; font-size: 13px; flex-shrink: 0; }

input, select, button {
  background: #0f1115;
  border: 1px solid #2c303a;
  color: #e6e8eb;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}
button {
  cursor: pointer;
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
  font-weight: 600;
}
button.secondary { background: #262a33; border-color: #2c303a; }
button:hover { opacity: 0.9; }

.tv-list, .content-list, .schedule-list {
  display: grid;
  gap: 8px;
}

.tv-card, .content-card, .schedule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #0f1115;
  border: 1px solid #23262d;
  border-radius: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.tv-card .name { font-weight: 600; }
.tv-card input { width: 140px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.online { background: #22c55e; }
.dot.offline { background: #6b7280; }

#upload-status, #push-status { margin-top: 8px; font-size: 12px; color: #9aa0aa; }
.thumb { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; background: #23262d; }
