:root {
  --bg: #0a0b0e;
  --surface: #12151c;
  --surface-2: #181c26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f8;
  --text-muted: #9aa3b2;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --rose: #f43f5e;
  --rose-soft: rgba(244, 63, 94, 0.14);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #151926 0%, var(--bg) 55%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: #0a0b0e;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-pill:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: var(--surface-2);
}

.card {
  background: linear-gradient(180deg, rgba(24, 28, 38, 0.92), rgba(18, 21, 28, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card + .card {
  margin-top: 16px;
}

.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.status-banner.verified {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.status-banner.warning {
  background: var(--accent-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

.status-banner.error {
  background: var(--rose-soft);
  border-color: rgba(244, 63, 94, 0.35);
  color: #ffe4e6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.badge.emerald {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.badge.amber {
  background: var(--accent-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

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

.media-card-title {
  font-size: 14px;
  font-weight: 700;
}

.media-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #07080b;
  padding: 14px;
}

.media-preview img,
.media-preview video {
  max-width: 100%;
  max-height: 460px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.media-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a0b0e;
}

.btn-primary:hover {
  opacity: 0.94;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 12px;
}

.meta-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.meta-table td:first-child {
  color: var(--text-muted);
  width: 38%;
}

.meta-table td:last-child {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.06);
}

.input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.input-row input {
  flex: 1;
  background: #0c0e14;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
}

.input-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.center-box {
  text-align: center;
  padding: 28px 14px;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer {
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.hidden {
  display: none !important;
}
