/* Vidgas — cinematic dark theme */

:root {
  /* Surfaces */
  --bg-0: #08080a;        /* deepest */
  --bg-1: #0e0e11;        /* page */
  --bg-2: #16161a;        /* card */
  --bg-3: #1d1d22;        /* elevated */
  --bg-4: #26262c;        /* hover */

  /* Text */
  --fg-0: #f5f5f7;
  --fg-1: #c8c8cf;
  --fg-2: #8a8a93;
  --fg-3: #57575e;

  /* Lines */
  --line-1: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  --line-3: rgba(255,255,255,0.18);

  /* Accent */
  --accent: #ff3d3d;
  --accent-hi: #ff5e5e;
  --accent-lo: #cc2424;
  --accent-glow: rgba(255,61,61,0.35);

  /* Radii */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Type */
  --font-sans: 'Geist', 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Geist', 'Bricolage Grotesque', var(--font-sans);
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-1); color: var(--fg-0); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: white; }

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.app.collapsed { grid-template-columns: 68px 1fr; }

/* Sidebar */
.sidebar {
  background: var(--bg-0);
  border-right: 1px solid var(--line-1);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 0; }

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px 0;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.brand-mark svg { width: 16px; height: 16px; color: white; }
.brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name .dot { color: var(--accent); }

.collapsed .brand-name, .collapsed .nav-label, .collapsed .nav-section-label, .collapsed .storage-card, .collapsed .nav-meta { display: none; }
.collapsed .brand { justify-content: center; padding: 4px 0 0; }
.collapsed .nav-item { justify-content: center; padding: 10px 8px; }

.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-section-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); padding: 4px 10px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--r);
  color: var(--fg-1); cursor: pointer; user-select: none;
  font-size: 13.5px; font-weight: 500;
  position: relative;
  transition: background 120ms, color 120ms;
}
.nav-item:hover { background: var(--bg-2); color: var(--fg-0); }
.nav-item.active { background: var(--bg-3); color: var(--fg-0); }
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.nav-meta { margin-left: auto; font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }

.collection-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Storage card in sidebar */
.storage-card {
  margin-top: auto;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
}
.storage-card .label { font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.storage-card .value { font-size: 18px; font-family: var(--font-display); font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; }
.storage-card .value small { font-size: 12px; color: var(--fg-2); font-weight: 500; }
.storage-bar { margin-top: 10px; height: 4px; background: var(--bg-4); border-radius: 99px; overflow: hidden; }
.storage-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); }

/* ---------- Main ---------- */
.main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 32px;
  background: rgba(14,14,17,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-1);
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent;
  color: var(--fg-1); cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.icon-btn:hover { background: var(--bg-2); border-color: var(--line-1); color: var(--fg-0); }
.icon-btn svg { width: 18px; height: 18px; }

.search-wrap {
  flex: 1; max-width: 520px; position: relative;
}
.search-input {
  width: 100%; padding: 10px 14px 10px 40px;
  background: var(--bg-2); border: 1px solid var(--line-1);
  border-radius: 10px; color: var(--fg-0); font-size: 13.5px;
  font-family: inherit; outline: none;
  transition: border-color 120ms, background 120ms;
}
.search-input::placeholder { color: var(--fg-3); }
.search-input:focus { border-color: var(--line-3); background: var(--bg-3); }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-2); pointer-events: none; }
.search-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10.5px; padding: 3px 6px; border-radius: 5px;
  background: var(--bg-4); color: var(--fg-2); font-family: var(--font-mono);
  border: 1px solid var(--line-1);
}

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 9px;
  background: var(--bg-3); color: var(--fg-0); border: 1px solid var(--line-1);
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: background 120ms, border-color 120ms;
}
.btn:hover { background: var(--bg-4); border-color: var(--line-2); }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--accent); color: white; border-color: transparent;
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-2); }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, var(--accent));
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: white;
  border: 1.5px solid var(--line-2);
}

/* ---------- Page content ---------- */
.page { padding: 0 32px 80px; flex: 1; }

.hero {
  position: relative;
  margin: 24px 0 36px;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21/8;
  background: var(--bg-2);
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,10,0.95) 0%, rgba(8,8,10,0.65) 40%, rgba(8,8,10,0.05) 100%),
              linear-gradient(180deg, transparent 60%, rgba(8,8,10,0.8) 100%);
}
.hero-content {
  position: absolute; inset: 0; padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 60%;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.hero h1 { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 12px; }
.hero p { color: var(--fg-1); font-size: 14.5px; line-height: 1.5; max-width: 480px; margin: 0 0 22px; }
.hero-meta { display: flex; align-items: center; gap: 18px; color: var(--fg-2); font-size: 12.5px; margin-bottom: 20px; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }
.hero-actions { display: flex; gap: 10px; }

/* Section header */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 18px;
}
.section-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.section-head .meta { color: var(--fg-2); font-size: 12.5px; }
.section-head a { color: var(--fg-2); font-size: 12.5px; }
.section-head a:hover { color: var(--accent); }

.section { margin-bottom: 48px; }

/* Filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 7px 14px; border-radius: 99px;
  background: var(--bg-2); color: var(--fg-1);
  border: 1px solid var(--line-1); cursor: pointer;
  font-size: 12.5px; font-weight: 500;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.chip:hover { background: var(--bg-3); color: var(--fg-0); }
.chip.active { background: var(--fg-0); color: var(--bg-0); border-color: var(--fg-0); }

/* Video grid */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 14px; }
.grid.cinema { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px 20px; }

/* Video card */
.card { cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.card-thumb {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2);
  transition: transform 220ms cubic-bezier(0.2,0.7,0.3,1), box-shadow 220ms;
}
.card:hover .card-thumb { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2,0.7,0.3,1); }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55) 100%);
}
.card-duration {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(0,0,0,0.78); color: white;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card-quality {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(0,0,0,0.65); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}
.card-play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
  opacity: 0; transition: opacity 180ms;
}
.card:hover .card-play { opacity: 1; }
.card-play div {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,61,61,0.95);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.7);
  transform: scale(0.85); transition: transform 180ms;
}
.card:hover .card-play div { transform: scale(1); }
.card-play svg { width: 22px; height: 22px; color: white; margin-left: 3px; }

.card-meta { padding: 0 2px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--fg-0); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sub { font-size: 12px; color: var(--fg-2); display: flex; align-items: center; gap: 6px; }
.card-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }

/* ---------- Player page ---------- */
.player-page { padding: 0; }
.player-stage {
  position: relative;
  background: black;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-stage video {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Video.js overrides for Vidgas theme */
.player-stage [data-vjs-player] {
  width: 100%;
  max-height: 75vh;
}
.player-stage .video-js {
  width: 100%;
  max-height: 75vh;
  background: #000;
  border-radius: 0;
}
.player-stage .video-js .vjs-tech {
  object-fit: contain;
}
.video-js .vjs-big-play-button {
  background: var(--accent) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 64px !important;
  height: 64px !important;
  line-height: 64px !important;
  margin-top: -32px !important;
  margin-left: -32px !important;
}
.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
  font-size: 32px;
}
.video-js .vjs-control-bar {
  background: rgba(0,0,0,0.75) !important;
  backdrop-filter: blur(8px);
}
.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background: var(--accent) !important;
}
.video-js .vjs-slider {
  background: rgba(255,255,255,0.15) !important;
}
.vjs-theme-vidgas .vjs-poster {
  background-size: cover;
}
.player-stage img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  opacity: 0.65;
}
.player-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 8px 14px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 150ms;
}
.player-back-btn:hover { background: rgba(0,0,0,0.8); }

.player-info { padding: 24px 32px; max-width: 1100px; margin: 0 auto; }
.player-info h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.player-info .meta-row { display: flex; align-items: center; gap: 14px; color: var(--fg-2); font-size: 13px; margin-bottom: 24px; flex-wrap: wrap; }
.player-info .meta-row .pill { background: var(--bg-3); padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: var(--fg-0); letter-spacing: 0.04em; }
.player-info .meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }
.player-info .actions { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.player-info .desc { color: var(--fg-1); font-size: 14.5px; line-height: 1.65; max-width: 720px; padding: 20px 22px; background: var(--bg-2); border-radius: var(--r-lg); border: 1px solid var(--line-1); }

.related { margin-top: 48px; }

@media (max-width: 880px) {
  .player-info { padding: 16px 18px; }
  .player-info h1 { font-size: 22px; }
  .player-info .actions { gap: 6px; }
  .player-info .actions .btn { font-size: 12px; padding: 8px 12px; }
  .player-back-btn { top: 10px; left: 10px; padding: 6px 10px; font-size: 12px; }
}

/* ---------- Upload ---------- */
.upload-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin: 24px 0; }
@media (max-width: 1000px) { .upload-grid { grid-template-columns: 1fr; } }

.dropzone {
  border: 1.5px dashed var(--line-3);
  border-radius: var(--r-xl);
  padding: 60px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse at center top, rgba(255,61,61,0.06), transparent 70%),
    var(--bg-2);
  transition: border-color 200ms, background 200ms, transform 200ms;
  cursor: pointer;
}
.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  background:
    radial-gradient(ellipse at center top, rgba(255,61,61,0.12), transparent 70%),
    var(--bg-2);
}
.dropzone.over { transform: scale(1.005); }
.drop-icon {
  width: 80px; height: 80px; border-radius: 22px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2);
  display: grid; place-items: center; margin: 0 auto 18px;
  position: relative;
}
.drop-icon::before { content: ''; position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6; }
.drop-icon svg { width: 32px; height: 32px; color: var(--accent); }
.dropzone h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.dropzone p { color: var(--fg-2); font-size: 13.5px; margin: 0 0 22px; }
.dropzone .browse {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px;
  background: var(--accent); color: white;
  font-weight: 500; font-size: 13.5px;
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}
.upload-formats { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; color: var(--fg-3); font-size: 11.5px; }
.upload-formats span { padding: 3px 8px; border-radius: 5px; background: var(--bg-3); border: 1px solid var(--line-1); font-family: var(--font-mono); }

.upload-side {
  display: flex; flex-direction: column; gap: 16px;
}
.queue-card {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: 18px;
}
.queue-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.queue-card .head h4 { font-size: 14px; font-weight: 600; margin: 0; }
.queue-card .head .count { font-size: 11.5px; color: var(--fg-2); }

.queue-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-1);
}
.queue-item:last-child { border-bottom: 0; }
.queue-thumb {
  width: 56px; height: 36px; border-radius: 6px;
  background: var(--bg-3);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--fg-2);
}
.queue-info { flex: 1; min-width: 0; }
.queue-info .name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-info .sub { font-size: 11.5px; color: var(--fg-2); display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.queue-bar { height: 2px; background: var(--bg-4); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.queue-bar > div { height: 100%; border-radius: 99px; background: var(--accent); transition: width 400ms; }
.queue-bar.done > div { background: #4ade80; }
.queue-status {
  font-size: 11px; padding: 3px 8px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.queue-status.uploading { background: rgba(255,61,61,0.15); color: var(--accent-hi); }
.queue-status.done { background: rgba(74,222,128,0.15); color: #4ade80; }
.queue-status.processing { background: rgba(255,165,61,0.15); color: #ffa53d; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  background: var(--bg-2); border: 1px solid var(--line-1);
  border-radius: var(--r-lg); padding: 16px;
}
.stat .label { font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat .val { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; }
.stat .val small { font-size: 12px; color: var(--fg-2); font-weight: 500; margin-left: 2px; }

/* ---------- Collections ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.coll {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
}
.coll img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.2,0.7,0.3,1); }
.coll:hover img { transform: scale(1.06); }
.coll-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,8,10,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.coll-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.coll-count { display: flex; align-items: center; gap: 8px; color: var(--fg-1); font-size: 12.5px; margin-top: 6px; }
.coll-count .pill { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14); padding: 2px 8px; border-radius: 99px; backdrop-filter: blur(8px); }
.coll-tag { position: absolute; top: 14px; left: 14px; width: 36px; height: 6px; border-radius: 99px; }

/* ---------- Search ---------- */
.search-results { display: flex; flex-direction: column; gap: 6px; }
.sr-item {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 18px;
  padding: 14px; border-radius: var(--r-lg);
  cursor: pointer; align-items: center;
  transition: background 120ms;
}
.sr-item:hover { background: var(--bg-2); }
.sr-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-3); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb .card-duration { font-size: 10px; padding: 2px 6px; }
.sr-body h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.005em; }
.sr-body p { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-body .meta { display: flex; gap: 10px; color: var(--fg-3); font-size: 12px; align-items: center; }
.sr-body .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }
.sr-body mark { background: rgba(255,61,61,0.18); color: var(--accent-hi); padding: 0 2px; border-radius: 3px; }

.search-empty {
  text-align: center; padding: 80px 20px;
  color: var(--fg-2);
}
.search-empty h3 { font-family: var(--font-display); font-size: 22px; color: var(--fg-0); margin: 0 0 8px; }

/* ---------- Style variants ---------- */
/* Editorial: bigger type, more whitespace, OLED black, accent more muted */
.theme-editorial {
  --bg-1: #000000; --bg-2: #0c0c0e; --bg-3: #15151a; --bg-4: #1d1d24;
  --font-display: 'Instrument Serif', 'Cormorant Garamond', serif;
}
.theme-editorial .hero h1 { font-size: 56px; font-style: italic; font-weight: 400; }
.theme-editorial .section-head h2 { font-style: italic; font-weight: 400; font-size: 26px; }
.theme-editorial .brand-name { font-style: italic; font-weight: 400; }
.theme-editorial .page { padding: 0 64px 80px; }
.theme-editorial .player-info h1 { font-style: italic; font-weight: 400; font-size: 40px; }
.theme-editorial .card-title { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -0.005em; }
.theme-editorial .coll-name { font-style: italic; font-weight: 400; font-size: 26px; }

/* Vibrant: stronger gradients, larger imagery */
.theme-vibrant {
  --accent: #ff3d3d; --accent-hi: #ff8a3d;
}
.theme-vibrant .hero-grad {
  background:
    linear-gradient(90deg, rgba(8,8,10,0.92) 0%, rgba(255,61,61,0.18) 100%),
    linear-gradient(180deg, transparent 50%, rgba(8,8,10,0.85) 100%);
}
.theme-vibrant .card-thumb { box-shadow: 0 0 0 1px var(--line-1); }
.theme-vibrant .card:hover .card-thumb { box-shadow: 0 0 0 1px rgba(255,61,61,0.4), 0 20px 60px -20px rgba(255,61,61,0.3); }
.theme-vibrant .brand-mark { background: linear-gradient(135deg, var(--accent-hi), var(--accent)); }

/* Responsive */
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; top: 0; bottom: 0; width: 232px; z-index: 50; transition: left 240ms; }
  .app.menu-open .sidebar { left: 0; box-shadow: 0 0 40px rgba(0,0,0,0.8); }
  .app.menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 40; }
  .topbar { padding: 12px 18px; }
  .page { padding: 0 18px 60px; }
  .hero { aspect-ratio: 4/3; }
  .hero-content { max-width: 100%; padding: 24px; }
  .hero h1 { font-size: 28px; }
  .search-wrap { max-width: none; }
  .search-kbd { display: none; }
  .sr-item { grid-template-columns: 120px 1fr; gap: 12px; padding: 10px; }
  .sr-item > .icon-btn { display: none; }
  .stats { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 99px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }
