/* =========================================================
   TECHFLIX - ASSISTIR NA TV / SALVAR NA TV
   Versao final fullscreen, responsiva e compativel com Smart TV
   ========================================================= */

:root {
  --tf-red: #e50914;
  --tf-red-2: #ff1f2d;
  --tf-yellow: #fff200;
  --tf-black: #050505;
  --tf-card: rgba(14, 14, 14, .86);
  --tf-card-2: rgba(28, 28, 28, .84);
  --tf-white: #ffffff;
  --tf-muted: #cfcfcf;
  --tf-border: rgba(255, 255, 255, .12);
  --tf-shadow: 0 20px 70px rgba(0,0,0,.72);
}

.tf-tv-main-button,
.tf-tv-close,
.tf-tv-option,
.tf-tv-secondary {
  font-family: Arial, Helvetica, sans-serif;
}

.tf-tv-main-button {
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  color: #fff;
  font-size: clamp(16px, 2.6vw, 21px);
  font-weight: 900;
  cursor: pointer;
  background:
    linear-gradient(135deg, var(--tf-red), #8d0008 58%, #360003);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 28px rgba(229, 9, 20, .45),
    0 10px 32px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tf-tv-main-button:hover,
.tf-tv-main-button:focus {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
  outline: 3px solid rgba(255, 242, 0, .75);
  outline-offset: 4px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 38px rgba(229, 9, 20, .66),
    0 12px 38px rgba(0,0,0,.55);
}

.tf-tv-modal[hidden] { display: none !important; }

.tf-tv-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: auto;
  color: var(--tf-white);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 0, 0, .26), transparent 38%),
    radial-gradient(circle at 90% 20%, rgba(255, 242, 0, .10), transparent 24%),
    linear-gradient(135deg, #020202 0%, #0c0c0c 55%, #020202 100%);
  animation: tfTvFadeIn .18s ease both;
}

body.tf-tv-lock { overflow: hidden; }

.tf-tv-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(229,9,20,.08), transparent 20%, transparent 80%, rgba(229,9,20,.08)),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: .75;
}

.tf-tv-shell {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  padding: clamp(16px, 3vw, 34px);
  border: 1px solid rgba(229, 9, 20, .36);
  border-radius: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 22%),
    rgba(0,0,0,.62);
  box-shadow:
    var(--tf-shadow),
    0 0 55px rgba(229, 9, 20, .20),
    inset 0 0 0 1px rgba(255,255,255,.045);
  backdrop-filter: blur(10px);
}

.tf-tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tf-border);
}

.tf-tv-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.tf-tv-logo {
  width: clamp(120px, 26vw, 265px);
  max-height: 84px;
  padding: 6px 10px;
  border: 1px solid rgba(229, 9, 20, .82);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  object-fit: contain;
  filter:
    drop-shadow(0 0 20px rgba(229,9,20,.30))
    drop-shadow(0 8px 12px rgba(0,0,0,.80));
}

.tf-tv-eyebrow {
  margin: 0 0 4px;
  color: var(--tf-yellow);
  font-size: clamp(12px, 1.9vw, 16px);
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tf-tv-header h2 {
  margin: 0;
  font-size: clamp(26px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -1px;
}

.tf-tv-close {
  flex: 0 0 auto;
  width: clamp(48px, 7vw, 66px);
  height: clamp(48px, 7vw, 66px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  cursor: pointer;
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 22px rgba(255,255,255,.05);
}

.tf-tv-close:hover,
.tf-tv-close:focus,
.tf-tv-secondary:hover,
.tf-tv-secondary:focus,
.tf-tv-option:hover,
.tf-tv-option:focus {
  outline: 3px solid rgba(255, 242, 0, .82);
  outline-offset: 4px;
}

.tf-tv-intro {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  color: #eeeeee;
  background: rgba(255,255,255,.05);
}

.tf-tv-intro p {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.5;
}

.tf-tv-intro strong {
  color: var(--tf-yellow);
}

.tf-tv-layout {
  display: grid;
  grid-template-columns: minmax(260px, 365px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}

.tf-tv-options {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tf-tv-option {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  gap: 3px 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(18,18,18,.78);
  box-shadow: 0 10px 25px rgba(0,0,0,.26);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.tf-tv-option span {
  grid-area: icon;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 25px;
  background: rgba(255,255,255,.08);
}

.tf-tv-option strong {
  grid-area: title;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.12;
}

.tf-tv-option small {
  grid-area: desc;
  color: var(--tf-muted);
  font-size: 13px;
}

.tf-tv-option.is-active {
  border-color: rgba(229, 9, 20, .95);
  background:
    linear-gradient(135deg, rgba(229, 9, 20, .36), rgba(75,0,5,.66)),
    rgba(18,18,18,.9);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 30px rgba(229,9,20,.24),
    0 12px 30px rgba(0,0,0,.36);
  transform: translateX(4px);
}

.tf-tv-content {
  min-height: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(229,9,20,.18), transparent 34%),
    linear-gradient(145deg, var(--tf-card), var(--tf-card-2));
  box-shadow:
    0 18px 40px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.045);
  overflow: hidden;
}

.tf-tv-panel {
  display: none;
  padding: clamp(20px, 4vw, 42px);
  animation: tfTvSlide .16s ease both;
}

.tf-tv-panel.is-active { display: block; }

.tf-tv-surface-card {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    rgba(0,0,0,.34);
  box-shadow:
    0 18px 34px rgba(0,0,0,.26),
    0 0 28px rgba(229,9,20,.10);
}

.tf-tv-panel-copy-card {
  margin-bottom: 0;
}

.tf-tv-panel-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 24px;
  font-size: 40px;
  background:
    linear-gradient(135deg, rgba(229,9,20,.55), rgba(255,255,255,.08));
  box-shadow: 0 0 30px rgba(229,9,20,.25);
}

.tf-tv-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.tf-tv-highlight {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.4;
  font-weight: 800;
}

.tf-tv-video-box {
  padding: 12px;
  position: relative;
}

.tf-tv-video-box--desktop {
  display: block;
}

.tf-tv-video-box--mobile {
  display: none;
}

.tf-tv-video-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 20%, rgba(229,9,20,.16), transparent 36%),
    #060606;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 12px 28px rgba(0,0,0,.34);
}

.tf-tv-video-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tf-tv-video-note {
  margin: 10px 2px 0;
  color: #e8e8e8;
  font-size: clamp(12px, 1.9vw, 15px);
  line-height: 1.4;
}

.tf-tv-sound-button {
  position: absolute;
  top: 26px;
  left: 26px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 900;
  letter-spacing: .45px;
  cursor: pointer;
  background:
    linear-gradient(135deg, #ff4646 0%, #ff1010 34%, #cb0000 68%, #790000 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 12px 28px rgba(0,0,0,.38),
    0 0 28px rgba(255,9,20,.68),
    0 0 52px rgba(255,9,20,.28);
  animation: tfTvSoundPulse 1s ease-in-out infinite;
  z-index: 2;
  overflow: hidden;
}

.tf-tv-sound-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.1) 34%, rgba(255,255,255,.82) 50%, rgba(255,255,255,.12) 66%, rgba(255,255,255,0) 100%);
  transform: translateX(-140%) skewX(-18deg);
  animation: tfTvSoundSweep 1.4s ease-out infinite;
  pointer-events: none;
}

.tf-tv-sound-button:hover,
.tf-tv-sound-button:focus {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.08);
}

.tf-tv-video-box.is-sound-on .tf-tv-sound-button {
  display: none;
}

.tf-tv-alert-box,
.tf-tv-device-box {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 20px;
}

.tf-tv-alert-box {
  border: 1px solid rgba(229, 9, 20, .42);
  background:
    linear-gradient(135deg, rgba(229, 9, 20, .20), rgba(255, 242, 0, .07)),
    rgba(0,0,0,.34);
  box-shadow: 0 0 26px rgba(229, 9, 20, .12);
}

.tf-tv-device-box {
  border: 1px solid rgba(255, 242, 0, .22);
  background:
    linear-gradient(135deg, rgba(255, 242, 0, .095), rgba(229, 9, 20, .075)),
    rgba(0,0,0,.28);
}

.tf-tv-alert-box h4,
.tf-tv-device-box h4 {
  margin: 0 0 8px;
  color: var(--tf-yellow);
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.2;
}

.tf-tv-alert-box p,
.tf-tv-device-box p {
  margin: 0;
  color: #eeeeee;
  font-size: clamp(14px, 2.1vw, 18px);
  line-height: 1.45;
}

.tf-tv-device-box small {
  display: block;
  margin-top: 9px;
  color: #d9d9d9;
  font-size: clamp(12px, 1.8vw, 15px);
  line-height: 1.35;
}

.tf-tv-alert-box strong,
.tf-tv-device-box strong {
  color: #fff;
}

.tf-tv-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tfstep;
}

.tf-tv-steps li {
  position: relative;
  min-height: 48px;
  padding: 13px 14px 13px 62px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 17px;
  color: #eee;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.35;
  background: rgba(0,0,0,.32);
}

.tf-tv-steps li::before {
  counter-increment: tfstep;
  content: counter(tfstep);
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: var(--tf-red);
  box-shadow: 0 0 18px rgba(229,9,20,.42);
}

.tf-tv-steps strong { color: var(--tf-yellow); }

.tf-tv-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 5px solid var(--tf-yellow);
  border-radius: 14px;
  color: #f1f1f1;
  font-size: clamp(14px, 2.1vw, 18px);
  line-height: 1.42;
  background: rgba(255, 242, 0, .08);
}

.tf-tv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--tf-border);
}

.tf-tv-secondary {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  color: #fff;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 900;
  cursor: pointer;
  background:
    linear-gradient(135deg, #1f1f1f, #070707);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.15) inset,
    0 10px 24px rgba(0,0,0,.35);
}

.tf-tv-footer p {
  margin: 0;
  color: #ddd;
  font-size: clamp(13px, 2vw, 16px);
  text-align: right;
}

@keyframes tfTvFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tfTvSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tfTvSoundPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.12) inset,
      0 12px 28px rgba(0,0,0,.38),
      0 0 28px rgba(255,9,20,.68),
      0 0 52px rgba(255,9,20,.28);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.18) inset,
      0 14px 32px rgba(0,0,0,.42),
      0 0 42px rgba(255,9,20,.9),
      0 0 68px rgba(255,9,20,.4);
  }
}

@keyframes tfTvSoundSweep {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  20% { opacity: .18; }
  50% { opacity: .8; }
  100% { transform: translateX(165%) skewX(-18deg); opacity: 0; }
}

@media (max-width: 760px) {
  .tf-tv-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 16px;
  }

  .tf-tv-header { align-items: flex-start; }

  .tf-tv-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .tf-tv-logo { width: min(250px, 82vw); }

  .tf-tv-video-box--desktop { display: none; }

  .tf-tv-video-box--mobile { display: block; }

  .tf-tv-layout { grid-template-columns: 1fr; }

  .tf-tv-options { grid-template-columns: 1fr; }

  .tf-tv-option.is-active { transform: none; }

  .tf-tv-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tf-tv-footer p { text-align: center; }

  .tf-tv-secondary { width: 100%; }
  .tf-tv-sound-button {
    top: 22px;
    left: 22px;
    min-height: 44px;
    padding: 0 18px;
    max-width: calc(100% - 44px);
  }
}

@media (min-width: 1400px) {
  .tf-tv-shell {
    width: min(1340px, calc(100% - 64px));
    min-height: calc(100vh - 64px);
    margin: 32px auto;
  }

  .tf-tv-option { min-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-tv-modal,
  .tf-tv-panel,
  .tf-tv-main-button,
  .tf-tv-option {
    animation: none !important;
    transition: none !important;
  }
}
