/* ========================================================================
   LWG TV — VOD Detail V2 Styles (Cinematic)
   ========================================================================== */

/* --- Server buttons --- */
.v-detail-servers {
  margin-top: 10px;
}

.v-server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.v-server-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.v-server-btn:hover,
.v-server-btn:focus {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
}

.v-server-btn.active {
  background: var(--vod-accent);
  border-color: var(--vod-accent);
  font-weight: 600;
}

.v-server-btn:focus-visible {
  outline: 2px solid var(--vod-accent);
  outline-offset: 2px;
}

.v-server-name {
  font-weight: 600;
}

.v-server-sub {
  font-size: 11px;
  opacity: 0.7;
}

.v-server-loading,
.v-server-empty {
  font-size: 13px;
  color: var(--vod-muted);
  padding: 4px 0;
}

/* --- Tagline --- */
.v-detail-tagline {
  font-style: italic;
  color: #999;
  font-size: 0.9em;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* --- Cast grid --- */
.v-cast-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.v-cast-card {
  flex: 0 0 100px;
  text-align: center;
  outline: none;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.v-cast-card:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px #e50914;
}

.v-cast-photo {
  width: 100px;
  height: 130px;
  overflow: hidden;
  background: #1a1a2e;
}

.v-cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v-cast-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  user-select: none;
}

.v-cast-name {
  font-size: 0.75em;
  font-weight: 600;
  padding: 6px 4px 2px;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-cast-character {
  font-size: 0.65em;
  color: #999;
  padding: 0 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Information table --- */
.v-info-table {
  padding: 4px 0;
}

.v-info-row {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.v-info-row:last-child {
  border-bottom: none;
}

.v-info-label {
  flex: 0 0 130px;
  color: #888;
  font-size: 0.85em;
  font-weight: 500;
}

.v-info-value {
  flex: 1;
  color: #ddd;
  font-size: 0.85em;
}

/* --- Trailer --- */
.v-trailer-thumb {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  margin: 8px 0;
  outline: none;
}

.v-trailer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.v-trailer-thumb:hover img {
  opacity: 0.85;
}

.v-trailer-thumb:focus-visible {
  box-shadow: 0 0 0 2px #e50914;
}

.v-trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  pointer-events: none;
  transition: transform 0.15s;
}

.v-trailer-thumb:hover .v-trailer-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.v-trailer-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 0.85em;
  font-weight: 500;
}

/* --- Trailer overlay (fullscreen) --- */
.v-trailer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-trailer-overlay iframe {
  width: 90vw;
  height: 70vh;
  max-width: 1100px;
  border-radius: 10px;
  border: none;
}

.v-trailer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.v-trailer-close:hover,
.v-trailer-close:focus-visible {
  background: rgba(229, 9, 20, 0.8);
}

/* --- Mobile adjustments --- */
@media (max-width: 600px) {
  .v-server-btn {
    font-size: 12px;
    padding: 6px 12px;
  }
  .v-cast-card {
    flex: 0 0 80px;
  }
  .v-cast-photo {
    width: 80px;
    height: 106px;
  }
  .v-info-row {
    flex-direction: column;
    gap: 2px;
  }
  .v-info-label {
    flex: none;
  }
  .v-trailer-overlay iframe {
    width: 95vw;
    height: 55vh;
  }
}

/* --- TV (landscape) --- */
@media (min-width: 1280px) and (orientation: landscape) {
  .v-server-btn {
    font-size: 14px;
    padding: 8px 18px;
  }
  .v-cast-grid {
    gap: 18px;
  }
  .v-cast-card {
    flex: 0 0 120px;
  }
  .v-cast-photo {
    width: 120px;
    height: 160px;
  }
}

/* --- Actor / Person View --- */
.v-actor-header {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 0 20px;
  flex-wrap: wrap;
}
.v-actor-photo {
  width: 90px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  flex-shrink: 0;
}
.v-actor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.v-actor-photo .v-cast-placeholder {
  border-radius: 50%;
}
.v-actor-info {
  flex: 1;
  min-width: 120px;
}
.v-actor-name {
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.v-actor-subtitle {
  font-size: 0.85em;
  color: #999;
}
.v-actor-title-row {
  margin-top: 10px;
}
.v-actor-chips {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.v-actor-chip {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.v-actor-chip:hover,
.v-actor-chip:focus-visible {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.v-actor-chip.active {
  background: var(--accent, #e50914);
  color: #fff;
  border-color: var(--accent, #e50914);
}
.v-actor-sort {
  display: flex;
  gap: 6px;
  padding: 4px 0 12px;
  flex-wrap: wrap;
}
.v-actor-sort-btn {
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.78em;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  color: #999;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.v-actor-sort-btn:hover,
.v-actor-sort-btn:focus-visible {
  background: rgba(255,255,255,0.10);
  color: #ccc;
}
.v-actor-sort-btn.active {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
}
.v-actor-results .v-card {
  flex: 0 0 140px;
}
.v-actor-results .v-card-img {
  width: 140px;
  height: 210px;
}
.v-actor-results .v-empty {
  padding: 30px 0;
  text-align: center;
  color: #999;
}
@media (max-width: 640px) {
  .v-actor-photo {
    width: 72px;
    height: 96px;
  }
  .v-actor-name {
    font-size: 1.2em;
  }
  .v-actor-results .v-card {
    flex: 0 0 120px;
  }
  .v-actor-results .v-card-img {
    width: 120px;
    height: 180px;
  }
}
@media (min-width: 1280px) and (orientation: landscape) {
  .v-actor-photo {
    width: 100px;
    height: 130px;
  }
  .v-actor-results .v-card {
    flex: 0 0 160px;
  }
  .v-actor-results .v-card-img {
    width: 160px;
    height: 240px;
  }
}
