/*
Theme Name: VideoPlataform 4.0
Theme URI: http://example.com/youtube-clone-theme/
Author: Danieu
Author URI: http://example.com/
Description: A modern YouTube-like theme for WordPress
Version: 4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youtube-clone
*/

.page-content {
  line-height: 1.6;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.page-content a {
  color: var(--accent-color);
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #202020;
  --text-primary: #ffffff;
  --text-secondary: rgb(142 142 142 / 75%);
  --accent-color: #ff0000;
  --hover-color: #272727;
  --border-radius: 8px;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px;
  background-color: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 1100;
}

.header-left {
  display: flex;
  align-items: center;
}

.menu-button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.menu-button:hover {
  background-color: var(--hover-color);
}

.sidebar-collapsed .menu-button {
  transform: rotate(180deg);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  padding: 0 8px;
}

.logo img {
  height: 28px;
  margin-right: 8px;
}

.search-form {
  display: flex;
  flex: 0 1 728px;
  margin: 0 40px 0 0;
}

.search-field {
  flex: 1;
  padding: 0 16px;
  height: 40px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid #303030;
  border-radius: 20px 0 0 20px;
  font-size: 16px;
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 40px;
  background-color: #323232;
  color: var(--text-secondary);
  border: 1px solid #303030;
  border-left: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
}

.main-content {
  display: flex;
  flex: 1;
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-left: 240px;
  transition: margin-left 0.3s ease;
}

.app.sidebar-collapsed .main-content {
  margin-left: 0;
}

.content {
  flex: 1;
  padding: 24px;
  min-height: calc(100vh - 56px);
  overflow-y: auto;
}

.sidebar {
  width: 240px;
  background-color: var(--bg-primary);
  height: 100vh;
  position: fixed;
  top: 56px;
  left: 0;
  overflow-y: auto;
  padding-top: 12px;
  transition: all 0.3s ease;
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(0);
}

.sidebar.collapsed {
  transform: translateX(-240px);
}

.sidebar.collapsed .sidebar-menu span,
.sidebar.collapsed h3,
.sidebar.collapsed .sidebar-widgets {
  display: none;
}

.sidebar.collapsed .sidebar-menu li {
  padding: 0 8px;
}

.sidebar.collapsed .sidebar-menu a {
  justify-content: center;
  padding: 10px;
}

.sidebar.collapsed .sidebar-menu a i {
  margin-right: 0;
}

.sidebar-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  padding: 0 12px;
  margin: 4px 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.sidebar-menu a:hover {
  background-color: var(--hover-color);
}

.sidebar-menu a.active {
  background-color: var(--hover-color);
  font-weight: 500;
}

.sidebar-menu a i {
  margin-right: 24px;
  font-size: 20px;
  width: 24px;
  text-align: center;
  min-width: 24px;
}

.sidebar h3 {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 24px;
  margin: 0;
  color: var(--text-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.video-item {
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: none;
}

.video-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: var(--bg-primary);
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-info {
  padding: 12px 0;
}

.video-info h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  max-height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-stats {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.video-page {
  display: flex;
  flex-direction: row;
}

.video-main {
  flex: 1;
  max-width: 1280px;
  padding-right: 24px;
}

.video-player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  z-index: 1;
  overflow: hidden;
}

.video-ad,
.main-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.ad-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ajustes para iframe */
.main-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.skip-ad-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 3;
}

.ad-countdown {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 4px;
  font-size: 14px;
  z-index: 3;
}

.video-ad {
  position: absolute;
  overflow: hidden; /* Importante para conter o blur */
  width: 100%;
  height: 100%;
}

.ad-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 2px;
}

.ad-timer {
  font-size: 14px;
  margin-right: 10px;
}

.skip-ad {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 2px;
}

.clickable-ad {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  gap: 16px;
}

.ad-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.ad-content {
  flex: 1;
  min-width: 0; /* Prevenir overflow em containers flex */
}

.ad-content h1 {
  font-size: 18px;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-content h2 {
  font-size: 14px;
  margin: 0;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-cta {
  background-color: #ffd700;
  color: black;
  border: none;
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ad-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-sidebar {
  width: 402px;
  padding-left: 24px;
}

.suggested-video {
  display: flex;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.suggested-video-thumbnail {
  width: 168px;
  height: 94px;
  margin-right: 8px;
}

.suggested-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggested-video-info {
  flex: 1;
}

.suggested-video-info h3 {
  font-size: 14px;
  margin: 0 0 4px 0;
}

.suggested-video-stats {
  font-size: 12px;
  color: var(--text-secondary);
}

.widget {
  background-color: var(--bg-secondary);
  padding: 16px;
  margin-bottom: 16px;
  border-radius: var(--border-radius);
}

.widget-title {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .video-page {
    flex-direction: column;
  }

  .video-main {
    padding-right: 0;
  }

  .video-sidebar {
    width: 100%;
    padding-left: 0;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .header .search-form {
    display: none;
  }

  .sidebar {
    position: fixed;
    left: -240px;
    transition: left 0.3s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .content {
    margin-left: 0 !important;
  }

  .app.sidebar-collapsed .content {
    margin-left: 0;
  }

  .clickable-ad {
    padding: 10px;
    gap: 12px;
  }

  .ad-image {
    display: none;
  }

  .ad-content h1 {
    font-size: 16px;
  }

  .ad-content h2 {
    font-size: 12px;
  }

  .ad-cta {
    padding: 6px 12px;
    font-size: 14px;
  }

  .sidebar .search-form {
    display: block !important;
    position: relative;
    margin: 16px;
    padding: 0;
  }

  .sidebar .search-field {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 16px;
    font-size: 14px;
    border-radius: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }

  .sidebar .search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0;
  }

  .sidebar .search-submit:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
  }

  /* Remover o overlay escuro */
  .sidebar-overlay {
    display: none !important; /* Forçar que nunca seja exibido */
  }

  /* Ajustar o z-index do sidebar para ficar sobre o conteúdo */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 1300;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 56px;
    box-shadow: none; /* Remover sombra padrão */
  }

  /* Quando o sidebar estiver aberto */
  .sidebar.open {
    left: 0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3); /* Sombra sutil apenas no sidebar */
  }

  /* Remover qualquer regra que mostre o overlay */
  .sidebar.open + .sidebar-overlay {
    display: none !important;
  }
}

/* Estilos para áreas de anúncios */
.ad-space {
  width: 100%;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Banner principal no topo da página inicial */
.home-top-ad {
  min-height: 90px;
  margin-bottom: 24px;
}

/* Banner lateral na página inicial */
.home-sidebar-ad {
  min-height: 250px;
  margin: 20px 0;
}

/* Anúncios entre os vídeos na grade */
.video-grid-ad {
  grid-column: 1 / -1;
  min-height: 90px;
}

/* Anúncios na página de vídeo */
.video-page-top-ad {
  margin: 0 0 20px 0;
  min-height: 90px;
}

.video-page-sidebar-ad {
  min-height: 250px;
  margin: 20px 0;
}

/* Responsividade para anúncios */
@media (max-width: 768px) {
  .home-sidebar-ad,
  .video-page-sidebar-ad {
    min-height: 100px;
  }
  
  .home-top-ad,
  .video-grid-ad,
  .video-page-top-ad {
    min-height: 60px;
  }
}

/* Ajuste para o container de widgets */
.widget-ad {
  margin-bottom: 20px;
}

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

/* Estilo para placeholder de anúncio (desenvolvimento) */
.ad-placeholder {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
  border: 2px dashed #404040;
  font-size: 14px;
}

/* Separadores no menu */
.sidebar-menu-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sobrescrever estilos do Bootstrap para manter o tema escuro */
.form-control {
    background-color: var(--bg-secondary);
    border-color: #303030;
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
}

.btn-outline-light:hover {
    background-color: var(--hover-color);
    border-color: var(--text-secondary);
}

.dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: #303030;
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
}

.card {
    background-color: var(--bg-secondary);
    border: none;
}

.card:hover {
    background-color: var(--hover-color);
}

/* Estilos para o container de anúncio em vídeo */
.video-ad-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.video-ad {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Contador de tempo */
.ad-countdown {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
}

/* Botão de pular */
.skip-ad-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: none;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.skip-ad-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.skip-ad-button.active {
    display: block;
}

/* Link do anúncio */
.ad-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 999;
}

/* Overlay de carregamento */
.ad-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.ad-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ajustes para os cards de vídeo */
.video-item .card-body {
    padding: 12px;
}

.video-item .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item .card-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.video-item a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Ajustes para os vídeos sugeridos */
.suggested-video-info h3 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggested-video-stats {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}

/* Hover effects */
.video-item:hover .card-title,
.suggested-video:hover h3 {
    color: var(--text-primary);
}

.video-item:hover .card-text,
.suggested-video:hover .suggested-video-stats {
    color: var(--text-secondary);
}

/* Seções da Sidebar */
.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 24px;
    margin: 0;
}

/* Área de anúncio na sidebar */
.sidebar-ad-space {
    padding: 16px;
    margin: 16px 0;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
}

/* Ajuste do conteúdo principal */
.main-content {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-240px);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Estilos para páginas de listagem especiais */
.page-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 24px 0;
    color: var(--text-primary);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-duration i {
    font-size: 12px;
}

/* Ajustes para o card de vídeo */
.video-item .card-body {
    padding: 12px;
}

.video-item .video-stats i {
    font-size: 12px;
    margin-left: 4px;
}

/* Estilos para categorias no sidebar */
.category-menu {
    margin-top: 8px;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 24px;
    margin: 0;
}

.sidebar-section-title i {
    font-size: 18px;
}

.category-menu li a {
    padding: 8px 24px;
}

.category-menu li a i {
    font-size: 16px;
    opacity: 0.8;
}

.category-menu li a:hover i {
    opacity: 1;
}

/* Ajuste do espaçamento para o banner */
.sidebar-ad-space {
    margin: 16px;
    padding: 0;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-separator {
    color: var(--text-secondary);
}

.views-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.views-count i {
    font-size: 16px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-duration i {
    font-size: 12px;
}

/* Ajustar espaçamento do título da página */
.page-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 24px 0;
    color: var(--text-primary);
}

/* Quando há banner, ajustar espaçamento */
.home-top-ad + .page-title {
    margin-top: 24px;
}

/* Atualizar a classe text-muted do Bootstrap */
.text-muted {
  color: rgb(142 142 142 / 75%) !important;
}

/* Estilizar a barra de rolagem do sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Estilos para o botão de like */
.btn-like,
.likes-container {
    display: none;
}

/* Estilos para o WP ULike */
.wp-ulike-video-wrapper {
    margin: 10px 0;
}

.wpulike-heart .wp-ulike-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.wpulike-heart .wp-ulike-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: var(--accent-color);
}

.wpulike-heart .wp-ulike-btn.wp-ulike-btn-is-active {
    color: var(--accent-color);
}

.wpulike-heart .count-box {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* Animação para o botão de like */
.wpulike-heart .wp-ulike-btn.wp-ulike-btn-is-active i {
    animation: likeAnimation 0.3s ease;
}

/* Atualizar estilos para contadores de likes */
.likes-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
}

.mini-views {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-views i {
    color: var(--accent-color);
}

/* Remover estilos antigos que não são mais necessários */
.likes-container {
    display: none;
}

/* Estilos para as seções da página inicial */
.row.g-4.mb-5 {
    margin-right: 0;
    margin-left: 0;
}

.section-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
    height: 100%;
}

.mini-video-item {
    position: relative;
    transition: transform 0.2s ease;
    padding-left: 20px;
}

.mini-video-item:hover {
    transform: translateX(5px);
}

.mini-thumbnail {
    width: 120px;
    height: 68px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.mini-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.mini-title {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-views {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-views i {
    color: var(--accent-color);
}

/* Estilos para a taxonomia de vídeo */
.video-taxonomy {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.video-categories,
.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.video-category-tag,
.video-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-category-tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-tag {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.video-category-tag:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.video-tag:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.video-category-tag i,
.video-tag i {
    font-size: 12px;
    opacity: 0.8;
}

/* Separador entre categorias e tags */
.video-categories:not(:empty) + .video-tags:not(:empty)::before {
    content: '•';
    color: var(--text-secondary);
    margin-right: 4px;
}

/* Responsividade */
@media (max-width: 768px) {
    .video-taxonomy {
        gap: 6px;
    }

    .video-category-tag,
    .video-tag {
        padding: 3px 10px;
        font-size: 12px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .clickable-ad {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ad-content {
        width: 100%;
    }

    .ad-cta {
        width: 100%;
        text-align: center;
    }
}

/* Atualizar estilos do header e sidebar para mobile */
@media (max-width: 768px) {
    /* Header em mobile */
    .header {
        position: fixed;
        width: 100%;
        z-index: 1200;
        padding: 16px 8px; /* Aumentar o padding top/bottom para 16px */
        height: 72px; /* Aumentar a altura para acomodar o padding */
        background-color: var(--bg-primary);
        display: flex;
        justify-content: center;
    }

    .mobile-header-content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 600px;
        position: relative;
    }

    /* Ajustar o layout do conteúdo principal para compensar o header mais alto */
    .main-content {
        padding-top: 72px; /* Ajustar para a nova altura do header */
        margin-left: 0 !important;
    }

    /* Sidebar em mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-primary);
        z-index: 1300;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 72px; /* Ajustar para a nova altura do header */
    }

    /* Quando o sidebar estiver aberto */
    .sidebar.open {
        left: 0;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3); /* Sombra sutil apenas no sidebar */
    }

    /* Menu button em mobile */
    .menu-button {
        position: absolute;
        left: 8px;
        margin: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Logo em mobile */
    .logo {
        font-size: 18px;
        margin: 0;
        padding: 0;
    }

    /* Formulário de busca em mobile (dentro do sidebar) */
    .search-form {
        display: block;
        position: relative;
        margin: 16px;
        padding: 0;
    }

    .search-field {
        width: 100%;
        height: 40px;
        padding: 0 40px 0 16px;
        font-size: 14px;
        border-radius: 20px;
        background-color: var(--bg-secondary);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .search-submit {
        position: absolute;
        right: 4px;
        top: 4px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-secondary);
    }

    /* Overlay escuro quando o sidebar estiver aberto */
    .sidebar-overlay {
        display: none !important; /* Forçar que nunca seja exibido */
    }

    .sidebar.open + .sidebar-overlay {
        display: none !important;
    }

    /* Ajustar o conteúdo principal */
    .content {
        padding: 16px;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 480px) {
    .mobile-header-content {
        padding: 0 8px;
    }

    .menu-button {
        left: 4px;
    }

    .logo {
        font-size: 16px;
    }

    .sidebar {
        width: 260px;
    }
}

/* Adicionar animação suave ao abrir/fechar o sidebar */
.sidebar,
.mobile-header,
.sidebar-overlay {
    transition: all 0.3s ease;
}

/* Remover transição do overlay */
.sidebar-overlay {
    display: none !important;
}

/* Estilos para paginação */
.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination-container .page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination-container .page-numbers li {
    margin: 0;
}

.pagination-container .page-numbers a,
.pagination-container .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.pagination-container .page-numbers a:hover {
    background-color: var(--hover-color);
    transform: translateY(-1px);
}

.pagination-container .page-numbers .current {
    background-color: var(--accent-color);
    color: white;
}

/* Responsividade da paginação */
@media (max-width: 768px) {
    .pagination-container .page-numbers a,
    .pagination-container .page-numbers span {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 14px;
    }
    
    .pagination-container .page-numbers {
        gap: 4px;
    }
}
