/* =====================================================
   Agenda 2026 — Estilos Consolidados
   ===================================================== */

/* ---------- Variáveis ---------- */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #64748b;
  --accent: #10b981;
  --accent-soft: #d1fae5;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --radius: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dark {
  --bg: #020617;
  --surface: #0f172a;
  --surface-raised: #151e2e;
  --border: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #34d399;
  --accent-soft: #064e3b;
  --accent-glow: rgba(52, 211, 153, 0.12);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

/* ---------- Reset & Base ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s ease, color 0.3s ease;
  padding-top: 72px;
}

/* ---------- Utilitários ---------- */
/* ---------- Top Navigation ---------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dark .top-nav { background: rgba(2, 6, 23, 0.78); }

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.top-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-nav-link:hover,
.top-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.top-nav-link:hover { transform: translateY(-1px); }
.top-nav-link i { font-size: 0.875rem; }

@media (max-width: 420px) {
  body { padding-top: 66px; }
  .top-nav { padding: 10px 8px; }
  .top-nav-inner { width: 100%; gap: 2px; }
  .top-nav-link {
    flex: 1;
    gap: 4px;
    padding: 0 5px;
    font-size: 0.68rem;
  }
  .top-nav-link i { font-size: 0.75rem; }
}

.surface { background: var(--surface); border: 1px solid var(--border); }
.surface-raised { background: var(--surface-raised); border: 1px solid var(--border); }
.text-secondary { color: var(--text-secondary); }
.accent { color: var(--accent); }
.bg-accent { background: var(--accent); }
.bg-accent-soft { background: var(--accent-soft); }
.border-accent { border-color: var(--accent); }
.shadow-glow { box-shadow: 0 0 20px var(--accent-glow); }

.glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .glass { background: rgba(15, 23, 42, 0.7); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  transition: all 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}
.btn-ghost:hover { background: var(--surface-raised); }

.language-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 0.75rem;
}

.language-options {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.language-options button {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-options button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Calendário ---------- */
.day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
}
.day-cell:hover { background: var(--accent-soft); }
.day-cell.today { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.day-cell.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.day-cell.other-month { opacity: 0.35; }
.day-dot { width: 4px; height: 4px; border-radius: 50%; margin-top: 2px; }

.happened-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}

.happened-list {
  display: grid;
  gap: 12px;
}

.happened-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-raised);
}

.happened-card img {
  width: 96px;
  height: 100%;
  min-height: 104px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.happened-card-body {
  min-width: 0;
  align-self: center;
}

.happened-card h4 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.happened-meta,
.happened-desc {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.45;
}

.happened-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .happened-card {
    grid-template-columns: 1fr;
  }
  .happened-card img {
    width: 100%;
    height: 150px;
  }
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  z-index: 51;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active + .modal-content,
.modal-content.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.app-view {
  animation: viewIn 0.28s ease both;
}

.socials-view,
.youtube-view,
.ads-view {
  display: none;
}

.social-view .home-view,
.youtube-mode .home-view,
.ads-mode .home-view {
  display: none;
}

.social-view .socials-view {
  display: block;
  animation: viewSlideIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.youtube-mode .youtube-view {
  display: block;
  animation: viewSlideIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ads-mode .ads-view {
  display: block;
  animation: viewSlideIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#publicidade:target {
  display: block;
  animation: viewSlideIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body:has(#publicidade:target) .home-view {
  display: none;
}

body:has(#publicidade:target) .right-column {
  display: none !important;
}

.social-view .right-column,
.youtube-mode .right-column,
.ads-mode .right-column {
  display: none !important;
}

.social-page {
  width: 100%;
  min-height: calc(100vh - 96px);
  margin: 16px auto 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
}

.social-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--border);
}

.social-page-head h2 {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.social-page-back {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-page-back:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 0 18px;
  overflow-x: auto;
}

.social-tabs button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
}

.social-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.youtube-page .social-tabs button.active {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

.youtube-open-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.youtube-open-link:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.social-page-frame {
  width: min(100%, 580px);
  min-height: var(--social-frame-height, calc(100vh - 240px));
  margin: 0 auto;
  padding: 0;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
}

.social-page-frame iframe {
  display: block;
  width: 500px;
  min-width: 500px;
  height: 900px;
  min-height: 900px;
  margin: 0;
  border-radius: 0;
  background: #fff;
  transform: scale(var(--social-frame-scale, 1));
  transform-origin: top left;
}

.youtube-page-frame {
  width: 100%;
  min-height: calc(100vh - 250px);
  overflow: visible;
  border-radius: 1rem;
  background: var(--surface-raised);
  padding: 14px;
}

.youtube-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.youtube-video-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.youtube-video-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.youtube-video-info {
  padding: 12px 14px 14px;
}

.youtube-video-info h3 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 4px;
}

.youtube-video-info p,
.youtube-loading {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.youtube-loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--border);
  border-radius: 1rem;
}

.youtube-loading i {
  color: #ef4444;
  font-size: 1.25rem;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ad-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface-raised);
}

.ad-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.ad-media {
  position: relative;
  min-height: 190px;
}

.ad-media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.ad-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-body {
  padding: 18px;
}

.ad-kicker {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ad-body h3 {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}

.ad-body p:not(.ad-kicker) {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ad-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 0.875rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes viewSlideIn {
  from { opacity: 0; transform: translateX(42px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 560px) {
  .social-page {
    min-height: calc(100vh - 80px);
    margin-top: 10px;
    padding: 12px;
    border-radius: 1.125rem;
  }
  .social-page-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 4px 0 14px;
  }
  .social-page-back { width: 100%; }
  .social-tabs { padding: 2px 0 14px; }
  .social-page-frame {
    width: 100%;
    min-height: var(--social-frame-height, calc(100vh - 250px));
  }
  .social-page-frame iframe {
    width: 500px;
    min-width: 500px;
  }
  .youtube-page-frame,
  .youtube-video-card {
    border-radius: 0.875rem;
  }
  .youtube-page-frame { padding: 10px; }
  .ads-grid,
  .ad-card.featured {
    grid-template-columns: 1fr;
  }
  .ad-body { padding: 14px; }
  .ad-media,
  .ad-media img {
    min-height: 160px;
  }
}

@media (max-width: 390px) {
  .social-page-head h2 { font-size: 1.2rem; }
  .social-tabs {
    gap: 6px;
  }
  .social-tabs button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.75rem;
  }
}

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer.open { transform: translateX(0); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast {
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Animações ---------- */
.countdown-digit {
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
}

.category-chip { transition: all 0.2s ease; }
.category-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { animation: pulseLogo 2s ease-in-out infinite; }
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Heart burst */
.heart-burst {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: heartBurst 1.2s ease-out forwards;
}
@keyframes heartBurst {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  30% { transform: scale(2.5) rotate(-10deg); opacity: 1; }
  60% { transform: scale(3) rotate(5deg); opacity: 0.8; }
  100% { transform: scale(4) rotate(0deg) translateY(-80px); opacity: 0; }
}
.heart-particles { position: fixed; pointer-events: none; z-index: 9998; }
.heart-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: particleFloat 1s ease-out forwards;
}
@keyframes particleFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Save ripple */
.save-ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  0% { transform: scale(0); opacity: 0.4; }
  100% { transform: scale(4); opacity: 0; }
}

/* Event card */
.event-card { transition: all 0.2s ease; }
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.event-img-wrap { position: relative; overflow: hidden; }
.event-img-wrap img { transition: transform 0.4s ease; }
.event-card:hover .event-img-wrap img { transform: scale(1.03); }

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}
.action-btn:hover { background: var(--surface-raised); color: var(--text); }
.action-btn:active { transform: scale(0.88); }
.action-btn.liked { color: #ef4444; }
.action-btn.saved { color: var(--accent); }

/* Double tap heart */
.dt-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
.dt-heart.show { animation: dtHeartPop 0.8s ease-out forwards; }
@keyframes dtHeartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* Carousel */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1rem;
  padding: 0 0.5rem;
  scroll-padding: 0 1rem;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
  min-width: 0;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
}
.carousel-dot.active { background: var(--accent); width: 18px; border-radius: 3px; }

/* Agenda icon */
.agenda-icon-anim { animation: agendaBounce 2s ease-in-out infinite; }
@keyframes agendaBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-5deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

/* Carousel countdown */
.carousel-countdown { display: flex; gap: 0.5rem; align-items: center; }
.carousel-countdown .cd-box {
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  text-align: center;
  min-width: 44px;
}
.carousel-countdown .cd-box span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  font-family: 'JetBrains Mono', monospace;
}
.carousel-countdown .cd-box em {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}
.carousel-countdown .cd-sep {
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Today section */
.today-section {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  animation: todayGlow 3s ease-in-out infinite;
}
@keyframes todayGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), 0 0 40px rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.35), 0 0 60px rgba(16, 185, 129, 0.15); }
}
.today-live-badge { animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}
.today-border-anim {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6, #ec4899, var(--accent));
  background-size: 300% 300%;
  animation: borderRotate 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 20;
}
@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.today-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ---------- Coluna Direita ---------- */
.right-column {
  display: none;
}

.right-panel {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.right-panel + .right-panel { margin-top: 14px; }

.right-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.right-panel-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}

.right-panel-kicker {
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.right-panel h2 {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.youtube-preview {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.24), rgba(16, 185, 129, 0.18)),
    var(--surface-raised);
  border: 1px solid var(--border);
  color: #ef4444;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.right-panel-text {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.right-panel-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 0.875rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.right-panel-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.social-grid a {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--surface-raised);
  color: var(--text);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-grid a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.right-panel.compact {
  padding: 16px;
}

.quick-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.quick-stat strong {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.quick-stat span {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: right;
}

/* ---------- Responsividade ---------- */

/* Mobile pequeno */
@media (max-width: 480px) {
  .content { padding: 14px 12px 28px; }
}

/* Mobile medio */
@media (min-width: 481px) and (max-width: 767px) {
  .content { padding: 20px 16px 32px; }
}

/* Tablet e acima */
@media (min-width: 768px) {
  .app { max-width: 100vw; }
  .content { padding: 28px 28px 48px; max-width: 1400px; }
}

/* Desktop pequeno (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .drawer { transform: translateX(-100%); }
  .drawer.open { transform: translateX(0); }
  .max-w-6xl { margin-left: 0 !important; }
}

/* Desktop medio e grande (1024px+) */
@media (min-width: 1024px) {
  .drawer { transform: translateX(0) !important; }
  .drawer-overlay { display: none !important; }
  header button[onclick="toggleDrawer()"] { display: none !important; }
  .max-w-6xl,
  footer { margin-left: 280px !important; }
  .max-w-6xl { max-width: calc(100vw - 320px) !important; }
  .social-view .max-w-6xl,
  .youtube-mode .max-w-6xl,
  .ads-mode .max-w-6xl {
    margin-right: 24px !important;
    max-width: calc(100vw - 328px) !important;
  }
}

/* Telas ultra-wide (1280px+) */
@media (min-width: 1280px) {
  .content { max-width: 1600px; }
  .right-column {
    display: block;
    position: fixed;
    top: 96px;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: 270px;
    overflow-y: auto;
    padding-bottom: 8px;
  }
  .max-w-6xl {
    margin-right: 318px !important;
    max-width: calc(100vw - 646px) !important;
  }
  .social-view .max-w-6xl,
  .youtube-mode .max-w-6xl,
  .ads-mode .max-w-6xl {
    margin-right: 24px !important;
    max-width: calc(100vw - 328px) !important;
  }
}

/* Telas muito largas (1536px+) */
@media (min-width: 1536px) {
  .content { max-width: 1800px; }
  .right-column {
    right: 28px;
    width: 292px;
  }
  .max-w-6xl {
    margin-right: 348px !important;
    max-width: calc(100vw - 700px) !important;
  }
  .social-view .max-w-6xl,
  .youtube-mode .max-w-6xl,
  .ads-mode .max-w-6xl {
    margin-right: 28px !important;
    max-width: calc(100vw - 336px) !important;
  }
}
