:root {
  --primary: #0b5ed7;
  --accent: #ffc107;
  --bg: #ffffff;
  --text: #222;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ===== NAV ===== */
.nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}
.nav a:hover { color: var(--accent); }

/* ===== HERO ACTION LINKS ===== */
.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
/* Botões */
.hero-actions a[href*="#ao-vivo"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(11,94,215,0.25);
}
.hero-actions a[href*="#ao-vivo"]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.hero-actions a[href*="#programacao"] {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.hero-actions a[href*="#programacao"]:hover {
  background: rgba(11,94,215,0.08);
}
.hero-actions a[href*="#webtv"] {
  background: var(--accent);
  color: #000;
}
.hero-actions a[href*="#webtv"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Responsivo: empilha no mobile */
@media (max-width: 600px) {
  .hero-actions { justify-content: center; }
  .hero-actions a { width: 100%; text-align: center; }
}

/* ===== HERO ===== */
.hero {
  padding: 60px 20px;
  background: linear-gradient(90deg, rgba(11,94,215,.06), rgba(11,94,215,.02));
}
.hero-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.hero-left { flex: 1; }
.hero-right { width: 380px; }
.hero h1 { font-size: 2rem; margin-bottom: 12px; color: var(--primary); }
.hero-actions a { margin-right: 10px; color: var(--primary); }

/* ===== PLAYER ===== */
.player-card {
  background: linear-gradient(135deg, #0b5ed7, #6610f2);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  padding: 20px;
  text-align: center;
}
.player-header { font-size: 1.2em; font-weight: 700; margin-bottom: 12px; }
.player-body audio, .player-body video { width: 100%; border-radius: 8px; }

/* ===== SLIDES ===== */
.slides {
  width: 100%;
  margin: 20px auto 30px;
  height: clamp(220px, 36vw, 340px);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 600ms ease;
}
.slide.active { opacity: 1; }

/* ===== WEBTV ===== */
.webtv-section {
  margin-top: 0;
  padding: 20px;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.webtv-section h2 {
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.video-wrapper iframe, .video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== botao programaçãoL ===== */
.hero-actions a[href*="programacao.php"] {
  background: var(--accent);
  color: #000;
}
.hero-actions a[href*="programacao.php"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ===== LAYOUT PRINCIPAL ===== */
.main-with-aside {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 30px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.content-area { min-width: 0; }
.aside-area { min-width: 0; }

/* ===== CLOCK ===== */
.clock-box {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.clock-time { font-size: 28px; font-weight: 700; }
.clock-date { margin-top: 6px; font-size: 14px; opacity: 0.9; }

/* ===== PROGRAMACAO (ABAS) ===== */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tablink {
  padding: 10px 18px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.tablink:hover { background: var(--accent); color: #000; }
.tablink.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.tabcontent { display: none; }
.program-card {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 12px;
  margin-bottom: 12px;
}
.program-card h3 { margin: 0; color: var(--primary); }
.program-card .meta { font-size: 13px; color: #666; margin: 6px 0; }

/* ===== ASIDE CARDS ===== */
.aside-area .card {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== FOOTER ===== */
.footer {
  background: #0b1220;
  color: #fff;
  padding: 24px 0;
}
.footer .wrap {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 6px; }
.footer ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.footer ul li a:hover { text-decoration: underline; color: var(--accent); }
.foot-note {
  text-align: center;
  padding: 12px;
  background: #071020;
  color: #99a;
  font-size: 13px;
}

/* ===== FORMULÁRIO DE CONTATO ADMIN ===== */
.contact-admin {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  color: #222;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.contact-admin h1 {
  text-align: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-admin label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
  color: #333;
}

.contact-admin input[type="email"],
.contact-admin input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 6px;
  transition: border-color 0.2s;
}

.contact-admin input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,94,215,0.15);
}

.contact-admin button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-admin button:hover {
  background: #084298;
}

.contact-admin .feedback {
  text-align: center;
  color: green;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ===== PAINEL ADMIN (LAYOUT + SIDEBAR) ===== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px); /* altura menos header */
}

.admin-sidebar {
  width: 220px;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.admin-sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  font-weight: 600;
  display: block;
  transition: background 0.2s;
}

.admin-sidebar a:hover {
  background: rgba(255,255,255,0.15);
  border-left: 4px solid var(--accent);
}

.admin-main {
  flex: 1;
  padding: 30px;
}

.admin-col {
  background: #fff;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.admin-col h3 {
  margin-top: 0;
  color: var(--primary);
}

/* ===== SETTINGS PAGE ===== */
.settings-page {
  width: 100%;              /* ocupa toda a largura */
  min-height: calc(100vh - 60px); /* ocupa toda a altura menos o header */
  margin: 0;                /* remove margens */
  background: #fff;
  padding: 40px;            /* espaçamento interno */
  border-radius: 0;         /* sem bordas arredondadas */
  box-shadow: none;         /* sem sombra, página flat */
}

.settings-page h1 {
  text-align: left;
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 25px;
}

.settings-page h3 {
  margin-top: 30px;
  font-size: 20px;
  color: var(--primary);
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

.settings-page form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.settings-page label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #333;
}

.settings-page input[type="color"],
.settings-page input[type="file"],
.settings-page input[type="text"],
.settings-page input[type="url"],
.settings-page textarea {
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.settings-page input:focus,
.settings-page textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11,94,215,0.15);
}

.settings-page button {
  grid-column: span 2;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-page button:hover {
  background: #084298;
}

/* Feedback */
.settings-page .feedback {
  grid-column: span 2;
  text-align: center;
  color: green;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Responsivo */
@media (max-width: 700px) {
  .settings-page form {
    grid-template-columns: 1fr;
  }
}
/* ===== CABEÇALHO ADMIN FIXO ===== */
header.admin-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

header.admin-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

header.admin-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
header.admin-header a:hover { color: var(--accent); }

/* ===== LAYOUT ADMIN ===== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px); /* 60px do header */
}

/* Sidebar e conteúdo para garantir que não cubram o header */
.admin-sidebar {
  width: 220px;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  /* não usar position: fixed aqui para não sobrepor o header */
}

.admin-main {
  flex: 1;
  padding: 30px;
}
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: #0b5ed7;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-sidebar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s;
}

.admin-sidebar a:hover {
  background: rgba(255,255,255,0.2);
}

.admin-main {
  flex: 1;
  padding: 30px;
}.footer-col.right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* mantém alinhado à direita */
}

.social-links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between; /* mantém logo à esquerda, menu no meio, redes à direita */
}

.main-menu {
  display: flex;
  gap: 20px;
}

.header-social {
  display: flex;
  gap: 12px;
}