/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-base:    #0D0F14;
  --bg-surface: #161921;
  --bg-card:    #1C2030;
  --border:     #252A35;
  --gold:       #E8B84B;
  --gold-dim:   rgba(232,184,75,0.15);
  --gold-glow:  rgba(232,184,75,0.08);
  --text:       #F0F2F5;
  --text-muted: #8892A4;
  --danger:     #E05C5C;
  --success:    #4CAF82;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: 0.18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,.display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 480px;  margin: 0 auto; padding: 0 24px; }
.section      { padding: 32px 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(13,15,20,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  height: 62px;
}
.navbar .container {
  display: flex; align-items: center; gap: 20px; height: 100%;
}
.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); flex-shrink: 0;
}
.logo span { color: var(--text); }

.search-form {
  flex: 1; max-width: 500px;
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.search-form input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); padding: 0 18px; font-size: 14px;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: var(--gold); border: none; cursor: pointer;
  padding: 0 18px; color: #0D0F14;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.search-form button:hover { background: #f0c860; }

.nav-actions {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto; flex-shrink: 0;
}
.nav-user {
  display: flex; align-items: center; gap: 8px;
}
.nav-username {
  font-size: 14px; font-weight: 600; color: var(--text);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm);
  border: none; cursor: pointer;
  font-weight: 600; font-size: 14px;
  transition: all var(--ease); white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: #0D0F14;
}
.btn-primary:hover {
  background: #f0c860;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--gold-dim);
}
.btn-secondary {
  background: var(--bg-surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-muted); }
.btn-danger {
  background: rgba(224,92,92,.1); color: var(--danger);
  border: 1px solid rgba(224,92,92,.3);
}
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-ghost {
  background: transparent; color: var(--text-muted); border: 1px solid transparent; padding: 8px 14px;
}
.btn-ghost:hover { background: var(--bg-surface); color: var(--text); }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-icon { padding: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.flash-bar {
  position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.alert { display:flex; align-items:flex-start; gap:10px; padding:12px 16px; border-radius:var(--r-sm); font-size:14px; margin-bottom:18px; }
.alert-success { background:rgba(76,175,130,.1);  border:1px solid rgba(76,175,130,.3);  color:var(--success); }
.alert-error   { background:rgba(224,92,92,.1);   border:1px solid rgba(224,92,92,.3);   color:var(--danger);  }
.alert-warning { background:rgba(232,184,75,.1);  border:1px solid rgba(232,184,75,.3);  color:var(--gold);    }
.alert-info    { background:var(--gold-glow);      border:1px solid rgba(232,184,75,.3);  color:var(--gold);    }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display:inline-block; padding:2px 8px; border-radius:3px;
  font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  font-family:'Barlow Condensed',sans-serif;
}
.badge-admin { background:rgba(232,184,75,.15); color:var(--gold); border:1px solid rgba(232,184,75,.3); }
.badge-user  { background:var(--bg-card); color:var(--text-muted); border:1px solid var(--border); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--gold-glow) 0%, transparent 100%);
}
.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800; letter-spacing: .04em; margin-bottom: 10px;
}
.hero-title .accent { color: var(--gold); }
.hero-sub   { color: var(--text-muted); font-size: 16px; max-width: 500px; }

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.category-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 4px;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 50px; white-space: nowrap;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  transition: all var(--ease); cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--gold-dim); border-color: var(--gold); color: var(--gold);
}
.cat-count {
  font-size: 11px; background: var(--border);
  padding: 1px 6px; border-radius: 10px; color: var(--text-muted);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px; display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 20px;
  background: var(--gold); border-radius: 2px;
}

/* ============================================================
   VIDEO GRID & CARD
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,184,75,.4);
  box-shadow: 0 10px 32px rgba(0,0,0,.5);
}
.thumb-wrap {
  position: relative; aspect-ratio: 16/9;
  background: var(--bg-card); overflow: hidden;
}
.thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.video-card:hover .thumb-wrap img { transform: scale(1.05); }
.thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--border); background: var(--bg-card);
}

/* Signature element: gold view-intensity bar */
.view-bar {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(232,184,75,.3) 100%);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}
.duration-badge {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.82); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: 4px; font-family: 'Barlow Condensed',sans-serif; letter-spacing: .05em;
}
.play-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  transition: background var(--ease);
}
.play-layer svg {
  opacity: 0; transform: scale(.8); color: #fff;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.8));
  transition: opacity var(--ease), transform var(--ease);
}
.video-card:hover .play-layer { background: rgba(0,0,0,.3); }
.video-card:hover .play-layer svg { opacity: 1; transform: scale(1); }

.card-body { padding: 13px; }
.card-title {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; margin-bottom: 8px;
}
.card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.card-cat {
  display: inline-block; margin-top: 8px;
  font-size: 10px; font-weight: 700; color: var(--gold);
  background: var(--gold-dim); padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .05em;
  font-family: 'Barlow Condensed',sans-serif;
}
/* Admin card actions overlay */
.card-admin-actions {
  display: none; position: absolute; top: 8px; right: 8px; gap: 6px;
}
.video-card:hover .card-admin-actions { display: flex; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; justify-content: center; gap: 8px; padding: 36px 0 16px;
}
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--r-sm); background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: all var(--ease);
}
.page-btn:hover, .page-btn.current {
  background: var(--gold-dim); border-color: var(--gold); color: var(--gold);
}

/* ============================================================
   VIDEO PLAYER PAGE
   ============================================================ */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px; padding: 28px 0;
}
.video-wrap {
  background: #000; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 16/9;
}
.video-wrap video { width: 100%; height: 100%; }
.video-title {
  font-size: clamp(20px, 3vw, 28px);
  margin: 18px 0 14px;
}
.video-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.video-stat { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; }
.btn-like {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: all var(--ease);
}
.btn-like:hover, .btn-like.liked {
  background: var(--gold-dim); border-color: var(--gold); color: var(--gold);
}
.video-desc {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 16px;
  font-size: 14px; color: var(--text-muted);
  line-height: 1.7; white-space: pre-wrap; margin-bottom: 28px;
}

/* ── Related sidebar ── */
.sidebar-heading { font-size: 16px; margin-bottom: 16px; }
.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-card { display: flex; gap: 10px; transition: opacity var(--ease); }
.related-card:hover { opacity: .8; }
.related-thumb {
  width: 120px; flex-shrink: 0; aspect-ratio: 16/9;
  border-radius: var(--r-sm); overflow: hidden; background: var(--bg-card);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; min-width: 0; }
.related-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; margin-bottom: 4px;
}
.related-meta { font-size: 11px; color: var(--text-muted); }

/* ── Comments ── */
.comments-section { margin-top: 8px; }
.comments-section h3 { font-size: 20px; margin-bottom: 20px; }
.comment-form { margin-bottom: 24px; }
.comment-form textarea {
  width: 100%; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); padding: 12px 16px;
  resize: vertical; min-height: 84px; outline: none; margin-bottom: 10px;
  font-size: 14px; line-height: 1.6;
  transition: border-color var(--ease);
}
.comment-form textarea:focus { border-color: var(--gold); }
.comment-form textarea::placeholder { color: var(--text-muted); opacity: .6; }

.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-dim); border: 1px solid rgba(232,184,75,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed',sans-serif; font-weight: 800;
  color: var(--gold); font-size: 14px; flex-shrink: 0; text-transform: uppercase;
}
.comment-meta { font-size: 13px; font-weight: 600; margin-bottom: 4px; display:flex; gap:8px; align-items:center; }
.comment-time { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.comment-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.comment-del { font-size: 12px; color: var(--danger); cursor: pointer; margin-left: auto; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px; width: 100%; max-width: 420px;
}
.auth-card h1 { font-size: 34px; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--gold); font-weight: 600; }

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 7px; font-family: 'Barlow Condensed',sans-serif;
}
.form-control {
  width: 100%; background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); padding: 11px 14px;
  font-size: 15px; outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.form-control::placeholder { color: var(--text-muted); opacity: .6; }
textarea.form-control { resize: vertical; min-height: 96px; line-height: 1.6; }
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%238892A4' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-layout {
  display: flex; min-height: calc(100vh - 62px);
}
.admin-sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--bg-surface); border-right: 1px solid var(--border);
  padding: 28px 0;
  position: sticky; top: 62px; height: calc(100vh - 62px);
  overflow-y: auto;
}
.sidebar-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 0 20px 10px;
  font-family: 'Barlow Condensed',sans-serif;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--ease);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--text); background: var(--bg-card); border-left-color: var(--gold);
}
.nav-icon { font-size: 18px; width: 20px; text-align: center; }

.admin-content { flex: 1; padding: 32px; overflow: auto; }
.admin-content > h1 { font-size: 34px; margin-bottom: 24px; }

/* ── Stats grid ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
  transition: border-color var(--ease);
}
.stat-card:hover { border-color: var(--gold); }
.stat-icon { font-size: 26px; margin-bottom: 8px; }
.stat-value {
  font-family: 'Barlow Condensed',sans-serif;
  font-size: 38px; font-weight: 800; color: var(--gold); line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ── Data table ── */
.table-wrap { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.data-table  { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--bg-card); }
.data-table th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  font-family: 'Barlow Condensed',sans-serif;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid rgba(37,42,53,.5); vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-card); }
.thumb-sm {
  width: 64px; height: 36px; object-fit: cover;
  border-radius: 4px; background: var(--bg-card);
}

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--r-md);
  padding: 52px 24px; text-align: center; cursor: pointer;
  transition: all var(--ease); background: var(--bg-base);
  margin-bottom: 20px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold); background: var(--gold-glow);
}
.upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 44px; margin-bottom: 12px; }
.upload-label { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.upload-sub   { font-size: 13px; color: var(--text-muted); }
.upload-name  { margin-top: 10px; font-size: 13px; color: var(--gold); font-weight: 600; }
.progress-wrap {
  display: none; height: 6px; background: var(--border);
  border-radius: 3px; overflow: hidden; margin-top: 16px;
}
.progress-bar {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), #f0c860);
  transition: width .3s ease;
}
.upload-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px;
}
.upload-form-grid .form-group:nth-child(odd):last-child { grid-column: span 2; }

/* ── Category manager ── */
.cat-add-form { display:flex; gap:10px; margin-bottom:24px; }
.cat-add-form .form-control { flex:1; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-icon { font-size: 60px; margin-bottom: 14px; }
.empty-title { font-size: 22px; font-family: 'Barlow Condensed',sans-serif; color: var(--text); margin-bottom: 8px; }
.empty-text { margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 22px 0; margin-top: 60px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
}
.footer-logo {
  font-family: 'Barlow Condensed',sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: .08em; color: var(--gold);
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header { padding: 28px 0 10px; }
.search-header h2 { font-size: 28px; }
.search-header p  { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .player-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .admin-layout   { flex-direction: column; }
  .admin-sidebar  { width: 100%; height: auto; position: static; overflow: visible; }
  .sidebar-nav    { display: flex; flex-wrap: wrap; }
  .sidebar-nav a  { padding: 10px 14px; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-nav a.active, .sidebar-nav a:hover { border-bottom-color: var(--gold); border-left-color: transparent; }
  .admin-content  { padding: 20px 16px; }
  .upload-form-grid { grid-template-columns: 1fr; }
  .upload-form-grid .form-group:nth-child(odd):last-child { grid-column: span 1; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .video-grid     { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-inner   { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .navbar .container { gap: 10px; }
  .search-form    { max-width: none; }
  .container      { padding: 0 14px; }
  .auth-card      { padding: 28px 20px; }
  .stats-grid     { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FEATURE ADDITIONS
   ============================================================ */

/* ── Tags ──────────────────────────────────────────────────── */
.tag-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.tag-pill {
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 10px; border-radius:50px; font-size:12px; font-weight:600;
  background:var(--bg-card); border:1px solid var(--border); color:var(--text-muted);
  transition:all var(--ease);
}
.tag-pill:hover { background:var(--gold-dim); border-color:var(--gold); color:var(--gold); }
.tag-pill .tag-hash { color:var(--gold); margin-right:1px; }

/* ── Star Rating ───────────────────────────────────────────── */
.star-rating { display:flex; gap:3px; align-items:center; }
.star { font-size:20px; cursor:pointer; color:var(--border); transition:color .15s; line-height:1; }
.star.filled, .star:hover, .star.hover { color:var(--gold); }
.rating-meta { font-size:13px; color:var(--text-muted); margin-left:8px; }

/* ── Embed / Share bar ─────────────────────────────────────── */
.share-bar {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:14px 16px; background:var(--bg-surface); border:1px solid var(--border);
  border-radius:var(--r-sm); margin-bottom:20px;
}
.share-bar label { font-size:12px; font-weight:700; color:var(--text-muted);
  text-transform:uppercase; letter-spacing:.07em; white-space:nowrap; }
.share-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:var(--r-sm); font-size:13px; font-weight:600;
  background:var(--bg-card); border:1px solid var(--border); color:var(--text-muted);
  cursor:pointer; transition:all var(--ease);
}
.share-btn:hover { background:var(--gold-dim); border-color:var(--gold); color:var(--gold); }
.embed-wrap { position:relative; }
.embed-input {
  width:100%; background:var(--bg-base); border:1px solid var(--border); border-radius:var(--r-sm);
  color:var(--text-muted); padding:8px 40px 8px 12px; font-size:12px; font-family:monospace;
  outline:none; cursor:text;
}
.copy-btn {
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  background:var(--gold); color:#0D0F14; border:none; border-radius:4px;
  padding:3px 8px; font-size:11px; font-weight:700; cursor:pointer;
}

/* ── Match scorecard ───────────────────────────────────────── */
.match-card {
  background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--r-md);
  padding:18px 20px; margin-bottom:20px; display:flex; align-items:center; gap:16px;
}
.match-team { flex:1; text-align:center; }
.match-team-name { font-family:'Barlow Condensed',sans-serif; font-size:18px; font-weight:700; }
.match-score { font-family:'Barlow Condensed',sans-serif; font-size:42px; font-weight:800; color:var(--gold); }
.match-sep { color:var(--text-muted); font-size:18px; margin:0 4px; }
.match-meta { font-size:12px; color:var(--text-muted); text-align:center; margin-top:10px; }
.match-logo { width:48px; height:48px; border-radius:50%; object-fit:cover; margin:0 auto 6px; background:var(--bg-card); }

/* ── Trending score bar ─────────────────────────────────────── */
.trending-badge {
  position:absolute; top:8px; left:8px;
  background:linear-gradient(135deg,var(--gold),#f0c860);
  color:#0D0F14; font-size:10px; font-weight:800;
  padding:2px 8px; border-radius:3px;
  font-family:'Barlow Condensed',sans-serif; letter-spacing:.05em;
  text-transform:uppercase;
}

/* ── Featured hero ──────────────────────────────────────────── */
.featured-hero {
  position:relative; border-radius:var(--r-lg); overflow:hidden;
  aspect-ratio:21/8; background:var(--bg-card); margin-bottom:32px;
}
.featured-hero img { width:100%; height:100%; object-fit:cover; }
.featured-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to right, rgba(13,15,20,.95) 35%, rgba(13,15,20,.2) 100%);
  display:flex; align-items:flex-end; padding:36px;
}
.featured-meta { max-width:480px; }
.featured-label {
  font-size:11px; font-weight:800; color:var(--gold); text-transform:uppercase;
  letter-spacing:.1em; margin-bottom:10px; font-family:'Barlow Condensed',sans-serif;
}
.featured-title { font-size:clamp(22px,4vw,40px); font-weight:800; margin-bottom:10px; }
.featured-sub { font-size:14px; color:rgba(240,242,245,.7); margin-bottom:20px; }

/* ── Profile page ───────────────────────────────────────────── */
.profile-header {
  display:flex; align-items:center; gap:24px; padding:32px 0 24px;
  border-bottom:1px solid var(--border); margin-bottom:32px; flex-wrap:wrap;
}
.profile-avatar {
  width:80px; height:80px; border-radius:50%;
  border:3px solid var(--gold); object-fit:cover; background:var(--bg-card);
  display:flex; align-items:center; justify-content:center;
  font-family:'Barlow Condensed',sans-serif; font-size:32px; font-weight:800; color:var(--gold);
  flex-shrink:0;
}
.profile-name { font-size:28px; font-weight:800; margin-bottom:4px; }
.profile-meta { color:var(--text-muted); font-size:14px; }
.profile-bio { color:var(--text-muted); font-size:14px; margin-top:8px; line-height:1.6; max-width:500px; }
.profile-tabs { display:flex; gap:0; border-bottom:1px solid var(--border); margin-bottom:24px; }
.profile-tab {
  padding:10px 20px; font-size:14px; font-weight:600; color:var(--text-muted);
  border-bottom:3px solid transparent; cursor:pointer; transition:all var(--ease);
}
.profile-tab.active, .profile-tab:hover { color:var(--gold); border-bottom-color:var(--gold); }

/* ── Settings page ──────────────────────────────────────────── */
.settings-layout { display:grid; grid-template-columns:220px 1fr; gap:32px; padding:32px 0; }
.settings-nav { border-right:1px solid var(--border); padding-right:24px; }
.settings-nav a {
  display:block; padding:9px 14px; border-radius:var(--r-sm); font-size:14px; font-weight:500;
  color:var(--text-muted); margin-bottom:4px; transition:all var(--ease);
}
.settings-nav a:hover, .settings-nav a.active { background:var(--gold-dim); color:var(--gold); }
.settings-section h2 { font-size:22px; margin-bottom:20px; }
.settings-section { max-width:520px; }

/* ── Playlist page ──────────────────────────────────────────── */
.playlist-header {
  padding:28px 0 20px; border-bottom:1px solid var(--border); margin-bottom:28px;
}
.playlist-header h1 { font-size:34px; margin-bottom:8px; }
.playlist-numbered .video-card-inner { display:flex; gap:16px; align-items:flex-start; }
.playlist-num {
  font-family:'Barlow Condensed',sans-serif; font-size:22px; font-weight:800;
  color:var(--text-muted); min-width:28px; padding-top:2px;
}

/* ── Team/Season page ───────────────────────────────────────── */
.entity-header {
  display:flex; align-items:center; gap:20px; padding:28px 0 20px;
  border-bottom:1px solid var(--border); margin-bottom:28px;
}
.entity-logo {
  width:64px; height:64px; border-radius:50%;
  object-fit:cover; border:2px solid var(--border); background:var(--bg-card);
}
.entity-name { font-size:32px; font-weight:800; }
.entity-meta { font-size:14px; color:var(--text-muted); margin-top:4px; }

/* ── Notification bell ─────────────────────────────────────── */
.nav-notif { position:relative; }
.notif-dot {
  position:absolute; top:4px; right:4px; width:8px; height:8px;
  background:var(--gold); border-radius:50%; border:2px solid var(--bg-base);
}

/* ── Embed page ─────────────────────────────────────────────── */
.embed-page body { background:#000; margin:0; }
.embed-page video { width:100vw; height:100vh; display:block; }

/* ── Toggle switch ──────────────────────────────────────────── */
.toggle-wrap { display:flex; align-items:center; gap:12px; cursor:pointer; }
.toggle { position:relative; width:44px; height:24px; }
.toggle input { opacity:0; width:0; height:0; }
.toggle-slider {
  position:absolute; inset:0; background:var(--border); border-radius:12px;
  transition:background var(--ease);
}
.toggle-slider::before {
  content:''; position:absolute; left:3px; top:3px;
  width:18px; height:18px; border-radius:50%; background:#fff;
  transition:transform var(--ease);
}
.toggle input:checked + .toggle-slider { background:var(--gold); }
.toggle input:checked + .toggle-slider::before { transform:translateX(20px); }

/* ── Bulk actions ───────────────────────────────────────────── */
.bulk-bar {
  display:none; align-items:center; gap:12px; padding:12px 16px;
  background:var(--gold-dim); border:1px solid var(--gold); border-radius:var(--r-sm);
  margin-bottom:16px;
}
.bulk-bar.visible { display:flex; }
.bulk-count { font-size:14px; font-weight:600; color:var(--gold); }

/* ── Visibility badge ───────────────────────────────────────── */
.vis-badge {
  display:inline-block; padding:2px 8px; border-radius:3px; font-size:10px;
  font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  font-family:'Barlow Condensed',sans-serif;
}
.vis-public   { background:rgba(76,175,130,.15); color:#4CAF82; border:1px solid rgba(76,175,130,.3); }
.vis-unlisted { background:rgba(232,184,75,.15);  color:var(--gold); border:1px solid rgba(232,184,75,.3); }
.vis-private  { background:rgba(224,92,92,.15);   color:var(--danger); border:1px solid rgba(224,92,92,.3); }

/* ── Analytics ──────────────────────────────────────────────── */
.chart-wrap { background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--r-md); padding:20px; margin-bottom:24px; }
.chart-wrap h3 { font-size:18px; margin-bottom:16px; }
.mini-bar-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.mini-bar-label { font-size:13px; color:var(--text); min-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini-bar-track { flex:1; height:8px; background:var(--border); border-radius:4px; overflow:hidden; }
.mini-bar-fill { height:100%; background:linear-gradient(90deg,var(--gold),#f0c860); border-radius:4px; transition:width .5s ease; }
.mini-bar-val { font-size:12px; color:var(--text-muted); min-width:50px; text-align:right; }

/* ── Scheduled badge ────────────────────────────────────────── */
.scheduled-badge {
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; color:var(--text-muted); background:var(--bg-card);
  border:1px solid var(--border); padding:2px 8px; border-radius:3px;
}

@media(max-width:768px){
  .settings-layout { grid-template-columns:1fr; }
  .settings-nav { border-right:none; border-bottom:1px solid var(--border); padding-right:0; padding-bottom:16px; display:flex; flex-wrap:wrap; gap:4px; }
  .featured-overlay { padding:20px; }
  .featured-title { font-size:20px; }
  .match-card { flex-wrap:wrap; justify-content:center; }
}

/* ============================================================
   FOOTER REDESIGN
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 40px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand { flex-shrink: 0; }
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: .08em; color: var(--gold);
  text-transform: uppercase; text-decoration: none;
  display: block; margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  font-size: 12px; padding: 4px 10px; border-radius: var(--r-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--ease);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg-base);
}
.footer-bottom-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); margin: 0 2px; transition: color var(--ease); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Info/static pages ─────────────────────────────────────── */
.info-page { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.info-page h1 { font-size: 36px; margin-bottom: 8px; }
.info-page .last-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.info-page h2 { font-size: 20px; margin: 28px 0 10px; color: var(--gold); }
.info-page p, .info-page li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.info-page ul, .info-page ol { padding-left: 20px; margin-bottom: 16px; }
.info-page a { color: var(--gold); }
.info-page .contact-box {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px; margin-top: 24px;
}

/* ── Eye icon on view counts ──────────────────────────────── */
.view-count {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-muted); font-size: 13px;
}
.eye-icon { font-size: 13px; opacity: .7; }

@media (max-width: 768px) {
  .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}
