/**
 * vod.css
 * ------------------------------------------------------------------
 * Estilo dos catálogos de Filmes (VOD) e Séries, grades de pôsteres
 * com notas IMDb, e telas de detalhes com sinopse, elenco e episódios.
 * ------------------------------------------------------------------
 */

.catalog-container {
  width: 100%;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  padding: 0;
}

/* Sidebar Vertical de Categorias (270px) */
.catalog-sidebar {
  width: 270px;
  min-width: 270px;
  height: 100%;
  background: rgba(10, 14, 22, 0.95);
  border-right: 1px solid var(--fktv-border);
  display: flex;
  flex-direction: column;
}

.catalog-sidebar-header {
  height: 48px;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(16, 22, 35, 0.9);
  border-bottom: 1px solid var(--fktv-border);
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #7EC8F5;
  text-transform: uppercase;
}

.catalog-categories-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 6px;
}

.catalog-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  margin: 2px 0;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: var(--fktv-text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.catalog-cat-item.focused,
.catalog-cat-item:focus {
  background: var(--fktv-panel-alt);
  border-left-color: var(--fktv-blue-bright);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(62, 143, 224, 0.35);
  outline: none;
}

.catalog-cat-item.active {
  background: rgba(62, 143, 224, 0.18);
  border-left-color: var(--fktv-blue-bright);
  color: #FFFFFF;
  font-weight: 700;
}

.catalog-cat-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Painel Principal de Pôsteres */
.catalog-main {
  flex: 1;
  height: 100%;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Grade de Pôsteres */
.poster-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  padding-bottom: 50px;
}

.poster-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 14px;
  background: rgba(16, 20, 31, 0.85);
  border: 1.5px solid rgba(62, 143, 224, 0.15);
  overflow: hidden;
  height: 310px;
}

.poster-thumb-wrap {
  width: 100%;
  height: 250px;
  position: relative;
  background: #0B0F18;
}

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

.rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(11, 22, 44, 0.85);
  border: 1px solid rgba(62, 143, 224, 0.4);
  color: var(--fktv-gold);
  font-size: 13px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.year-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(5, 7, 12, 0.8);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.poster-title {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* --- TELA DE DETALHES DO FILME (VOD DETAIL) --- */
.detail-screen-wrap {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  background: #05070C;
}

.detail-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(10px);
}

.detail-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  padding: 60px 80px;
  gap: 50px;
  background: linear-gradient(90deg, #05070C 40%, rgba(5, 7, 12, 0.8) 100%);
}

.detail-poster-col {
  width: 320px;
  display: flex;
  flex-direction: column;
}

.detail-poster-img {
  width: 320px;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid var(--fktv-glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.detail-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
}

.detail-title {
  font-size: 38px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 700;
}

.detail-rating {
  color: var(--fktv-gold);
}

.detail-genre {
  color: var(--fktv-blue-bright);
}

.detail-plot {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fktv-text);
  margin-top: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.detail-credits {
  font-size: 13.5px;
  color: var(--fktv-text-dim);
}

.detail-actions-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* --- TELA DE DETALHES DA SÉRIE --- */
.series-detail-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 30px 60px;
  overflow-y: auto;
}

.series-header-info {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
}

.series-thumb {
  width: 180px;
  height: 270px;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid var(--fktv-glass-border);
}

.series-seasons-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.season-tab {
  background: rgba(16, 20, 31, 0.8);
  border: 1.5px solid var(--fktv-glass-border);
  color: var(--fktv-text);
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.season-tab.active {
  background: var(--fktv-blue);
  color: #FFFFFF;
  border-color: var(--fktv-blue-bright);
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 40px;
}

.episode-row {
  display: flex;
  align-items: center;
  background: rgba(16, 20, 31, 0.85);
  border: 1.5px solid var(--fktv-glass-border);
  border-radius: 14px;
  padding: 12px 20px;
  gap: 20px;
}

.ep-thumb {
  width: 120px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.ep-details {
  flex: 1;
}

.ep-num-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.ep-duration {
  font-size: 12px;
  color: var(--fktv-blue-bright);
  font-weight: 700;
  margin-top: 2px;
}

.ep-plot {
  font-size: 12px;
  color: var(--fktv-text-dim);
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-play-btn {
  background: var(--fktv-blue);
  border: none;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
