.rep-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
  font-family: inherit;
}

/* ── HERO ──────────────────────────────────────────────────── */
.rep-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 48px 0 44px;
}

.rep-hero-thumb {
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #8EDEFF 0%, #8EDEFF 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(66, 133, 244, 0.18);
  overflow: hidden;
}

.rep-hero-thumb img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.rep-hero-texto h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.2;
}

.rep-hero-texto p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  max-width: 580px;
}

/* ── BARRA DE SEMESTRES (card) ─────────────────────────────── */
.rep-sem-section {
  background: #f4f6fb;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  padding: 20px 24px 18px;
  margin-bottom: 28px;
}

.rep-sem-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.rep-sem-label svg {
  width: 18px;
  height: 18px;
  color: #4285f4;
  flex-shrink: 0;
}

.rep-sem-sublabel {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 14px;
  padding-left: 26px;
}

.rep-sem-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rep-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid #d0d5e8;
  background: #fff;
  color: #444;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}
.rep-pill:hover {
  border-color: #1a1a2e;
  color: #1a1a2e;
}
.rep-pill.ativo {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
  font-weight: 600;
}

.rep-ver-mais {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid #d0d5e8;
  background: #fff;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.rep-ver-mais:hover {
  border-color: #999;
  color: #222;
}
.rep-ver-mais svg {
  width: 12px;
  height: 12px;
}

/* ── CONTAINER DO GRID ─────────────────────────────────────── */
.rep-grid-container {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ── GRID PRINCIPAL ────────────────────────────────────────── */
.rep-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ── DESTAQUE (coluna esquerda) ────────────────────────────── */
.rep-destaque-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.rep-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0d0d14;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
}

.rep-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.rep-player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
}
.rep-player-placeholder svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

.rep-aula-info {
  margin-top: 16px;
}

.rep-aula-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.rep-aula-meta {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  color: #777;
}

.rep-aula-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rep-aula-meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ── LISTA DE VÍDEOS (coluna direita) ──────────────────────── */
.rep-lista-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.rep-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: scroll;
  padding-right: 6px;
}

.rep-lista::-webkit-scrollbar {
  width: 5px;
}
.rep-lista::-webkit-scrollbar-track {
  background: #f0f2f8;
  border-radius: 10px;
}
.rep-lista::-webkit-scrollbar-thumb {
  background: #c5d7fb;
  border-radius: 10px;
}
.rep-lista::-webkit-scrollbar-thumb:hover {
  background: #4285f4;
}

.rep-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.rep-item:hover {
  background: #f4f6fb;
}
.rep-item.ativo {
  background: #eef3fd;
  border-color: #c5d7fb;
}

.rep-item-thumb {
  flex-shrink: 0;
  width: 108px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a2e;
  position: relative;
}

.rep-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rep-item-thumb-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e2235, #2a3050);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rep-item-thumb-ph svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.25);
}

.rep-item-dur {
  position: absolute;
  bottom: 4px;
  right: 5px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

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

.rep-item-modulo {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4285f4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.rep-item-nome {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.rep-item-data {
  font-size: 0.72rem;
  color: #999;
}

.rep-play-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #d0d5e8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.rep-item:hover .rep-play-btn,
.rep-item.ativo .rep-play-btn {
  border-color: #1a1a2e;
  background: #1a1a2e;
}
.rep-play-btn svg {
  width: 12px;
  height: 12px;
  fill: #999;
  margin-left: 2px;
  transition: fill 0.15s;
}
.rep-item:hover .rep-play-btn svg,
.rep-item.ativo .rep-play-btn svg {
  fill: #fff;
}

/* ── EMPTY STATE (sem aulas no semestre) ───────────────────── */
.rep-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: #aaa;
  font-size: 0.9rem;
}
.rep-empty svg {
  width: 40px;
  height: 40px;
  fill: #dde;
  margin-bottom: 12px;
  display: block;
  margin-inline: auto;
}

/* ── RESPONSIVO ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .rep-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rep-hero {
    flex-direction: column;
    gap: 20px;
  }
  .rep-hero-thumb {
    width: 100%;
    aspect-ratio: 4/3;
  }
  .rep-hero-texto h1 {
    font-size: 1.4rem;
  }
  .rep-grid-container {
    padding: 16px;
  }
}