/* Variáveis de cores */
:root {
  --vermelho1: #FF0000;
  --vermelho2: #AD2624;
  --vermelho-escuro: #991B1B;
  --cinza-label: #B0B0B0;
  --cinza-inativo: #E0E0E0;
  --cinza-card: #F7F7F7;
  --cinza-borda: #E0E0E0;
  --amarelo: #FFCD00;
}

/* Reset e estilos gerais */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

/* Container principal */
.cfm-single-filme {
  max-width: 1100px;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 1rem 0;
}

/* Cabeçalho do filme */
.cfm-filme-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

/* Poster */
.cfm-filme-poster-large {
  position: relative;
  min-width: 280px;
  max-width: 280px;
  height: 400px;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfm-poster-img-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Classificação indicativa */
.cfm-classificacao-large {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--vermelho-escuro);
  color: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  font-weight: bold;
  font-size: 0.8rem;
  z-index: 2;
}

/* Botão de trailer */
.cfm-trailer-link-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 205, 0, 0.95);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 2rem;
  text-decoration: none;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 2px solid #fff;
  transition: background 0.2s;
}

.cfm-trailer-link-large:hover {
  background: #ffd600;
}

/* Informações do filme */
.cfm-filme-info-large {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Título do filme */
.cfm-filme-titulo-large {
  font-size: 2.2rem;
  color: var(--vermelho-escuro);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 0.2rem 0;
  letter-spacing: 1px;
  line-height: 1.1;
}

/* Metadata compacta */
.cfm-filme-meta-inline {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 1.1rem;
  color: var(--vermelho-escuro);
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 0.2rem;
  letter-spacing: 1px;
}

/* Badge de estreia com máxima prioridade */
.cfm-badge-estreia {
  display: inline-flex !important;
  align-items: center !important;
  background: linear-gradient(90deg, #FF0000 0%, #AD2624 100%) !important;
  color: #FFC000 !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-size: 0.85rem !important;
  padding: 3px 0.8em 3px 0.5em !important;
  border-radius: 0 12px 12px 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 0.2rem 0 !important;
  text-align: left !important;
  border: none !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  max-width: 200px !important;
}

/* Dados do filme */
.cfm-filme-dados {
  margin-top: 10px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #222;
}

.cfm-filme-dados strong {
  color: var(--vermelho-escuro);
  font-weight: 700;
}

.cfm-filme-dados div {
  margin-bottom: 0.2rem;
}

/* Sinopse */
.cfm-filme-sinopse {
  margin-bottom: 1.5rem;
}

.cfm-filme-sinopse h3 {
  margin: 0 0 0.5rem 0;
  color: var(--vermelho-escuro);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cfm-filme-sinopse p {
  margin: 0;
  color: #444;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Galeria de imagens - novo estilo moderno */
.cfm-galeria-horizontal {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  padding: 0;
  overflow: hidden;
}

.cfm-galeria-container {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.cfm-galeria-horizontal img {
  width: 340px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  border: none;
  background: #eee;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 5px;
}

/* Setas de navegação */
.cfm-galeria-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 5;
  border: none;
  outline: none;
  transition: background 0.2s ease;
}

.cfm-galeria-nav:hover {
  background: rgba(173, 38, 36, 0.8);
}

.cfm-galeria-prev {
  left: 10px;
}

.cfm-galeria-next {
  right: 10px;
}

.cfm-galeria-indicator {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.cfm-galeria-dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
}

.cfm-galeria-dot.active {
  background: var(--vermelho2);
}

/* Seção de horários */
.cfm-horarios-section {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

/* Título da seção de horários */
.cfm-horarios-title {
  color: var(--vermelho-escuro);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

/* Seleção de datas */
.cfm-horarios-datas {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Card de dia */
.cfm-horario-dia {
  background: #fff;
  border: 2px solid var(--vermelho2);
  color: #282828;
  border-radius: 24px;
  padding: 0.7rem 1.1rem 0.4rem 1.1rem;
  font-size: 1.1rem;
  text-align: center;
  min-width: 110px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(255,0,0,0.03);
  font-weight: normal;
}

.cfm-horario-dia .cfm-dia-label {
  font-size: 1em;
  font-weight: normal;
  color: #282828;
  text-transform: capitalize;
  margin-bottom: 2px;
  display: block;
}

.cfm-horario-dia .cfm-dia-numero {
  font-size: 2.1em;
  font-weight: bold;
  color: #282828;
  line-height: 1.1;
  margin: 0;
  display: block;
}

.cfm-horario-dia .cfm-dia-mes {
  font-size: 0.9em;
  font-weight: normal;
  color: #282828;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.cfm-horario-dia.selected, .cfm-horario-dia:hover {
  background: var(--vermelho2);
  color: #fff;
  border-color: var(--vermelho2);
}

.cfm-horario-dia.selected .cfm-dia-label, 
.cfm-horario-dia:hover .cfm-dia-label,
.cfm-horario-dia.selected .cfm-dia-numero, 
.cfm-horario-dia:hover .cfm-dia-numero,
.cfm-horario-dia.selected .cfm-dia-mes, 
.cfm-horario-dia:hover .cfm-dia-mes {
  color: #fff;
}

/* Cards de horários */
.cfm-horarios-cards,
.cfm-horarios-dia-cards {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
  padding-bottom: 1.2rem;
  width: 100%;
  border-bottom: none;
}

.cfm-horario-card {
  background: var(--cinza-card);
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.2rem 0.7rem 1.2rem;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 0.5rem;
}

.cfm-horario-card-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.cfm-horario-card-header .cfm-sala {
  color: var(--vermelho1);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  margin-right: 0.8rem;
  display: inline-block;
  white-space: nowrap;
}

.cfm-horario-card-header .cfm-tipo {
  color: #888;
  font-weight: 600;
  font-size: 1rem;
  text-transform: capitalize;
  margin-right: 0.5rem;
}

.cfm-horario-card-horarios {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.cfm-horario-hora {
  background: #fff;
  border: 2px solid var(--cinza-borda);
  color: #222;
  border-radius: 16px;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: none;
}

.cfm-horario-hora.selected, .cfm-horario-hora:hover {
  background: var(--vermelho2);
  color: #fff;
  border: 2px solid var(--vermelho2);
}

.cfm-horario-hora.inativo {
  background: #f7f7f7;
  border: 2px solid var(--cinza-inativo);
  color: var(--cinza-label);
  cursor: not-allowed;
  opacity: 0.7;
}

.cfm-horario-hora a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

/* Botão de compra */
.cfm-btn-ingresso {
  display: block;
  background: linear-gradient(90deg, #FF0000 0%, #AD2624 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 0;
  margin: 1.5rem auto 1.5rem auto;
  cursor: pointer;
  transition: filter 0.2s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.5px;
  width: 250px;
  text-transform: uppercase;
}

.cfm-btn-ingresso:hover {
  filter: brightness(0.92);
}

/* Botão de compra secundário (menor) */
.cfm-btn-ingresso-secundario {
  display: block;
  background: linear-gradient(90deg, var(--vermelho1) 0%, var(--vermelho2) 97%);
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 0;
  margin: 1rem auto 1rem auto;
  cursor: pointer;
  transition: filter 0.2s;
  text-align: center;
  text-decoration: none;
  letter-spacing: 1px;
  width: 240px;
  box-shadow: 0 2px 8px rgba(225,29,72,0.08);
  text-transform: uppercase;
}

.cfm-btn-ingresso-secundario:hover {
  filter: brightness(0.92);
}

/* Popup da galeria */
.cfm-popup-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s;
}

.cfm-popup-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  background: #fff;
  border: 3px solid #fff;
  animation: zoomIn 0.2s;
}

.cfm-popup-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
  transition: color 0.2s;
}

.cfm-popup-close:hover {
  color: #FFC000;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0.7; } to { transform: scale(1); opacity: 1; }
}

/* Responsividade */
@media (max-width: 1024px) {
  .cfm-galeria-horizontal img {
    width: 280px;
    height: 170px;
  }
  
  .cfm-filme-poster-large {
    min-width: 250px;
    max-width: 250px;
    height: 360px;
  }
}

@media (max-width: 900px) {
  .cfm-single-filme {
    padding: 1rem;
  }
  
  .cfm-filme-header {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  
  .cfm-filme-poster-large {
    margin: 0 auto 1.5rem auto;
    min-width: 240px;
    max-width: 240px;
    height: 340px;
  }
  
  .cfm-galeria-horizontal img {
    width: 230px;
    height: 140px;
  }
  
  .cfm-btn-ingresso {
    width: 100%;
    max-width: 320px;
    padding: 1rem 0;
  }
}

@media (max-width: 600px) {
  .cfm-filme-titulo-large {
    font-size: 1.8rem;
  }
  
  .cfm-horarios-title {
    font-size: 1.8rem;
  }
  
  .cfm-single-filme {
    padding: 0.5rem;
  }
  
  .cfm-filme-meta-inline {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .cfm-badge-estreia {
    font-size: 0.9rem !important;
  }
  
  .cfm-horario-dia {
    min-width: 90px;
    min-height: 80px;
    padding: 0.5rem 0.8rem 0.4rem 0.8rem;
  }
  
  .cfm-horario-dia .cfm-dia-numero {
    font-size: 1.8em;
  }
  
  .cfm-galeria-horizontal img {
    width: 200px;
    height: 120px;
  }
  
  .cfm-galeria-nav {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  
  .cfm-btn-ingresso {
    width: 100%;
    max-width: 280px;
  }
  
  .cfm-filme-poster-large {
    min-width: 220px;
    max-width: 220px;
    height: 320px;
  }
}

@media (max-width: 480px) {
  .cfm-galeria-horizontal img {
    width: 150px;
    height: 90px;
  }
}

/* Estilos para o novo layout de cards */
.cfm-card-simples {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.cfm-card-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.cfm-card-poster {
  width: 150px;
  min-width: 150px;
  height: 180px;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

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

.cfm-card-poster .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vermelho2);
  text-decoration: none;
  font-size: 20px;
}

.cfm-card-poster .play-icon:hover {
  background-color: #fff;
}

.cfm-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cfm-card-titulo {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--vermelho2);
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.cfm-card-classificacao {
  display: inline-block;
  background-color: var(--vermelho2);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 10px;
  font-size: 0.9rem;
}

.cfm-card-duracao {
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
}

.cfm-card-meta {
  margin-bottom: 15px;
}

.cfm-card-genero, 
.cfm-card-direcao, 
.cfm-card-elenco {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.cfm-card-label {
  font-weight: bold;
  color: var(--vermelho2);
}

.cfm-card-sinopse {
  margin-top: 10px;
}

.cfm-card-sinopse-titulo {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--vermelho2);
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.cfm-card-horarios {
  margin-top: 20px;
}

.cfm-card-horarios-titulo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--vermelho2);
  margin: 0 0 15px 0;
  text-align: center;
  text-transform: uppercase;
}

.cfm-card-dias {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.cfm-card-dia {
  border: 2px solid var(--vermelho2);
  border-radius: 8px;
  padding: 8px 15px;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  transition: all 0.2s;
}

.cfm-card-dia.selected {
  background-color: var(--vermelho2);
  color: #fff;
}

.cfm-card-dia-nome {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.cfm-card-dia-numero {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 2px;
}

.cfm-card-dia-mes {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.cfm-card-horario {
  display: inline-block;
  background-color: #f5f5f5;
  padding: 5px 12px;
  border-radius: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.cfm-card-horario:hover,
.cfm-card-horario.selected {
  background-color: var(--vermelho2);
  color: #fff;
}

/* Responsividade para os cards */
@media (max-width: 768px) {
  .cfm-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .cfm-card-poster {
    margin-bottom: 15px;
  }
  
  .cfm-card-titulo {
    font-size: 1.4rem;
  }
  
  .cfm-card-horarios-titulo {
    font-size: 1.2rem;
  }
}

/* Modal de vídeo para trailer */
.cfm-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cfm-video-modal.active {
  opacity: 1;
  visibility: visible;
}

.cfm-video-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cfm-video-modal.active .cfm-video-container {
  transform: scale(1);
}

.cfm-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background-color: #000;
}

.cfm-video-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10000;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  transform: scale(1);
}

.cfm-video-close:hover {
  background: rgba(153, 27, 27, 0.9);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Loading spinner */
.cfm-video-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.cfm-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #991B1B;
  border-radius: 50%;
  animation: cfm-spin 1s linear infinite;
}

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

/* Efeitos para o botão de trailer */
.cfm-trailer-link.clicked,
.cfm-trailer-link-large.clicked {
  animation: cfm-pulse 0.5s ease;
  background: rgba(153, 27, 27, 0.9) !important;
}

@keyframes cfm-pulse {
  0% { transform: translate(-50%, -50%) scale(1.1); }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Grid de Filmes */
.cfm-filmes-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: center;
}

.cfm-grid-columns-5 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cfm-grid-columns-4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cfm-grid-columns-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cfm-grid-columns-2 { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
.cfm-grid-columns-1 { grid-template-columns: 1fr; }

/* Ajustes para cards com tamanho fixo */
.cfm-filme-card {
    margin: 0 auto;
    width: 250px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.cfm-filme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    border-color: rgba(153, 27, 27, 0.1);
}

.cfm-filme-poster {
    position: relative;
    padding-top: 140%; /* Proporção 10:14 para pôster de filme (mais alto que largo) */
    background: #f0f0f0;
    overflow: hidden;
    min-height: 350px;
    width: 100%;
}

/* Ajustes para o novo tamanho fixo de poster */
.cfm-filme-poster[style*="height"] {
    padding-top: 0; /* Remove o padding quando altura é explicitamente definida */
}

.cfm-poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cfm-filme-card:hover .cfm-poster-img {
    transform: scale(1.08);
}

/* Gradiente de sobreposição no pôster - versão melhorada */
.cfm-filme-poster::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.cfm-filme-card:hover .cfm-filme-poster::after {
    opacity: 1;
}

/* Estilo atualizado para o trailer trigger nos cards */
.cfm-filme-poster .cfm-trailer-link-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 205, 0, 0.95);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    text-decoration: none;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    border: 3px solid #fff;
    transition: all 0.3s ease;
    opacity: 0;
}

.cfm-filme-poster:hover .cfm-trailer-link-large {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.cfm-trailer-link-large:hover {
    background: #ffd600;
    transform: translate(-50%, -50%) scale(1.15) !important;
}

.cfm-trailer-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    font-size: 2rem;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.8);
}

.cfm-filme-poster:hover .cfm-trailer-link {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.cfm-trailer-link:hover {
    background: rgba(153, 27, 27, 0.9);
    transform: translate(-50%, -50%) scale(1.2);
}

.cfm-classificacao {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #991B1B;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.875rem;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
}

.cfm-filme-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.cfm-filme-titulo {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    position: relative;
    display: block;
    text-align: center;
}

.cfm-filme-titulo a {
    color: #991B1B;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.cfm-filme-titulo a:hover {
    color: #7F1D1D;
}

.cfm-filme-titulo a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #991B1B;
    transition: width 0.3s ease;
}

.cfm-filme-titulo a:hover::after {
    width: 100%;
}

.cfm-filme-categorias {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
    line-height: 1.4;
    background: rgba(153, 27, 27, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.cfm-mais-categorias {
    display: inline-block;
    font-size: 0.7rem;
    background: rgba(153, 27, 27, 0.7);
    color: white;
    border-radius: 10px;
    padding: 1px 5px;
    margin-left: 2px;
    font-weight: bold;
    font-style: normal;
    position: relative;
    top: -1px;
}

.cfm-filme-estreia {
    font-size: 0.875rem;
    color: #666;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfm-filme-estreia::before {
    content: "🗓️";
    margin-right: 6px;
    font-size: 0.9rem;
}

.cfm-sem-filmes {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    color: #666;
    font-style: italic;
    border: 1px dashed #ddd;
    margin: 2rem 0;
}

/* Responsividade para os cards */
@media (max-width: 1200px) {
    .cfm-filme-card {
        width: 230px;
    }
}

@media (max-width: 768px) {
    .cfm-filme-card {
        width: 210px;
    }
    .cfm-filme-poster {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .cfm-filme-card {
        width: 180px;
    }
    .cfm-filme-poster {
        min-height: 260px;
    }
    .cfm-filme-poster .cfm-trailer-link-large {
        width: 50px;
        height: 50px;
    }
} 