.page { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

label {
  display: block; font-size: 13px; font-weight: 600; color: #aaa;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}

.privacy-note {
  padding: 10px 14px; margin-bottom: 16px;
  background: rgba(255, 68, 68, 0.06); border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: 8px; color: #ffbaba; font-size: 13px; line-height: 1.5;
}

.upload-area {
  border: 2px dashed #2a2a2a; border-radius: 12px;
  padding: 50px 20px; text-align: center; cursor: pointer;
  transition: all 0.2s; background: #0f0f0f;
}
.upload-area:hover, .upload-area.drag { border-color: #ff4444; background: #141414; }
.upload-icon { width: 40px; height: 40px; color: #555; margin-bottom: 8px; }
.upload-area p { color: #888; font-size: 14px; margin: 4px 0; }
.upload-link { color: #ff4444; }
.upload-hint { color: #555 !important; font-size: 12px !important; }

.result { margin-top: 20px; }
.preview-section {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
  padding: 16px; background: #0f0f0f; border: 1px solid #262626;
  border-radius: 10px; margin-bottom: 20px; align-items: start;
}
#preview { width: 100%; border-radius: 8px; background: #000; max-height: 200px; object-fit: contain; }
.file-info {
  font-family: 'SF Mono', Monaco, monospace; font-size: 13px; color: #aaa; line-height: 1.8;
}
.file-info strong { color: #fff; font-weight: 600; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; grid-column: 1 / -1; }
.btn {
  padding: 9px 16px; background: #141414; border: 1px solid #2a2a2a;
  color: #ccc; border-radius: 6px; font-size: 13px; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.btn:hover { border-color: #ff4444; color: #fff; background: #1f1f1f; }
.btn-reset { margin-left: auto; }
.btn-reset:hover { border-color: #f87171; color: #f87171; }

.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.section {
  background: #0f0f0f; border: 1px solid #262626; border-radius: 10px;
  padding: 14px 16px;
}
.section h3 {
  font-size: 11px; font-weight: 700; color: #ff4444;
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px;
}
.tag-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 10px;
  padding: 4px 0; border-bottom: 1px solid #1a1a1a;
  font-size: 13px;
}
.tag-row:last-child { border-bottom: none; }
.tag-key { color: #888; }
.tag-val { color: #e1e1e1; word-break: break-all; font-family: 'SF Mono', Monaco, monospace; font-size: 12px; }
.tag-val a { color: #ff4444; }

.empty-msg { color: #555; font-size: 13px; font-style: italic; }

details.other { grid-column: 1 / -1; }
details.other summary {
  cursor: pointer; color: #aaa; font-size: 12px; font-weight: 600;
  padding: 10px 14px; background: #0f0f0f; border: 1px solid #262626;
  border-radius: 10px; text-transform: uppercase; letter-spacing: 0.8px;
  list-style: none;
}
details.other[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
details.other summary:hover { color: #fff; }
details.other .section {
  border-top-left-radius: 0; border-top-right-radius: 0;
}

.raw-wrap { margin-top: 16px; }
#raw {
  width: 100%; min-height: 300px; resize: vertical;
  background: #0a0a0a; border: 1px solid #2a2a2a; border-radius: 8px;
  color: #e1e1e1; font-size: 12px; padding: 14px; outline: none;
  font-family: 'SF Mono', Monaco, monospace;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .sections { grid-template-columns: 1fr; }
  .preview-section { grid-template-columns: 1fr; }
  .btn-reset { margin-left: 0; }
}
