/* =============================================
   MODÃO SERTANEJO TOP 10 | RAIZ
   Layout: Estilo YouTube + Tema Ouro Sertanejo
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Cinzel:wght@700;900&display=swap');

:root {
  --gold:        #C9A84C;
  --gold-light:  #F0C040;
  --gold-dark:   #8B6914;
  --gold-shine:  #FFE082;
  --yt-red:      #FF0000;
  --black:       #0F0F0F;
  --black-card:  #1A1A1A;
  --black-nav:   #0F0F0F;
  --black-soft:  #212121;
  --black-hover: #272727;
  --text-light:  #F1F1F1;
  --text-muted:  #AAAAAA;
  --text-dim:    #717171;
  --border:      rgba(255,255,255,0.1);
  --border-gold: rgba(201,168,76,0.35);
  --radius:      12px;
  --shadow:      0 1px 2px rgba(0,0,0,0.6);
  --glow:        0 0 20px rgba(201,168,76,0.35);
  --nav-h:       56px;
}

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

body {
  background: var(--black);
  color: var(--text-light);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════
   TOP NAVBAR — idêntico ao YouTube
══════════════════════════════════════ */
.yt-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--black-nav);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  gap: 12px;
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
}

.topnav-logo .logo-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.topnav-logo span { display: flex; flex-direction: column; line-height: 1.1; }
.topnav-logo .logo-sub { font-size: 0.55rem; letter-spacing: 3px; color: var(--text-dim); font-family: 'Roboto', sans-serif; font-weight: 400; }

/* Search bar */
.topnav-search {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 0;
}

.topnav-search input {
  flex: 1;
  background: #121212;
  border: 1px solid #3a3a3a;
  border-right: none;
  border-radius: 40px 0 0 40px;
  color: var(--text-light);
  padding: 8px 16px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  outline: none;
  height: 40px;
}

.topnav-search input:focus { border-color: var(--gold-dark); }

.topnav-search button {
  background: #222;
  border: 1px solid #3a3a3a;
  border-left: none;
  border-radius: 0 40px 40px 0;
  color: var(--text-muted);
  padding: 0 20px;
  height: 40px;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center;
}

.topnav-search button:hover { background: #333; color: var(--text-light); }
.topnav-search button svg { width: 20px; height: 20px; }

/* Right side */
.topnav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topnav-right a, .topnav-right button {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  border: none;
  white-space: nowrap;
}

.btn-inscrito {
  background: transparent;
  border: 1px solid var(--border) !important;
  color: var(--text-light);
  gap: 6px;
}

.btn-inscrito:hover { background: var(--black-hover) !important; }

.btn-admin {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000 !important;
  font-weight: 700;
  gap: 6px;
}

.btn-admin:hover { background: linear-gradient(135deg, var(--gold), var(--gold-shine)) !important; }

.topnav-right svg { width: 16px; height: 16px; }

/* ── Botoes de lojas parceiras (cromados) ────────── */
.store-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: flex-end;
}
.btn-store {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 40%, #2a2a2a 100%);
  color: #e0e0e0;
  white-space: nowrap;
}
.btn-store:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
  color: #fff;
}
.btn-amazon {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2208 40%, #1a1a1a 100%);
  border-color: #FF9900;
  color: #FF9900;
}
.btn-amazon:hover { background: linear-gradient(135deg, #2d2208, #4a3610, #2d2208); color: #FFB347; }

.btn-ml {
  background: linear-gradient(135deg, #1a1a1a 0%, #1f2d08 40%, #1a1a1a 100%);
  border-color: #FFE600;
  color: #FFE600;
}
.btn-ml:hover { background: linear-gradient(135deg, #1f2d08, #2e4010, #1f2d08); color: #fff176; }

.btn-shopee {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0e08 40%, #1a1a1a 100%);
  border-color: #EE4D2D;
  color: #EE4D2D;
}
.btn-shopee:hover { background: linear-gradient(135deg, #2d0e08, #4a1810, #2d0e08); color: #ff7961; }

.btn-magalu {
  background: linear-gradient(135deg, #1a1a1a 0%, #08182d 40%, #1a1a1a 100%);
  border-color: #0086FF;
  color: #0086FF;
}
.btn-magalu:hover { background: linear-gradient(135deg, #08182d, #0c2545, #08182d); color: #64b5f6; }

.store-icon { font-size: 0.85rem; }

/* ── Logo image classes ────────────────────────── */
.logo-img-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-img-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
}
.logo-img-card {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-img-sidebar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
}
.logo-img-welcome {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-img-login {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
}
.logo-img-footer {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 4px;
}

/* Badge de usuario logado abaixo do botao Admin */
.nav-admin-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-user-badge {
  display: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  line-height: 1;
}
.nav-user-badge.visible {
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav-user-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-logout-btn {
  display: block;
  font-size: 10px;
  color: #ff6b6b;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-top: 1px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-logout-btn:hover { opacity: 1; text-decoration: underline; }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
}

.nav-mobile-toggle:hover { background: var(--black-hover); }
.nav-mobile-toggle svg { width: 24px; height: 24px; }

@media (max-width: 720px) {
  .topnav-search { display: none; }
  .nav-mobile-toggle { display: flex; }
  .topnav-logo .logo-text { display: none; }
}

/* ══════════════════════════════════════
   CHANNEL BANNER — estilo YouTube
══════════════════════════════════════ */
.channel-wrap {
  margin-top: var(--nav-h);
}

.channel-banner {
  width: 100%;
  height: clamp(100px, 20vw, 280px);
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%),
    var(--banner-img, url('https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?w=1600&q=80')) center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Overlay dourado sutil */
.channel-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,105,20,0.25) 0%, transparent 60%);
}

/* ── Channel Header ── */
.channel-header {
  background: var(--black-nav);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.channel-header-inner {
  max-width: 1284px;
  margin: 0 auto;
}

.channel-info-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 16px 0 0;
}

.channel-avatar-wrap {
  flex-shrink: 0;
  margin-bottom: 0;
}

.channel-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: 3px solid var(--black-nav);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 0 0 2px var(--gold-dark);
}

@media (min-width: 600px) {
  .channel-avatar { width: 120px; height: 120px; font-size: 3rem; }
}

.channel-meta {
  flex: 1;
  min-width: 0;
  padding-bottom: 12px;
}

.channel-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 60%, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.channel-handle {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.channel-stats-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.channel-stats-row span { display: flex; align-items: center; gap: 4px; }
.channel-stats-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

.channel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  flex-shrink: 0;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--text-light);
  color: var(--black);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-subscribe:hover { background: #ccc; color: var(--black); }
.btn-subscribe svg { width: 18px; height: 18px; }

.btn-subscribe.subscribed {
  background: var(--black-soft);
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* ── Channel Tabs — idêntico ao YouTube ── */
.channel-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 1284px;
  margin: 0 auto;
}

.channel-tabs::-webkit-scrollbar { display: none; }

.channel-tab {
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-decoration: none;
  display: inline-block;
}

.channel-tab:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }
.channel-tab.active { color: var(--text-light); border-bottom-color: var(--text-light); font-weight: 700; }

/* ══════════════════════════════════════
   CONTEÚDO PRINCIPAL
══════════════════════════════════════ */
.page-content {
  max-width: 1284px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* ── Section header estilo YouTube ── */
.yt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.yt-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.yt-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 2px;
  display: inline-block;
}

.yt-ver-mais {
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: color .2s;
}

.yt-ver-mais:hover { color: var(--text-light); }
.yt-ver-mais svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════
   VIDEO CARDS — estilo YouTube exato
══════════════════════════════════════ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
}

@media (max-width: 1200px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .videos-grid { grid-template-columns: 1fr; } }

.yt-video-card {
  cursor: pointer;
  transition: transform .1s;
}

.yt-video-card:hover { transform: scale(1.01); }

/* Thumbnail */
.yt-thumb-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.yt-thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.yt-video-card:hover .yt-thumb-wrap img { transform: scale(1.03); }

/* Duration badge */
.yt-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: .5px;
}

/* Play overlay on hover */
.yt-play-hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  transition: background .25s;
}

.yt-video-card:hover .yt-play-hover { background: rgba(0,0,0,0.25); }

.yt-play-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all .2s;
}

.yt-video-card:hover .yt-play-circle { opacity: 1; transform: scale(1); }
.yt-play-circle svg { width: 20px; height: 20px; color: #fff; margin-left: 2px; }

/* Card info row — avatar + texto */
.yt-card-info {
  display: flex;
  gap: 10px;
}

.yt-card-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}

.yt-card-text { flex: 1; min-width: 0; }

.yt-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.yt-card-channel {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2px;
  display: flex; align-items: center; gap: 4px;
}

.yt-card-channel svg { width: 12px; height: 12px; }

.yt-card-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-card-meta .sep { margin: 0 2px; }

/* ══════════════════════════════════════
   AFILIADOS — estilo YouTube shelf
══════════════════════════════════════ */
.afiliados-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1000px) { .afiliados-shelf { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .afiliados-shelf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .afiliados-shelf { grid-template-columns: 1fr; } }

.af-card {
  background: var(--black-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
}

.af-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.af-card-top {
  height: 80px;
  background: linear-gradient(135deg, #1a1200, #0D0B08);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  border-bottom: 1px solid var(--border);
}

.af-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.af-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
}

.af-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
}

.af-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.af-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.af-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  width: 100%;
}

.af-btn:hover { background: linear-gradient(135deg, var(--gold), var(--gold-shine)); color: #000; }
.af-btn svg { width: 14px; height: 14px; }

/* ── Destaque badge ── */
.af-card.destaque { border-color: var(--gold-dark); }
.af-destaque-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.68rem; font-weight: 700;
  color: var(--gold-dark);
}

/* ══════════════════════════════════════
   SEPARADORES
══════════════════════════════════════ */
.yt-divider {
  height: 1px;
  background: var(--border);
  margin: 36px 0;
}

/* ══════════════════════════════════════
   QUOTE SECTION
══════════════════════════════════════ */
.yt-quote-box {
  background: var(--black-card);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 8px 0;
}

.yt-quote-box blockquote {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: var(--gold-light);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.yt-quote-box cite {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   SUBSCRIBE CTA BAR
══════════════════════════════════════ */
.subscribe-cta {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.subscribe-cta-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.subscribe-cta-text p { font-size: 0.85rem; color: var(--text-dim); }

.btn-yt-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: var(--yt-red);
  color: #fff;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-yt-red:hover { background: #cc0000; color: #fff; box-shadow: 0 2px 12px rgba(255,0,0,0.3); }
.btn-yt-red svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════
   MODAL DE VÍDEO
══════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #1a1a1a;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.modal-close {
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  line-height: 1;
}

.modal-close:hover { background: var(--black-hover); color: var(--text-light); }

.modal-video-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.modal-video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

.empty-state svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: .3; }
.empty-state p { font-size: 1rem; }

/* ══════════════════════════════════════
   FILTER CHIPS — estilo YouTube
══════════════════════════════════════ */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--black-soft);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.chip:hover { background: #3a3a3a; }
.chip.active { background: var(--text-light); color: var(--black); }

/* ══════════════════════════════════════
   PAGE HERO (vídeos / afiliados)
══════════════════════════════════════ */
.page-sub-hero {
  background: var(--black-card);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 32px;
}

.page-sub-hero-inner {
  max-width: 1284px;
  margin: 0 auto;
}

.page-sub-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--text-light);
  margin-bottom: 6px;
}

.page-sub-hero p { font-size: 0.9rem; color: var(--text-dim); }

/* Search hero */
.hero-search {
  max-width: 500px;
  margin-top: 16px;
  position: relative;
}

.hero-search input {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--text-light);
  padding: 10px 44px 10px 18px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s;
}

.hero-search input:focus { border-color: var(--gold-dark); }

.hero-search svg {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--black-card);
  border-top: 1px solid var(--border);
  padding: 32px 24px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1284px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color .2s;
}

.footer-links a:hover { color: var(--text-light); }

.footer-copy {
  font-size: 0.75rem;
  color: #444;
}

/* ══════════════════════════════════════
   TOAST
══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black-soft);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.875rem;
  z-index: 99999;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transition: all .35s;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: #16a34a; }
.toast.error   { border-color: #dc2626; }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.toast.success svg { color: #4ade80; }
.toast.error   svg { color: #f87171; }

/* ══════════════════════════════════════
   ADMIN — preservado (igual ao anterior)
══════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #0A0A0A 0%, #0D0B08 100%);
  border-right: 1px solid rgba(201,168,76,0.3);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-shine), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 3px;
  font-family: 'Roboto', sans-serif;
  -webkit-text-fill-color: var(--text-dim);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all .2s;
  border: 1px solid transparent;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.3);
}

.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav .nav-sep { height: 1px; background: rgba(201,168,76,0.2); margin: 8px 0; }

.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(201,168,76,0.2); }
.sidebar-footer a { display: flex; align-items: center; gap: 8px; color: #dc2626; font-size: 0.85rem; font-weight: 500; text-decoration: none; }

.admin-main { margin-left: 240px; flex: 1; min-height: 100vh; background: var(--black); }

.admin-topbar {
  background: var(--black-card);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}

.admin-topbar h1 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--gold-light); }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }
.admin-user svg { width: 20px; height: 20px; color: var(--gold); }
.admin-content { padding: 28px; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--black-card); border: 1px solid rgba(201,168,76,0.3); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat-card-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card-icon svg { width: 22px; height: 22px; color: #000; }
.stat-card-num { font-family: 'Cinzel', serif; font-size: 1.7rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat-card-lbl { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

.admin-card { background: var(--black-card); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(201,168,76,0.15); flex-wrap: wrap; gap: 10px; }
.admin-card-header h2 { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--gold-light); }
.admin-table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th { background: rgba(201,168,76,0.07); padding: 12px 16px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); font-weight: 700; border-bottom: 1px solid rgba(201,168,76,0.15); }
td { padding: 13px 16px; font-size: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.td-actions { display: flex; gap: 6px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.badge-active   { background: rgba(22,163,74,0.2); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.badge-inactive { background: rgba(127,29,29,0.2); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 20px; font-weight: 700; font-size: 0.8rem; cursor: pointer; border: none; transition: all .2s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #000; }
.btn-primary:hover { background: linear-gradient(135deg, var(--gold), var(--gold-shine)); color: #000; }
.btn-outline { background: transparent; border: 1px solid rgba(201,168,76,0.4); color: var(--gold-light); }
.btn-outline:hover { background: rgba(201,168,76,0.1); }
.btn-danger { background: linear-gradient(135deg, #7f1d1d, #dc2626); color: #fff; }
.btn-danger:hover { background: linear-gradient(135deg, #dc2626, #ef4444); }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; border-radius: 16px; }

.form-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; padding: 20px; }
.form-overlay.open { display: flex; }
.form-box { background: var(--black-soft); border: 1px solid rgba(201,168,76,0.35); border-radius: 12px; width: 100%; max-width: 540px; overflow: hidden; box-shadow: 0 0 60px rgba(201,168,76,0.12); }
.form-box-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid rgba(201,168,76,0.2); background: rgba(201,168,76,0.04); }
.form-box-header h3 { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--gold-light); }
.form-box-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid rgba(201,168,76,0.15); }

label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
input, textarea, select { width: 100%; background: var(--black); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: var(--text-light); padding: 10px 14px; font-size: 0.9rem; font-family: 'Roboto', sans-serif; transition: border-color .2s; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
select option { background: var(--black-soft); color: var(--text-light); }
textarea { resize: vertical; min-height: 80px; }

.video-thumb-sm { width: 80px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #000; }
.afiliado-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-dark); border: 1px solid var(--gold-dark); padding: 2px 10px; border-radius: 20px; display: inline-block; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #1a1200 0%, var(--black) 70%); padding: 20px; }
.login-box { background: var(--black-card); border: 1px solid rgba(201,168,76,0.35); border-radius: 14px; width: 100%; max-width: 400px; overflow: hidden; box-shadow: 0 0 60px rgba(201,168,76,0.12); }
.login-header { background: linear-gradient(135deg, #0D0B08, #1a1200); padding: 36px 32px; text-align: center; border-bottom: 1px solid rgba(201,168,76,0.3); }
.login-header h1 { font-family: 'Cinzel', serif; font-size: 1.3rem; background: linear-gradient(135deg, var(--gold-light), var(--gold-shine)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-top: 12px; }
.login-header p { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; }
.login-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.login-error { background: rgba(220,38,38,0.15); border: 1px solid rgba(248,113,113,0.3); color: #f87171; padding: 10px 14px; border-radius: 7px; font-size: 0.85rem; display: none; }
.login-error.show { display: block; }

/* Sidebar mobile */
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-topbar { padding: 0 16px; }
  .admin-content { padding: 16px; }
  .sidebar-toggle-btn { display: flex !important; }
}

.sidebar-toggle-btn { display: none; background: none; border: 1px solid rgba(201,168,76,0.3); color: var(--gold); padding: 8px 10px; border-radius: 6px; cursor: pointer; align-items: center; justify-content: center; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99; }
.sidebar-overlay.open { display: block; }

/* Quick action cards admin */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 32px; }
.quick-action-card { background: var(--black-card); border: 1px solid rgba(201,168,76,0.2); border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; transition: all .25s; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.quick-action-card:hover { border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.06); transform: translateY(-3px); }
.qa-icon { width: 46px; height: 46px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.qa-icon svg { width: 22px; height: 22px; color: #000; }
.qa-label { font-size: 0.85rem; font-weight: 700; color: var(--text-light); }
.qa-sub { font-size: 0.75rem; color: var(--text-dim); }

/* Config sections */
.config-section { background: var(--black-card); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.config-section-header { padding: 16px 22px; border-bottom: 1px solid rgba(201,168,76,0.15); background: rgba(201,168,76,0.04); display: flex; align-items: center; gap: 10px; }
.config-section-header h2 { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--gold-light); }
.config-section-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 16px; }
.info-box { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); border-radius: 8px; padding: 12px 16px; font-size: .82rem; color: var(--text-dim); display: flex; align-items: flex-start; gap: 8px; }
.info-box svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.danger-zone { border-color: rgba(220,38,38,0.3); }
.danger-zone .config-section-header { background: rgba(220,38,38,0.05); }
.danger-zone .config-section-header h2 { color: #f87171; }

/* Admin dash welcome */
.dash-welcome { background: linear-gradient(135deg, #0D0B08, #1a1500); border: 1px solid rgba(201,168,76,0.35); border-radius: 12px; padding: 28px 26px; margin-bottom: 28px; display: flex; align-items: center; gap: 18px; }
.dash-welcome-icon { font-size: 2.5rem; flex-shrink: 0; }
.dash-welcome h2 { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--gold-light); margin-bottom: 4px; }
.dash-welcome p { font-size: 0.85rem; color: var(--text-dim); }
