/**
 * Seção vídeos do painel – autoplay, pause overlay, botões ao lado (SVG), descrição, CTA hero, rotação automática
 * sms(novo)/css/sms-destaques-videos.css
 */

.sms-videos-section {
  padding: 80px 0 100px;
  position: relative;
}

[data-theme="dark"] .sms-videos-section {
  background: #000;
}

[data-theme="dark"] .sms-videos-title {
  color: #f1f5f9;
}

[data-theme="dark"] .sms-videos-title-gradient {
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 35%, #00b3ff 70%, #66e0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sms-videos-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

.sms-videos-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  color: #1a1a1a;
}

.sms-videos-title-gradient {
  background: linear-gradient(135deg, #0052d4 0%, #0077ff 35%, #00b3ff 70%, #66e0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sms-videos-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .sms-videos-desc {
  color: rgba(255, 255, 255, 0.72);
}

/* Linha: sidebar à esquerda, vídeo à direita */
.sms-videos-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Player: largura limitada para proporção equilibrada */
.sms-videos-player-wrap {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

/* Moldura ao redor do vídeo */
.sms-videos-player-moldura {
  padding: 12px;
  background: linear-gradient(145deg, rgba(0, 82, 212, 0.12) 0%, rgba(0, 30, 70, 0.2) 100%);
  border: 2px solid rgba(0, 82, 212, 0.35);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .sms-videos-player-moldura {
  background: linear-gradient(145deg, rgba(0, 82, 212, 0.15) 0%, rgba(0, 20, 50, 0.35) 100%);
  border-color: rgba(0, 119, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.3);
}

.sms-videos-player-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.sms-videos-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Controles em cima do vídeo */
.sms-videos-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.sms-videos-ctrl-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.sms-videos-ctrl-btn:hover {
  background: rgba(0, 82, 212, 0.85);
  transform: scale(1.08);
}

.sms-videos-ctrl-btn:focus {
  outline: 2px solid #0052d4;
  outline-offset: 2px;
}

.sms-videos-pause-icon,
.sms-videos-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sms-videos-pause-icon[hidden],
.sms-videos-play-icon[hidden] {
  display: none;
}

/* Modal de vídeo expandido */
.sms-videos-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sms-videos-modal[hidden] {
  display: none;
}

.sms-videos-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sms-videos-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: smsModalIn 0.25s ease-out;
}

@keyframes smsModalIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sms-videos-modal-player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.sms-videos-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.sms-videos-modal-close:hover {
  background: rgba(220, 53, 69, 0.85);
  transform: scale(1.08);
}

.sms-videos-modal-close:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .sms-videos-modal {
    padding: 16px;
  }

  .sms-videos-modal-content {
    border-radius: 12px;
  }

  .sms-videos-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .sms-videos-modal-close svg {
    width: 24px;
    height: 24px;
  }
}

/* Sidebar: Trocar vídeo + botões + descrição */
.sms-videos-sidebar {
  flex-shrink: 0;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sms-videos-choose-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

[data-theme="dark"] .sms-videos-choose-label {
  color: rgba(255, 255, 255, 0.9);
}

.sms-videos-choose-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sms-videos-choose-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 82, 212, 0.25);
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .sms-videos-choose-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e6edf3;
}

.sms-videos-choose-btn:hover {
  background: #f0f7ff;
  border-color: rgba(0, 82, 212, 0.45);
  color: #0052d4;
  box-shadow: 0 2px 10px rgba(0, 82, 212, 0.12);
}

[data-theme="dark"] .sms-videos-choose-btn:hover {
  background: rgba(0, 119, 255, 0.12);
  border-color: rgba(0, 119, 255, 0.4);
  color: #58a6ff;
}

.sms-videos-choose-btn.active {
  background: linear-gradient(135deg, #0047ab 0%, #0066e6 50%, #0088ff 100%);
  border-color: #0047ab;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 71, 171, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .sms-videos-choose-btn.active {
  background: linear-gradient(135deg, #0550ae 0%, #0d63d2 50%, #1a7fff 100%);
  border-color: #1a7fff;
  color: #fff;
  box-shadow: 0 4px 16px rgba(26, 127, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sms-videos-choose-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0052d4;
}

[data-theme="dark"] .sms-videos-choose-icon {
  color: #58a6ff;
}

.sms-videos-choose-btn.active .sms-videos-choose-icon {
  color: #fff;
}

.sms-videos-choose-icon svg {
  width: 100%;
  height: 100%;
}

.sms-videos-desc-current {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .sms-videos-desc-current {
  color: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* CTA: estilo do hero (sms-btn-primary) */
.sms-videos-cta-wrap {
  text-align: center;
}

.sms-videos-cta-wrap .sms-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
}

[data-theme="dark"] .sms-videos-cta-wrap .sms-btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 0px 25px rgb(22, 115, 255);
}

/* Responsivo */
@media (max-width: 992px) {
  .sms-videos-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .sms-videos-player-wrap {
    max-width: none;
  }

  .sms-videos-player-moldura {
    padding: 10px;
    border-radius: 18px;
  }

  .sms-videos-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .sms-videos-choose-label {
    width: 100%;
  }

  .sms-videos-choose-btns {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }

  .sms-videos-choose-btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .sms-videos-desc-current {
    width: 100%;
    padding-top: 12px;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .sms-videos-section {
    padding: 60px 0 80px;
  }

  .sms-videos-title {
    font-size: 2.25rem;
  }

  .sms-videos-desc {
    font-size: 0.95rem;
  }

  .sms-videos-controls {
    bottom: 12px;
    right: 12px;
    gap: 8px;
  }

  .sms-videos-ctrl-btn {
    width: 42px;
    height: 42px;
  }

  .sms-videos-ctrl-btn svg {
    width: 20px;
    height: 20px;
  }

  .sms-videos-choose-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .sms-videos-choose-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .sms-videos-choose-btns {
    flex-direction: column;
  }

  .sms-videos-choose-btn {
    min-width: 100%;
  }
}