/* 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 — bleu / violet / noir / blanc */
.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, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  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;
  overflow: hidden;
  width: min(440px, 100%);
  padding: 2.1rem 1.85rem 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(155, 140, 248, 0.35);
  background:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(107, 92, 231, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 100%, rgba(88, 101, 242, 0.16), transparent 50%),
    linear-gradient(165deg, #14122a 0%, #08080f 55%, #050508 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 48px rgba(155, 140, 248, 0.12);
  text-align: center;
}
.tv-vip-gate-atmos {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 28%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 72% 62%, rgba(184, 170, 249, 0.35), transparent),
    radial-gradient(1px 1px at 42% 78%, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.45;
}
.tv-vip-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  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.5);
  background: rgba(155, 140, 248, 0.14);
}
.tv-vip-gate-icon {
  position: relative;
  z-index: 1;
  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.35);
  color: #c4b5fd;
  box-shadow: 0 12px 32px rgba(107, 92, 231, 0.28);
}
.tv-vip-gate-icon svg {
  width: 30px;
  height: 30px;
}
.tv-vip-gate-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.35rem;
  font-family: 'Outfit', var(--font, sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(184, 170, 249, 0.95);
}
.tv-vip-gate-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-family: 'Instrument Serif', 'Bebas Neue', var(--ff-head, serif);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.tv-vip-gate-title span {
  color: #b8aaf9;
}
.tv-vip-gate-stat {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  font-family: 'Outfit', var(--font, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}
.tv-vip-gate-stat strong {
  color: #c4b5fd;
  font-size: 1.15em;
}
.tv-vip-gate-text {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  font-family: 'Outfit', var(--font, sans-serif);
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}
.tv-vip-gate-text strong {
  color: #c4b5fd;
}
.tv-vip-gate-perks {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}
.tv-vip-gate-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: 'Outfit', var(--font, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
.tv-vip-gate-perks svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #a78bfa;
}
.tv-vip-gate-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #9b8cf8, #6b5ce7);
  color: #fff;
  font-family: 'Outfit', var(--font, sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(107, 92, 231, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tv-vip-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(107, 92, 231, 0.5);
}
.tv-vip-gate-ghost {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Outfit', var(--font, sans-serif);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s;
}
.tv-vip-gate-ghost:hover {
  color: rgba(255, 255, 255, 0.85);
}

@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;
  }
}
