/* ==========================================================================
   Front-end (Gallery + Watch) stylesheet
   - Intentionally kept separate from admin.css
   ========================================================================== */

/* Theme */
:root {
  --font-sans: 'Segoe UI', system-ui, sans-serif;

  --bg: #1f1f1f;
  --panel: #151515;
  --panel-2: #101010;

  --text: #eeeeee;
  --muted: #cfcfcf;

  --border: #2a2a2a;
  --border-2: #333333;

  --radius: 12px;

  --space-3: 16px;
  --space-4: 22px;

  --max-width: 1100px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
img { display: block; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 18px;

  background: var(--panel);
  border-bottom: 1px solid #222;

  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.95;
  user-select: none;
}
.brand-link { text-decoration: none; }

/* Search */
.search { flex: 1; }
.search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--panel-2);
  color: var(--text);
  outline: none;
}
.search input::placeholder { color: rgba(238, 238, 238, 0.55); }

/* Containers */
.container {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 16px;
}
.page-title {
  margin: 0 0 14px 0;
  font-size: 22px;
  font-weight: 800;
}

/* Gallery grid */
.grid {
  padding: var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.card { text-decoration: none; }
.thumb {
  background: #2b2b2b;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid #2c2c2c;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.meta { padding: 10px 4px; }
.title { font-weight: 800; margin-bottom: 3px; }
.sub { font-size: 13px; color: #d1d1d1; }
.muted { opacity: 0.7; }

/* Watch panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.player {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: var(--radius);
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
.meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.9;
}
.description {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
