/* IPTV365 Universal Player - Main Stylesheet */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #ff3c70;
  --panel: #181e2e;
  --line: rgba(255,255,255,.08);
  --muted: #718096;
  --text: #fff;
  --iptv-blue: #087cff;
  --iptv-cyan: #18caff;
  --iptv-bg: #030914;
}

html, body {
  min-height: 100%;
  background: #080d1a;
  color: var(--text);
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.background-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #ff3c70;
  filter: blur(180px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}

.app-container {
  width: 100%;
  max-width: 1650px;
  min-height: 100vh;
  margin: auto;
  padding: 20px;
  position: relative;
}

/* Header */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 32px;
}

.brand {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.brand span {
  color: var(--accent);
}

.exp-date {
  font-size: 11px;
  color: #65748a;
  margin-top: 3px;
}

.meta-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.account-switch-btn {
  background: #242d42;
  border: 1px solid var(--line);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.date-time {
  font-size: 14px;
  color: #a0aec0;
}

/* Login */

#loginScreen {
  max-width: 520px;
  margin: 30px auto 0;
  text-align: center;
}

.login-card,
.saved-accounts-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(24,30,46,.95);
  text-align: left;
  margin-bottom: 20px;
}

.field-group-row {
  display: flex;
  gap: 10px;
}

.field-group-row .field {
  flex: 1;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #cbd5e0;
  font-size: 12px;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #2d3748;
  border-radius: 8px;
  background: #0d111a;
  color: #fff;
  font-size: 13px;
}

.connect-btn {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

/* Dashboard */

.iptv-main-hub {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 25px;
  margin-top: 20px;
}

.content-sections-modern {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.hub-card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  transition: transform .2s;
}

.hub-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.hub-icon-wrap {
  font-size: 52px;
  margin-bottom: 15px;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-btn {
  background: #242d42;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  width: 100%;
}

/* Common workspace */

.workspace-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
}

.back-button {
  align-self: flex-start;
  padding: 8px 16px;
  border: 1px solid #2d3748;
  border-radius: 8px;
  background: #181e2e;
  color: #fff;
  margin-bottom: 12px;
  font-weight: bold;
}

.split-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.left-list-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 300px;
}

.panel-header {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.category-back {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: bold;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #2d3748;
  border-radius: 8px;
  background: #0d111a;
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
}

.items-scroll-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  background: #0d111a;
  color: #fff;
  text-align: left;
}

.list-item-btn:hover,
.list-item-btn.active {
  border-color: var(--accent);
  background: rgba(255,60,112,.12);
}

/* Live TV main screen */

.iptv-live-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 500 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background:
    radial-gradient(
      ellipse at 58% 0%,
      #10264a 0%,
      #061225 38%,
      #020711 78%
    ) !important;
  overflow: hidden !important;
  color: #fff;
}

/* Live TV top bar */

.iptv-live-topbar {
  height: 88px;
  flex: 0 0 88px;
  display: grid;
  grid-template-columns: 74px 250px minmax(0,1fr) 70px 55px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(0,145,255,.55);
  background: linear-gradient(90deg,#020711,#07172d 48%,#020711);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.iptv-live-back {
  height: 54px;
  width: 58px;
  border: 0;
  border-right: 1px solid rgba(130,190,255,.3);
  background: transparent;
  color: #fff;
  font-size: 43px;
  line-height: 1;
}

.iptv-live-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  white-space: nowrap;
}

.iptv-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid #e8f5ff;
  border-radius: 13px 13px 13px 4px;
  font-size: 25px;
}

.iptv-blue {
  color: #13a4ff;
}

.iptv-live-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-top: -2px;
}

.iptv-live-topbar h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(20px,3vw,39px);
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iptv-top-icon {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 37px;
}

/* Left category sidebar + right channel area */

.iptv-live-layout {
  display: grid !important;
  grid-template-columns: minmax(285px,30%) minmax(0,1fr) !important;
  gap: 18px !important;
  height: calc(100% - 88px) !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 20px 22px 22px !important;
  overflow: hidden !important;
}

.iptv-live-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(55,151,255,.22);
  padding-right: 16px;
  overflow: hidden;
}

.iptv-category-search {
  height: 58px;
  flex: 0 0 58px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 18px;
  border: 1px solid #31577f;
  border-radius: 13px;
  background: linear-gradient(120deg,#142a44,#0d1d32);
  color: #fff;
  font-size: 17px;
  outline: none;
}

.iptv-category-search:focus {
  border-color: #16a8ff;
  box-shadow: 0 0 0 2px rgba(22,168,255,.16);
}

.iptv-category-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 5px;
}

.iptv-category-row {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(117,165,214,.17);
  border-radius: 8px;
  background: transparent;
  color: #f4f8ff;
  font-size: clamp(14px,1.35vw,19px);
  font-weight: 600;
  text-align: left;
}

.iptv-category-row:hover {
  background: rgba(16,118,225,.15);
  border-color: rgba(48,157,255,.35);
}

.iptv-category-row.active {
  background: linear-gradient(100deg,#064e9c,#087df1);
  border-color: #16b8ff;
  box-shadow: 0 0 17px rgba(0,132,255,.38);
  color: #fff;
}

.iptv-category-count {
  margin-left: auto;
  color: #c9e7ff;
  font-size: 15px;
  font-weight: 700;
}

/* Right content: mini-player above channel grid */

.iptv-live-content {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  grid-template-rows: minmax(0,43%) minmax(0,1fr) !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

.iptv-live-content:has(#livePlaybackPanel.hidden) {
  grid-template-rows: minmax(0,1fr) !important;
}

/* Mini-player controls */

.iptv-playback-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#livePlaybackPanel:not(.hidden) {
  display: flex !important;
  order: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.iptv-playback-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 34px;
  min-height: 34px;
}

.iptv-toolbar-btn {
  border: 1px solid #275783;
  border-radius: 8px;
  background: #10253e;
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.iptv-playback-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Video player */

.right-player-panel {
  background: #000;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

#livePlaybackPanel .right-player-panel {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

#livePlaybackPanel .player-stage {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  cursor: pointer !important;
}

.player-stage video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  background: #000;
}

#livePlaybackPanel .player-stage video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  cursor: pointer !important;
}

.player-placeholder {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

#livePlaybackPanel .epg-panel {
  display: block !important;
}

/* Channel grid below player */

.iptv-channel-grid {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 8px;
}

#liveBrowsePanel {
  order: 1 !important;
  display: block !important;
  flex: 1 1 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-top: 1px solid rgba(31,133,220,.3) !important;
  padding-top: 10px !important;
}

.iptv-channel-grid-inner {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  align-content: start;
  gap: 10px;
}

#liveBrowsePanel #liveChannelGrid {
  display: grid !important;
  grid-template-columns: repeat(6,minmax(0,1fr)) !important;
  align-content: start !important;
  gap: 10px !important;
}

.iptv-channel-card {
  min-width: 0;
  min-height: 112px;
  padding: 6px;
  border: 1px solid #245078;
  border-radius: 13px;
  background: linear-gradient(155deg,#101a2b,#030811 75%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  transition: transform .16s,border-color .16s,box-shadow .16s;
  overflow: hidden;
}

#liveBrowsePanel .iptv-channel-card {
  min-height: 112px !important;
  padding: 6px !important;
}

.iptv-channel-card:hover,
.iptv-channel-card:focus-visible {
  transform: translateY(-2px);
  border-color: #11aaff;
  box-shadow: 0 0 17px rgba(0,140,255,.28);
  outline: none;
}

.iptv-channel-card.active {
  border-color: #14baff;
  box-shadow: 0 0 18px rgba(0,143,255,.4);
}

.iptv-channel-logo {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg,#17263b,#050912);
}

#liveBrowsePanel .iptv-channel-logo {
  height: 68px !important;
}

.iptv-channel-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.iptv-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,#0d315a,#07101e);
  color: #65caff;
  font-size: clamp(18px,2vw,30px);
  font-weight: 900;
  letter-spacing: 1px;
}

.iptv-channel-label {
  display: -webkit-box;
  width: 100%;
  min-height: 26px;
  overflow: hidden;
  text-align: center;
  color: #f3f7ff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

#liveBrowsePanel .iptv-channel-label {
  font-size: 11px !important;
  min-height: 26px !important;
}

.iptv-grid-empty {
  grid-column: 1/-1;
  display: grid;
  place-items: center;
  min-height: 100px;
  color: #91a9c4;
  font-size: 17px;
  text-align: center;
}

/* Fullscreen video */

#livePlayerStage:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  background: #000 !important;
}

#livePlayerStage:fullscreen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Movies and Series */

.media-grid-container {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.media-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.poster-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
  gap: 16px;
  padding-right: 5px;
}

.poster-card {
  background: #0d111a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s,border-color .2s;
  display: flex;
  flex-direction: column;
}

.poster-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.poster-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: #181e2e;
  overflow: hidden;
}

.poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 42px;
}

.poster-info {
  padding: 10px 8px;
  text-align: center;
  background: #0d111a;
}

.poster-title {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cinema player */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cinema-player-shell {
  width: 92%;
  max-width: 1200px;
  background: #0d111a;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cinema-header {
  padding: 14px 20px;
  background: #181e2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.close-modal-btn {
  background: var(--accent);
  border: 0;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 13px;
}

.cinema-stage {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.cinema-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-agreement {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: #4a5568;
}

/* Scrollbars */

.iptv-live-screen .items-scroll-list::-webkit-scrollbar,
.iptv-category-list::-webkit-scrollbar,
.iptv-channel-grid::-webkit-scrollbar {
  width: 6px;
}

.iptv-live-screen .items-scroll-list::-webkit-scrollbar-thumb,
.iptv-category-list::-webkit-scrollbar-thumb,
.iptv-channel-grid::-webkit-scrollbar-thumb {
  background: #147fe0;
  border-radius: 8px;
}

/* Responsive desktop/tablet */

@media(max-width:1100px) {
  #liveBrowsePanel #liveChannelGrid {
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  }

  .iptv-live-layout {
    grid-template-columns: minmax(235px,31%) minmax(0,1fr) !important;
  }

  .iptv-channel-card {
    min-height: 125px;
  }

  .iptv-channel-logo {
    height: 78px;
  }
}

/* Mobile landscape */

@media(max-width:650px) {
  .app-container {
    padding: 10px;
  }

  .topbar {
    gap: 8px;
  }

  .meta-group {
    gap: 7px;
  }

  .date-time {
    font-size: 10px;
  }

  .brand {
    font-size: 20px;
  }

  .iptv-main-hub {
    grid-template-columns: 1fr;
  }

  .content-sections-modern {
    grid-template-columns: 1fr;
  }

  .sidebar-actions {
    flex-direction: row;
  }

  .workspace-screen {
    min-height: calc(100vh - 100px);
  }

  .split-workspace {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .left-list-panel {
    min-height: 190px;
    max-height: 260px;
  }

  .media-grid-header {
    flex-wrap: wrap;
  }

  .media-grid-header .search-input {
    width: 100% !important;
  }

  .poster-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .cinema-player-shell {
    width: 100%;
    border-radius: 0;
  }

  .field-group-row {
    flex-direction: column;
    gap: 0;
  }

  .iptv-live-topbar {
    height: 62px;
    flex-basis: 62px;
    grid-template-columns: 45px 145px minmax(0,1fr) 35px 25px;
    gap: 5px;
    padding: 0 8px;
  }

  .iptv-live-back {
    width: 40px;
    height: 42px;
    font-size: 32px;
  }

  .iptv-live-brand {
    font-size: 18px;
    gap: 5px;
  }

  .iptv-brand-mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
    border-width: 2px;
  }

  .iptv-live-brand small {
    font-size: 6px;
    letter-spacing: 1px;
  }

  .iptv-live-topbar h1 {
    font-size: clamp(12px,2.6vw,20px);
  }

  .iptv-top-icon {
    font-size: 26px;
  }

  .iptv-live-layout {
    height: calc(100% - 62px) !important;
    grid-template-columns: minmax(145px,31%) minmax(0,1fr) !important;
    gap: 8px !important;
    padding: 10px 8px !important;
  }

  .iptv-live-sidebar {
    padding-right: 7px;
  }

  .iptv-category-search {
    height: 42px;
    flex-basis: 42px;
    margin-bottom: 8px;
    padding: 0 8px;
    font-size: 11px;
  }

  .iptv-category-row {
    min-height: 42px;
    padding: 7px 6px;
    font-size: 11px;
    gap: 4px;
  }

  .iptv-category-count {
    font-size: 10px;
  }

  .iptv-live-content {
    grid-template-rows: minmax(0,40%) minmax(0,1fr) !important;
    gap: 7px !important;
  }

  #livePlaybackPanel .iptv-playback-toolbar {
    flex-basis: 28px !important;
    min-height: 28px !important;
  }

  #livePlaybackPanel .iptv-toolbar-btn {
    padding: 4px 6px !important;
    font-size: 9px !important;
  }

  #livePlaybackPanel .iptv-playback-title {
    font-size: 10px !important;
  }

  #liveBrowsePanel #liveChannelGrid {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 6px !important;
  }

  #liveBrowsePanel .iptv-channel-card {
    min-height: 82px !important;
    padding: 4px !important;
  }

  #liveBrowsePanel .iptv-channel-logo {
    height: 48px !important;
  }

  #liveBrowsePanel .iptv-channel-label {
    font-size: 8px !important;
    min-height: 20px !important;
  }
}

/* Portrait phones: ask user to rotate */
@media(max-width:950px) and (orientation:portrait) {
  .iptv-live-screen {
    display: none !important;
  }
}

/* Dashboard cinema background */

body:has(#dashboardScreen:not(.hidden)) {
  background: transparent !important;
  isolation: isolate !important;
}

/* Dashboard cinema background: frosted black glass (Change #59). The
   background picture itself (galaxy-background.jpg, the new gradient) is
   painted here at full strength under a plain 60% black layer, blurred
   for the frosted-glass look. The fine lines + sheen live on ::after so
   the blur cannot soften them. Dashboard-only via the :has condition. */

body:has(#dashboardScreen:not(.hidden))::before {
  z-index: -1 !important;
  background:
    linear-gradient(rgba(0,0,0,.60),rgba(0,0,0,.60)),
    var(--iptv365-global-bg) center center / cover no-repeat !important;
  filter: blur(12px) !important;
  transform: scale(1.06) !important;
}

body:has(#dashboardScreen:not(.hidden))::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  z-index: 0 !important;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 45%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px) !important;
  pointer-events: none !important;
}

body:has(#dashboardScreen:not(.hidden)) .app-container {
  position: relative !important;
  z-index: 1 !important;
}

/* IPTV365 Live TV: final single-player view (overrides earlier grid layout) */

.iptv-live-content {
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}

#liveBrowsePanel:not(.hidden) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
}

#livePlaybackPanel:not(.hidden) {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#livePlaybackPanel .right-player-panel {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  border-radius: 14px !important;
}

#livePlaybackPanel .player-stage {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  cursor: pointer !important;
}

#livePlaybackPanel .epg-panel {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 76px !important;
  max-height: 120px !important;
  overflow: auto !important;
  margin-top: 10px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(48,157,255,.25) !important;
  border-radius: 10px !important;
  background: rgba(9,24,43,.96) !important;
}

#liveBrowsePanel #liveChannelGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important;
  align-content: start !important;
  gap: 12px !important;
  overflow: auto !important;
}

#livePlayerStage:fullscreen,
#livePlayerStage:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
  background: #000 !important;
}

#livePlayerStage:fullscreen video,
#livePlayerStage:-webkit-full-screen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 950px) and (orientation: landscape) {
  .iptv-live-layout {
    grid-template-columns: minmax(145px, 29%) minmax(0, 1fr) !important;
  }

  #liveBrowsePanel #liveChannelGrid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
    gap: 7px !important;
  }
}

/* IPTV365 FIX: selected channel view with player first and honest EPG below */
#livePlaybackPanel:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#livePlaybackPanel .right-player-panel {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#livePlaybackPanel .player-stage {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 58vh !important;
  min-height: 150px !important;
}

#livePlaybackPanel .epg-panel,
#livePlaybackPanel .epg-panel[hidden] {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 76px !important;
  max-height: 120px !important;
  margin-top: 0 !important;
  padding: 12px 14px !important;
  overflow: auto !important;
  border: 1px solid rgba(48,157,255,.25) !important;
  border-radius: 10px !important;
  background: rgba(9,24,43,.96) !important;
}

#liveBrowsePanel.hidden { display: none !important; }
#livePlaybackPanel.hidden { display: none !important; }

@media (max-height: 560px) {
  #livePlaybackPanel .player-stage { max-height: 48vh !important; }
  #livePlaybackPanel .epg-panel { min-height: 62px !important; }
}

/* IPTV365: show channel list in the left sidebar while a channel is playing */
.iptv-sidebar-channel {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(117,165,214,.16) !important;
  border-radius: 10px !important;
  background: rgba(8,22,40,.68) !important;
  color: #f4f8ff !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}
.iptv-sidebar-channel:hover {
  background: rgba(12,75,130,.45) !important;
  border-color: rgba(48,157,255,.55) !important;
}
.iptv-sidebar-channel.active {
  background: linear-gradient(100deg,rgba(5,78,156,.92),rgba(8,125,241,.72)) !important;
  border-color: #16b8ff !important;
  box-shadow: 0 0 15px rgba(0,132,255,.24) !important;
}
.iptv-sidebar-channel-logo {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #102944 !important;
  color: #9fd8ff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
.iptv-sidebar-channel-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.iptv-sidebar-channel-name {
  min-width: 0 !important;
  overflow: hidden !important;
  color: inherit !important;
  font-size: clamp(12px,1.05vw,16px) !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
@media (max-width: 950px) and (orientation: landscape) {
  .iptv-sidebar-channel { min-height: 48px !important; gap: 8px !important; padding: 6px !important; }
  .iptv-sidebar-channel-logo { flex-basis: 32px !important; width: 32px !important; height: 32px !important; }
}


/* IPTV365 category selection: channel list on the left */
.iptv-live-sidebar .iptv-sidebar-channel {
  flex-shrink: 0 !important;
}
.iptv-live-sidebar .iptv-sidebar-channel-name {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.iptv-live-back {
  cursor: pointer !important;
}
.iptv-live-back[aria-label] {
  title: 'Back to categories';
}



/* IPTV365 FINAL NAVIGATION FIX:
   Category selected -> left channel list + right channel logo grid.
   Channel selected -> left same channel list + right player/EPG only.
*/
.iptv-live-content {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.iptv-live-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.iptv-live-sidebar .iptv-category-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#liveBrowsePanel:not(.hidden) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: auto !important;
  border: 0 !important;
  padding: 0 !important;
}

#liveBrowsePanel #liveChannelGrid {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important;
  align-content: start !important;
  gap: 12px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#livePlaybackPanel:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#livePlaybackPanel .right-player-panel {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#livePlaybackPanel .player-stage {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 58vh !important;
  min-height: 150px !important;
}

#livePlaybackPanel .epg-panel,
#livePlaybackPanel .epg-panel[hidden] {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 76px !important;
  max-height: 120px !important;
  margin-top: 0 !important;
  padding: 12px 14px !important;
  overflow: auto !important;
  border: 1px solid rgba(48,157,255,.25) !important;
  border-radius: 10px !important;
  background: rgba(9,24,43,.96) !important;
}

#liveBrowsePanel.hidden,
#livePlaybackPanel.hidden {
  display: none !important;
}

.iptv-sidebar-channel {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(117,165,214,.16) !important;
  border-radius: 10px !important;
  background: rgba(8,22,40,.68) !important;
  color: #f4f8ff !important;
  text-align: left !important;
  cursor: pointer !important;
}

.iptv-sidebar-channel:hover {
  background: rgba(12,75,130,.45) !important;
  border-color: rgba(48,157,255,.55) !important;
}

.iptv-sidebar-channel.active {
  background: linear-gradient(100deg,rgba(5,78,156,.92),rgba(8,125,241,.72)) !important;
  border-color: #16b8ff !important;
  box-shadow: 0 0 15px rgba(0,132,255,.24) !important;
}

.iptv-sidebar-channel-logo {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #102944 !important;
  color: #9fd8ff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.iptv-sidebar-channel-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.iptv-sidebar-channel-name {
  min-width: 0 !important;
  color: inherit !important;
  font-size: clamp(12px,1.05vw,16px) !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.iptv-live-back {
  cursor: pointer !important;
}

@media (max-width: 950px) and (orientation: landscape) {
  .iptv-sidebar-channel {
    min-height: 48px !important;
    gap: 8px !important;
    padding: 6px !important;
  }
  .iptv-sidebar-channel-logo {
    flex-basis: 32px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* IPTV365 Smarters-style three-stage Live TV navigation (final override). */
.iptv-live-layout {
  display: grid !important;
  grid-template-columns: minmax(250px, 29%) minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 18px !important;
  height: calc(100% - 88px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.iptv-live-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.iptv-live-content {
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
}
#liveBrowsePanel:not(.hidden) {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: auto !important;
}
#liveBrowsePanel #liveChannelGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
  align-content: start !important;
  gap: 12px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: auto !important;
}
#livePlaybackPanel:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: auto !important;
}
#livePlaybackPanel .right-player-panel {
  display: flex !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#livePlaybackPanel .player-stage {
  width: 100% !important;
  height: auto !important;
  min-height: 180px !important;
  max-height: 62vh !important;
  aspect-ratio: 16 / 9 !important;
}
#livePlaybackPanel .epg-panel {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-height: 140px !important;
  overflow: auto !important;
}
#liveBrowsePanel.hidden,
#livePlaybackPanel.hidden {
  display: none !important;
}
@media (max-width: 760px) {
  .iptv-live-layout {
    grid-template-columns: minmax(125px, 34%) minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 12px 10px !important;
  }
  .iptv-category-search { height: 44px; flex-basis: 44px; padding: 0 9px; font-size: 12px; }
  #liveBrowsePanel #liveChannelGrid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)) !important;
    gap: 8px !important;
  }
  .iptv-channel-card { min-height: 92px !important; }
  #livePlaybackPanel .player-stage { min-height: 130px !important; }
}


/* Stage 2: text-only channel names in the left sidebar. */
.iptv-sidebar-channel {
  justify-content: flex-start !important;
  gap: 0 !important;
  min-height: 54px !important;
  padding: 12px 16px !important;
}
.iptv-sidebar-channel-name {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  font-size: clamp(13px, 1.1vw, 16px) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.iptv-sidebar-channel-logo { display: none !important; }


/* FINAL FIX: Stage 2 left sidebar is strictly text-only. */
.live-channel-list-mode .iptv-live-sidebar img,
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-logo,
.live-channel-list-mode .iptv-live-sidebar .iptv-channel-logo,
.live-channel-list-mode .iptv-live-sidebar .iptv-logo-fallback {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  flex: 0 0 0 !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-height: 52px !important;
  padding: 11px 15px !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-name {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* Reference-style Stage 2 channel rows: number, logo, bold channel name. */
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel {
  display: grid !important;
  grid-template-columns: 34px 58px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 14px !important;
  min-height: 76px !important;
  padding: 9px 14px !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  background: rgba(255,255,255,.025) !important;
  border-radius: 9px !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-number {
  display: block !important;
  color: #dce7f5 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-logo {
  display: flex !important;
  width: 58px !important;
  height: 48px !important;
  flex: none !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,.08) !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.iptv-sidebar-logo-fallback {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: .5px !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-name {
  display: block !important;
  min-width: 0 !important;
  color: #f5f8ff !important;
  font-size: clamp(14px, 1.15vw, 18px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: .15px !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel.active {
  background: rgba(34,145,255,.16) !important;
  border-color: rgba(56,160,255,.5) !important;
  box-shadow: inset 3px 0 0 #299cff !important;
}
/* No channel artwork/logo is shown beneath or beside the mini-player. */
#livePlaybackPanel .epg-panel img,
#livePlaybackPanel .epg-panel .iptv-channel-logo,
#livePlaybackPanel .epg-panel .iptv-sidebar-channel-logo,
#livePlaybackPanel .right-player-panel .channel-logo,
#livePlaybackPanel .right-player-panel .iptv-channel-logo {
  display: none !important;
  visibility: hidden !important;
}
@media (max-width: 600px) {
  .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel {
    grid-template-columns: 26px 44px minmax(0,1fr) !important;
    column-gap: 9px !important;
    min-height: 62px !important;
    padding: 7px 9px !important;
  }
  .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-logo {
    width: 44px !important;
    height: 38px !important;
  }
  .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-number {
    font-size: 16px !important;
  }
  .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-name {
    font-size: 13px !important;
  }
}


/* IPTV365 FINAL approved Stage-2 channel list: number + country code + name only. */
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel {
  display: grid !important;
  grid-template-columns: 42px 42px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-height: 62px !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(142, 174, 230, .20) !important;
  border-radius: 0 !important;
  background: #071b55 !important;
  text-align: left !important;
  box-shadow: none !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel:hover {
  background: #10296b !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel.active {
  background: #153477 !important;
  box-shadow: inset 3px 0 0 #55b9ff !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-number {
  display: block !important; color: #f4f7ff !important;
  font-size: 17px !important; font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important; text-align: center !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-country {
  display: block !important; color: #dce8ff !important;
  font-size: 14px !important; font-weight: 800 !important;
  letter-spacing: .35px !important; white-space: nowrap !important;
}
.live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-name {
  display: block !important; min-width: 0 !important;
  color: #fff !important; font-size: clamp(14px, 1.05vw, 17px) !important;
  font-weight: 800 !important; line-height: 1.25 !important;
  letter-spacing: .2px !important; text-transform: uppercase !important;
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}
/* No channel logo, poster, or artwork anywhere in the right playback column. */
#livePlaybackPanel .epg-panel img,
#livePlaybackPanel .epg-panel picture,
#livePlaybackPanel .epg-panel .channel-logo,
#livePlaybackPanel .epg-panel .iptv-channel-logo,
#livePlaybackPanel .epg-panel .iptv-sidebar-channel-logo,
#livePlaybackPanel .right-player-panel img,
#livePlaybackPanel .right-player-panel picture,
#livePlaybackPanel .right-player-panel .channel-logo,
#livePlaybackPanel .right-player-panel .iptv-channel-logo {
  display: none !important; visibility: hidden !important;
  width: 0 !important; height: 0 !important;
}
@media (max-width: 600px) {
 .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel {
   grid-template-columns: 30px 34px minmax(0,1fr) !important;
   column-gap: 7px !important; min-height: 54px !important; padding: 8px 9px !important;
 }
 .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-number { font-size: 14px !important; }
 .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-country { font-size: 12px !important; }
 .live-channel-list-mode .iptv-live-sidebar .iptv-sidebar-channel-name { font-size: 13px !important; }
}

/* IPTV365 polished Stage-2 layout: native dark theme, left-aligned white rows,
   and a clean video-only right column while a channel is playing. */
.live-channel-list-mode .iptv-live-layout {
  align-items: stretch !important;
}
.live-channel-list-mode .iptv-live-sidebar,
.live-channel-list-mode #livePanelList,
.live-channel-list-mode .iptv-category-list {
  background: transparent !important;
  color: #f5f8ff !important;
}
.live-channel-list-mode #livePanelList {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel {
  display: grid !important;
  grid-template-columns: 38px 38px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: initial !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(150, 183, 235, .16) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f4f7ff !important;
  box-shadow: none !important;
  text-align: left !important;
  font: inherit !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel:hover {
  background: rgba(75, 145, 235, .12) !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel.active {
  background: rgba(49, 132, 231, .20) !important;
  box-shadow: inset 3px 0 0 #55b9ff !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-number {
  display: block !important;
  color: #e8f0ff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
  text-align: center !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-country {
  display: block !important;
  color: #c9dcff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-name {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(14px, 1.02vw, 17px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: .2px !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* The Stage-2 right column must contain the video only: no logo grid,
   channel title toolbar, guide card, poster, or artwork above/below it. */
.live-channel-list-mode #liveBrowsePanel,
.live-channel-list-mode #livePlaybackPanel .iptv-playback-toolbar,
.live-channel-list-mode #livePlaybackPanel .epg-panel,
.live-channel-list-mode #livePlaybackPanel .channel-logo,
.live-channel-list-mode #livePlaybackPanel .iptv-channel-logo,
.live-channel-list-mode #livePlaybackPanel .iptv-sidebar-channel-logo,
.live-channel-list-mode #livePlaybackPanel picture,
.live-channel-list-mode #livePlaybackPanel .poster,
.live-channel-list-mode #livePlaybackPanel .channel-artwork {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.live-channel-list-mode #livePlaybackPanel,
.live-channel-list-mode #livePlaybackPanel .right-player-panel {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.live-channel-list-mode #livePlaybackPanel .player-stage {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
@media (max-width: 700px) {
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel {
    grid-template-columns: 30px 32px minmax(0, 1fr) !important;
    gap: 7px !important;
    min-height: 48px !important;
    padding: 7px 8px !important;
  }
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel-name {
    font-size: 13px !important;
  }
}

/* IPTV365 final typography: yellow country code + clearly visible white channel name. */
.live-channel-list-mode #livePanelList .iptv-sidebar-channel {
  grid-template-columns: 38px 52px minmax(0, 1fr) !important;
  column-gap: 9px !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-country {
  color: #ffd447 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .55px !important;
  text-align: left !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-name {
  color: #ffffff !important;
  font-size: clamp(14px, 1.05vw, 17px) !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  letter-spacing: .25px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-align: left !important;
}
@media (max-width: 700px) {
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel {
    grid-template-columns: 30px 44px minmax(0, 1fr) !important;
    column-gap: 7px !important;
  }
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel-country {
    font-size: 12px !important;
  }
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel-name {
    font-size: 13px !important;
  }
}


/* IPTV365 strict Stage-2 country/title treatment:
   fixed yellow country code; full white title scrolls right-to-left only when needed. */
.live-channel-list-mode #livePanelList .iptv-sidebar-channel {
  grid-template-columns: 38px 46px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-country {
  display: block !important;
  min-width: 0 !important;
  color: #ffd447 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .45px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-align: left !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-name {
  display: block !important;
  position: relative !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: clamp(14px, 1.05vw, 17px) !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
  letter-spacing: .25px !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-marquee-track {
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  max-width: none !important;
  white-space: nowrap !important;
  transform: translateX(0);
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-marquee-text {
  display: inline-block !important;
  flex: 0 0 auto !important;
  padding-right: 42px !important;
  color: #ffffff !important;
  font: inherit !important;
  white-space: nowrap !important;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-name.is-overflowing
.iptv-sidebar-channel-marquee-track {
  animation: iptv365ChannelNameMarquee var(--iptv-marquee-duration, 18s) linear infinite !important;
  will-change: transform;
}
.live-channel-list-mode #livePanelList .iptv-sidebar-channel-name.is-overflowing:hover
.iptv-sidebar-channel-marquee-track {
  animation-play-state: paused !important;
}
@keyframes iptv365ChannelNameMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--iptv-marquee-distance, 240px))); }
}
@media (max-width: 700px) {
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel {
    grid-template-columns: 30px 40px minmax(0, 1fr) !important;
    column-gap: 7px !important;
  }
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel-country {
    font-size: 12px !important;
  }
  .live-channel-list-mode #livePanelList .iptv-sidebar-channel-name {
    font-size: 13px !important;
  }
}


/* ============================================================
   IPTV365 PREMIUM POST-LOGIN DASHBOARD ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â v1
   Recreates the supplied reference layout without changing player workspaces.
   ============================================================ */
body.iptv365-dashboard-mode {
  min-height:100vh !important;
  color:#f7f8ff !important;
  background:
    radial-gradient(ellipse at 23% 18%,rgba(160,0,255,.30),transparent 34%),
    radial-gradient(ellipse at 76% 26%,rgba(0,88,255,.25),transparent 33%),
    radial-gradient(ellipse at 49% 83%,rgba(120,0,255,.28),transparent 35%),
    radial-gradient(circle at 12% 18%,rgba(255,255,255,.8) 0 1px,transparent 1.5px),
    radial-gradient(circle at 82% 71%,rgba(120,160,255,.75) 0 1px,transparent 1.6px),
    linear-gradient(135deg,#020313 0%,#05001a 48%,#010414 100%) !important;
  background-size:auto,auto,auto,83px 79px,113px 97px,auto !important;
}
body.iptv365-dashboard-mode .app-container {
  width:100% !important; max-width:none !important; min-height:100vh !important;
  margin:0 !important; padding:clamp(20px,3.2vw,48px) clamp(18px,2.5vw,40px) 22px !important;
  display:flex !important; flex-direction:column !important; box-sizing:border-box !important;
}
body.iptv365-dashboard-mode #appHeader,
body.iptv365-dashboard-mode #iptv365GlobalNav,
body.iptv365-dashboard-mode .topbar { display:none !important; }
body.iptv365-dashboard-mode #dashboardScreen {
  display:flex !important; flex:1 1 auto !important; flex-direction:column !important;
  min-height:calc(100vh - 44px) !important; padding:0 !important; gap:0 !important;
}
body.iptv365-dashboard-mode #dashboardScreen .iptv365-pro-dashboard { display:flex; flex:1 1 auto; flex-direction:column; min-height:0; width:100%; }
.iptv365-pro-header { position:relative; display:flex; align-items:center; justify-content:center; min-height:105px; margin-bottom:clamp(22px,3.5vh,42px); }
.iptv365-pro-brand { position:relative; display:inline-flex; align-items:baseline; gap:0; color:#fff; font-size:clamp(42px,4.8vw,68px); line-height:1; font-weight:900; letter-spacing:-3px; text-shadow:0 0 28px rgba(112,115,255,.25); }
.iptv365-pro-brand strong { color:#f000c8; font-weight:950; }
.iptv365-pro-brand i { position:absolute; height:9px; left:3%; right:0; bottom:-18px; border-bottom:5px solid transparent; border-radius:50%; background:linear-gradient(90deg,#00d9ff,#7d45ff,#fa00d1) border-box; clip-path:polygon(0 0,100% 0,100% 65%,0 100%); }
.iptv365-pro-expiry { position:absolute; right:0; top:50%; transform:translateY(-50%); min-width:190px; padding:12px 18px; border:1px solid rgba(197,52,255,.85); border-right-color:rgba(0,185,255,.8); border-radius:18px; background:rgba(8,7,32,.72); box-shadow:0 0 24px rgba(125,0,255,.2),inset 0 0 22px rgba(40,60,180,.12); color:#e8eaff; text-align:center; font-size:14px; line-height:1.65; }
.iptv365-pro-expiry span { color:#cbd1f5; }
.iptv365-pro-expiry b,.iptv365-pro-expiry strong { color:#fff; }
.iptv365-pro-grid { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(230px,.82fr) minmax(360px,1.48fr); grid-template-rows:minmax(190px,1fr) minmax(190px,1fr); gap:16px; flex:1 1 auto; min-height:430px; max-height:560px; }
.iptv365-pro-live-slot { grid-column:1; grid-row:1 / span 2; min-width:0; min-height:0; }
.iptv365-pro-movies-slot { grid-column:2; grid-row:1; min-width:0; min-height:0; }
.iptv365-pro-series-slot { grid-column:2; grid-row:2; min-width:0; min-height:0; }
.iptv365-pro-tile { position:relative; display:flex; width:100%; height:100%; min-width:0; min-height:0; box-sizing:border-box; flex-direction:column; align-items:center; justify-content:center; gap:20px; padding:20px; overflow:hidden; border:2px solid rgba(193,73,255,.95); border-radius:27px; color:#fff; background:radial-gradient(ellipse at 20% 0%,rgba(0,140,255,.22),transparent 48%),radial-gradient(ellipse at 80% 100%,rgba(225,0,255,.18),transparent 48%),rgba(8,5,36,.78); box-shadow:0 0 8px rgba(0,207,255,.85),0 0 22px rgba(193,0,255,.55),inset 0 0 28px rgba(94,0,255,.22); cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.iptv365-pro-tile::before { content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit; background:linear-gradient(125deg,rgba(255,255,255,.10),transparent 32%,rgba(0,190,255,.07) 70%,transparent); }
.iptv365-pro-tile:hover { transform:translateY(-3px); border-color:#08dfff; box-shadow:0 0 12px #00cfff,0 0 32px rgba(204,0,255,.75),inset 0 0 34px rgba(80,0,255,.28); }
.iptv365-pro-tile.live { border-color:#12cfff; box-shadow:0 0 10px #00cfff,0 0 25px #e000ff,inset 0 0 38px rgba(0,95,255,.24); }
.iptv365-pro-tile-icon { font-family:Arial,sans-serif; font-size:clamp(56px,6.2vw,94px); line-height:1; color:#fff; text-shadow:0 0 14px #00cfff,0 0 28px #c000ff; }
.iptv365-pro-tile.live .iptv365-pro-tile-icon { font-size:clamp(82px,8vw,124px); background:linear-gradient(110deg,#f000cb,#00dcff); color:transparent; background-clip:text; -webkit-background-clip:text; }
.iptv365-pro-tile strong { position:relative; z-index:1; color:#fff; font-size:clamp(21px,2.2vw,34px); font-weight:850; text-shadow:0 2px 16px rgba(0,0,0,.8); }
.iptv365-pro-feature { position:relative; grid-column:3; grid-row:1; display:flex; min-width:0; flex-direction:column; justify-content:center; padding:clamp(20px,2.2vw,34px); overflow:hidden; border:2px solid #287bff; border-radius:27px; background:radial-gradient(ellipse at 74% 35%,rgba(255,103,16,.95),transparent 34%),radial-gradient(ellipse at 50% 100%,rgba(190,0,255,.35),transparent 58%),repeating-linear-gradient(130deg,transparent 0 25px,rgba(255,255,255,.07) 26px,transparent 28px),linear-gradient(110deg,rgba(4,25,80,.88),rgba(42,0,58,.82)); box-shadow:0 0 14px rgba(0,112,255,.7),0 0 25px rgba(192,0,255,.35),inset 0 0 35px rgba(0,0,0,.32); }
.iptv365-pro-kicker { color:#ffdf65; font-size:clamp(10px,.9vw,15px); font-weight:900; letter-spacing:2px; }
.iptv365-pro-feature h1 { margin:8px 0 5px; color:#fff; font-size:clamp(26px,3vw,45px); line-height:1.08; font-weight:900; text-shadow:0 2px 15px #000; }
.iptv365-pro-feature p { margin:0; color:#f0efff; font-size:clamp(12px,1.25vw,19px); }
.iptv365-pro-actions { grid-column:3; grid-row:2; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; min-width:0; min-height:0; }
.iptv365-pro-actions button { display:flex; min-width:0; flex-direction:column; align-items:center; justify-content:center; gap:12px; border:2px solid rgba(164,81,255,.95); border-radius:25px; color:#fff; background:radial-gradient(ellipse at 50% 0%,rgba(90,65,255,.24),transparent 65%),rgba(8,5,38,.84); box-shadow:0 0 9px rgba(0,175,255,.65),0 0 20px rgba(180,0,255,.45),inset 0 0 24px rgba(80,0,255,.2); cursor:pointer; transition:transform .18s ease,box-shadow .18s ease; }
.iptv365-pro-actions button:hover { transform:translateY(-3px); box-shadow:0 0 14px #00cfff,0 0 30px #d000ff; }
.iptv365-pro-actions button>span { position:relative; font-size:clamp(28px,3vw,48px); line-height:1; font-weight:700; }
.iptv365-pro-actions button>span small { position:absolute; right:-9px; bottom:-8px; font-size:14px; }
.iptv365-pro-actions button>b { font-size:clamp(11px,1.15vw,18px); line-height:1.15; text-align:center; }
.iptv365-pro-footer { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; margin-top:clamp(38px,7vh,78px); padding:18px 0 8px; border-top:2px solid transparent; border-image:linear-gradient(90deg,#00cfff,#9a31ff,#ec00e8,#00cfff) 1; color:#f1f1ff; font-size:clamp(11px,1.1vw,17px); }
.iptv365-pro-site { justify-self:start; white-space:nowrap; }
.iptv365-pro-slogan { justify-self:center; white-space:nowrap; }
.iptv365-pro-slogan b { margin-left:18px; font-weight:900; }
.iptv365-pro-contact { justify-self:end; white-space:nowrap; }
.iptv365-pro-contact i { display:inline-block; width:11px; height:11px; margin-right:8px; border-radius:50%; background:#00e879; box-shadow:0 0 10px #00e879; }
.iptv365-pro-counts { display:none !important; }
@media(max-width:950px) {
  body.iptv365-dashboard-mode .app-container { padding:18px !important; }
  .iptv365-pro-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:210px 145px 150px 110px; max-height:none; min-height:0; }
  .iptv365-pro-live-slot { grid-column:1 / 3; grid-row:1; }
  .iptv365-pro-movies-slot { grid-column:1; grid-row:2; }
  .iptv365-pro-series-slot { grid-column:2; grid-row:2; }
  .iptv365-pro-feature { grid-column:1 / 3; grid-row:3; }
  .iptv365-pro-actions { grid-column:1 / 3; grid-row:4; }
  .iptv365-pro-footer { grid-template-columns:1fr 1fr; }
  .iptv365-pro-slogan { grid-column:1 / 3; grid-row:1; }
  .iptv365-pro-site { grid-column:1; grid-row:2; }
  .iptv365-pro-contact { grid-column:2; grid-row:2; }
}
@media(max-width:560px) {
  .iptv365-pro-header { min-height:92px; margin-bottom:18px; }
  .iptv365-pro-brand { font-size:35px; }
  .iptv365-pro-expiry { min-width:0; max-width:38%; padding:7px; font-size:9px; }
  .iptv365-pro-grid { grid-template-rows:170px 115px 125px 100px; gap:10px; }
  .iptv365-pro-tile { gap:8px; padding:10px; border-radius:18px; }
  .iptv365-pro-tile-icon { font-size:42px; }
  .iptv365-pro-tile.live .iptv365-pro-tile-icon { font-size:60px; }
  .iptv365-pro-tile strong { font-size:19px; }
  .iptv365-pro-feature { padding:15px; border-radius:18px; }
  .iptv365-pro-feature h1 { font-size:25px; }
  .iptv365-pro-actions { gap:7px; }
  .iptv365-pro-actions button { gap:7px; border-radius:16px; }
  .iptv365-pro-actions button>span { font-size:25px; }
  .iptv365-pro-actions button>b { font-size:10px; }
  .iptv365-pro-footer { margin-top:24px; gap:8px; font-size:9px; }
  .iptv365-pro-contact { white-space:normal; text-align:right; }
}

/* IPTV365 FINAL VIEWPORT LOCK: both login and post-login dashboard are centered, no page scroll. */
html, body { width:100%; height:100%; }
body { overflow:hidden !important; }
body.iptv365-dashboard-mode { width:100vw !important; height:100dvh !important; min-height:0 !important; overflow:hidden !important; }
body.iptv365-dashboard-mode .app-container {
  width:100vw !important; height:100dvh !important; min-height:0 !important;
  max-width:none !important; margin:0 !important;
  padding:clamp(12px,2.2vh,24px) clamp(18px,2.5vw,40px) 12px !important;
  overflow:hidden !important;
}
body.iptv365-dashboard-mode #dashboardScreen {
  display:flex !important; width:100% !important; height:100% !important;
  min-height:0 !important; flex:1 1 auto !important; overflow:hidden !important;
}
body.iptv365-dashboard-mode #dashboardScreen .iptv365-pro-dashboard {
  display:flex !important; width:100% !important; height:100% !important;
  min-height:0 !important; flex:1 1 auto !important; flex-direction:column !important;
}
body.iptv365-dashboard-mode .iptv365-pro-header { min-height:clamp(64px,11vh,100px) !important; margin-bottom:clamp(10px,2vh,24px) !important; flex:0 0 auto !important; }
body.iptv365-dashboard-mode .iptv365-pro-grid {
  grid-template-rows:minmax(0,1fr) minmax(0,1fr) !important;
  min-height:0 !important; max-height:none !important; height:auto !important;
  flex:1 1 auto !important; gap:clamp(9px,1.2vw,16px) !important;
}
body.iptv365-dashboard-mode .iptv365-pro-footer {
  flex:0 0 auto !important; margin-top:clamp(12px,2.4vh,28px) !important;
  padding-top:clamp(9px,1.5vh,16px) !important; padding-bottom:4px !important;
}
@media (min-width:951px) {
  body.iptv365-dashboard-mode .iptv365-pro-grid { min-height:0 !important; }
}
@media (max-height:760px) and (min-width:951px) {
  body.iptv365-dashboard-mode .iptv365-pro-header { min-height:58px !important; margin-bottom:8px !important; }
  body.iptv365-dashboard-mode .iptv365-pro-brand { font-size:clamp(34px,4vw,54px) !important; }
  body.iptv365-dashboard-mode .iptv365-pro-footer { margin-top:9px !important; padding-top:8px !important; }
  body.iptv365-dashboard-mode .iptv365-pro-tile { gap:10px !important; padding:12px !important; }
}

/* ============================================================
   IPTV365 FINAL APPROVED DASHBOARD THEME
   Full-screen galaxy background remains visible through all cards.
   Cards are transparent with clean cyan / purple / pink neon outlines.
   No black card fill, glass, blur, decorative streaks or glow spill.
   Scoped only to the post-login dashboard. Login and player workspaces
   remain unchanged.
   ============================================================ */

body.iptv365-dashboard-mode,
body.iptv365-dashboard-mode .app-container,
body.iptv365-dashboard-mode #dashboardScreen,
body.iptv365-dashboard-mode #dashboardScreen .iptv365-pro-dashboard,
body.iptv365-dashboard-mode .iptv365-pro-header,
body.iptv365-dashboard-mode .iptv365-pro-grid,
body.iptv365-dashboard-mode .iptv365-pro-footer,
body.iptv365-dashboard-mode .iptv365-pro-live-slot,
body.iptv365-dashboard-mode .iptv365-pro-movies-slot,
body.iptv365-dashboard-mode .iptv365-pro-series-slot,
body.iptv365-dashboard-mode .iptv365-pro-actions {
  background-color: transparent !important;
  background-image: none !important;
}

body.iptv365-dashboard-mode .iptv365-pro-tile,
body.iptv365-dashboard-mode .iptv365-pro-tile.live,
body.iptv365-dashboard-mode .iptv365-pro-tile.movies,
body.iptv365-dashboard-mode .iptv365-pro-tile.series {
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(135deg, #08dfff 0%, #7655ff 50%, #ed16d5 100%) border-box !important;
  background-color: transparent !important;
  border: 2px solid transparent !important;
  border-radius: 27px !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .18s ease !important;
}

body.iptv365-dashboard-mode .iptv365-pro-tile::before,
body.iptv365-dashboard-mode .iptv365-pro-tile::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

body.iptv365-dashboard-mode .iptv365-pro-tile:hover,
body.iptv365-dashboard-mode .iptv365-pro-tile:focus-visible {
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(135deg, #08dfff 0%, #7655ff 50%, #ed16d5 100%) border-box !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}

body.iptv365-dashboard-mode .iptv365-pro-feature {
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(135deg, #08dfff 0%, #7655ff 50%, #ed16d5 100%) border-box !important;
  background-color: transparent !important;
  border: 2px solid transparent !important;
  border-radius: 27px !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transform: none !important;
}

body.iptv365-dashboard-mode .iptv365-pro-feature::before,
body.iptv365-dashboard-mode .iptv365-pro-feature::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

body.iptv365-dashboard-mode .iptv365-pro-actions button {
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(135deg, #08dfff 0%, #7655ff 50%, #ed16d5 100%) border-box !important;
  background-color: transparent !important;
  border: 2px solid transparent !important;
  border-radius: 25px !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .18s ease !important;
}

body.iptv365-dashboard-mode .iptv365-pro-actions button::before,
body.iptv365-dashboard-mode .iptv365-pro-actions button::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

body.iptv365-dashboard-mode .iptv365-pro-actions button:hover,
body.iptv365-dashboard-mode .iptv365-pro-actions button:focus-visible {
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(135deg, #08dfff 0%, #7655ff 50%, #ed16d5 100%) border-box !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}

body.iptv365-dashboard-mode .iptv365-pro-expiry {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 950px) {
  body.iptv365-dashboard-mode .iptv365-pro-tile,
  body.iptv365-dashboard-mode .iptv365-pro-feature,
  body.iptv365-dashboard-mode .iptv365-pro-actions button {
    border-radius: 20px !important;
  }
}


/* IPTV365 GALAXY DASHBOARD Ã¢â‚¬â€ FINAL OVERRIDE */
body.iptv365-dashboard-mode {
  background-color: #030313 !important;
  background-image: linear-gradient(rgba(2,3,22,.10),rgba(2,3,22,.10)),var(--iptv365-global-bg) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
body.iptv365-dashboard-mode .app-container,
body.iptv365-dashboard-mode #dashboardScreen,
body.iptv365-dashboard-mode #dashboardScreen .iptv365-pro-dashboard,
body.iptv365-dashboard-mode .iptv365-pro-header,
body.iptv365-dashboard-mode .iptv365-pro-grid,
body.iptv365-dashboard-mode .iptv365-pro-footer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.iptv365-dashboard-mode .iptv365-pro-tile,
body.iptv365-dashboard-mode .iptv365-pro-feature,
body.iptv365-dashboard-mode .iptv365-pro-actions button {
  background: linear-gradient(transparent,transparent) padding-box,
              linear-gradient(135deg,#08dfff 0%,#7655ff 52%,#ed16d5 100%) border-box !important;
  background-color: transparent !important;
  background-image: linear-gradient(transparent,transparent),linear-gradient(135deg,#08dfff 0%,#7655ff 52%,#ed16d5 100%) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  box-shadow: none !important;
  transform: none !important;
  border: 2px solid transparent !important;
  border-radius: 25px !important;
}
body.iptv365-dashboard-mode .iptv365-pro-tile::before,
body.iptv365-dashboard-mode .iptv365-pro-tile::after,
body.iptv365-dashboard-mode .iptv365-pro-feature::before,
body.iptv365-dashboard-mode .iptv365-pro-feature::after,
body.iptv365-dashboard-mode .iptv365-pro-actions button::before,
body.iptv365-dashboard-mode .iptv365-pro-actions button::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  filter: none !important;
}
body.iptv365-dashboard-mode .iptv365-pro-tile:hover,
body.iptv365-dashboard-mode .iptv365-pro-actions button:hover,
body.iptv365-dashboard-mode .iptv365-pro-tile:focus-visible,
body.iptv365-dashboard-mode .iptv365-pro-actions button:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  outline: none !important;
}
body.iptv365-dashboard-mode .iptv365-pro-tile *,
body.iptv365-dashboard-mode .iptv365-pro-feature *,
body.iptv365-dashboard-mode .iptv365-pro-actions button * {
  color: #fff !important;
  text-shadow: none !important;
}
body.iptv365-dashboard-mode .iptv365-pro-dashboard::before,
body.iptv365-dashboard-mode .iptv365-pro-dashboard::after,
body.iptv365-dashboard-mode .iptv365-pro-grid::before,
body.iptv365-dashboard-mode .iptv365-pro-grid::after {
  content: none !important;
  display: none !important;
}


/* ============================================================
   IPTV365 GALAXY BACKGROUND Ã¢â‚¬â€ LIVE TV + MOVIES/SERIES ONLY
   Dashboard is intentionally excluded. Cards, channel tiles,
   media panels and video players keep their own backgrounds.
   ============================================================ */

#liveWorkspaceScreen.iptv-live-screen {
  background-color: #080407 !important;
  background-image:
    linear-gradient(
      180deg,
      rgba(45, 8, 27, 0.40) 0%,
      rgba(24, 7, 16, 0.40) 45%,
      rgba(8, 4, 7, 0.40) 100%
    ),
    var(--iptv365-global-bg) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Movies background is now defined only in media-visual-fix.css. */


/* ===== Change #38 (user-approved): the shared global nav brand uses the
   new neon pill logo (assets/player365-fallback-logo.png). The !important
   sizing beats the img's inline 42x42 style so the wide pill is never
   squashed. This rule does not affect the nav's visibility. ===== */
#iptv365GlobalNav .iptv365-nav-brand img { height:40px !important; width:auto !important; max-width:none !important; object-fit:contain !important; }
