* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #f5f7fb;
  color: #0f172a;
}

.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 16px;
}

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

h1 { margin: 0; font-size: 26px; }
.sub { margin: 6px 0 0; color: #64748b; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 14px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

h2 { margin: 0; font-size: 16px; }

.meta {
  font-size: 12px;
  color: #64748b;
  text-align: right;
}

.uploadBtn input {
  display: none;
}
.uploadBtn span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}
.uploadBtn span:hover { opacity: 0.92; }

button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
button.ghost {
  background: transparent;
  color: #2563eb;
  font-weight: 600;
}
button.ghost:hover { background: #eff6ff; }

.fileList {
  overflow: auto;
  padding-right: 4px;
}

.fileRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  margin-bottom: 10px;
}

.fileName {
  font-weight: 700;
  word-break: break-word;
}
.fileMeta {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  color: #334155;
}

.actionBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  height: fit-content;
}
.actionBtn:hover { opacity: 0.92; }

.actionBtn.secondary {
  background: #2563eb;
}

.transcriptBox {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 12px;
  height: 100%;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.55;
}

.muted { color: #64748b; }
.error { color: #b91c1c; font-weight: 700; }

.playLink {
  cursor: pointer;
  color: #2563eb;
  font-weight: 700;
}

.playLink:hover {
  text-decoration: underline;
}
