/*
Theme Name: Conta Lá Clone
Theme URI: https://conta-la.pt
Author: Gonçalo Estrelado
Description: Réplica visual do Conta Lá. v3 com hero dinâmico, foto editor, grelha CSV, ver-tv embed.
Version: 3.0.0
License: GPL v2 or later
Text Domain: contala
*/

/* ============================================
   VARIÁVEIS
   ============================================ */
:root {
  --c-bg: #123231;
  --c-bg-darker: #0d2625;
  --c-bg-soft: #1a3d3c;
  --c-bg-card: rgba(13, 38, 37, 0.75);

  --c-accent: #1aff8a;
  --c-accent-bright: #38ff8c;
  --c-accent-dark: #02b85e;

  --c-text: #ffffff;
  --c-text-muted: rgba(255, 255, 255, 0.7);
  --c-text-faded: rgba(255, 255, 255, 0.5);
  --c-border: rgba(255, 255, 255, 0.1);
  --c-border-strong: rgba(255, 255, 255, 0.2);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-h: 88px;
  --container: 1440px;
  --radius: 8px;
  --radius-lg: 14px;
  --transition: all 0.2s ease;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   HEADER (sempre visível ao fazer scroll)
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--c-bg);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.site-header .header-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  gap: 24px;
}

/* Logo bloco verde brilhante */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-accent);
  color: var(--c-bg-darker);
  padding: 12px 22px;
  border-radius: 4px;
  line-height: 1;
  text-align: left;
  transition: var(--transition);
  position: relative;
}

/* Tag triangular pequeno no canto superior esquerdo do logo */
.site-logo .logo-text::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--c-accent);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.site-logo a:hover .logo-text {
  background: var(--c-accent-bright);
}

.site-logo .brand {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--c-bg-darker);
}

.site-logo .tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-top: 3px;
  color: var(--c-bg-darker);
  opacity: 0.85;
}

/* Logo PNG custom (quando carregado via Customizer) */
.site-logo img.custom-logo {
  height: 60px;
  width: auto;
  max-width: 240px;
}

.site-logo a.logo-link-img {
  display: flex;
  align-items: center;
}

/* Nav: caixa central com fundo levemente mais claro */
.main-nav {
  display: flex;
  align-items: center;
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  padding: 0 4px;
  margin: 16px 0;
}

.main-nav > a,
.main-nav > .has-dropdown > a {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.main-nav > a:hover,
.main-nav > .has-dropdown > a:hover,
.main-nav > a.active,
.main-nav > .has-dropdown > a.active {
  color: var(--c-accent);
}

/* "Ver (TV)" no header - fora da caixa, separador */
.nav-ver-tv-wrap {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.nav-ver-tv {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-ver-tv:hover { color: var(--c-accent); }
.nav-ver-tv.active { color: var(--c-accent); }

.main-nav .has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--c-bg-darker);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.main-nav .has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--c-text);
}

.main-nav .dropdown li a:hover {
  background: var(--c-bg-soft);
  color: var(--c-accent);
}

/* Direita: Sobre, Contacto (button outline), search */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right .header-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
}

.header-right .header-link:hover,
.header-right .header-link.active { color: var(--c-accent); }

.header-right .btn-contact {
  padding: 10px 22px;
  border: 1px solid var(--c-text);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  transition: var(--transition);
}

.header-right .btn-contact:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

.btn-search {
  background: transparent;
  border: 0;
  color: var(--c-text);
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: var(--transition);
}

.btn-search:hover {
  background: var(--c-accent);
  color: var(--c-bg);
}

.btn-search svg { width: 20px; height: 20px; }

.btn-mobile-menu {
  display: none;
  background: transparent;
  border: 0;
  color: var(--c-text);
  cursor: pointer;
  font-size: 1.5rem;
  padding: 8px;
}

/* ============================================
   SEARCH OVERLAY (full-screen)
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 50, 49, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--header-h) + 32px);
}

.search-overlay.is-open { display: flex; }

.search-overlay .search-bar {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  padding: 0 32px;
  align-items: center;
}

.search-overlay input[type="search"] {
  flex: 1;
  padding: 16px 20px 16px 48px;
  font-size: 1rem;
  background: var(--c-bg-darker);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  color: var(--c-text);
  font-family: inherit;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231aff8a' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 16px center;
}

.search-overlay input[type="search"]::placeholder { color: var(--c-text-muted); }

.search-overlay .btn-submit {
  padding: 14px 26px;
  background: rgba(26, 255, 138, 0.2);
  color: var(--c-text);
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.search-overlay .btn-submit:hover { background: var(--c-accent); color: var(--c-bg); }

.search-overlay .btn-close {
  padding: 14px 22px;
  background: var(--c-bg-soft);
  color: var(--c-text);
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-overlay .btn-close:hover { background: rgba(255,255,255,0.1); }

/* ============================================
   HOMEPAGE HERO - fundo = imagem destacada da primeira notícia
   ============================================ */
.site-main { padding-top: var(--header-h); }

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  /* fundo sólido garantido + largura total da viewport. */
  background-color: var(--c-bg-darker);
  background-image: radial-gradient(circle at 30% 20%, rgba(26,255,138,0.08) 0%, transparent 45%),
                    radial-gradient(circle at 80% 70%, rgba(26,255,138,0.06) 0%, transparent 40%),
                    linear-gradient(135deg, #0d2625 0%, #123231 50%, #16403d 100%);
  isolation: isolate;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* sobe para debaixo do header, eliminando a faixa clara do padding do site-main */
  margin-top: calc(-1 * var(--header-h));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background-image 0.6s ease, opacity 0.4s ease;
  background-size: cover;
  background-position: center;
  /* fallback decorativo quando não há imagem destacada */
  background-color: var(--c-bg-darker);
  background-image: radial-gradient(circle at 30% 20%, rgba(26,255,138,0.08) 0%, transparent 45%),
                    radial-gradient(circle at 80% 70%, rgba(26,255,138,0.06) 0%, transparent 40%),
                    linear-gradient(135deg, #0d2625 0%, #123231 50%, #16403d 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,50,49,0.3) 0%, rgba(18,50,49,0.9) 100%),
    linear-gradient(90deg, rgba(18,50,49,0.55) 0%, rgba(18,50,49,0.2) 50%, rgba(18,50,49,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 48px) 0 96px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: start;
}

/* TIMELINE - scroller dinâmico */
.acontecer-section {
  position: relative;
}

.acontecer-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 32px;
}

.acontecer-label::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 12px var(--c-accent);
  flex-shrink: 0;
}

/* Timeline de notícias: 1 destaque grande + lista pequena por baixo */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid rgba(26, 255, 138, 0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  position: relative;
  cursor: pointer;
}

/* Bolinha na linha vertical */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-bg-darker);
  border: 2px solid var(--c-accent);
  transition: var(--transition);
}

/* Notícia em destaque no momento: bolinha preenchida com halo */
.timeline-item.is-active::before {
  background: var(--c-accent);
  box-shadow: 0 0 14px var(--c-accent), 0 0 0 4px rgba(26,255,138,0.15);
}

.timeline-item .tags {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.timeline-item.is-active .tags { display: inline-flex; }

.timeline-item .tag {
  font-size: 0.78rem;
  padding: 5px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--c-text);
  font-weight: 500;
}

/* Título: tamanho muda consoante o item está ativo ou não */
.timeline-item h2 {
  margin: 0 0 8px;
  line-height: 1.25;
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 560px;
  transition: font-size 0.3s ease;
}

.timeline-item.is-active h2 {
  margin: 0 0 14px;
  line-height: 1.12;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 700;
  max-width: 760px;
}

.timeline-item .excerpt {
  display: none;
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 680px;
}

.timeline-item.is-active .excerpt { display: block; }

.timeline-item h2 a { color: var(--c-text); }
.timeline-item h2 a:hover { color: var(--c-accent); }

.timeline-item .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-faded);
  font-size: 0.85rem;
}

.timeline-item .meta::before {
  content: '🕐';
  font-size: 0.85rem;
  opacity: 0.7;
}

/* CARDS PROGRAMAS LATERAL */
.programs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-card {
  display: flex;
  gap: 16px;
  padding: 14px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-items: center;
  text-decoration: none;
  color: var(--c-text);
}

/* Hover: outline verde em vez de overlay/translate */
.program-card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent);
  background: var(--c-bg-card);
  transform: none;
}

.program-card .thumb {
  position: relative;
  flex: 0 0 150px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-darker);
}

.program-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.program-card .thumb .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem;
}

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

.program-card .info h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
}

.program-card .info h4 a { color: var(--c-text); }
.program-card:hover .info h4,
.program-card:hover .info h4 a { color: var(--c-accent); }

.program-card .info .date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-faded);
  font-size: 0.8rem;
}

.program-card .info .date::before {
  content: '🕐';
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================
   PÁGINAS GERAIS
   ============================================ */
.page-section { padding: 48px 0 64px; }

.page-header { padding: 24px 0 32px; }

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 8px;
}

.page-header .description {
  color: var(--c-text-muted);
  max-width: 700px;
  font-size: 1.05rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* Hover: outline em vez de translate */
.card:hover {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent);
}

.card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--c-bg-darker);
  position: relative;
  overflow: hidden;
}

.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

.card .thumb .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  font-size: 1.25rem;
}

.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.card .tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: var(--c-text);
}

.card h3 { font-size: 1.15rem; margin: 0 0 8px; line-height: 1.3; }
.card h3 a { color: var(--c-text); }
.card:hover h3 a { color: var(--c-accent); }

.card .excerpt {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 16px;
}

.card .meta { color: var(--c-text-faded); font-size: 0.8rem; margin-top: auto; }

/* ============================================
   SINGLE POST - tema CLARO (fundo branco)
   Aplica-se só quando body tem .single-light
   ============================================ */
.single-light {
  background: #f4f5f3;
  color: #16201f;
}

/* O header mantém-se verde (não mexer). O conteúdo abaixo é claro. */
.single-light .site-main {
  background: #f4f5f3;
  min-height: 100vh;
}

.single-article {
  padding: 48px 0 32px;
}

.single-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.single-light .single-hero {
  padding: 0 0 24px;
}

.single-light .single-hero .tags {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}

.single-light .single-hero .tag {
  font-size: 0.75rem;
  padding: 5px 14px;
  background: rgba(2, 184, 94, 0.12);
  border: 1px solid rgba(2, 184, 94, 0.3);
  border-radius: 999px;
  color: #027a3e;
  font-weight: 600;
  text-transform: none;
}

.single-light .single-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 16px;
  color: #0d1817;
  line-height: 1.15;
}

.single-light .single-lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #45524f;
  margin: 0 0 24px;
  font-weight: 400;
}

/* Bloco autor - claro */
.single-light .author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #e2e5e1;
  border-bottom: 1px solid #e2e5e1;
  border-radius: 0;
  backdrop-filter: none;
  margin: 24px 0 0;
  max-width: none;
}

.single-light .author-block .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e5e1;
  flex-shrink: 0;
}

.single-light .author-block .avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.single-light .author-block .info {
  display: flex; flex-direction: column; gap: 2px;
}

.single-light .author-block .name {
  font-weight: 700;
  color: #0d1817;
  font-size: 0.95rem;
}

.single-light .author-block .role {
  color: #6b7672;
  font-size: 0.82rem;
}

.single-light .author-block .date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #027a3e;
  font-size: 0.82rem;
  margin-top: 2px;
}

.single-light .author-block .date::before { content: '🕐'; }

/* Media de topo (imagem ou vídeo) */
.single-media {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.single-media .video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; background: #000;
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
}

.single-media .video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* Conteúdo - texto escuro sobre branco */
.single-light .single-content {
  max-width: none;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1f2b29;
  background: transparent;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.single-light .single-content p { margin: 0 0 1.35em; }
.single-light .single-content h2 { margin: 1.6em 0 0.6em; color: #0d1817; font-size: 1.6rem; }
.single-light .single-content h3 { margin: 1.4em 0 0.5em; color: #0d1817; font-size: 1.3rem; }
.single-light .single-content a { color: #027a3e; text-decoration: underline; }
.single-light .single-content a:hover { color: #015c30; }
.single-light .single-content img { border-radius: var(--radius); margin: 24px 0; height: auto; }
.single-light .single-content blockquote {
  border-left: 4px solid var(--c-accent-dark);
  padding: 4px 0 4px 24px;
  margin: 24px 0;
  color: #45524f;
  font-style: italic;
}
.single-light .single-content ul,
.single-light .single-content ol { margin: 0 0 1.35em; padding-left: 1.5em; }
.single-light .single-content li { margin-bottom: 0.5em; }

/* Secção de relacionadas - fundo verde escuro (volta ao tema) */
.single-related-wrap {
  background: var(--c-bg);
  color: var(--c-text);
  padding: 56px 0;
  margin-top: 56px;
}

.single-related h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--c-text);
}

/* ============================================
   EXPLORAR
   ============================================ */
.explorar-overlay {
  background: var(--c-bg);
  min-height: calc(100vh - var(--header-h));
  padding: 64px 0;
}

.explorar-inner { max-width: 900px; margin: 0 auto; }

.explorar-inner .close-btn {
  background: var(--c-bg-soft);
  color: var(--c-text);
  border: 0;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  float: right;
}

.explorar-inner .close-btn:hover { background: var(--c-accent); color: var(--c-bg); }

.explorar-inner .field { margin-bottom: 32px; }

.explorar-inner label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.explorar-inner .select-wrap {
  border-bottom: 1px solid var(--c-border-strong);
  padding-bottom: 24px;
}

.explorar-inner .checkboxes {
  display: flex; gap: 24px; flex-wrap: wrap;
}

.explorar-inner .checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.explorar-inner .checkboxes input { accent-color: var(--c-accent); }

.themes-pills {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0;
}

.theme-pill {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.theme-pill:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  border-color: var(--c-accent);
}

/* ============================================
   VER (TV) - YouTube embed + grelha
   ============================================ */
.ver-tv-section { padding: 32px 0; }

.ver-tv-section h1 {
  font-size: 2rem;
  margin: 0 0 24px;
}

.live-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.live-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

.grelha-section {
  background: var(--c-bg-darker);
  border-top: 1px solid var(--c-border);
  padding: 32px 0;
}

/* Controlos: data + género */
.grelha-controls {
  margin-bottom: 32px;
}

.grelha-date-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  padding: 10px 18px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  min-width: 200px;
}

.grelha-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.grelha-slot {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  min-height: 110px;
}

.grelha-slot:hover {
  border-color: var(--c-accent);
  background: var(--c-bg-soft);
}

.grelha-slot .slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.grelha-slot .time {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
}

.grelha-slot .dur {
  font-size: 0.7rem;
  color: var(--c-text-faded);
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 999px;
}

.grelha-slot .name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grelha-slot .genre {
  font-size: 0.7rem;
  color: var(--c-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: auto;
}

.grelha-slot .slot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.grelha-slot .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.grelha-slot .badge.directo {
  background: #d83030;
  color: #fff;
}
.grelha-slot .badge.directo::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}

.grelha-slot .badge.estreia {
  background: var(--c-accent);
  color: var(--c-bg);
}

.grelha-slot .badge.agora {
  background: rgba(26, 255, 138, 0.15);
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.grelha-slot.is-now {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent), 0 0 24px rgba(26, 255, 138, 0.15);
  background: var(--c-bg-soft);
}

/* Modal sinopse */
.grelha-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.grelha-modal.is-open { display: flex; }

.grelha-modal-inner {
  background: var(--c-bg-darker);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.grelha-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--c-bg-soft);
  border: 0;
  color: var(--c-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.grelha-modal-close:hover { background: var(--c-accent); color: var(--c-bg); }

.grelha-modal h2 {
  font-size: 1.5rem;
  margin: 8px 0 8px;
  padding-right: 48px;
}

.grelha-modal .modal-time {
  color: var(--c-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.grelha-modal .modal-meta {
  color: var(--c-text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.grelha-modal p {
  color: var(--c-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   SOBRE
   ============================================ */
.about-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
}

.about-hero .eyebrow {
  color: var(--c-accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about-content p { margin: 0 0 1.5em; }
.about-content strong { color: var(--c-accent); }
.about-content h2 { margin-top: 2em; font-size: 2rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 64px 0;
}

.feature-item { text-align: center; padding: 24px; }

.feature-item .icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: var(--c-bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--c-accent);
}

.feature-item p { color: var(--c-text-muted); font-size: 0.95rem; }

/* ============================================
   CONTACTO - hero foto + bloco branco com info
   ============================================ */
.contact-hero {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}

.contact-hero .container { position: relative; z-index: 2; }

.contact-hero h1 {
  color: var(--c-accent);
  font-size: 3rem;
  margin: 0 0 16px;
  max-width: 700px;
}

.contact-hero p {
  color: var(--c-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0;
}

.contact-info-section {
  background: var(--c-bg);
  padding: 64px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-map {
  background: var(--c-bg-darker);
  min-height: 360px;
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(26, 255, 138, 0.05) 0%, rgba(13, 38, 37, 0.8) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'><g stroke='%231aff8a' stroke-width='1' fill='none' opacity='0.4'><path d='M0 50 L400 80 M0 120 L400 130 M50 0 L80 300 M150 0 L130 300 M250 0 L260 300 M350 0 L330 300'/><circle cx='200' cy='150' r='80' opacity='0.3'/><circle cx='200' cy='150' r='40' opacity='0.5'/></g></svg>");
  background-size: cover;
  background-position: center;
}

.contact-card {
  background: #fff;
  color: #111;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card h2 {
  color: #111;
  font-size: 2rem;
  margin: 0 0 8px;
}

.contact-card .address {
  color: #444;
  white-space: pre-line;
  margin: 0;
  line-height: 1.6;
}

.contact-card .email-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-bg);
  text-decoration: none;
  font-weight: 500;
}

.contact-card .email-line svg {
  width: 20px; height: 20px;
  color: var(--c-accent-dark);
}

.contact-card .map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 16px;
  align-self: flex-start;
  border: 0;
}

.contact-card .map-btn:hover { background: var(--c-accent-bright); color: var(--c-bg); }

/* ============================================
   BOTÕES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--c-accent);
  color: var(--c-bg) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover { background: var(--c-accent-bright); }

.btn-outline {
  background: transparent;
  color: var(--c-accent) !important;
  border: 1px solid var(--c-accent);
}

.btn-outline:hover { background: var(--c-accent); color: var(--c-bg) !important; }

/* ============================================
   FOOTER (exactamente como o site real)
   ============================================ */
.site-footer {
  background: var(--c-bg-darker);
  border-top: 1px solid var(--c-border);
  padding: 64px 0 40px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-bg-darker);
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  position: relative;
  width: max-content;
}

.footer-logo::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--c-accent);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.footer-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--c-text);
  margin-left: 4px;
}

.site-footer h4 {
  color: var(--c-accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: none;
  letter-spacing: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 14px; }

.site-footer li a {
  color: var(--c-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer li a:hover { color: var(--c-accent); }

.site-footer li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-accent);
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: var(--c-bg-darker) !important;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
  text-decoration: none;
  width: max-content;
}

.footer-contact-btn:hover { background: var(--c-accent-bright); color: var(--c-bg-darker) !important; }

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-bg-darker);
  font-weight: 700;
  transition: var(--transition);
}

.social-links a svg {
  width: 20px; height: 20px; color: var(--c-bg-darker);
}

.social-links a:hover {
  background: var(--c-accent-bright);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--c-text-faded);
}

.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0;
}

.pagination a, .pagination span {
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  color: var(--c-text);
}

.pagination .current { background: var(--c-accent); color: var(--c-bg); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr 380px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .programs-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .program-card { flex: 0 0 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 240px; }
}

@media (max-width: 768px) {
  .container, .site-header .header-inner { padding: 0 20px; }
  .main-nav { display: none; }
  .btn-mobile-menu { display: block; }
  .header-right .header-link { display: none; }
  .header-right .btn-contact { display: none; }

  .main-nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    background: var(--c-bg);
    padding: 24px;
    align-items: flex-start;
    overflow-y: auto;
    margin: 0;
    border-radius: 0;
  }
  .main-nav.is-open > a,
  .main-nav.is-open > .has-dropdown > a {
    height: auto;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--c-border);
  }

  .timeline-item.is-active h2 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
