/* assets/css/tv.css
   TV mode styling (single stream) */

/* Page background for TV mode */
body.page-tv {
  background-color: #020b0f;
}

/* Main wrapper around the TV block */
.tv-page-wrapper {
  max-width: 1300px;
  margin: 1.5rem auto 2rem;
  padding: 0 0.75rem;
}

/* Card container around the video + overlays */
.tv-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* Video frame */
.tv-frame {
  position: relative;
  background: #000;
}

/* Main video element */
.tv-player {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 200px);
  background: #000;
  object-fit: cover;
}

/* -----------------------------------
   TOP BAR: avatar, name, meta + timer
   ----------------------------------- */

.tv-bar-top {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tv-bar-top > * {
  pointer-events: auto;
}

/* Model pill with avatar + text */
.tv-model-summary {
  display: inline-flex;
  align-items: center;
  max-width: 70%;
  background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.45));
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Avatar */
.tv-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.7);
}

.tv-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text block */
.tv-model-text {
  line-height: 1.1;
}

.tv-model-line1 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.tv-model-name {
  margin-right: 6px;
}

.tv-model-age {
  opacity: 0.85;
}

.tv-model-line2 {
  font-size: 13px;
  color: #f3f4f6;
  opacity: 0.9;
}

.tv-dot {
  padding: 0 4px;
  opacity: 0.6;
}

.tv-viewers {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tv-eye {
  font-size: 13px;
}

/* NEXT IN 90s button */
.tv-next-timer-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(15, 23, 42, 0.92);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  white-space: nowrap;
}

/* -----------------------------------
   BOTTOM CONTROLS: END / BOOKMARK / NEXT
   ----------------------------------- */

.tv-controls-overlay {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 10;
}

/* Background gradient behind controls for better legibility */
.tv-controls-overlay::before {
  content: "";
  position: absolute;
  inset: -10px -40px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  z-index: -1;
}

.tv-btn {
  min-width: 140px;
  border-radius: 999px;
  padding: 10px 22px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease, color 0.12s ease;
}

.tv-btn:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.tv-btn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.7);
}

.tv-btn-end {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

.tv-btn-end:hover {
  background: rgba(15, 23, 42, 1);
}

.tv-btn-next {
  background: #f97316;
  color: #111827;
}

.tv-btn-next:hover {
  background: #fb923c;
}

/* Bookmark (favorite) circular button */
.tv-btn-bookmark {
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #111827;
  color: #facc15;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-btn-bookmark:hover {
  background: #020617;
}

/* -----------------------------------
   TAG STRIP BELOW PLAYER
   ----------------------------------- */

.tv-tag-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px 16px;
  background: radial-gradient(circle at top, rgba(15,118,110,0.45), rgba(2,6,23,0.96));
}

/* Base pill style */
.tv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.92);
  color: #e5e7eb;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tv-pill:hover {
  background: rgba(15,23,42,1);
  border-color: rgba(148,163,184,0.8);
}

/* Language pills */
.tv-pill-lang {
  border-color: rgba(56,189,248,0.7);
}

/* Tag pills */
.tv-pill-tag {
  border-color: rgba(129,140,248,0.7);
}

/* "View profile" pill */
.tv-pill-profile {
  border-color: rgba(249,115,22,0.8);
  background: rgba(248, 113, 22, 0.15);
}

.tv-pill-profile:hover {
  background: rgba(248,113,22,0.25);
}

/* -----------------------------------
   SEO keyword cloud at the bottom
   ----------------------------------- */

.tv-seo-block {
  margin-top: 2rem;
  padding: 1.75rem 1rem 2.25rem;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(16,185,129,0.35), rgba(15,23,42,1));
  color: #e5e7eb;
}

.tv-seo-block h2,
.tv-seo-block h1 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.tv-seo-block p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #cbd5f5;
}

.tv-seo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tv-seo-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(34,197,94,0.45);
  color: #e5e7eb;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tv-seo-pill:hover {
  background: rgba(21,128,61,0.9);
  border-color: rgba(34,197,94,0.9);
}

/* -----------------------------------
   Responsive tweaks
   ----------------------------------- */

@media (max-width: 992px) {
  .tv-player {
    max-height: calc(100vh - 180px);
  }

  .tv-model-summary {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .tv-page-wrapper {
    margin-top: 1rem;
  }

  .tv-player {
    max-height: calc(100vh - 160px);
  }

  .tv-bar-top {
    left: 10px;
    right: 10px;
    top: 10px;
    gap: 6px;
  }

  .tv-model-summary {
    padding-right: 10px;
    max-width: 72%;
  }

  .tv-model-line1 {
    font-size: 14px;
  }

  .tv-model-line2 {
    font-size: 12px;
  }

  .tv-next-timer-btn {
    font-size: 11px;
    padding: 5px 10px;
  }

  .tv-controls-overlay {
    bottom: 18px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .tv-btn {
    min-width: 120px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .tv-btn-bookmark {
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .tv-tag-strip {
    padding: 8px 8px 12px;
  }

  .tv-pill {
    font-size: 12px;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .tv-model-summary {
    max-width: 100%;
  }

  .tv-bar-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .tv-next-timer-btn {
    margin-top: 6px;
    align-self: flex-end;
  }

  .tv-controls-overlay {
    bottom: 14px;
  }

  .tv-btn {
    min-width: 105px;
  }
}
/* Keyboard shortcuts line under the player */
.tv-shortcuts-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}
