/* ==========================================================================
   IPTV — catálogo ao vivo (iptv-org)
   ========================================================================== */

/* Dedicated IPTV storefront */
.iptv-storefront-host,
.iptv-storefront-host body {
  min-height: 100%;
  background: #050507 !important;
  color: #f8f7fb;
}

.iptv-storefront-host body { overflow-x: hidden; }
.iptv-storefront-host .app-header,
.iptv-storefront-host .ambient-glow,
.iptv-storefront-host .mailbox-sidebar,
.iptv-storefront-host .mailbox-backdrop,
.iptv-storefront-host .mailbox-topbar,
.iptv-storefront-host .mailbox-page-heading { display: none !important; }
.iptv-storefront-host .main-content,
.iptv-storefront-host #viewInstant,
.iptv-storefront-host .mailbox-shell,
.iptv-storefront-host .mailbox-main,
.iptv-storefront-host .mailbox-page-content,
.iptv-storefront-host .iptv-dashboard-view {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #050507;
  box-shadow: none;
}
#viewInstant .mailbox-page-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  padding: 0 !important;
}
.iptv-storefront-host #viewInstant #iptvDashboard {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}
.iptv-storefront-host #iptvDashboard > .iptv-page-header { display: none !important; }
.iptv-storefront-host #iptvDashboard > .iptv-layout { display: none !important; }
.iptv-storefront-host.iptv-browse-catalog #iptvDashboard > .iptv-page-header,
.iptv-storefront-host.iptv-browse-catalog #iptvDashboard > .iptv-layout { display: grid !important; }
.iptv-storefront-host.iptv-browse-catalog #iptvDashboard > .iptv-page-header {
  display: flex !important;
  padding: 22px 5vw 12px;
}
.streaming-home { min-height: 100vh; background: #050507; color: #f8f7fb; font-family: Inter, "Segoe UI", sans-serif; }
.streaming-home.is-browsing { display: none; }
.streaming-nav { position: sticky; z-index: 20; top: 0; display: flex; height: 72px; align-items: center; gap: 52px; padding: 0 4.5vw; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7,7,10,.92); backdrop-filter: blur(16px); }
.streaming-brand { display: flex; width: 82px; flex: 0 0 82px; flex-direction: column; align-items: center; color: #fff; font-size: 15px; font-style: italic; font-weight: 1000; line-height: .82; text-decoration: none; transform: rotate(-5deg); }
.streaming-brand span { color: #fff; font-size: 11px; }
.streaming-brand strong { padding: 3px 6px; border-radius: 3px; background: linear-gradient(110deg,#a000ff,#fa31db); font-size: 17px; letter-spacing: -1px; }
.streaming-nav-links { display: flex; height: 100%; align-items: center; gap: 32px; }
.streaming-nav-links button,.streaming-shelf-heading button { padding: 0; border: 0; background: none; color: #d2d0d9; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.streaming-nav-links button { position: relative; height: 100%; }
.streaming-nav-links button:hover,.streaming-nav-links button.is-active { color: #fff; }
.streaming-nav-links button.is-active::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: #d32fff; content: ""; }
.streaming-nav-actions { display: flex; gap: 10px; margin-left: auto; }
.streaming-nav-actions button,.streaming-more { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: rgba(255,255,255,.06); color: white; cursor: pointer; }
.streaming-nav-actions svg { width: 21px; height: 21px; }
.streaming-hero { position: relative; display: flex; min-height: min(610px, 67vw); align-items: center; overflow: hidden; padding: 64px 4.5vw 100px; isolation: isolate; }
.streaming-hero::before { position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse at 74% 32%,rgba(119,70,155,.52),transparent 40%),radial-gradient(ellipse at 78% 63%,rgba(35,76,84,.48),transparent 42%),linear-gradient(90deg,#050507 1%,rgba(5,5,7,.88) 29%,rgba(5,5,7,.22) 73%,rgba(5,5,7,.15)),linear-gradient(0deg,#050507 0%,transparent 36%); content: ""; }
.streaming-hero-art { position: absolute; z-index: -1; top: 0; right: 0; width: 76%; height: 100%; background: radial-gradient(ellipse at 60% 34%,rgba(218,164,126,.52),transparent 18%),radial-gradient(ellipse at 70% 51%,rgba(49,64,63,.85),transparent 35%),linear-gradient(135deg,transparent 30%,rgba(69,76,71,.5) 55%,transparent 76%); opacity: .75; }
.streaming-hero-copy { width: min(620px,58vw); padding-top: 35px; }
.streaming-eyebrow { color: #d993ff; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.streaming-eyebrow i { padding: 0 8px; color: #fa39d5; font-style: normal; }
.streaming-hero h1 { max-width: 700px; margin: 25px 0 16px; color: #fff; font-size: clamp(48px,5.4vw,76px); font-weight: 950; letter-spacing: -.065em; line-height: .94; }
.streaming-hero-copy p { max-width: 430px; color: #d1cfda; font-size: 16px; line-height: 1.7; }
.streaming-hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.streaming-play { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 0 22px; border: 0; border-radius: 28px; background: linear-gradient(100deg,#861cff,#e52bea); box-shadow: 0 8px 30px rgba(186,38,255,.35); color: white; font-size: 14px; font-weight: 800; cursor: pointer; }
.streaming-more { font-size: 20px; }
.streaming-hero-dots { position: absolute; right: 4.5vw; bottom: 36px; display: flex; gap: 9px; }
.streaming-hero-dots i { width: 22px; height: 4px; border-radius: 4px; background: #65616a; }
.streaming-hero-dots i.active { width: 42px; background: #d42cff; box-shadow: 0 0 12px #d42cff; }
.streaming-shelf { padding: 0 4.5vw 35px; }
.streaming-shelf-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.streaming-shelf-heading h2 { margin: 0; color: #f5f3f8; font-size: clamp(20px,2vw,27px); letter-spacing: -.04em; }
.streaming-shelf-heading h2 span { color: #d5a5f0; }
.streaming-shelf-heading button { color: #b8a3c9; font-size: 12px; }
.streaming-tiles { display: grid; grid-auto-columns: minmax(150px,1fr); grid-auto-flow: column; gap: 16px; overflow-x: auto; padding: 3px 0 14px; scrollbar-width: thin; scrollbar-color: #333 #08080a; }
.streaming-tile { position: relative; display: flex; min-width: 0; aspect-ratio: .72; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 18px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: linear-gradient(160deg,#29202f,#111116 70%); color: white; text-align: left; cursor: pointer; transition: transform .2s,border-color .2s; }
.streaming-tile::before { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 25%,rgba(0,0,0,.85)),radial-gradient(ellipse at 70% 28%,rgba(206,66,255,.38),transparent 45%); content: ""; }
.streaming-tile:hover { z-index: 1; border-color: #d42cff; transform: translateY(-5px) scale(1.015); }
.streaming-tile b,.streaming-tile span { position: relative; z-index: 1; }
.streaming-tile b { color: #e7b7ff; font-size: 10px; letter-spacing: .15em; }
.streaming-tile span { margin-top: 6px; font-size: 14px; font-weight: 750; }
.tile-two { background: linear-gradient(145deg,#463027,#171211 70%); }.tile-two::before { background: linear-gradient(180deg,transparent 20%,rgba(0,0,0,.88)),radial-gradient(ellipse at 35% 35%,rgba(255,119,51,.4),transparent 45%); }
.tile-three { background: linear-gradient(145deg,#2b3b4e,#10131a 72%); }.tile-three::before { background: linear-gradient(180deg,transparent 20%,rgba(0,0,0,.9)),radial-gradient(ellipse at 67% 28%,rgba(74,159,220,.5),transparent 46%); }
.tile-four { background: linear-gradient(145deg,#54202a,#160e15 72%); }.tile-four::before { background: linear-gradient(180deg,transparent 20%,rgba(0,0,0,.9)),radial-gradient(ellipse at 40% 35%,rgba(229,52,111,.46),transparent 46%); }
.tile-five { background: linear-gradient(145deg,#55502b,#17150f 72%); }.tile-five::before { background: linear-gradient(180deg,transparent 20%,rgba(0,0,0,.9)),radial-gradient(ellipse at 70% 35%,rgba(240,193,68,.4),transparent 46%); }
.tile-six,.tile-eight { background: linear-gradient(145deg,#243b36,#0d1112 72%); }.tile-seven,.tile-nine { background: linear-gradient(145deg,#442642,#130f18 72%); }.tile-ten { background: linear-gradient(145deg,#243a52,#0c1017 72%); }
@media(max-width:700px) {
  .streaming-nav { height: 62px; gap: 10px; padding: 0 14px; }
  .streaming-brand { width: 58px; flex-basis: 58px; }
  .streaming-brand span { font-size: 9px; }
  .streaming-brand strong { font-size: 14px; }
  .streaming-nav-links { min-width: 0; flex: 1; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .streaming-nav-links::-webkit-scrollbar { display: none; }
  .streaming-nav-links button { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
  .streaming-nav-links button.is-active::after { bottom: 12px; }
  .streaming-nav-actions { gap: 6px; margin-left: 0; }
  .streaming-nav-actions button { width: 36px; height: 36px; }
  .streaming-hero { min-height: 500px; min-height: min(640px, calc(100svh - 62px)); align-items: flex-end; padding: 40px 22px 78px; }
  .streaming-hero::before { background: radial-gradient(ellipse at 74% 26%,rgba(119,70,155,.42),transparent 42%),linear-gradient(90deg,rgba(5,5,7,.4),rgba(5,5,7,.15)),linear-gradient(0deg,#050507 2%,rgba(5,5,7,.5) 58%,rgba(5,5,7,.06)); }
  .streaming-hero-copy { width: 100%; padding-top: 0; }
  .streaming-hero-art { top: 0; width: 120%; height: 76%; opacity: .58; }
  .streaming-hero h1 { margin: 18px 0 12px; font-size: clamp(42px,12vw,58px); }
  .streaming-hero-copy p { max-width: 340px; font-size: 14px; line-height: 1.55; }
  .streaming-hero-actions { margin-top: 20px; }
  .streaming-play { min-height: 44px; padding: 0 18px; font-size: 13px; }
  .streaming-more { width: 42px; height: 42px; }
  .streaming-hero-dots { right: 22px; bottom: 28px; }
  .streaming-shelf { padding: 0 16px 28px; }
  .streaming-shelf-heading { gap: 10px; margin-bottom: 13px; }
  .streaming-shelf-heading h2 { font-size: 19px; line-height: 1.25; }
  .streaming-shelf-heading h2 span { display: block; margin-top: 2px; font-size: 15px; }
  .streaming-shelf-heading button { flex: 0 0 auto; font-size: 11px; }
  .streaming-tiles { grid-auto-columns: clamp(132px,39vw,165px); gap: 11px; margin-right: -16px; padding-right: 16px; }
  .streaming-tile { border-radius: 8px; padding: 14px 11px; }
  .streaming-tile b { font-size: 9px; }
  .streaming-tile span { font-size: 12px; }
}
@media(max-width:390px) {
  .streaming-nav { gap: 7px; padding: 0 10px; }
  .streaming-brand { width: 50px; flex-basis: 50px; }
  .streaming-nav-links { gap: 14px; }
  .streaming-nav-links button { font-size: 11px; }
  .streaming-nav-actions { gap: 4px; }
  .streaming-nav-actions button { width: 32px; height: 32px; }
  .streaming-nav-actions svg { width: 18px; height: 18px; }
  .streaming-hero { min-height: 465px; min-height: min(590px, calc(100svh - 62px)); }
  .streaming-hero h1 { font-size: 43px; }
  .streaming-shelf-heading h2 { font-size: 17px; }
  .streaming-shelf-heading button { font-size: 10px; }
  .streaming-tiles { grid-auto-columns: 132px; }
}
@media(min-width:701px) and (max-width:1050px) {
  .streaming-nav { gap: 28px; padding-right: 3vw; padding-left: 3vw; }
  .streaming-nav-links { gap: 22px; }
  .streaming-hero { min-height: 540px; padding-right: 5vw; padding-left: 5vw; }
  .streaming-hero-copy { width: min(500px,62vw); }
  .streaming-shelf { padding-right: 5vw; padding-left: 5vw; }
  .streaming-tiles { grid-auto-columns: 175px; }
}

#viewInstant .mailbox-status.iptv-live-status {
  color: #fca5a5;
}

#viewInstant .mailbox-status.iptv-live-status i {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

#viewInstant .mailbox-nav-item[data-mailbox-view="iptv"] b {
  min-width: 34px;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#viewInstant .mailbox-nav-item[data-mailbox-view="iptv"].active b {
  background: rgba(239, 68, 68, 0.28);
  color: #fecaca;
}

#viewInstant .iptv-page-header::after {
  right: 5%;
  bottom: -18px;
  content: 'TV';
  font-size: 118px;
  font-weight: 800;
  letter-spacing: -0.06em;
  transform: rotate(-6deg);
}

#viewInstant .iptv-kicker {
  color: #f0a8a8;
}

#viewInstant .iptv-kicker i {
  background: #ef4444;
  box-shadow: 0 0 11px rgba(239, 68, 68, 0.8);
}

#viewInstant .iptv-source-chip {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
  color: #f3b6b6;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.08);
}

#viewInstant .iptv-source-chip i {
  background: #ef4444;
}

#viewInstant .iptv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.72fr);
  gap: 14px;
  align-items: start;
}

#viewInstant .iptv-browser-panel,
#viewInstant .iptv-player-panel {
  min-width: 0;
}

#viewInstant .iptv-browser-panel {
  background: #000;
}

#viewInstant .iptv-player-panel {
  background: #000;
}

#viewInstant .iptv-search,
#viewInstant .iptv-filter-trigger,
#viewInstant .iptv-filter-menu {
  background: #000;
}

#viewInstant .iptv-channel-card {
  background: #000;
}

#viewInstant .iptv-channel-logo img {
  filter: none;
}

#viewInstant .iptv-player-panel {
  position: sticky;
  top: 16px;
}

#viewInstant .iptv-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#viewInstant .iptv-channel-count {
  display: block;
  margin-top: 5px;
  color: #7a879d;
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

#viewInstant .iptv-back-button {
  display: inline-flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b8c2d2;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

#viewInstant .iptv-back-button:hover {
  color: #fff;
}

#viewInstant .iptv-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.75fr));
  gap: 8px;
  margin-top: 14px;
}

#viewInstant .iptv-search {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: #0a0d14;
  transition: border-color 160ms ease;
}

#viewInstant .iptv-search:focus-within {
  border-color: rgba(96, 165, 250, 0.45);
}

#viewInstant .iptv-search svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #6b7a92;
}

#viewInstant .iptv-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8edf7;
  font: 500 10.5px var(--font-sans);
}

#viewInstant .iptv-search input::placeholder {
  color: #5f6d84;
}

#viewInstant .iptv-search button {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #9aa7bd;
  cursor: pointer;
}

#viewInstant .iptv-search button svg {
  width: 11px;
  height: 11px;
}

#viewInstant .iptv-filter {
  position: relative;
  min-width: 0;
}

#viewInstant .iptv-filter-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: #0a0d14;
  color: #e8edf7;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

#viewInstant .iptv-filter-trigger:hover,
#viewInstant .iptv-filter-trigger[aria-expanded="true"] {
  border-color: rgba(96, 165, 250, 0.42);
  background: #0c111b;
}

#viewInstant .iptv-filter-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

#viewInstant .iptv-filter-copy small {
  color: #6f7d93;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#viewInstant .iptv-filter-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #e3e9f4;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewInstant .iptv-filter-trigger > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #6f7d93;
  transition: transform 160ms ease;
}

#viewInstant .iptv-filter-trigger[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

#viewInstant .iptv-filter-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  min-width: 210px;
  max-height: 268px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #26303f;
  border-radius: 10px;
  background: #070a11;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.72);
}

#viewInstant .iptv-filter-menu[hidden] {
  display: none;
}

#viewInstant .iptv-filter-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: #0b0f17;
}

#viewInstant .iptv-filter-search svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #6b7a92;
}

#viewInstant .iptv-filter-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e8edf7;
  font: 500 10px var(--font-sans);
}

#viewInstant .iptv-filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#viewInstant .iptv-filter-option {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c3cddd;
  font: 500 10px var(--font-sans);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

#viewInstant .iptv-filter-option-icon {
  display: grid;
  width: 18px;
  height: 14px;
  flex: 0 0 18px;
  place-items: center;
}

#viewInstant .iptv-filter-option-icon img {
  display: block;
  width: 18px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  object-fit: cover;
}

#viewInstant .iptv-filter-option-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  color: #8da1bd;
}

#viewInstant .iptv-filter-option-icon {
  line-height: 1;
  text-align: center;
}

#viewInstant .iptv-filter-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewInstant .iptv-filter-option:hover {
  background: #17202e;
  color: #fff;
}

#viewInstant .iptv-filter-option[aria-selected="true"] {
  background: rgba(96, 165, 250, 0.16);
  color: #dbeafe;
}

#viewInstant .iptv-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 8px;
  align-content: start;
  min-height: 220px;
  margin-top: 12px;
}

#viewInstant .iptv-channel-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: #0a0e16;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

#viewInstant .iptv-channel-card:hover {
  border-color: rgba(96, 165, 250, 0.32);
  background: #0e1522;
}

#viewInstant .iptv-channel-card.is-active {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(37, 99, 235, 0.16);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18), 0 8px 18px rgba(0, 0, 0, 0.32);
}

#viewInstant .iptv-channel-logo {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #06090f;
  color: #93c5fd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#viewInstant .iptv-channel-logo img {
  max-width: 100%;
  max-height: 100%;
  padding: 4px;
  object-fit: contain;
}

#viewInstant .iptv-channel-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

#viewInstant .iptv-channel-copy strong {
  overflow: hidden;
  color: #e9eef8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewInstant .iptv-channel-copy small {
  overflow: hidden;
  color: #76849a;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewInstant .iptv-channel-live {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 7px rgba(239, 68, 68, 0.35);
}

#viewInstant .iptv-channel-card.is-active .iptv-channel-live {
  background: #ef4444;
  box-shadow: 0 0 9px rgba(239, 68, 68, 0.85);
}

#viewInstant .iptv-channels-placeholder {
  display: flex;
  grid-column: 1 / -1;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #74829a;
  font-size: 10px;
  text-align: center;
}

#viewInstant .iptv-channels-placeholder i {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: iptvSpin 0.9s linear infinite;
}

@keyframes iptvSpin {
  to { transform: rotate(360deg); }
}

#viewInstant .iptv-load-more {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  border: 1px dashed rgba(96, 165, 250, 0.3);
  border-radius: 9px;
  background: rgba(96, 165, 250, 0.05);
  color: #bfdbfe;
  font: 600 9.5px var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

#viewInstant .iptv-load-more:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.11);
}

#viewInstant .iptv-load-more:disabled {
  opacity: 0.5;
  cursor: wait;
}

#viewInstant .iptv-player-stage {
  position: relative;
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
}

#viewInstant .iptv-player-stage video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

#viewInstant .iptv-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px;
  background: radial-gradient(ellipse at center, rgba(12, 18, 30, 0.9) 0%, rgba(0, 0, 0, 0.96) 78%);
  color: #dfe7f5;
  text-align: center;
}

#viewInstant .iptv-player-overlay strong {
  font-size: 11px;
  font-weight: 700;
}

#viewInstant .iptv-player-overlay span:last-child {
  max-width: 220px;
  color: #7d8ba1;
  font-size: 9px;
  line-height: 1.5;
}

#viewInstant .iptv-player-overlay-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
  color: rgba(147, 197, 253, 0.5);
}

#viewInstant .iptv-player-overlay-icon svg {
  width: 100%;
  height: 100%;
}

#viewInstant .iptv-player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(0, 0, 0, 0.74);
  color: #9fb0c8;
  font-size: 9.5px;
}

#viewInstant .iptv-player-loading i {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: iptvSpin 0.85s linear infinite;
}

#viewInstant .iptv-now-playing {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

#viewInstant .iptv-now-logo {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #06090f;
  color: #93c5fd;
  font-size: 9px;
  font-weight: 800;
}

#viewInstant .iptv-now-logo svg {
  width: 17px;
  height: 17px;
  color: #4a5a72;
}

#viewInstant .iptv-now-logo img {
  max-width: 100%;
  max-height: 100%;
  padding: 4px;
  object-fit: contain;
}

#viewInstant .iptv-now-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#viewInstant .iptv-now-copy strong {
  overflow: hidden;
  color: #eaeff9;
  font-size: 10.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewInstant .iptv-now-copy span {
  overflow: hidden;
  color: #7a879d;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewInstant .iptv-player-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

#viewInstant .iptv-action-button {
  display: inline-flex;
  min-height: 34px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.07);
  color: #bfdbfe;
  font: 600 9px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

#viewInstant .iptv-action-button:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(96, 165, 250, 0.14);
}

#viewInstant .iptv-action-button:disabled,
#viewInstant .iptv-action-button[aria-disabled="true"] {
  opacity: 0.42;
  pointer-events: none;
}

#viewInstant .iptv-action-button svg {
  width: 12px;
  height: 12px;
}

#viewInstant .iptv-player-hint {
  margin-top: 9px;
  color: #7a879d;
  font-size: 8.5px;
  line-height: 1.5;
}

#viewInstant .iptv-source-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #5f6d84;
  font-size: 8px;
}

#viewInstant .iptv-source-note a {
  color: #93c5fd;
  text-decoration: none;
}

#viewInstant .iptv-source-note code {
  color: #93a4bd;
  font-family: var(--font-mono);
  font-size: 8px;
}

@media (max-width: 1150px) {
  #viewInstant .iptv-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #viewInstant .iptv-player-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 760px) {
  #viewInstant .iptv-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  #viewInstant .iptv-channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(143px, 1fr));
  }

  #viewInstant .iptv-filter-menu {
    right: auto;
    left: 0;
    width: min(280px, 82vw);
  }

  #viewInstant .iptv-page-header::after {
    font-size: 84px;
  }
}

/* IPTV monocromático: substituir os antigos realces azuis por preto/cinza. */
#viewInstant .iptv-dashboard-view {
  --iptv-accent: #a3a3a3;
  --iptv-accent-soft: rgba(255, 255, 255, 0.08);
  --iptv-accent-border: rgba(255, 255, 255, 0.2);
}

#viewInstant .iptv-search:focus-within,
#viewInstant .iptv-filter-trigger:hover,
#viewInstant .iptv-filter-trigger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.3);
}

#viewInstant .iptv-filter-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #f4f4f5;
}

#viewInstant .iptv-channel-card:hover,
#viewInstant .iptv-channel-card.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: #080808;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.32);
}

#viewInstant .iptv-channel-logo,
#viewInstant .iptv-now-logo {
  color: #d4d4d8;
}

#viewInstant .iptv-channels-placeholder i,
#viewInstant .iptv-player-loading i {
  border-top-color: #a3a3a3;
}

#viewInstant .iptv-load-more {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
}

#viewInstant .iptv-load-more:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

#viewInstant .iptv-player-overlay-icon {
  color: rgba(255, 255, 255, 0.5);
}

#viewInstant .iptv-action-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
}

#viewInstant .iptv-action-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

#viewInstant .iptv-source-note a,
#viewInstant .iptv-source-note code,
#viewInstant .iptv-filter-option-icon svg {
  color: #c4c4c7;
}

#viewInstant .iptv-filter-trigger:hover,
#viewInstant .iptv-filter-trigger[aria-expanded="true"],
#viewInstant .iptv-filter-menu,
#viewInstant .iptv-channel-card:hover,
#viewInstant .iptv-channel-card.is-active {
  background: #000;
}

#viewInstant .iptv-search,
#viewInstant .iptv-filter-trigger,
#viewInstant .iptv-filter-menu,
#viewInstant .iptv-channel-card {
  background: #000;
}

#viewInstant .iptv-now-playing,
#viewInstant .iptv-action-button {
  background: #000;
}

#viewInstant .iptv-filter-search {
  background: #000;
}

#viewInstant .iptv-browser-panel {
  background: rgba(7, 7, 7, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  backdrop-filter: blur(14px) saturate(110%);
}

#viewInstant .iptv-player-panel {
  background: rgba(7, 7, 7, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  backdrop-filter: blur(14px) saturate(110%);
}

#viewInstant .iptv-channel-card,
#viewInstant .iptv-channel-card:hover,
#viewInstant .iptv-channel-card.is-active {
  background: rgba(7, 7, 7, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 8px 20px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  backdrop-filter: blur(10px) saturate(110%);
}

#viewInstant .iptv-channel-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

#viewInstant .iptv-channel-card.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.28);
}

#viewInstant .iptv-search,
#viewInstant .iptv-filter-trigger,
#viewInstant .iptv-filter-menu,
#viewInstant .iptv-filter-search,
#viewInstant .iptv-now-playing,
#viewInstant .iptv-player-actions,
#viewInstant .iptv-action-button {
  background: rgba(7, 7, 7, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 8px 20px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  backdrop-filter: blur(10px) saturate(110%);
}

#viewInstant .iptv-filter-trigger:hover,
#viewInstant .iptv-filter-trigger[aria-expanded="true"],
#viewInstant .iptv-action-button:hover:not(:disabled) {
  background: rgba(14, 14, 14, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

#viewInstant .iptv-player-actions {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

#viewInstant .iptv-channel-live {
  background: #ef4444;
  color: #ef4444;
  animation: iptvLivePulseRed 1.4s ease-in-out infinite;
}

#viewInstant .iptv-channel-live.is-unavailable {
  background: #ef4444;
  color: #ef4444;
  animation: iptvLivePulseRed 1.4s ease-in-out infinite;
}

#viewInstant .iptv-channel-live.is-available,
#viewInstant .iptv-channel-card.is-active .iptv-channel-live.is-available {
  background: #22c55e;
  color: #22c55e;
  animation: iptvLivePulseGreen 1.4s ease-in-out infinite;
}

@keyframes iptvLivePulseRed {
  0%, 100% { opacity: 0.75; transform: scale(0.85); box-shadow: 0 0 4px currentColor; }
  50% { opacity: 1; transform: scale(1.18); box-shadow: 0 0 10px currentColor; }
}

@keyframes iptvLivePulseGreen {
  0%, 100% { opacity: 0.78; transform: scale(0.85); box-shadow: 0 0 4px currentColor; }
  50% { opacity: 1; transform: scale(1.18); box-shadow: 0 0 11px currentColor; }
}

#viewInstant .iptv-action-button.is-loading svg {
  animation: iptvActionIconSpin 0.8s linear infinite;
}

@keyframes iptvActionIconSpin {
  to { transform: rotate(360deg); }
}
