.page {
  position: relative;
  z-index: 2;
  padding: 2rem;
}
nav {
  justify-content: flex-end;
  margin-bottom: 3rem;
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 3rem;
  align-items: end;
}
.eyebrow {
  margin-bottom: 1.4rem;
}
h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}
.upload-card {
  position: relative;
}
.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 2rem;
  border-radius: 32px;
  cursor: pointer;
  background:
    linear-gradient(
      225deg,
      rgba(220, 220, 69, 0.69),
      rgba(27, 209, 200, 0.03)
    );
  border: 1px solid rgba(27, 209, 200, 0.07);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.upload-zone:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.06);
}
.upload-zone::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.upload-zone input {
  display: none;
}
.upload-top,
.upload-center,
.upload-bottom {
  position: relative;
  z-index: 2;
}
.upload-mini {
  width: max-content;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.upload-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-icon {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.upload-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  margin-bottom: 0.7rem;
}
.upload-zone p {
  line-height: 1.7;
  color: var(--muted);
  max-width: 260px;
}
.viewer-layout {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar-block {
  padding: 1.5rem;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(220, 220, 69, 0.69),
      rgba(255, 255, 255, 0.62)
    );
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sidebar-block:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.1);
}
.label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #888;
  margin-bottom: 1rem;
}
.sidebar h3 {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  word-break: break-word;
}
.sidebar small {
  display: block;
  margin-top: 0.7rem;
  color: #777;
  font-size: 0.82rem;
  line-height: 1.5;
}
.metadata-panel {
  padding: 2rem;
  border-radius: 32px;
    background:
    linear-gradient(
      0deg,
      rgba(220, 220, 69, 0.42),
      rgba(0, 0, 0, 0.001)
    );
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.small {
  margin-bottom: 0.8rem;
}
h2 {
  font-size: 2.4rem;
  letter-spacing: -0.05em;
}
.status {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
}
.raw-output {
  margin-top: 2rem;
  height: 650px;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
  line-height: 1.85;
  color: #222;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
}
.raw-output::-webkit-scrollbar {
  width: 10px;
}
.raw-output::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
}
.metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.meta-item {
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.meta-key {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888;
  margin-bottom: 0.9rem;
}
.meta-value {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  word-break: break-word;
}
.empty-state {
  grid-column: 1/-1;
  padding: 4rem 2rem;
  text-align: center;
  color: #777;
  border: 1px dashed rgba(0, 0, 0, 0.08);
  border-radius: 24px;
}
.upload-zone.dragging {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.08);
}

.upload-zone.dragging::before {
  border-color: rgba(0, 0, 0, 0.18);
}

@media (max-width: 980px) {
  .hero-top {
    grid-template-columns: 1fr;
  }
  .viewer-layout {
    grid-template-columns: 1fr;
  }
  .metadata-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .page {
    padding: 1.2rem;
  }
  .upload-zone {
    min-height: 280px;
  }
  .panel-top {
    flex-direction: column;
  }
}
