/*
Theme Name: FV Video Theme
Description: Tema WordPress otimizado para vídeos com player HTML5, grid responsivo, infinite scroll e performance otimizada.
Author: FV Theme
Version: 5.0.0
*/

:root {
  --bg: #111;
  --fg: #eee;
  --accent: #ffd700;
  --card: transparent;
  --gap: 14px;
  --radius: 8px;
  --text-muted: #999;
  --text-light: #ccc;
  --gold: #ffd700;
  --gold-dark: #ffcc02;
  --gold-light: #fff59d;
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

.admin-bar body {
  padding-top: 32px;
}

a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
}

h1 { font-size: 1rem; }

/* H1 otimizado para mobile */
@media (max-width: 768px) {
  h1 { 
    font-size: 0.875rem; 
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  h1 { 
    font-size: 0.75rem; 
    line-height: 1.1;
  }
}
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */
#main {
  min-height: 100vh;
  padding: 20px 0;
}

#site-header {
  background: var(--card);
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 100;
}

#site-footer {
  background: var(--card);
  border-top: 1px solid #333;
  margin-top: 40px;
}

/* ========================================
   HEADER
   ======================================== */
.archive-header {
  max-width: 1280px;
  margin: 20px auto;
  color: #fff;
  padding: 0 20px;
}

.archive-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.archive-header .desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  max-width: 1280px;
  margin: 20px auto;
  color: #fff;
  padding: 0 20px;
  text-align: center;
}

.page-header .page-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--fg);
  font-weight: 600;
}

/* ========================================
   PÁGINA 404
   ======================================== */
.error-404 {
  text-align: center;
  padding: 40px 20px;
}

.error-404 .page-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--fg);
}

.error-404 .page-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .search-box {
  margin: 30px 0;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
}

.error-404 .search-box h2 {
  margin-bottom: 15px;
  color: var(--fg);
}

.error-404 .recent-posts {
  margin-top: 30px;
}

.error-404 .recent-posts h2 {
  margin-bottom: 20px;
  color: var(--fg);
}
.header-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  flex-shrink: 0;
  min-width: 150px;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.search-container {
  flex: 1;
  max-width: 300px;
  margin-left: auto;
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 20px;
  background: #222;
  color: var(--fg);
  font-size: 14px;
}

.search-form button {
  padding: 10px 16px;
  background: #ffd700;
  color: #000;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
}

.main-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu a {
  color: var(--fg);
  font-weight: 500;
  padding: 8px 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 24px;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--fg);
  display: block;
  transition: all 0.3s ease;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
}

.mobile-menu-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border-radius: 8px;
  padding: 20px;
  min-width: 280px;
  position: relative;
}

.mobile-menu-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 10001;
  pointer-events: auto;
  min-width: 40px;
  min-height: 40px;
}

.mobile-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu-content a {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.mobile-menu-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* ========================================
   GRID POSTS - LIMPO E ESTÁVEL
   ======================================== */

/* Grid Container - Base */
.grid-posts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 8px 20px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Grid Item - Base (unificado com relacionados) */

/* Thumbnail Container - FORMATO WIDE */
.grid-post .thumb,
.grid-post .video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* Formato wide (16:9) */
  background: #000;
  overflow: hidden;
  border-radius: 8px;
}

/* Imagem - Fixa */
.grid-post img,
.related-video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Título - Fixo */
.grid-post h2 {
  font-size: 16px;
  line-height: 1.4;
  margin: 12px 8px 8px;
  font-weight: 500;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  flex-grow: 1;
}

/* Duração - Fixa */
.thumb-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  font-weight: 500;
}

/* ========================================
   VÍDEOS RELACIONADOS - MESMO ESTILO
   ======================================== */

/* Títulos dos posts nos vídeos relacionados - Desktop */
@media (min-width: 769px) {
  .related-videos .grid-post h2 {
    font-size: 14px;
    line-height: 1.3;
  }
}

/* Título dos vídeos relacionados */
.related-videos h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding: 0 20px;
  text-align: center;
  color: var(--fg);
}

/* Container dos relacionados */
.related-videos .grid-posts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 8px 20px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Item relacionado - mesmo estilo do grid principal */
.related-video-item,
.grid-post {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: auto;
}

/* Thumbnail relacionado - FORMATO WIDE */
.related-video-item .video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; /* Formato wide (16:9) */
  background: #000;
  overflow: hidden;
  border-radius: 8px;
}

/* Imagem relacionada - mesmo estilo */
.related-video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Título relacionado - mesmo estilo */
.related-video-item h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 12px 8px 8px;
  font-weight: 500;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  flex-grow: 1;
}

/* Duração relacionada - mesmo estilo */
.related-video-item .video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  font-weight: 500;
}

/* ========================================
   VÍDEOS EM ALTA
   ======================================== */
.videos-em-alta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  margin: 20px 0;
  padding: 0 20px;
}

.video-item {
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
    gap: 12px;
  }

.video-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
}

.video-title {
  padding: 0;
  font-size: 11px;
  margin: 0;
  line-height: 1.2;
  color: #fff;
  font-weight: 500;
  flex: 1;
}

/* ========================================
   PLAYER DE VÍDEO - COM ASPECT RATIO FIXO
   ======================================== */
.video-player-container {
  width: 100% !important;
  margin: 0 auto !important;
  background: #000 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Container para vídeos 9:16 (portrait) */
.video-player-container.portrait {
  aspect-ratio: 9/16 !important;
  max-width: 400px !important;
  max-height: 80vh !important;
}

/* Container para vídeos 16:9 (landscape) */
.video-player-container.landscape {
  aspect-ratio: 16/9 !important;
  max-width: 100% !important;
  max-height: 70vh !important;
}

/* Desktop - manter aspect ratio apenas em telas grandes */
@media (min-width: 1025px) {
  .video-player-container.portrait {
    aspect-ratio: 9/16 !important;
  }
  
  .video-player-container.landscape {
    aspect-ratio: 16/9 !important;
  }
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Esconder poster quando vídeo estiver tocando */
video::-webkit-media-controls-panel {
  background: transparent;
}

video::-webkit-media-controls-overlay-play-button {
  background: transparent;
}

/* Garantir que o poster desapareça durante reprodução */
video:not([poster=""]) {
  background-image: none;
}

/* Forçar remoção do poster durante play */
video.playing {
  background-image: none !important;
}

video.playing::-webkit-media-controls-panel {
  background: transparent !important;
}

/* Container para vídeos embed */
.embed-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.embed-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 8px;
}

/* Player responsivo - MOBILE FORCE */
@media (max-width: 768px) {
  .video-player-container {
    border-radius: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    position: relative !important;
    height: 60vh !important;
    min-height: 350px !important;
    max-height: 70vh !important;
  }
  
  .video-player-container.portrait {
    max-width: 320px !important;
    height: 70vh !important;
    min-height: 400px !important;
    max-height: 75vh !important;
    aspect-ratio: unset !important;
  }
  
  .video-player-container.landscape {
    width: 100% !important;
    max-width: 100% !important;
    height: 65vh !important;
    min-height: 350px !important;
    max-height: 70vh !important;
    aspect-ratio: unset !important;
  }
  
  /* Video dentro do container */
  .video-player-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    min-height: 400px !important;
    padding-bottom: 50px !important; /* Espaço para controles */
  }
  
  /* Embed videos em mobile */
  .embed-video-container {
    border-radius: 4px !important;
  }
  
  .embed-video-container iframe {
    border-radius: 4px !important;
  }
}

/* ========================================
   FOOTER
   ======================================== */

/* Logo do rodapé em texto */
.footer-logo-container {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-text {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  margin: 0;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-logo-text:hover {
  color: var(--gold);
  text-decoration: none;
}

/* Logo do topo em texto */
.logo-text {
  font-size: 32px;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.logo-text:hover {
  color: #fff;
  text-decoration: none;
}

/* Links Recomendados */
.footer-recommended-links {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.recommended-links-title {
  color: var(--fg);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gold);
}

.recommended-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.recommended-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.recommended-link:hover {
  color: #fff;
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--gold);
  text-decoration: none;
  transform: translateY(-2px);
}

.link-separator {
  color: #666;
  font-weight: bold;
  margin: 0 4px;
}
.footer-widgets-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}

.footer-widget {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  font-size: 16px;
}

.footer-widget h3 {
  color: var(--fg);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-post-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  overflow: hidden;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-post-thumb:has(img) {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.footer-post-thumb .footer-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

.footer-post-thumb .footer-icon svg {
  width: 28px;
  height: 28px;
}

.footer-post-title {
  flex: 1;
  font-size: 16px;
  line-height: 1.4;
  color: #ccc;
}

.footer-banner-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-link {
  margin-bottom: 8px;
  color: #ff69b4;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.footer-copyright {
  text-align: center;
  padding: 4px;
  color: #ccc;
  font-size: 16px;
}

/* ========================================
   BANNERS
   ======================================== */
.banner-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner-iframe {
  border: none;
  background: transparent;
}

/* Título das páginas - uma linha só */
.home-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin: 12px 0 !important;
  color: var(--fg) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0 20px !important;
}

/* Banner no grid - mesmo tamanho dos posts */
.ad-banner-post {
  position: relative !important;
  border-radius: 12px !important;
  background: #1a1a1a !important;
  aspect-ratio: 2/3 !important; /* Corrigido para coincidir com fv-small */
  min-height: 200px !important;
}

.ad-banner-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

/* ========================================
   PLACEHOLDERS
   ======================================== */
.grid-thumb.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  color: #ccc;
  font-size: 14px;
  text-align: center;
  aspect-ratio: 3/4;
  width: 100%;
  min-height: 200px;
}

.grid-thumb.no-thumb span {
  text-align: center;
  padding: 10px;
}

.footer-post-thumb.no-thumb {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  font-size: 12px;
  text-align: center;
}

/* ========================================
   PAGINAÇÃO - OCULTA (INFINITE SCROLL)
   ======================================== */
.pagination,
.pagination-container,
.page-numbers,
.nav-links,
.wp-pagenavi {
  display: none !important;
}

/* ========================================
   POST ACTIONS (BOTÕES)
   ======================================== */
.post-actions {
  margin: 20px 0;
  text-align: center;
}

.post-actions .like-btn,
.post-actions .share-btn {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.post-actions .like-btn:hover,
.post-actions .share-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ========================================
   POST META INFO (CATEGORIA E TAGS)
   ======================================== */
.post-meta-info {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-category,
.post-tags {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.post-category:last-child,
.post-tags:last-child {
  margin-bottom: 0;
}

.post-category strong,
.post-tags strong {
  color: var(--accent);
  margin-right: 8px;
}

.post-category a,
.post-tags a {
  color: var(--fg);
  text-decoration: none;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-right: 5px;
  transition: all 0.2s ease;
}

.post-category a:hover,
.post-tags a:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* ========================================
   BREADCRUMBS - Otimizado para All in One SEO
   ======================================== */
.breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* Estilos específicos para breadcrumbs do All in One SEO */
.breadcrumbs .aioseo-breadcrumb {
  color: var(--text-muted);
  font-size: 12px;
}

.breadcrumbs .aioseo-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs .aioseo-breadcrumb a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.breadcrumbs .aioseo-breadcrumb-separator {
  color: var(--text-muted);
  margin: 0 4px;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Mobile - 2 colunas */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    min-width: 42px !important;
    width: 42px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin-right: 4px !important;
    z-index: 10 !important;
  }
  
  .main-menu {
    display: none !important;
  }
  
  .mobile-menu-overlay.active {
    display: block !important;
  }
  
  .header-container {
    gap: 8px !important;
    padding: 8px 12px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .logo {
    min-width: 110px !important;
    max-width: 110px !important;
    flex-shrink: 0 !important;
  }
  
  .logo img {
    height: 35px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
  
  .search-container {
    flex: 1 !important;
    max-width: calc(100% - 150px) !important;
    margin: 0 12px 0 8px !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  
  .search-form {
    gap: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 38% !important;
    max-width: 120px !important;
    flex: 0 0 auto !important;
    margin-left: 8px !important;
  }
  
  .search-form input {
    font-size: 11px !important;
    padding: 6px 8px !important;
    border-radius: 12px 0 0 12px !important;
    min-width: 0 !important;
    flex: 1 !important;
    height: 30px !important;
    box-sizing: border-box !important;
    max-width: none !important;
    border-right: none !important;
  }
  
  .search-form button {
    font-size: 8px !important;
    padding: 5px 6px !important;
    border-radius: 0 12px 12px 0 !important;
    min-width: 30px !important;
    min-height: 30px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    border-left: none !important;
  }
  
  .grid-posts,
  .related-videos .grid-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px;
  }
  
  .related-videos h2 {
    font-size: 1.25rem;
    padding: 0 12px;
    margin-bottom: 16px;
  }
  
  /* Thumbs mobile com proporção wide - OTIMIZADO */
  .grid-post .thumb,
  .grid-post .video-thumbnail,
  .related-video-item .video-thumbnail {
    aspect-ratio: 16/9 !important; /* Formato wide */
    min-height: 120px !important;  /* Ajustado para 320x180px */
    width: 100% !important;
    height: auto !important;
  }
  
  .grid-post img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  
  .grid-post h2,
  .related-video-item h3 {
    font-size: 14px;
    line-height: 1.2;
    margin: 8px 0 4px;
    min-height: 2.4em;
  }
  
  .thumb-duration,
  .related-video-item .video-duration {
    font-size: 10px;
    padding: 3px 6px;
    right: 6px;
    bottom: 6px;
  }
  
.videos-em-alta {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 4px;
  }
  
  .video-thumb {
    width: 60px;
    height: 45px;
  }
  
  .video-title {
    font-size: 10px;
    padding: 4px 0;
  }
  
  .footer-widgets-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
  }
  
  .footer-post-thumb {
    width: 40px;
    height: 40px;
  }
  
  .footer-post-title {
    font-size: 12px;
  }
  
  /* Logo responsivo - Mobile */
  .logo-text {
    font-size: 24px;
    letter-spacing: 0.5px;
  }
  
  .footer-logo-text {
    font-size: 22px;
    letter-spacing: 1px;
  }
  
  /* Links Recomendados - Mobile */
  .footer-recommended-links {
    padding: 16px;
  }
  
  .recommended-links-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .recommended-links-list {
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
  }
  
  .recommended-link {
    padding: 10px 16px;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .link-separator {
    display: none;
  }
}

/* Mobile pequeno - 2 colunas */
@media (max-width: 480px) {
  .grid-posts,
  .related-videos .grid-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 2px;
  }
  
  .related-videos h2 {
    font-size: 1.125rem;
    padding: 0 8px;
    margin-bottom: 12px;
  }
  
  .grid-post .thumb,
  .grid-post .video-thumbnail,
  .related-video-item .video-thumbnail {
    aspect-ratio: 16/9 !important; /* Formato wide */
    min-height: 135px !important;  /* Ajustado para 320x180px */
    width: 100% !important;
    height: auto !important;
  }
  
  .grid-post img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  
  .grid-post h2,
  .related-video-item h3 {
    font-size: 13px;
    margin: 6px 0 3px;
    min-height: 2.2em;
  }
  
  .thumb-duration,
  .related-video-item .video-duration {
    font-size: 9px;
    padding: 2px 4px;
  }
  
  .video-thumb {
    width: 50px;
    height: 38px;
  }
  
  .video-title {
    font-size: 9px;
    padding: 3px 0;
  }
  
  /* Player para mobile pequeno - FORCE */
  .video-player-container {
    height: 50vh !important;
    min-height: 250px !important;
    max-height: 65vh !important;
  }
  
  .video-player-container.portrait {
    max-width: 280px !important;
    height: 55vh !important;
    min-height: 300px !important;
    max-height: 70vh !important;
    aspect-ratio: unset !important;
  }
  
  .video-player-container.landscape {
    height: 50vh !important;
    min-height: 250px !important;
    max-height: 60vh !important;
    aspect-ratio: unset !important;
  }
  
  /* Video dentro do container mobile pequeno */
  .video-player-container video {
    min-height: 250px !important;
  }
}

/* Tablet - 3 colunas */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-posts,
  .related-videos .grid-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px;
  }
  
  /* Links Recomendados - Tablet */
  .recommended-links-list {
    font-size: 15px;
  }
  
  .recommended-link {
    padding: 8px 10px;
  }
  
  .videos-em-alta {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Desktop médio - 4 colunas */
@media (min-width: 1025px) and (max-width: 1400px) {
  .grid-posts,
  .related-videos .grid-posts {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* Desktop grande - 5 colunas */
@media (min-width: 1401px) {
  .grid-posts,
  .related-videos .grid-posts {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }
}

/* ========================================
   FORÇA MÁXIMA - GRID E HEADER
   ======================================== */

/* FORÇA MÁXIMA - GRID 5 COLUNAS DESKTOP */
@media (min-width: 1025px) {
  .grid-posts {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
  }

  .related-videos .grid-posts {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
  }
}

/* TABLET - 3 COLUNAS */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-posts {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .related-videos .grid-posts {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* DESKTOP - 5 COLUNAS (FORÇA MÁXIMA) */
@media (min-width: 1025px) {
  .grid-posts {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
  }
  .related-videos .grid-posts {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
  }
}

/* FORÇA ABSOLUTA - DESKTOP 5 COLUNAS */
@media (min-width: 1200px) {
  .grid-posts,
  .related-videos .grid-posts {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 18px !important;
  }
}

/* HEADER MOBILE MAIOR - REMOVIDO (DUPLICADO) */