/* ─────────────────────────────────────────────
   Social Army Go — Main Stylesheet
   Brand: Blue bg · Black cards · #CCFF00 accent
   ───────────────────────────────────────────── */

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #0000FF;
  --black:   #000000;
  --accent:  #CCFF00;
  --white:   #FFFFFF;
  --gray:    #888888;
  --card-border: rgba(255,255,255,0.08);
  --radius:  16px;
  --radius-lg: 20px;
  --nav-h:   68px;
  --top-nav-h: 56px;
  --font: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }

/* ── Typography ─────────────────────────────── */
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-accent {
  background: var(--black);
  color: var(--accent);
  border-color: var(--black);
}
.btn-accent:hover { background: #111; border-color: #111; transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: rgba(204,255,0,0.1); }

.btn-full { width: 100%; }
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-xl { font-size: 18px; padding: 16px 36px; }
.btn-sm { font-size: 13px; padding: 7px 14px; }

/* ── Top Nav ────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-nav-h);
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* ── Bottom Nav ─────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--black);
  display: flex;
  align-items: stretch;
  z-index: 100;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gray);
  transition: color 0.15s;
  padding: 8px 2px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover, .nav-item.active { color: var(--accent); }

.nav-icon { width: 22px; height: 22px; }
.nav-icon svg { width: 100%; height: 100%; }
.nav-label { font-size: 9px; font-weight: 600; font-family: var(--font); letter-spacing: 0.01em; }

/* ── Page Shell ─────────────────────────────── */
.page {
  padding: calc(var(--top-nav-h) + 8px) 0 calc(var(--nav-h) + 24px);
  min-height: 100vh;
}

.page-header {
  padding: 28px 20px 20px;
  text-align: center;
}
.page-title {
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--white);
  margin-bottom: 8px;
}
.page-sub {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
}

/* ── Empty State ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: rgba(255,255,255,0.5);
}
.empty-state h2 { color: var(--white); margin-bottom: 10px; font-size: 1.5rem; }
.empty-state p { margin-bottom: 24px; line-height: 1.6; }
.empty-state strong { color: var(--accent); }

/* ── HOME PAGE ──────────────────────────────── */
.home-page {
  padding-top: var(--top-nav-h);
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(204,255,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-logo {
  margin: 0 auto 14px;
}
.hero-logo img {
  max-height: 48px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: clamp(13px, 3vw, 14px);
  color: rgba(255,255,255,0.75);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Feature Cards */
.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 16px 16px;
}

@media (min-width: 640px) {
  .features { flex-direction: row; align-items: stretch; }
}

.feature-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.feature-card:hover { border-color: rgba(204,255,0,0.35); transform: translateY(-2px); }

.feature-icon { font-size: 24px; margin-bottom: 2px; }

.feature-title {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  flex: 1;
}

.feature-cta {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
  text-align: right;
}

/* Home Community CTA */
.home-community {
  text-align: center;
  padding: 8px 20px 24px;
}

/* ── VIDEOS PAGE ────────────────────────────── */
.videos-page {
  padding-top: calc(var(--top-nav-h) + 8px);
  padding-bottom: calc(var(--nav-h) + 24px);
  min-height: 100vh;
}

.tabs-wrapper {
  padding: 16px 16px 12px;
  position: sticky;
  top: var(--top-nav-h);
  z-index: 50;
  background: var(--blue);
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.15);
  background: var(--black);
  color: rgba(255,255,255,0.5);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
}
.tab.active {
  color: var(--accent);
  border-color: var(--accent);
}
.tab:not(.active):hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

.tab-panel { display: none; padding: 8px 0 0; }
.tab-panel.active { display: block; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

@media (min-width: 800px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s;
}
.video-card:hover { border-color: rgba(204,255,0,0.25); }

.video-card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.video-rank {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.video-views {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: right;
  line-height: 1.3;
}

/* Play area */
.video-play-area {
  background: rgba(255,255,255,0.05);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}
.video-play-area:hover { background: rgba(204,255,0,0.08); }

.video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.15s, transform 0.15s;
  z-index: 1;
}
.video-play-area:hover .play-btn {
  background: var(--accent);
  color: var(--black);
  transform: scale(1.1);
}

.video-handle-link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  font-family: var(--font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  text-decoration: none;
  transition: color 0.15s;
}
.video-handle-link:hover { color: var(--accent); }

.btn-watch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  background: var(--black);
  color: var(--accent);
  border: 1.5px solid rgba(204,255,0,0.3);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-watch:hover { border-color: var(--accent); background: rgba(204,255,0,0.07); }

/* ── TikTok Popup ────────────────────────────── */
.tiktok-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.tiktok-overlay.open { display: flex; }

.tiktok-popup {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.tiktok-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.tiktok-close:hover { opacity: 1; }

/* ── CREATORS PAGE ──────────────────────────── */
.creators-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 24px;
}

.creator-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}
.creator-card:hover { border-color: rgba(204,255,0,0.25); }

.creator-rank {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
  line-height: 1;
}

.creator-info {
  flex: 1;
  min-width: 0;
}

.creator-handle {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(204,255,0,0.1);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ── LEADERBOARD PAGE ───────────────────────── */
.leaderboard-table-wrap {
  padding: 0 16px 40px;
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
}

.leaderboard-table thead tr {
  border-bottom: 2px solid rgba(204,255,0,0.2);
}

.leaderboard-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.leaderboard-table tbody tr:last-child { border-bottom: none; }
.leaderboard-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.leaderboard-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.rank-cell {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px !important;
  width: 60px;
}

.name-cell {
  font-family: var(--font);
  font-weight: 600;
  color: var(--white) !important;
}

.score-cell {
  font-family: var(--font);
  font-weight: 800;
  color: var(--accent) !important;
  font-size: 16px !important;
}

.rank-gold td { background: rgba(255, 215, 0, 0.05); }
.rank-silver td { background: rgba(192, 192, 192, 0.04); }
.rank-bronze td { background: rgba(205, 127, 50, 0.04); }

.leaderboard-empty {
  padding: 80px 24px;
}
.empty-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,0.15);
}
.empty-icon svg { width: 100%; height: 100%; }

/* ── COMMUNITY PAGE ─────────────────────────── */
.community-page {
  padding-top: calc(var(--top-nav-h) + 8px);
  padding-bottom: calc(var(--nav-h) + 24px);
  min-height: 100vh;
}

.community-hero {
  text-align: center;
  padding: 40px 24px 32px;
}

.community-hero h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.community-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-bottom: 28px;
}

.community-main-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  margin: 0 16px 20px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.community-discord-icon {
  width: 56px; height: 56px;
  color: var(--accent);
}
.community-discord-icon svg { width: 100%; height: 100%; }

.community-main-card h2 {
  font-size: 1.5rem;
  color: var(--white);
}

.community-main-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.community-support {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin: 0 16px 24px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.community-support p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.community-logo-footer {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}

.community-logo-footer img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.7;
}

/* ── ADMIN SHARED ────────────────────────────── */
.admin-body {
  background: var(--blue);
  min-height: 100vh;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.alert-error {
  background: rgba(255,60,60,0.15);
  border: 1px solid rgba(255,60,60,0.3);
  color: #ff6b6b;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: rgba(255,255,255,0.25); }
.form-group input[type="file"] { cursor: pointer; }

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── ADMIN LOGIN ─────────────────────────────── */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
}

.admin-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-text {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.admin-login-title {
  text-align: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.2;
}
.admin-login-title span { color: var(--accent); }

/* ── ADMIN DASHBOARD ─────────────────────────── */
.admin-dash-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 20px;
}

.admin-main {
  flex: 1;
  padding: 28px 20px 60px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.admin-title {
  font-size: 2rem;
  margin-bottom: 24px;
}

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr; }
}

.stat-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 14px;
}
.stat-number {
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* Actions */
.admin-actions { margin-bottom: 32px; }
.admin-actions h2, .admin-api-info h2, .upload-form-wrap h2 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 440px) { .action-grid { grid-template-columns: 1fr; } }

.action-card {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
  color: var(--white);
}
.action-card:hover { border-color: rgba(204,255,0,0.3); transform: translateY(-1px); }

.action-icon { font-size: 20px; flex-shrink: 0; }
.action-text strong {
  display: block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.action-text span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.action-card-danger:hover { border-color: rgba(255,80,80,0.4); }
.action-card-upload { cursor: pointer; }

/* Upload form */
.upload-form-wrap {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.upload-help {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.upload-help code {
  color: var(--accent);
  background: rgba(204,255,0,0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

/* API info */
.admin-api-info {
  background: var(--black);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}
.admin-api-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  line-height: 1.6;
}
.admin-api-info code {
  color: var(--accent);
  background: rgba(204,255,0,0.1);
  padding: 1px 5px;
  border-radius: 4px;
}
.admin-api-info pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
  overflow-x: auto;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.admin-api-info pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── Video Play Overlay Label ───────────────── */
.video-play-overlay-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
  color: rgba(255,255,255,0.9);
  text-align: center;
  letter-spacing: 0.04em;
  z-index: 2;
  pointer-events: none;
}

/* ── Add to Home Screen Banner ──────────────── */
#ath-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--black);
  border-bottom: 1px solid rgba(204,255,0,0.2);
  padding: 10px 14px;
}
.ath-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ath-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
}
.ath-text {
  flex: 1;
  font-size: 12px;
  font-family: var(--font);
  color: var(--accent);
  line-height: 1.4;
}
.ath-add-btn {
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  flex-shrink: 0;
}
.ath-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}
.ath-ios-tip {
  font-size: 12px;
  font-family: var(--font);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 8px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 8px;
}
.ath-ios-tip strong { color: var(--accent); }

/* ── Admin Dashboard Tabs ───────────────────── */
.admin-tabs-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
}
.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.4);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.admin-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.admin-tab-btn:hover:not(.active) { color: var(--white); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Sub-tabs */
.sub-tabs-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.sub-tab-btn {
  background: var(--black);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.sub-tab-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}
.sub-tab-btn:hover:not(.active) { color: var(--white); border-color: rgba(255,255,255,0.25); }

.sub-panel { display: none; }
.sub-panel.active { display: block; }

/* Editable rows */
.admin-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.list-count {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-list-labels {
  display: grid;
  grid-template-columns: 90px 120px 1fr 32px;
  gap: 6px;
  padding: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font);
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.edit-row {
  display: grid;
  grid-template-columns: 90px 120px 1fr 32px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}
.edit-row input[type="text"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--white);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  min-width: 0;
}
.edit-row input[type="text"]:focus { border-color: var(--accent); }
.edit-row .url-input { font-size: 12px; }
.row-num {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-align: center;
}
.btn-delete {
  background: none;
  border: 1px solid rgba(255,80,80,0.25);
  border-radius: 6px;
  color: rgba(255,100,100,0.6);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-delete:hover {
  background: rgba(255,60,60,0.1);
  border-color: rgba(255,80,80,0.5);
  color: #ff6b6b;
}

/* Save bar */
.save-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Admin cards / sections */
.admin-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
}
.section-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.4) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 10px !important;
}
.admin-divider {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 0;
  position: relative;
}
.admin-divider::before,
.admin-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 80px);
  height: 1px;
  background: rgba(255,255,255,0.07);
}
.admin-divider::before { left: 0; }
.admin-divider::after { right: 0; }

/* ── Responsive tweaks ──────────────────────── */
@media (max-width: 360px) {
  .video-rank { font-size: 1.1rem; }
}

@media (min-width: 768px) {
  .page-header { padding-top: 32px; }
  .features { padding: 8px 24px 32px; }
  .creators-list, .leaderboard-table-wrap { padding-left: 24px; padding-right: 24px; }
  .tabs-wrapper { padding-left: 24px; padding-right: 24px; }
  .tab-panel { padding-left: 24px; padding-right: 24px; }
  .community-main-card, .community-support { margin-left: 24px; margin-right: 24px; }
}
