/* Plain CSS fallback for TV browsers that cannot parse Tailwind v4 layers,
   media-range queries, or OKLCH colors. */
html.sn-legacy-css,
html.sn-legacy-css body {
  min-height: 100%;
  background: #17181d;
}

html.sn-legacy-css body {
  margin: 0;
  overflow-x: hidden;
  color: #f4f5f7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

html.sn-legacy-css #app.marketing-home {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #17181d;
  color: #f4f5f7;
}

html.sn-legacy-css #app.marketing-home *,
html.sn-legacy-css #app.marketing-home *:before,
html.sn-legacy-css #app.marketing-home *:after {
  box-sizing: border-box;
}

html.sn-legacy-css #app.marketing-home a {
  color: inherit;
  text-decoration: none;
}

html.sn-legacy-css #app.marketing-home button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

html.sn-legacy-css #app.marketing-home [class~="hidden"] {
  display: none !important;
}

html.sn-legacy-css #app.marketing-home > .fixed.inset-0 {
  display: none !important;
}

html.sn-legacy-css #app.marketing-home > header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid #41464e;
  background: #24272d;
}

html.sn-legacy-css #app.marketing-home > header > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1280px;
  height: 80px;
  margin: 0 auto;
  padding: 0 24px;
}

html.sn-legacy-css #app.marketing-home header a[aria-label="SmartNet ana sayfa"] {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
}

html.sn-legacy-css #app.marketing-home .brand-mark {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
}

html.sn-legacy-css #app.marketing-home .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.sn-legacy-css #app.marketing-home header a[aria-label="SmartNet ana sayfa"] > span:last-child {
  color: #f4f5f7;
}

html.sn-legacy-css #app.marketing-home header a[aria-label="SmartNet ana sayfa"] > span:last-child > span {
  color: #74bcff;
}

html.sn-legacy-css #app.marketing-home header nav[aria-label="Ana menü"] {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 18px;
  min-width: 0;
  color: #d5d8df;
  font-size: 14px;
  white-space: nowrap;
}

html.sn-legacy-css #app.marketing-home header > div:first-child > div:last-child {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

html.sn-legacy-css #app.marketing-home header > div:first-child > div:last-child > button,
html.sn-legacy-css #app.marketing-home header > div:first-child > div:last-child > a {
  display: none;
}

html.sn-legacy-css #app.marketing-home #mobile-menu-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #41464e;
  border-radius: 12px;
  background: #30343c;
  color: #fff;
}

html.sn-legacy-css #app.marketing-home #mobile-menu {
  display: none !important;
  padding: 18px 24px 22px;
  border-top: 1px solid #41464e;
  background: #202329;
}

html.sn-legacy-css #app.marketing-home #mobile-menu:not(.hidden) {
  display: block !important;
}

html.sn-legacy-css #app.marketing-home #mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #e2e5eb;
}

html.sn-legacy-css #app.marketing-home #mobile-menu nav a {
  display: block;
  padding: 5px 0;
}

html.sn-legacy-css #app.marketing-home main {
  display: block;
  width: 100%;
  overflow: hidden;
}

html.sn-legacy-css #app.marketing-home main > section {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

html.sn-legacy-css #app.marketing-home main > section:first-child {
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}

html.sn-legacy-css #app.marketing-home main > section:first-child > span:first-child {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 15px;
  border: 1px solid #385f8d;
  border-radius: 20px;
  background: #202b3b;
  color: #83c4ff;
  font-size: 13px;
  font-weight: 700;
}

html.sn-legacy-css #app.marketing-home h1,
html.sn-legacy-css #app.marketing-home h2,
html.sn-legacy-css #app.marketing-home h3,
html.sn-legacy-css #app.marketing-home h4,
html.sn-legacy-css #app.marketing-home p {
  margin-top: 0;
}

html.sn-legacy-css #app.marketing-home h1 {
  margin-bottom: 20px;
  color: #f4f5f7;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.16;
}

html.sn-legacy-css #app.marketing-home h1 span:last-child {
  color: #74bcff;
}

html.sn-legacy-css #app.marketing-home main > section:first-child > p {
  max-width: 790px;
  margin: 0 auto 30px;
  color: #b8c0ce;
  font-size: 19px;
  line-height: 1.6;
}

html.sn-legacy-css #app.marketing-home main > section:first-child > div:first-of-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 42px;
}

html.sn-legacy-css #app.marketing-home main > section:first-child > div:first-of-type > a,
html.sn-legacy-css #app.marketing-home main > section:first-child > div:first-of-type > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #41464e;
  border-radius: 12px;
  background: #25282e;
  color: #f4f5f7;
  font-size: 16px;
  font-weight: 700;
}

html.sn-legacy-css #app.marketing-home main > section:first-child > div:first-of-type > a:first-child {
  border-color: #328ef0;
  background: linear-gradient(110deg, #328ef0, #328ef0 55%, #f88349);
}

html.sn-legacy-css #app.marketing-home #downloader-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid #41464e;
  border-radius: 18px;
  background: #202329;
  text-align: left;
}

html.sn-legacy-css #app.marketing-home #downloader-section > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

html.sn-legacy-css #app.marketing-home #downloader-section h4 {
  margin-bottom: 7px;
  color: #f4f5f7;
  font-size: 17px;
}

html.sn-legacy-css #app.marketing-home #downloader-section p {
  margin-bottom: 0;
  color: #b8c0ce;
  font-size: 14px;
  line-height: 1.5;
}

html.sn-legacy-css #app.marketing-home #downloaderCode {
  color: #74bcff;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

html.sn-legacy-css #app.marketing-home #demo-preview,
html.sn-legacy-css #app.marketing-home #platformlar,
html.sn-legacy-css #app.marketing-home #lisanslar,
html.sn-legacy-css #app.marketing-home #ozellikler,
html.sn-legacy-css #app.marketing-home #m3u-tester,
html.sn-legacy-css #app.marketing-home #kurulum,
html.sn-legacy-css #app.marketing-home #sss {
  padding-top: 48px;
  padding-bottom: 48px;
}

html.sn-legacy-css #app.marketing-home main > section h2 {
  color: #f4f5f7;
  font-size: 30px;
  line-height: 1.25;
}

html.sn-legacy-css #app.marketing-home #sss {
  max-width: 896px;
}

html.sn-legacy-css #app.marketing-home #sss h2 {
  margin-bottom: 28px;
  text-align: center;
}

html.sn-legacy-css #app.marketing-home #sss > div {
  display: block;
  width: 100%;
}

html.sn-legacy-css #app.marketing-home #sss > div > div {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #41464e;
  border-radius: 12px;
  background: #202329;
}

html.sn-legacy-css #app.marketing-home #sss > div > div > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 18px 22px;
  border: 0;
  background: #25282e;
  color: #f4f5f7;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}

html.sn-legacy-css #app.marketing-home #sss > div > div > button > span {
  flex: 1 1 auto;
  padding-right: 18px;
}

html.sn-legacy-css #app.marketing-home #sss > div > div > button > i {
  flex: 0 0 auto;
  color: #83c4ff;
}

html.sn-legacy-css #app.marketing-home #sss [id^="acc-content-"]:not(.hidden) {
  display: block;
  padding: 16px 22px 20px;
  border-top: 1px solid #41464e;
  color: #b8c0ce;
  font-size: 15px;
  line-height: 1.6;
}

html.sn-legacy-css #app.marketing-home main > section p {
  color: #b8c0ce;
}

html.sn-legacy-css #app.marketing-home main > section [class~="grid"] {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

html.sn-legacy-css #app.marketing-home main > section [class~="grid"] > div {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 1px solid #41464e;
  border-radius: 16px;
  background: #202329;
}

html.sn-legacy-css #app.marketing-home [class~="w-12"] {
  width: 48px;
  max-width: 48px;
  flex: 0 0 48px;
}

html.sn-legacy-css #app.marketing-home [class~="h-12"] {
  height: 48px;
  max-height: 48px;
}

html.sn-legacy-css #app.marketing-home [class~="w-20"] {
  width: 80px;
  max-width: 80px;
  flex: 0 0 80px;
}

html.sn-legacy-css #app.marketing-home [class~="h-20"] {
  height: 80px;
  max-height: 80px;
}

html.sn-legacy-css #app.marketing-home #platformlar .grid > div > div:first-child > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 22px;
}

html.sn-legacy-css #app.marketing-home .demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

html.sn-legacy-css #app.marketing-home #demo-preview > div:first-child {
  margin-bottom: 30px;
  text-align: center;
}

html.sn-legacy-css #app.marketing-home #demo-preview > div:first-child h2 {
  margin-bottom: 10px;
}

html.sn-legacy-css #app.marketing-home #demo-preview > div:nth-child(2) {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #41464e;
  border-radius: 20px;
  background: #202329;
}

html.sn-legacy-css #app.marketing-home #tab-content-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border: 1px solid #343942;
  border-radius: 14px;
  background: #111318;
  text-align: center;
}

html.sn-legacy-css #app.marketing-home #tab-content-area > div:first-child {
  display: none !important;
}

html.sn-legacy-css #app.marketing-home #tab-content-area > div:last-child {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}

html.sn-legacy-css #app.marketing-home #tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border: 1px solid #385f8d;
  border-radius: 18px;
  background: #202b3b;
  color: #83c4ff;
  font-size: 36px;
}

html.sn-legacy-css #app.marketing-home #tab-title {
  margin-bottom: 10px;
  color: #f4f5f7;
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
}

html.sn-legacy-css #app.marketing-home #tab-desc {
  max-width: 540px;
  margin: 0 auto 22px;
  color: #b8c0ce;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

html.sn-legacy-css #app.marketing-home #tab-content-area button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin: 0 auto;
  padding: 12px 20px;
  border: 1px solid #328ef0;
  border-radius: 12px;
  background: linear-gradient(110deg, #328ef0, #328ef0 55%, #f88349);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

html.sn-legacy-css #app.marketing-home .demo-tabs button[aria-selected="true"] {
  border-color: #74bcff;
  background: linear-gradient(110deg, #328ef0, #328ef0 55%, #f88349);
  color: #fff;
}

html.sn-legacy-css #app.marketing-home .demo-tabs button,
html.sn-legacy-css #app.marketing-home main > section [class~="grid"] a {
  border: 1px solid #41658a;
  border-radius: 10px;
  background: #25282e;
  color: #f4f5f7;
}

html.sn-legacy-css #app.marketing-home main > section [class~="grid"] a[download],
html.sn-legacy-css #app.marketing-home #lisanslar a[href="/activate"] {
  background: linear-gradient(110deg, #328ef0, #328ef0 55%, #f88349);
}

html.sn-legacy-css #app.marketing-home footer {
  padding: 32px 24px;
  border-top: 1px solid #41464e;
  background: #202329;
  color: #d5d8df;
}

html.sn-legacy-css #app.marketing-home footer > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  color: #b8c0ce;
  font-size: 14px;
}

html.sn-legacy-css #app.marketing-home footer > div > a:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e5eb;
  font-weight: 700;
}

html.sn-legacy-css #app.marketing-home .footer-brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

html.sn-legacy-css #app.marketing-home footer > div > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

html.sn-legacy-css #app.marketing-home footer > div > p {
  margin: 0;
}

html.sn-legacy-css #app.marketing-home footer > div > div:last-child {
  display: block;
  text-align: center;
  line-height: 2.2;
}

html.sn-legacy-css #app.marketing-home footer > div > div:last-child > a {
  display: inline-block;
  margin: 0 10px 4px 0;
  white-space: nowrap;
  color: #d5d8df;
}

/* Keep the header usable even when the browser supports layers but not
   Tailwind's newer range-query syntax. */
#app.marketing-home > header nav[aria-label="Ana menü"] {
  display: none;
}

#app.marketing-home > header #mobile-menu-toggle {
  display: flex;
}

#app.marketing-home > header #mobile-menu {
  display: none;
}

#app.marketing-home > header #mobile-menu:not(.hidden) {
  display: block;
}

@media screen and (min-width: 1200px) {
  #app.marketing-home > header nav[aria-label="Ana menü"] {
    display: flex;
  }

  #app.marketing-home > header #mobile-menu-toggle,
  #app.marketing-home > header #mobile-menu {
    display: none;
  }

  #app.marketing-home > header > div:first-child > div:last-child > button,
  #app.marketing-home > header > div:first-child > div:last-child > a {
    display: inline-flex;
  }
}

@media screen and (max-width: 700px) {
  html.sn-legacy-css #app.marketing-home > header > div:first-child {
    height: 68px;
    padding: 0 16px;
  }

  html.sn-legacy-css #app.marketing-home header a[aria-label="SmartNet ana sayfa"] {
    font-size: 19px;
  }

  html.sn-legacy-css #app.marketing-home main > section {
    padding-right: 18px;
    padding-left: 18px;
  }

  html.sn-legacy-css #app.marketing-home main > section:first-child {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  html.sn-legacy-css #app.marketing-home h1 {
    font-size: 34px;
  }

  html.sn-legacy-css #app.marketing-home main > section:first-child > p {
    font-size: 16px;
  }

  html.sn-legacy-css #app.marketing-home main > section:first-child > div:first-of-type {
    flex-direction: column;
    align-items: stretch;
  }

  html.sn-legacy-css #app.marketing-home main > section:first-child > div:first-of-type > a,
  html.sn-legacy-css #app.marketing-home main > section:first-child > div:first-of-type > button {
    width: 100%;
  }

  html.sn-legacy-css #app.marketing-home #downloader-section {
    align-items: stretch;
    flex-direction: column;
  }

  html.sn-legacy-css #app.marketing-home #demo-preview > div:nth-child(2) {
    padding: 8px;
  }

  html.sn-legacy-css #app.marketing-home #tab-content-area {
    height: 360px;
  }

  html.sn-legacy-css #app.marketing-home #tab-content-area > div:last-child {
    padding: 18px;
  }

  html.sn-legacy-css #app.marketing-home #tab-title {
    font-size: 22px;
  }

  html.sn-legacy-css #app.marketing-home #downloader-section > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  html.sn-legacy-css #app.marketing-home footer > div {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media screen and (min-width: 1200px) {
  html.sn-legacy-css #app.marketing-home header nav[aria-label="Ana menü"] {
    display: flex !important;
  }

  html.sn-legacy-css #app.marketing-home #mobile-menu-toggle,
  html.sn-legacy-css #app.marketing-home #mobile-menu {
    display: none !important;
  }
}

/* ---------- Smart TV 2026 UI ---------- */

.smart-tv-app.stv {
  --stv-text: #f5f8fc;
  --stv-muted: #98a4b5;
  --stv-line: rgba(148, 163, 184, .16);
  --stv-grad-text: linear-gradient(100deg, #6fcaff 0%, #9b8bff 55%, #f88349 100%);
  --stv-grad-btn: linear-gradient(135deg, #4aa8ff 0%, #3d7bf5 38%, #7b63f6 66%, #f88349 100%);
  box-sizing: border-box;
  height: 100vh;
  min-height: 0;
  padding: 22px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  color: var(--stv-text);
  background:
    radial-gradient(1000px 560px at 84% -12%, rgba(78, 120, 255, .2), transparent 60%),
    radial-gradient(800px 520px at 2% 112%, rgba(248, 131, 73, .12), transparent 62%),
    radial-gradient(760px 460px at 52% 118%, rgba(123, 99, 246, .12), transparent 65%),
    #0c0f16;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

.smart-tv-app.stv *,
.smart-tv-app.stv *::before,
.smart-tv-app.stv *::after {
  box-sizing: border-box;
}

.smart-tv-app.stv button,
.smart-tv-app.stv input {
  font: inherit;
}

.smart-tv-app.stv button {
  cursor: pointer;
}

.smart-tv-app.stv :is(button, a, input):focus {
  outline: 3px solid rgba(111, 202, 255, .9);
  outline-offset: 3px;
}

.stv-rail {
  min-height: 0;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--stv-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 30, 40, .94), rgba(15, 18, 25, .96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .04);
}

.stv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.stv-brand img {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(50, 142, 240, .35));
}

.stv-brand b,
.stv-brand i {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.6px;
}

.stv-brand b {
  color: #fff;
}

.stv-brand i {
  font-style: normal;
  background: var(--stv-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stv-brand small {
  display: block;
  margin-top: 5px;
  color: #8b96a6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  white-space: nowrap;
}

.stv-caption {
  margin: 4px 8px -6px;
  color: #7f8a9c;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.stv-nav {
  display: grid;
  gap: 6px;
}

.stv-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #c5cedb;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}

.stv-nav button span {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  place-items: center;
  color: #8d9aab;
  font-size: 15px;
}

.stv-nav button:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.stv-nav button.active {
  border-color: rgba(255, 255, 255, .16);
  background: var(--stv-grad-btn);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(50, 142, 240, .24);
}

.stv-nav button.active span {
  color: #fff;
}

.stv-rail-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--stv-line);
}

.stv-rail-bottom a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: #aab6c8;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.stv-rail-bottom a:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.stv-rail-bottom a b {
  color: #7fc6ff;
}

.stv-mode {
  margin-top: 6px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--stv-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}

.stv-mode > i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57d8a8;
  box-shadow: 0 0 12px rgba(87, 216, 168, .7);
}

.stv-mode b {
  display: block;
  color: #e8eef7;
  font-size: 12.5px;
  font-weight: 750;
}

.stv-mode small {
  display: block;
  margin-top: 3px;
  color: #8b96a6;
  font-size: 10.5px;
}

.stv-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stv-head {
  flex: 0 0 auto;
  padding: 4px 2px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.stv-eyebrow {
  display: block;
  color: #6fcaff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2px;
}

.stv-head h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(36px, 3vw, 50px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1.6px;
}

.stv-head h1 em {
  font-style: normal;
  background: var(--stv-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stv-head p {
  margin: 9px 0 0;
  color: var(--stv-muted);
  font-size: 13.5px;
}

.stv-head-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stv-clock {
  min-width: 104px;
  padding: 11px 16px;
  border: 1px solid var(--stv-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .6px;
  text-align: center;
}

.stv-secondary,
.stv-primary {
  border-radius: 14px;
  font-weight: 800;
}

.stv-secondary {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--stv-line);
  background: rgba(255, 255, 255, .04);
  color: #dfe7f2;
  font-size: 13.5px;
}

.stv-secondary span {
  margin-right: 6px;
  color: #7fc6ff;
}

.stv-secondary:hover {
  background: rgba(255, 255, 255, .07);
}

.stv-primary {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  background: var(--stv-grad-btn);
  box-shadow: 0 16px 32px rgba(50, 142, 240, .25);
}

.stv-primary span {
  margin-left: 4px;
}

.stv-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 16px;
}

.stv-video-card,
.stv-card {
  position: relative;
  border: 1px solid var(--stv-line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(27, 31, 41, .94), rgba(16, 19, 26, .97));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.stv-video-card::before,
.stv-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 20px auto;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(111, 202, 255, .55), rgba(123, 99, 246, .28) 46%, rgba(248, 131, 73, .55));
  opacity: .8;
}

.stv-video-card {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.stv-card-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stv-card-head h2 {
  margin: 6px 0 4px;
  color: #fff;
  font-size: 25px;
  letter-spacing: -.7px;
}

.stv-card-head p {
  margin: 0;
  color: var(--stv-muted);
  font-size: 13px;
}

.stv-live-badge {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(87, 216, 168, .28);
  border-radius: 999px;
  background: rgba(87, 216, 168, .07);
  color: #a8f4d3;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.stv-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57d8a8;
  box-shadow: 0 0 10px rgba(87, 216, 168, .8);
}

.stv-video-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

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

.stv-video-card.is-idle .stv-video-stage {
  display: none;
}

.stv-video-card:not(.is-idle) .stv-browse {
  display: none;
}

.stv-video-card.is-idle .stv-close {
  display: none;
}

.stv-card-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stv-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--stv-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .05);
  color: #c8d2e1;
  font-size: 13px;
}

.stv-close:hover {
  border-color: rgba(248, 131, 73, .3);
  background: rgba(248, 131, 73, .16);
  color: #ffc1a1;
}

.stv-browse {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.stv-browse-grid {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  grid-auto-rows: 106px;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
}

.stv-browse-grid::-webkit-scrollbar {
  width: 8px;
}

.stv-browse-grid::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #3a4150 padding-box;
}

.stv-tile {
  position: relative;
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  background:
    radial-gradient(150px 100px at 18% 0%, rgba(61, 154, 245, .18), transparent 72%),
    linear-gradient(155deg, rgba(36, 43, 57, .9), rgba(15, 18, 25, .96));
  color: #fff;
  text-align: left;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}

.stv-tile:hover,
.stv-tile:focus {
  border-color: rgba(111, 202, 255, .42);
  transform: translateY(-1px);
}

.stv-tile img,
.stv-tile-logo {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  color: #cdd8e7;
  font-size: 12px;
  font-weight: 850;
}

.stv-tile b {
  position: relative;
  z-index: 1;
  color: #eef3fa;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stv-tile small {
  position: relative;
  z-index: 1;
  color: #8b96a6;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stv-tile em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  opacity: 0;
  transition: opacity .15s ease;
}

.stv-tile:hover em,
.stv-tile:focus em {
  opacity: 1;
}

.stv-tile.active {
  border-color: rgba(111, 202, 255, .5);
  background:
    radial-gradient(150px 100px at 18% 0%, rgba(61, 154, 245, .3), transparent 72%),
    linear-gradient(155deg, rgba(30, 58, 96, .9), rgba(15, 18, 25, .96));
}

.stv-browse-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 40px 24px;
  border: 1px dashed rgba(148, 163, 184, .25);
  border-radius: 16px;
  text-align: center;
}

.stv-browse-empty span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: var(--stv-grad-btn);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 14px 30px rgba(50, 142, 240, .3);
}

.stv-browse-empty b {
  color: #eef3fa;
  font-size: 15px;
}

.stv-browse-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--stv-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.stv-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stv-card {
  padding: 18px;
}

.stv-code-card {
  flex: 0 0 auto;
}

.stv-card h2 {
  margin: 7px 0 5px;
  color: #fff;
  font-size: 22px;
  letter-spacing: -.5px;
}

.stv-code-card p {
  margin: 0;
  color: var(--stv-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.stv-code-card label {
  display: block;
  margin-top: 14px;
  color: #c8d2e1;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 1.2px;
}

.stv-code-card input,
.stv-library-card > input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--stv-line);
  border-radius: 13px;
  background: #0e1219;
  color: #f5f8fc;
  font-size: 16px;
  font-weight: 700;
}

.stv-code-card input {
  margin-top: 8px;
  letter-spacing: .6px;
}

.stv-link {
  display: inline-block;
  margin-top: 12px;
  color: #7fc6ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.stv-library-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.stv-library-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stv-library-head h2 {
  margin: 6px 0 0;
  font-size: 19px;
}

.stv-library-card > input {
  flex: 0 0 auto;
  height: 46px;
  margin-top: 12px;
  font-size: 14px;
}

.stv-library-card #channel-list {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  padding-right: 4px;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow-y: auto;
}

.stv-library-card #channel-list::-webkit-scrollbar {
  width: 8px;
}

.stv-library-card #channel-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #3a4150 padding-box;
}

.stv .channel-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: #e8eef7;
  text-align: left;
}

.stv .channel-row:hover,
.stv .channel-row:focus {
  border-color: rgba(111, 202, 255, .3);
  background: rgba(93, 185, 255, .1);
}

.stv .channel-row.active {
  border-color: rgba(111, 202, 255, .45);
  background: linear-gradient(90deg, rgba(61, 154, 245, .2), rgba(123, 99, 246, .12));
}

.stv .channel-row > div {
  min-width: 0;
}

.stv .channel-row b {
  display: block;
  color: #eef3fa;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stv .channel-meta {
  margin-top: 2px;
  color: #8b96a6;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stv .logo-sm {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  color: #aab6c8;
  font-size: 12px;
  font-weight: 850;
}

.stv .channel-favorite {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 8px;
  color: #7f8b9c;
  font-size: 16px;
}

.stv .channel-favorite.active {
  color: #f8c25c;
}

.stv .channel-empty {
  padding: 18px 12px;
  border: 1px dashed rgba(148, 163, 184, .25);
  border-radius: 12px;
  color: #8b96a6;
  font-size: 12.5px;
  text-align: center;
}

.stv #player-message {
  flex: 0 0 auto;
}

.stv #player-message:empty {
  display: none;
}

.stv #player-message .notice {
  border: 1px solid rgba(111, 202, 255, .28);
  border-radius: 12px;
  background: rgba(50, 142, 240, .12);
  color: #d8ecff;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.stv #player-message .notice.error {
  border-color: rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .12);
  color: #ffd9d9;
}

.stv #player-message .notice a {
  color: #9bd4ff;
  font-weight: 700;
}

@media (max-width: 1500px) {
  .smart-tv-app.stv {
    padding: 16px;
    grid-template-columns: 226px minmax(0, 1fr);
    gap: 14px;
  }

  .stv-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 12px;
  }

  .stv-nav button {
    min-height: 45px;
    font-size: 13.5px;
  }

  .stv-head h1 {
    font-size: 38px;
  }

  .stv-card-head h2 {
    font-size: 22px;
  }

  .stv-video-card,
  .stv-card {
    padding: 15px;
  }
}

@media (max-width: 1180px) {
  .smart-tv-app.stv {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .stv-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .stv-brand small {
    display: none;
  }

  .stv-nav button {
    min-height: 41px;
    padding: 0 10px;
    gap: 8px;
    font-size: 12.5px;
  }

  .stv-nav button span {
    width: 20px;
  }

  .stv-head h1 {
    font-size: 32px;
  }

  .stv-clock {
    min-width: 86px;
    font-size: 18px;
  }

  .stv-secondary {
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-height: 800px) {
  .smart-tv-app.stv {
    padding: 14px;
    gap: 12px;
  }

  .stv-rail {
    padding: 14px 12px;
  }

  .stv-brand img {
    width: 42px;
    height: 42px;
  }

  .stv-brand b,
  .stv-brand i {
    font-size: 17px;
  }

  .stv-caption {
    margin-top: 0;
  }

  .stv-nav button {
    min-height: 40px;
    font-size: 12.5px;
  }

  .stv-head h1 {
    font-size: 30px;
  }

  .stv-head p {
    margin-top: 5px;
    font-size: 12px;
  }

  .stv-clock {
    padding: 8px 12px;
    font-size: 17px;
  }

  .stv-code-card {
    padding: 14px;
  }

  .stv-code-card h2 {
    font-size: 18px;
  }

  .stv-code-card p {
    display: none;
  }

  .stv-primary {
    min-height: 48px;
    margin-top: 10px;
  }

  .stv-video-card,
  .stv-card {
    padding: 14px;
  }

  .stv-card-head h2 {
    font-size: 20px;
  }

  .stv-card-head p {
    font-size: 12px;
  }
}
