:root {
  --bg: #0d0d12;
  --surface: #16161d;
  --border: #2a2a35;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --text: #e8e8ed;
  --text-muted: #8888a0;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-zone .icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.upload-zone p {
  color: var(--text-muted);
  font-size: 14px;
}

.upload-zone strong {
  color: var(--text);
}

.selected-file {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
}

.selected-file.visible {
  display: block;
}

.selected-file span {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
}

input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.field input::placeholder {
  color: var(--text-muted);
}

.btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.progress-block {
  display: none;
  margin-top: 20px;
}

.progress-block.visible {
  display: block;
}

.progress-bar-wrap {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.progress-percent {
  color: var(--accent);
  font-weight: 600;
}

.video-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  word-break: break-all;
}

.success-block {
  display: none;
  margin-top: 20px;
  padding: 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius);
}

.success-block.visible {
  display: block;
}

.success-block .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.link-wrap {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.link-wrap input {
  flex: 1;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
}

.btn-copy {
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy.copied {
  background: #00a884;
}

.hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
