/* ==============================================
   ENW TikTok Shorts — Shorts do Site (TikTok)
   Galeria horizontal 9:16 com embed nativo
   ============================================== */

.entk-section {
  --entk-font:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --entk-red:     #fe2c55;
  --entk-ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --entk-gap:     12px;

  font-family: var(--entk-font);
  background: #ffffff;
  padding: 24px 0 32px;
}

/* ═══════════════════════════════════════════
   CABEÇALHO
   ═══════════════════════════════════════════ */
.entk-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.entk-section-title {
  font-family: var(--entk-font);
  font-size: 24px;
  font-weight: 900;
  color: #111111;
  margin: 0; padding: 0;
  line-height: 1;
}

.entk-see-more {
  font-family: var(--entk-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--entk-red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.entk-see-more:hover { opacity: 0.65; }

/* ═══════════════════════════════════════════
   SCROLL WRAP
   ═══════════════════════════════════════════ */
.entk-scroll-wrap.is-scrollable {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
  -webkit-overflow-scrolling: touch;
}
.entk-scroll-wrap.is-scrollable::-webkit-scrollbar      { height: 4px; }
.entk-scroll-wrap.is-scrollable::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.entk-track {
  display: flex;
  gap: var(--entk-gap);
  align-items: flex-start;
}
.entk-scroll-wrap.is-scrollable .entk-track {
  flex-wrap: nowrap;
  min-width: min-content;
}

/* ═══════════════════════════════════════════
   CARD
   ═══════════════════════════════════════════ */
.entk-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.entk-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ═══════════════════════════════════════════
   THUMB — padding-bottom = ratio
   ═══════════════════════════════════════════ */
.entk-thumb-wrap {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

.entk-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s var(--entk-ease), opacity 0.25s;
}
.entk-card:hover .entk-thumb-img { transform: scale(1.04); opacity: 0.9; }

.entk-thumb-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.entk-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #1a1a1a;
}

/* Overlay gradiente */
.entk-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.08) 50%,
    transparent 75%
  );
  pointer-events: none;
}

/* ── Play button ── */
.entk-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--entk-ease);
  line-height: 1;
}
.entk-card:hover .entk-play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }

/* ── Badge TikTok ── */
.entk-tiktok-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: #000000cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ── Duração ── */
.entk-duration {
  position: absolute;
  bottom: 50px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: var(--entk-font);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ── Meta: autor + data ── */
.entk-card-meta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.entk-meta-author {
  font-family: var(--entk-font);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.entk-meta-date {
  font-family: var(--entk-font);
  font-size: 10px;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ── Título abaixo ── */
.entk-card-title {
  font-family: var(--entk-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
  margin: 10px 0 0 0;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.entk-card:hover .entk-card-title { color: var(--entk-red); }

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.entk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.entk-lightbox[hidden] { display: none; }

.entk-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.90);
  backdrop-filter: blur(8px);
}

.entk-lb-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 390px;
}

.entk-lb-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.entk-lb-close:hover { opacity: 1; }

.entk-lb-frame-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.entk-lb-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .entk-section-title { font-size: 20px; }
}
@media (max-width: 767px) {
  .entk-section       { padding: 18px 0 24px; }
  .entk-section-title { font-size: 18px; }
  .entk-lb-content    { max-width: 88vw; }
  .entk-duration      { font-size: 10px; }
}

/* ═══════════════════════════════════════════
   ANIMAÇÃO
   ═══════════════════════════════════════════ */
@keyframes entk-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.entk-header { animation: entk-up 0.35s ease both; }
.entk-card:nth-child(1) { animation: entk-up 0.4s 0.04s ease both; }
.entk-card:nth-child(2) { animation: entk-up 0.4s 0.07s ease both; }
.entk-card:nth-child(3) { animation: entk-up 0.4s 0.10s ease both; }
.entk-card:nth-child(4) { animation: entk-up 0.4s 0.13s ease both; }
.entk-card:nth-child(5) { animation: entk-up 0.4s 0.16s ease both; }
.entk-card:nth-child(n+6) { animation: entk-up 0.4s 0.18s ease both; }

@media (prefers-reduced-motion: reduce) {
  .entk-header, .entk-card,
  .entk-thumb-img, .entk-play-btn { animation: none !important; transition: none !important; }
}
