/* ===== CSS Variables ===== */
:root {
  --black: #0a0a0f;
  --surface: #111118;
  --surface-2: #1a1a24;
  --surface-3: #22222e;
  --border: #2a2a38;
  --purple: #7c3aed;
  --purple-light: #9d5cf6;
  --purple-darker: #4c1d95;
  --text: #f0f0f5;
  --text-secondary: #9090a8;
  --gray-light: #6b6b80;
  --red: #ef4444;
  --green: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page { padding-top: 32px; padding-bottom: 80px; }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}

.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--purple-light);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Search ===== */
.search-container { position: relative; }

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: text;
  transition: border-color var(--transition);
}

.search-wrap:focus-within { border-color: var(--purple); }

.search-wrap span {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 180px;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
  z-index: 200;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.search-dropdown.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background var(--transition);
}

.search-result-item:hover { background: var(--surface-3); }

.search-result-thumbnail {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-secondary);
  overflow: hidden;
}

.search-result-info { flex: 1; min-width: 0; }

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.search-result-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.search-result-channel {
  background: var(--purple-darker);
  color: var(--purple-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.search-result-highlight { color: var(--purple-light); font-weight: 700; }

.search-dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Buttons ===== */
.ghost-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--purple);
  color: var(--purple-light);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.ghost-btn:hover {
  background: var(--purple);
  color: #fff;
}

.notification-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.notification-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4b1f98 0%, #1e1e38 75%);
  transition: opacity 0.4s ease;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 12px;
  max-width: 600px;
}

.hero-description {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  max-width: 500px;
  margin-bottom: 16px;
}

.hero-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.genre-tag {
  background: rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: var(--purple-light);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
}

.hero-actions { display: flex; gap: 12px; }

.hero-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}

.hero-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.hero-btn.primary {
  background: var(--purple);
  color: #fff;
}

/* ===== Tabs ===== */
.tabs-container { margin-bottom: 28px; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  text-transform: capitalize;
  transition: color var(--transition), background var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple);
}

/* ===== Section ===== */
.section { margin-bottom: 48px; }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 20px;
}

/* ===== Poster Rail ===== */
.rail-nav { display: flex; gap: 8px; }

.rail-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}

.rail-nav-btn:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-3);
}

.rail-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.poster-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.poster-rail::-webkit-scrollbar { display: none; }

.poster-card {
  flex-shrink: 0;
  width: 160px;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  background: var(--surface-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.poster-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== Skeleton Loaders ===== */
.skeleton-card {
  flex-shrink: 0;
  width: 160px;
  height: 220px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-overlay.active .modal-container { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Form ===== */
.suggestion-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus { border-color: var(--purple); }

textarea.form-input { resize: vertical; min-height: 100px; }

select.form-input { cursor: pointer; }

.btn-submit {
  background: var(--purple);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity var(--transition);
  margin-top: 4px;
}

.btn-submit:hover:not(:disabled) { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
}

/* ===== Preview Card ===== */
.preview-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.preview-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple-light);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.1);
}

.preview-content {
  display: flex;
  gap: 14px;
  padding: 14px;
}

.preview-thumbnail {
  width: 60px;
  height: 80px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--surface-3);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-secondary);
}

.preview-info { flex: 1; min-width: 0; }

.preview-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-info p {
  font-size: 12px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.preview-meta { display: flex; gap: 8px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: var(--red); color: var(--red); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 200;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover { transform: translateY(-2px); }

/* ===== Browse Page ===== */
.browse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.browse-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
}

.browse-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-transform: capitalize;
  transition: all var(--transition);
}

.filter-btn:hover { color: var(--text); border-color: var(--purple); }
.filter-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.browse-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.browse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--purple);
}

.browse-card-cover {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--surface-3);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-secondary);
}

.browse-card-info { padding: 12px; }

.browse-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.channel-badge {
  background: var(--purple-darker);
  color: var(--purple-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.browse-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.browse-empty h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

/* ===== Admin Page ===== */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--purple-light);
}

.admin-table-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.admin-table-title {
  font-size: 16px;
  font-weight: 700;
}

.admin-filter-tabs {
  display: flex;
  gap: 4px;
}

.admin-filter-tab {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.admin-filter-tab:hover { color: var(--text); background: var(--surface-3); }
.admin-filter-tab.active { background: var(--purple); color: #fff; }

.suggestion-list { list-style: none; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--surface-3); }

.suggestion-cover {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--surface-3);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}

.suggestion-info { flex: 1; min-width: 0; }

.suggestion-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.suggestion-actions { display: flex; gap: 8px; flex-shrink: 0; }

.action-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--transition);
}

.action-btn:hover { opacity: 0.8; }

.action-btn.approve { background: rgba(34, 197, 94, 0.15); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
.action-btn.reject { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.action-btn.delete { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.pending { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.status-badge.approved { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.admin-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}

/* ===== Age Gate ===== */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.age-gate-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.age-gate-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.age-gate-overlay.active .age-gate-box {
  transform: translateY(0);
}

.age-gate-icon {
  font-size: 56px;
  margin-bottom: 16px;
  line-height: 1;
}

.age-gate-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text);
}

.age-gate-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.age-gate-text strong { color: var(--text); }

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.age-gate-btn {
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  width: 100%;
}

.age-gate-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.age-gate-btn.confirm {
  background: var(--purple);
  color: #fff;
}

.age-gate-btn.deny {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.age-gate-disclaimer {
  font-size: 11px;
  color: var(--gray-light);
  line-height: 1.5;
}

/* ===== 18+ Tab Badge ===== */
.tab-18 {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ===== Hero Dots ===== */
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.hero-btn.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

/* ===== New Badge ===== */
.new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.browse-card-cover { position: relative; }

/* ===== Detail Modal ===== */
.detail-modal {
  max-width: 720px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  min-height: 420px;
  max-height: 90vh;
}

.detail-cover {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface-3);
  background-size: cover;
  background-position: center top;
  position: relative;
}

.detail-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.detail-body {
  padding: 28px 28px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.detail-badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.detail-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.detail-meta {
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.detail-meta strong { color: var(--text-secondary); }

.detail-actions { display: flex; gap: 12px; }

/* ===== Hamburger ===== */
.hamburger-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.hamburger-btn:hover { color: var(--text); background: var(--surface-2); }

/* ===== Mobile Nav Drawer ===== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  padding: 0;
}

.mobile-nav-overlay.active .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
  text-transform: capitalize;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text);
  background: var(--surface-2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .topbar-inner { gap: 12px; }
  .main-nav { display: none; }
  .hamburger-btn { display: flex; }
  .search-wrap input { width: 120px; }
  .search-dropdown { width: 280px; right: -60px; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .suggestion-item { flex-wrap: wrap; }
  .suggestion-actions { width: 100%; justify-content: flex-end; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-body { padding: 20px; }
  .detail-title { font-size: 28px; }
  .detail-modal { flex-direction: column; min-height: unset; }
  .detail-cover { width: 100%; height: 220px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .modal-container { padding: 20px; }
  .browse-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Discord Login Button ===== */
.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: #5865f2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.discord-login-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ===== User Widget ===== */
.user-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--purple);
}

.user-avatar-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--purple-light);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-logout {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.user-logout:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

/* ===== Leaderboard Page ===== */
.lb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.lb-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.lb-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.lb-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lb-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.lb-list {
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.lb-item:last-child { border-bottom: none; }
.lb-item:hover { background: var(--surface-3); }

.lb-item-me {
  background: rgba(124, 58, 237, 0.08);
  border-left: 3px solid var(--purple);
}

.lb-rank-1 .lb-rank { color: #ffd700; font-size: 22px; }
.lb-rank-2 .lb-rank { color: #c0c0c0; font-size: 22px; }
.lb-rank-3 .lb-rank { color: #cd7f32; font-size: 22px; }

.lb-rank {
  width: 40px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.lb-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-darker);
  color: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.lb-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lb-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-you-badge {
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.lb-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.lb-count-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--purple-light);
  line-height: 1;
}

.lb-count-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lb-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-secondary);
  list-style: none;
}

.lb-empty h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--text); }

/* ===== Browse skeleton fix ===== */
.browse-skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  aspect-ratio: 2/3;
  width: 100%;
}

/* ===== My Suggestions tab ===== */
.my-suggestions-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.my-suggestion-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.my-suggestion-item:last-child { border-bottom: none; }

.my-suggestion-cover {
  width: 40px;
  height: 54px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--surface-3);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.my-suggestion-info { flex: 1; min-width: 0; }

.my-suggestion-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-suggestion-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.my-suggestions-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Hero empty state CTA ===== */
.hero-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-empty-cta:hover { background: rgba(255,255,255,0.18); }

/* ===== Mobile topbar improvements ===== */
.mobile-search-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.mobile-search-btn:hover { color: var(--text); background: var(--surface-2); }

/* ===== Mobile Search Overlay ===== */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 700;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mobile-search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-search-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px; /* 16px prevents iOS zoom */
  padding: 10px 14px;
  outline: none;
}
.mobile-search-input:focus { border-color: var(--purple); }
.mobile-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.mobile-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-search-item:hover { background: var(--surface-2); }
.mobile-search-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Mobile nav user widget ===== */
.mobile-nav-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-footer {
  padding: 16px 20px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

/* ===== Responsive overrides ===== */
@media (max-width: 768px) {
  /* Hide desktop search and user widget, show mobile versions */
  .search-container { display: none; }
  .user-widget-desktop { display: none; }
  .notification-btn { display: none; }
  .mobile-search-btn { display: flex; }

  /* Hide + Add from topbar on mobile — it's in the drawer */
  #openSuggestBtn { display: none; }

  /* Topbar spacing */
  .top-actions { gap: 8px; }
  .topbar-inner { gap: 8px; }
}

@media (min-width: 769px) {
  /* Hide mobile-only elements on desktop */
  .mobile-search-btn { display: none; }
  .mobile-nav-user { display: none; }
  .mobile-nav-footer { display: none; }
}

/* ===== Genre Dropdown ===== */
.genre-dropdown-wrap {
  position: relative;
}

.genre-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition);
  white-space: nowrap;
}

.genre-dropdown-btn:hover { border-color: var(--purple); }

.genre-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.genre-dropdown-menu.open { display: block; }

.genre-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  border-bottom: 1px solid var(--border);
}

.genre-dropdown-item:last-child { border-bottom: none; }

.genre-dropdown-item:hover {
  background: var(--surface-3);
  color: var(--text);
}

.genre-dropdown-item.active {
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.1);
  font-weight: 700;
}

/* Detail modal close button — top right of body panel */
.detail-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-3);
  z-index: 10;
}

.detail-body { position: relative; }

/* ===== Full-screen suggestion form on mobile ===== */
@media (max-width: 768px) {
  /* Suggestion modal — full screen */
  #modalOverlay {
    padding: 0;
    align-items: flex-end;
  }

  #modalOverlay .modal-container {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px 20px;
    transform: translateY(100%);
  }

  #modalOverlay.active .modal-container {
    transform: translateY(0);
  }

  /* Detail modal — full screen on mobile */
  #detailOverlay {
    padding: 0;
    align-items: flex-end;
  }

  #detailOverlay .modal-container {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
  }

  #detailOverlay.active .modal-container {
    transform: translateY(0);
  }
}

/* ===== Notifications ===== */
.notif-container {
  position: relative;
}

.notification-btn {
  position: relative;
}

.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--black);
  pointer-events: none;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 300;
  display: none;
  overflow: hidden;
}

.notif-dropdown.active { display: block; }

.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.notif-item:last-child { border-bottom: none; }

.notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.notif-approved .notif-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.notif-rejected .notif-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.notif-info { flex: 1; min-width: 0; }

.notif-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.notif-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.notif-approved .notif-status { color: var(--green); }
.notif-rejected .notif-status { color: var(--red); }

.notif-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ===== Disclaimer Bar ===== */
.disclaimer-bar {
  text-align: center;
  padding: 12px 24px;
  font-size: 12px;
  color: var(--gray-light);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.disclaimer-bar a {
  color: var(--purple-light);
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer-bar a:hover { color: var(--text); }
