/* TV Direct — thème InterFilm secours (violet / glass) */

#tvView {
  padding-top: calc(var(--header-h, 72px) + 0.5rem);
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 12% -5%, rgba(155, 140, 248, 0.1), transparent 60%),
    var(--bg, #0a0a12);
}

#tvView.page-view--active {
  display: block !important;
}

.tv-locked-icon {
  background: rgba(155, 140, 248, 0.12);
  border-color: rgba(155, 140, 248, 0.28);
  color: var(--accent-bright, #b8aaf9);
}

.tv-locked h2 {
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-weight: 400;
}

.tv-locked p strong {
  color: var(--accent-bright, #b8aaf9) !important;
}

.tv-select-search:focus-within {
  border-color: rgba(155, 140, 248, 0.42);
  box-shadow: 0 0 0 3px rgba(155, 140, 248, 0.1);
}

.tv-title {
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.tv-shortcut-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tv-shortcut-card:hover,
.tv-shortcut-sport:hover {
  border-color: rgba(155, 140, 248, 0.38);
  background: linear-gradient(135deg, rgba(155, 140, 248, 0.1), rgba(155, 140, 248, 0.02));
}

.tv-shortcut-tv .tv-shortcut-icon,
.tv-shortcut-sport .tv-shortcut-icon {
  background: rgba(155, 140, 248, 0.14);
  color: var(--accent-bright, #b8aaf9);
}

.tv-shortcut-tv .tv-shortcut-arrow,
.tv-shortcut-sport .tv-shortcut-arrow {
  color: var(--accent-bright, #b8aaf9);
}

.tv-country-trigger:hover,
.tv-country-option.active {
  border-color: rgba(155, 140, 248, 0.35);
  background: rgba(155, 140, 248, 0.1);
  color: var(--accent-bright, #b8aaf9);
}

.tv-filter-btn.active,
.tv-filter-btn:hover {
  background: linear-gradient(135deg, rgba(155, 140, 248, 0.22), rgba(107, 92, 231, 0.14));
  border-color: rgba(155, 140, 248, 0.45);
  color: #fff;
  box-shadow: 0 6px 18px rgba(155, 140, 248, 0.18);
}

.tv-channel-card:hover {
  border-color: rgba(155, 140, 248, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(155, 140, 248, 0.12);
}

.tv-channel-card:focus-visible {
  outline: 2px solid var(--accent-bright, #b8aaf9);
}

.tv-fav-star:hover,
.tv-fav-star.active {
  color: var(--accent-bright, #b8aaf9);
  border-color: rgba(155, 140, 248, 0.4);
}

.tv-fav-star.active svg {
  fill: var(--accent-bright, #b8aaf9);
}

.tv-action-btn.active {
  background: rgba(155, 140, 248, 0.14);
  border-color: rgba(155, 140, 248, 0.4);
  color: var(--accent-bright, #b8aaf9);
}

.tv-player-placeholder {
  background: rgba(155, 140, 248, 0.06);
  border-color: rgba(155, 140, 248, 0.18);
}

.tv-player-placeholder-text a {
  color: var(--accent-bright, #b8aaf9);
}

.tv-header-back:hover {
  border-color: rgba(155, 140, 248, 0.3);
  color: #fff;
}

/* Modal gate TV VIP */
.tv-vip-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.tv-vip-gate.open {
  opacity: 1;
  pointer-events: all;
}
.tv-vip-gate-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(155, 140, 248, 0.28);
  background:
    radial-gradient(420px 180px at 50% -20%, rgba(155, 140, 248, 0.18), transparent 70%),
    linear-gradient(165deg, rgba(18, 16, 32, 0.96), rgba(10, 10, 18, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 48px rgba(155, 140, 248, 0.12);
  text-align: center;
}
.tv-vip-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tv-vip-gate-close:hover {
  color: #fff;
  border-color: rgba(155, 140, 248, 0.4);
  background: rgba(155, 140, 248, 0.12);
}
.tv-vip-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: rgba(155, 140, 248, 0.14);
  border: 1px solid rgba(155, 140, 248, 0.32);
  color: var(--accent-bright, #b8aaf9);
}
.tv-vip-gate-icon svg {
  width: 32px;
  height: 32px;
}
.tv-vip-gate-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(155, 140, 248, 0.85);
}
.tv-vip-gate-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
}
.tv-vip-gate-text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}
.tv-vip-gate-text strong {
  color: var(--accent-bright, #b8aaf9);
}
.tv-vip-gate-perks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}
.tv-vip-gate-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}
.tv-vip-gate-perks svg {
  flex-shrink: 0;
  color: #22c55e;
}
.tv-vip-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-bright, #b8aaf9), var(--accent, #9b8cf8));
  color: #0a0a12;
  font-family: var(--font, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(155, 140, 248, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tv-vip-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(155, 140, 248, 0.45);
}
.tv-vip-gate-ghost {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.55rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s;
}
.tv-vip-gate-ghost:hover {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  #tvView {
    padding-top: calc(var(--header-h, 72px) + 0.25rem);
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .tv-select-step {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tv-channel-card,
  .tv-filter-btn,
  .tv-header-back,
  .tv-shortcut-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}
