/* Cortes da live em formato shorts (9:16) — preview + Plyr após clique */

.cortes-shorts {
  --claude-primary: #d97757;
  padding: 72px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.cortes-shorts-header {
  text-align: center;
  margin-bottom: 40px;
}

.cortes-shorts-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--claude-primary);
  background: rgba(217, 119, 87, 0.1);
  border: 1px solid rgba(217, 119, 87, 0.22);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.cortes-shorts-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fafafa;
  margin: 0 0 12px;
  line-height: 1.2;
}

.cortes-shorts-highlight {
  background: linear-gradient(135deg, var(--claude-primary), #e8956a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cortes-shorts-subtitle {
  font-size: 0.95rem;
  color: #a1a1aa;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3 colunas no desktop; vertical 9:16 em cada célula */
.cortes-shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 1.35rem);
  align-items: start;
}

.cortes-shorts-group-wrap {
  grid-column: 1 / -1;
  margin: 12px 0 4px;
}

.cortes-shorts-group-wrap:first-child {
  margin-top: 0;
}

.cortes-shorts-group-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.cortes-shorts-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cortes-shorts-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.25),
    0 18px 48px rgba(0, 0, 0, 0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cortes-shorts-card:hover .cortes-shorts-frame {
  border-color: rgba(217, 119, 87, 0.4);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.35),
    0 22px 56px rgba(217, 119, 87, 0.12);
  transform: translateY(-3px);
}

/* Preview (poster / fallback) */
.cortes-shorts-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  border-radius: inherit;
  background: #111;
  text-align: left;
  font: inherit;
  color: inherit;
}

.cortes-shorts-preview:focus-visible {
  outline: 2px solid var(--claude-primary);
  outline-offset: 3px;
}

.cortes-shorts-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.cortes-shorts-card:hover .cortes-shorts-poster-img {
  transform: scale(1.06);
}

.cortes-shorts-preview-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(165deg, #1c1917 0%, #0c0a09 45%, #1a1412 100%);
}

.cortes-shorts-preview-fallback-icon {
  color: rgba(217, 119, 87, 0.65);
  flex-shrink: 0;
}

.cortes-shorts-preview-fallback-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #a8a29e;
  text-align: center;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cortes-shorts-preview-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

.cortes-shorts-preview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  transition: transform 0.2s ease;
}

.cortes-shorts-preview:hover .cortes-shorts-preview-play,
.cortes-shorts-preview:focus-visible .cortes-shorts-preview-play {
  transform: translate(-50%, -50%) scale(1.06);
}

/* Host do player (após clique) */
.cortes-shorts-player-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
}

.cortes-shorts-player-host[hidden] {
  display: none !important;
}

.cortes-shorts-frame .plyr,
.cortes-shorts-frame .plyr video {
  width: 100%;
  height: 100%;
}

.cortes-shorts-frame .plyr__video-wrapper {
  height: 100%;
}

.cortes-shorts-frame .plyr--video {
  border-radius: inherit;
  height: 100%;
}

.cortes-shorts-frame .plyr__poster {
  background-size: cover;
  background-position: center;
}

.cortes-shorts-frame .plyr--full-ui input[type='range'] {
  color: var(--claude-primary);
}

.cortes-shorts-frame .plyr {
  pointer-events: auto;
}

.cortes-shorts-frame .plyr__control--overlaid {
  z-index: 3;
  background: rgba(217, 119, 87, 0.92);
}

.cortes-shorts-frame .plyr__control--overlaid:hover,
.cortes-shorts-frame .plyr__control--overlaid:focus {
  background: var(--claude-primary);
}

.cortes-shorts-frame .plyr__control.plyr__tab-focus,
.cortes-shorts-frame .plyr__control:hover,
.cortes-shorts-frame .plyr__control[aria-expanded='true'] {
  background: var(--claude-primary);
  color: #fff;
}

.cortes-shorts-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fafafa;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Entre ~420px e 639px: 2 por linha (evita cards estreitos demais com 3) */
@media (max-width: 639px) and (min-width: 420px) {
  .cortes-shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Mobile estreito: 1 coluna */
@media (max-width: 419px) {
  .cortes-shorts {
    padding: 48px 16px;
  }

  .cortes-shorts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin-inline: auto;
  }
}
