/* ── Google Fonts loaded in HTML ── */
:root {
  --bg-deep:     #060e08;
  --bg-base:     #0c1a10;
  --bg-surface:  #112016;
  --bg-card:     #172a1d;
  --bg-elevated: #1d3424;
  --bg-input:    #0e1c12;

  --border-dim:    rgba(70, 130, 80, 0.18);
  --border-mid:    rgba(70, 130, 80, 0.38);
  --border-bright: rgba(90, 170, 100, 0.65);

  --text-primary:   #c2d8ac;
  --text-secondary: #7fa870;
  --text-muted:     #4e7055;
  --text-accent:    #72c872;

  --gold:       #d4a840;
  --gold-light: #f0c858;
  --gold-dark:  #a07828;
  --gold-dim:   rgba(212, 168, 64, 0.25);

  --green-bright: #6acc6a;
  --green-mid:    #3d8a3d;
  --red-accent:   #a03535;
  --red-bright:   #c44545;

  --badge-movie: #5a2d8a;
  --badge-game:  #8a4020;

  --glow-green: 0 0 18px rgba(80, 170, 80, 0.25);
  --glow-gold:  0 0 18px rgba(212, 168, 64, 0.35);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-raised: 0 8px 40px rgba(0, 0, 0, 0.7);

  --font-fantasy:     'Cinzel', serif;
  --font-decorative:  'Cinzel Decorative', cursive;
  --font-body:        'Lato', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1380px;
  --header-height: 68px;
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 40%, rgba(20, 60, 30, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(15, 45, 25, 0.12) 0%, transparent 70%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-accent); }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-fantasy); font-weight: 600; }

/* ── UTILITIES ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-bright); }

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-mid);
  color: #e8f5e8;
  border-color: var(--green-bright);
}
.btn-primary:hover {
  background: var(--green-bright);
  color: #0c1a10;
  box-shadow: var(--glow-green);
  color: #0a180e;
}
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-mid);
}
.btn-outline:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: rgba(70, 130, 80, 0.1);
}
.btn-gold {
  background: var(--gold-dark);
  color: #1a1000;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold);
  box-shadow: var(--glow-gold);
}
.btn-danger {
  background: transparent;
  color: var(--red-accent);
  border-color: var(--red-accent);
}
.btn-danger:hover {
  background: var(--red-accent);
  color: #f5e8e8;
}
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 13px 32px; font-size: 1rem; }

/* ── HEADER ────────────────────────────────────────────────────────────────── */
.site-header {
  height: var(--header-height);
  background: rgba(10, 22, 14, 0.92);
  border-bottom: 1px solid var(--border-dim);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { height: 2rem; width: 2rem; border-radius: 4px; object-fit: cover; display: block; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-decorative);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(212, 168, 64, 0.45);
  letter-spacing: 0.03em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(70, 130, 80, 0.15);
}
.nav-link.active { color: var(--green-bright); }
.header-auth { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* User menu dropdown */
.user-menu { position: relative; }
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(70, 130, 80, 0.12);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.user-menu-btn:hover { border-color: var(--border-bright); background: rgba(70, 130, 80, 0.2); }
.user-chevron { font-size: 0.65rem; opacity: 0.6; transition: transform 0.2s; }
.user-menu.open .user-chevron { transform: rotate(180deg); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 300;
}
.user-menu.open .user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 18px;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: none;
  border: none;
  transition: all 0.15s;
  border-bottom: 1px solid var(--border-dim);
}
.user-dropdown a:last-child,
.user-dropdown button:last-child { border-bottom: none; }
.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(70, 130, 80, 0.15);
  color: var(--text-primary);
}
.user-dropdown .logout-btn { color: var(--red-accent); }
.user-dropdown .logout-btn:hover { background: rgba(160, 53, 53, 0.15); color: var(--red-bright); }

/* ── HERO BANNER ───────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(30, 90, 40, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-fantasy);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-decorative);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 168, 64, 0.3);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  font-style: italic;
  letter-spacing: 0.02em;
}
.hero-goblin { display: block; width: min(260px, 55vw); margin: 28px auto 0; border-radius: 16px; opacity: 0.93; }
.hero-rune {
  margin: 20px auto 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  position: relative;
}
.hero-rune::before {
  content: '⚔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: var(--gold-dark);
  background: var(--bg-deep);
  padding: 0 10px;
  line-height: 1;
}

/* ── FILTER BAR ────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dim);
}
.filter-bar .filter-label {
  font-family: var(--font-fantasy);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.filter-pills { display: flex; gap: 6px; }
.pill {
  padding: 5px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-dim);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--border-mid); color: var(--text-secondary); }
.pill.active {
  background: rgba(70, 130, 80, 0.2);
  border-color: var(--green-mid);
  color: var(--green-bright);
}
.filter-sep { width: 1px; height: 22px; background: var(--border-dim); margin: 0 4px; }
.sort-select {
  margin-left: auto;
  padding: 5px 30px 5px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237fa870' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.sort-select:hover, .sort-select:focus {
  border-color: var(--border-mid);
  outline: none;
  color: var(--text-primary);
}
.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ── REVIEW GRID ───────────────────────────────────────────────────────────── */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* ── REVIEW CARD ───────────────────────────────────────────────────────────── */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-card);
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-raised), var(--glow-green);
  border-color: var(--border-mid);
}
.card-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--bg-surface);
  overflow: hidden;
  flex-shrink: 0;
}
.card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.review-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}
.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-fantasy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.type-badge.movie { background: var(--badge-movie); color: #e0c8ff; border: 1px solid rgba(160, 100, 255, 0.3); }
.type-badge.game  { background: var(--badge-game);  color: #ffd8b0; border: 1px solid rgba(255, 160, 80, 0.3); }
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.stars-display { color: var(--text-muted); font-size: 1rem; letter-spacing: 1px; }
.stars-display .filled { color: var(--gold); }
.rating-num {
  font-family: var(--font-fantasy);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}
.card-subject {
  font-family: var(--font-fantasy);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.card-title {
  font-family: var(--font-fantasy);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.card-meta-author::before { content: '🧌 '; }
.card-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  align-self: flex-start;
}
.card-read-btn:hover {
  background: rgba(70, 130, 80, 0.15);
  border-color: var(--border-bright);
  color: var(--green-bright);
}
.card-read-btn::after { content: '→'; }

/* ── EMPTY STATE ───────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state .goblin-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 { font-family: var(--font-fantasy); color: var(--text-secondary); margin-bottom: 10px; }
.empty-state p { font-size: 0.95rem; max-width: 400px; margin: 0 auto 24px; }

/* ── PAGINATION ────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 64px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--border-mid); color: var(--text-primary); }
.page-btn.active { background: rgba(70, 130, 80, 0.2); border-color: var(--green-mid); color: var(--green-bright); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── FULL REVIEW PAGE ──────────────────────────────────────────────────────── */
.review-page { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.review-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.review-back:hover { color: var(--text-primary); }
.review-back::before { content: '←'; }
.review-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dim);
}
.review-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.review-subject {
  font-family: var(--font-fantasy);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.review-title {
  font-family: var(--font-fantasy);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}
.review-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.review-rating-large {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 24px;
}
.rating-stars-large { font-size: 1.1rem; color: var(--text-muted); letter-spacing: 2px; }
.rating-stars-large .filled { color: var(--gold); }
.rating-num-large {
  font-family: var(--font-fantasy);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.rating-label { font-size: 0.82rem; color: var(--text-muted); }
.review-thumb-full {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  border: 1px solid var(--border-dim);
}
.review-summary-block {
  background: var(--bg-elevated);
  border-left: 3px solid var(--gold-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  margin-bottom: 32px;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.review-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ── RICH TEXT CONTENT ─────────────────────────────────────────────────────── */
.review-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 40px;
}
.review-body h1, .review-body h2, .review-body h3, .review-body h4 {
  font-family: var(--font-fantasy);
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.review-body h2 { font-size: 1.3rem; }
.review-body h3 { font-size: 1.1rem; }
.review-body p { margin-bottom: 14px; }
.review-body blockquote {
  border-left: 3px solid var(--green-mid);
  padding: 10px 20px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(70, 130, 80, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.review-body ul, .review-body ol { padding-left: 24px; margin-bottom: 14px; }
.review-body li { margin-bottom: 4px; }
.review-body a { color: var(--green-bright); }
.review-body strong { color: var(--text-primary); font-weight: 700; }
.review-body em { color: var(--text-secondary); }
.review-body code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--green-bright);
}
.review-body pre {
  background: var(--bg-elevated);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 14px;
}

/* Quill ql-editor display override */
.review-body.ql-editor { padding: 0; }

/* Image gallery */
.review-images { margin-bottom: 36px; }
.review-images h3 {
  font-family: var(--font-fantasy);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.image-gallery a { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-dim); }
.image-gallery img { width: 100%; height: 150px; object-fit: cover; transition: transform 0.3s; }
.image-gallery a:hover img { transform: scale(1.05); }

/* Videos */
.review-videos { margin-bottom: 36px; }
.review-videos h3 {
  font-family: var(--font-fantasy);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dim);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── SUBMIT FORM ───────────────────────────────────────────────────────────── */
.submit-page { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.submit-page-title {
  font-family: var(--font-decorative);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.submit-page-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 36px; }

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.form-section-title {
  font-family: var(--font-fantasy);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.form-hint { font-size: 0.76rem; color: var(--text-muted); }
.form-input, .form-textarea, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 2px rgba(70, 130, 80, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.form-select { appearance: none; cursor: pointer; }
.char-count { font-size: 0.75rem; color: var(--text-muted); text-align: right; }

/* Type selector */
.type-selector { display: flex; gap: 12px; }
.type-option { flex: 1; }
.type-option input[type="radio"] { display: none; }
.type-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-input);
}
.type-option label .type-icon { font-size: 1.3rem; }
.type-option input:checked + label {
  border-color: var(--green-mid);
  background: rgba(70, 130, 80, 0.15);
  color: var(--text-primary);
  box-shadow: var(--glow-green);
}

/* Star rating widget */
.star-rating-widget { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
  padding: 2px;
}
.star-btn:hover, .star-btn.filled { color: var(--gold); }
.star-btn:hover { transform: scale(1.15); }
.star-rating-label {
  font-family: var(--font-fantasy);
  font-size: 1rem;
  color: var(--gold);
  margin-left: 10px;
  min-width: 60px;
}

/* Thumbnail preview */
.thumb-preview-wrap { display: flex; gap: 14px; align-items: flex-start; }
.thumb-preview-wrap .form-input { flex: 1; }
.thumb-preview-img {
  width: 100px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dim);
  background: var(--bg-elevated);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dynamic media list (images/videos) */
.media-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.media-item { display: flex; gap: 8px; align-items: center; }
.media-item .form-input { flex: 1; }
.media-remove-btn {
  background: none;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.media-remove-btn:hover { border-color: var(--red-accent); color: var(--red-accent); }
.media-add-btn {
  background: none;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 9px 18px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.media-add-btn:hover { border-color: var(--green-mid); color: var(--text-secondary); }

/* Quill editor dark theme overrides */
.ql-toolbar.ql-snow {
  background: var(--bg-elevated) !important;
  border-color: var(--border-dim) !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
}
.ql-container.ql-snow {
  background: var(--bg-input) !important;
  border-color: var(--border-dim) !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  min-height: 240px;
}
.ql-editor {
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  min-height: 240px !important;
}
.ql-editor.ql-blank::before { color: var(--text-muted) !important; font-style: italic; }
.ql-snow .ql-stroke { stroke: var(--text-muted) !important; }
.ql-snow .ql-fill { fill: var(--text-muted) !important; }
.ql-snow .ql-picker { color: var(--text-muted) !important; }
.ql-snow .ql-picker-options {
  background: var(--bg-elevated) !important;
  border-color: var(--border-dim) !important;
  border-radius: var(--radius-sm) !important;
}
.ql-snow .ql-picker-item:hover { color: var(--text-primary) !important; }
.ql-snow button:hover .ql-stroke,
.ql-snow button.ql-active .ql-stroke { stroke: var(--green-bright) !important; }
.ql-snow button:hover .ql-fill,
.ql-snow button.ql-active .ql-fill { fill: var(--green-bright) !important; }
.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-label.ql-active { color: var(--green-bright) !important; }
.ql-toolbar.ql-snow .ql-formats { margin-right: 10px; }

/* Submit buttons row */
.submit-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.submit-actions .submit-note { font-size: 0.8rem; color: var(--text-muted); }

/* ── LOGIN PAGE ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-raised);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .icon { display: block; margin: 0 auto 12px; width: 88px; height: 88px; object-fit: cover; border-radius: 14px; }
.auth-logo h1 {
  font-family: var(--font-decorative);
  font-size: 1.6rem;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}
.auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-dim); }
.auth-tab {
  flex: 1;
  padding: 11px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.auth-tab.active { background: rgba(70, 130, 80, 0.2); color: var(--green-bright); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .form-label { color: var(--text-muted); font-size: 0.82rem; }
.auth-form .form-input {
  background: var(--bg-input);
  border-color: var(--border-dim);
}
.auth-submit { width: 100%; padding: 12px; font-size: 1rem; margin-top: 4px; }
.auth-error {
  padding: 10px 14px;
  background: rgba(160, 53, 53, 0.15);
  border: 1px solid rgba(160, 53, 53, 0.4);
  border-radius: var(--radius-sm);
  color: var(--red-bright);
  font-size: 0.88rem;
  display: none;
}
.auth-error.visible { display: block; }

/* ── TOAST ─────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-raised);
  animation: toast-in 0.25s ease;
  pointer-events: auto;
  max-width: 320px;
}
.toast.success { background: #1a3d1a; border: 1px solid var(--green-mid); color: var(--green-bright); }
.toast.error   { background: #3d1a1a; border: 1px solid var(--red-accent); color: var(--red-bright); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOADING SKELETON ──────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.card-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skel-thumb { height: 180px; }
.skel-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.skel-line { height: 14px; }
.skel-line.short { width: 40%; }
.skel-line.medium { width: 70%; }

/* ── AVATARS ───────────────────────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  flex-shrink: 0;
  line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm  { width: 22px;  height: 22px;  font-size: 0.75rem; }
.avatar-nav { width: 28px;  height: 28px;  font-size: 0.9rem; border-color: var(--border-mid); }
.avatar-lg  { width: 96px;  height: 96px;  font-size: 2.5rem; border: 3px solid var(--border-mid); }

/* ── AUTOCOMPLETE ──────────────────────────────────────────────────────────── */
.autocomplete-wrap { position: relative; }
.ac-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  z-index: 300;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--shadow-raised);
  display: none;
}
.ac-dropdown.open { display: block; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-dim);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.focused { background: rgba(70,130,80,0.15); }
.ac-thumb {
  width: 30px; height: 44px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  overflow: hidden;
}
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-title  { font-size: 0.9rem; color: var(--text-primary); }
.ac-year   { font-size: 0.76rem; color: var(--text-muted); }
.ac-status { padding: 11px 14px; font-size: 0.84rem; color: var(--text-muted); font-style: italic; }

/* ── SEARCH BAR ────────────────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
  max-width: 280px;
}
.search-input {
  width: 100%;
  padding: 6px 12px 6px 32px;
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: 99px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.search-input:focus { outline: none; border-color: var(--border-mid); }
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

/* ── PROFILE PAGE ──────────────────────────────────────────────────────────── */
.profile-page { max-width: 1020px; margin: 0 auto; padding: 40px 24px 80px; }
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-username {
  font-family: var(--font-decorative);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 8px;
}
.profile-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.profile-stat strong { color: var(--text-secondary); }
.profile-edit-toggle { margin-top: 4px; }
.avatar-edit-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.avatar-edit-form .form-input { flex: 1; min-width: 200px; }
.avatar-preview-sm {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-mid);
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.profile-section-title {
  font-family: var(--font-fantasy);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dim);
}
@media (max-width: 600px) {
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-stats { justify-content: center; }
  .avatar-edit-form { justify-content: center; }
}

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 28px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-tagline {
  font-family: var(--font-fantasy);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--gold-dark);
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .logo-text { font-size: 1.1rem; }
  .site-nav { display: none; }
  .header-inner { gap: 12px; }
  .hero { padding: 36px 0 28px; }
  .auth-card { padding: 28px 22px; }
  .review-page { padding: 24px 16px 60px; }
  .submit-page { padding: 24px 16px 60px; }
  .filter-bar { gap: 8px; }
  .sort-select { width: 100%; margin-left: 0; }
}
@media (max-width: 500px) {
  .review-grid { grid-template-columns: 1fr; }
  .type-selector { flex-direction: column; }
}
