/* Planos de TV — CBnet TV + OléTV */
:root { --ole: #8A2BE2; }

.tv-hero {
  position: relative; isolation: isolate;
  background-color: var(--bg); background-size: cover; background-position: center right;
  padding: 110px 0 90px;
}
.tv-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #001428 0%, rgba(0, 20, 40, .92) 45%, rgba(0, 20, 40, .55) 100%);
}
.tv-hero__inner { display: grid; gap: 26px; justify-items: start; }
.tv-pill {
  display: inline-flex; gap: 6px; padding: 10px 20px; border-radius: 100px;
  border: 1px solid rgba(0, 180, 255, .35); background: rgba(0, 180, 255, .08);
  color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.tv-pill b { color: #fff; }
.tv-hero h1 { font-size: 58px; line-height: 1.1; font-weight: 400; max-width: 700px; }
.tv-hero h1 strong { font-weight: 700; color: var(--accent); }
.tv-hero p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 600px; }
.tv-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.tv-btn-ghost { border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 600; }
.tv-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.tv-btn-ghost .icon { font-size: 18px; }
.tv-hero__stats { display: flex; flex-wrap: wrap; gap: 46px; margin-top: 18px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .1); }
.tv-hero__stats strong { display: block; font-size: 32px; font-weight: 700; line-height: 1.1; }
.tv-hero__stats span { font-size: 14px; color: var(--gray); }

/* Cabeçalhos de seção */
.tv-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 720px; }
.tv-head p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.tv-head--center { text-align: center; margin-inline: auto; }

/* Planos */
.tv-plans { padding: 90px 0 40px; border-top: 1px solid var(--line); }
.tv-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.tv-filters button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .15);
  font-size: 14px; font-weight: 500; color: var(--muted); transition: all .2s;
}
.tv-filters button .icon { font-size: 16px; }
.tv-filters button:hover { border-color: var(--accent); color: #fff; }
.tv-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.tv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.tv-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 26px 22px 22px; border-radius: var(--radius);
  background: rgba(8, 20, 32, .6); border: 1px solid rgba(0, 180, 255, .25);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tv-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.tv-card--power { border-color: rgba(138, 43, 226, .4); }
.tv-card.is-featured {
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(0, 180, 255, .14), rgba(8, 20, 32, .6) 55%);
}
.tv-card__badge {
  position: absolute; top: -13px; left: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.tv-card__badge .icon { font-size: 13px; }
.tv-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tv-card__line { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tv-card--power .tv-card__line { color: #B57BFF; }
.tv-card__count { padding: 5px 11px; border-radius: 100px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 600; }
.tv-card__name { font-size: 22px; font-weight: 700; line-height: 1.15; min-height: 2.3em; }
.tv-card__name small { font-size: 14px; font-weight: 600; color: #B57BFF; }
.tv-card__price { display: flex; align-items: flex-start; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tv-card__price > span:first-child { font-size: 18px; font-weight: 300; margin-top: 8px; }
.tv-card__price strong { font-size: 52px; font-weight: 600; line-height: 1; }
.tv-card__price > span:last-child { font-size: 20px; font-weight: 300; margin-top: 6px; }
.tv-card__price small { display: block; font-size: 12px; color: var(--gray); }
.tv-card__list { display: grid; gap: 12px; flex: 1; align-content: start; }
.tv-card__list li { display: flex; gap: 10px; font-size: 14px; font-weight: 300; line-height: 1.45; color: #fff; }
.tv-card__list .icon { font-size: 18px; color: var(--accent); margin-top: 1px; }
.tv-card__actions { display: grid; gap: 10px; }
.tv-card__actions .btn { padding: 16px 20px; font-weight: 600; }
.tv-card__channels {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px; font-weight: 600; transition: border-color .2s, color .2s;
}
.tv-card__channels .icon { font-size: 18px; color: var(--accent); }
.tv-card__channels:hover { border-color: var(--accent); color: var(--accent); }
.tv-card[hidden] { display: none; }
.tv-note { margin-top: 30px; font-size: 12px; color: var(--muted); text-align: center; }

/* Modal com a grade de canais */
.tv-dialog {
  width: min(900px, 100% - 32px); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-radius: 20px; background: #fff; color: var(--bg);
}
.tv-dialog::backdrop { background: rgba(0, 10, 20, .8); backdrop-filter: blur(4px); }
.tv-dialog__box { display: grid; gap: 18px; padding: 22px; }
.tv-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tv-dialog header strong { display: block; font-size: 20px; color: #5B12A8; }
.tv-dialog header span { font-size: 14px; color: #5f6b78; }
.tv-dialog header button { font-size: 34px; line-height: 1; color: #5B12A8; width: 44px; height: 44px; border-radius: 50%; }
.tv-dialog header button:hover { background: #f1e8fb; }
.tv-dialog img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 10px; }
.tv-dialog[open] { animation: dlg-in .25s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } }

/* Tipos de conteúdo */
.tv-types { padding: 80px 0; background: var(--bg-deep); }
.tv-types__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tv-type { padding: 32px 28px; border-radius: var(--radius); border: 1px solid rgba(0, 180, 255, .15); }
.tv-type .icon { font-size: 44px; color: var(--accent); margin-bottom: 22px; }
.tv-type h3 { font-size: 20px; margin-bottom: 10px; }
.tv-type p { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--muted); }

/* Comparativo */
.tv-compare { padding: 90px 0 40px; }
.tv-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.tv-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.tv-table th, .tv-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.tv-table thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: rgba(0, 180, 255, .06); }
.tv-table tbody th { font-weight: 600; }
.tv-table td { font-weight: 300; color: var(--muted); }
.tv-table td:last-child { font-weight: 600; color: #fff; white-space: nowrap; }
.tv-table tbody tr:last-child > * { border-bottom: 0; }
.tv-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.tv-table tr.is-featured { background: rgba(0, 180, 255, .08); }
.tv-table tr.is-featured th::after { content: "Mais completo"; margin-left: 10px; padding: 3px 9px; border-radius: 100px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; vertical-align: middle; }

/* FAQ */
.tv-faq { padding: 90px 0; }
.tv-faq__grid { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.tv-faq__grid > div:first-child { display: grid; gap: 18px; justify-items: start; }
.tv-faq__grid > div:first-child p { color: var(--muted); }

@media (max-width: 1200px) {
  .tv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .tv-hero h1 { font-size: 46px; }
  .tv-grid, .tv-types__grid { grid-template-columns: repeat(2, 1fr); }
  .tv-faq__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 767px) {
  .tv-hero { padding: 60px 0; background-position: 70% center; }
  .tv-hero::before { background: rgba(0, 20, 40, .9); }
  .tv-hero h1 { font-size: 36px; }
  .tv-hero p { font-size: 16px; }
  .tv-hero__ctas .btn { width: 100%; }
  .tv-hero__stats { gap: 24px; }
  .tv-hero__stats strong { font-size: 24px; }
  .tv-plans, .tv-compare, .tv-faq, .tv-types { padding: 60px 0; }
  .tv-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter); scrollbar-width: none; }
  .tv-filters button { flex: none; }
  .tv-grid, .tv-types__grid { grid-template-columns: 1fr; }
  .tv-card__name { min-height: 0; }
  .tv-dialog__box { padding: 16px; }
}
