:root {
  --bg: #0f1115;
  --panel: #171a21;
  --border: #2a2f3a;
  --text: #e6e6eb;
  --muted: #9aa0aa;
  --accent: #19c37d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
}

.app {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.header-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.controls {
  display: flex;
  gap: 10px;
}

.control-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}

.control-btn:disabled {
  opacity: 0.4;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 20px;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(25,195,125,0.08);
}

/* Progress */
.progress-container {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.progress-container.hidden {
  display: none;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 10px;
  background: #0b0d11;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s linear;
}

/* Gallery */
.list-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.list-view .card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.grid-view .card {
  padding: 0;
  background: none;
  border: none;
}

.card img {
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
}

/* Info */
.info-header {
  display: flex;
  justify-content: space-between;
}

.date {
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  margin-top: 14px;
}

.section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.meta-item {
  background: #0b0d11;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lightbox.hidden { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 3;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.lightbox-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image img {
  max-height: 96vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-info {
  background: #111318;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  overflow-y: auto;
}
