/*
 * Basic presentation for older Smart TV browsers.
 * This file intentionally uses plain CSS, hex colors, flexbox, and no
 * color-mix/oklch/backdrop-filter. The main stylesheet loads after it and
 * keeps the existing presentation in modern browsers.
 */
html {
  min-height: 100%;
  background: #14233f;
  color: #f8fafc;
  direction: rtl;
}

body {
  min-height: 100%;
  margin: 0;
  background: #14233f;
  color: #f8fafc;
  font-family: Arial, Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.cinema-bg {
  min-height: 100vh;
  background-color: #14233f;
  background-image: linear-gradient(180deg, #14233f 0%, #203656 100%);
  color: #f8fafc;
}

.tv-page-background {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}

.tv-page-background > img {
  width: 100%;
  height: 100%;
  opacity: 0.38;
  object-fit: cover;
}

.tv-page-background::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(20, 35, 63, 0.84), rgba(20, 35, 63, 0.94));
}

.tv-page-content {
  position: relative;
  z-index: 1;
}

/* Decorative hero scenes rely on masks; omit them when masks are unavailable. */
.hero-vision {
  display: none;
}

.tv-hero {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 24px 16px 16px;
  overflow: hidden;
  text-align: center;
}

.tv-logo {
  width: 144px;
  height: 144px;
  margin: 0 auto;
  object-fit: contain;
}

.tv-title {
  margin: 12px 0 0;
  color: #f8fafc;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
}

.tv-title-accent,
.tv-gold-text {
  color: #e8c96e;
}

.tv-description {
  max-width: 672px;
  margin: 12px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #203656;
  color: #d7deea;
  font-size: 16px;
  line-height: 1.8;
}

.tv-classifications {
  display: inline-block;
  margin: 12px auto 0;
  padding: 7px 18px;
  border: 1px solid #a88e48;
  border-radius: 24px;
  background: #203656;
  color: #e8c96e;
  font-weight: 700;
}

.tv-primary-link,
.tv-contact-link {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid #c7a950;
  border-radius: 16px;
  background: #203656;
  color: #f1d778 !important;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
}

.tv-speed-button {
  min-width: 224px;
  background: #203656;
  border-color: #c7a950;
}

.tv-main-site-button {
  min-width: 256px;
  background: #e8c96e;
  color: #14233f !important;
}

.tv-contact-link {
  min-width: 176px;
  color: #ffffff !important;
}

.tv-whatsapp {
  background: #1fa855;
}

.tv-telegram {
  background: #249bd7;
}

.tv-contact-compact {
  display: inline-block;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: #ffffff !important;
  text-align: center;
  text-decoration: none !important;
}

.tv-category-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px 24px;
  gap: 20px;
}

.tv-category-card {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  min-height: 208px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #203656;
  color: #f8fafc !important;
  text-align: center;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}

.tv-category-card > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-card-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(20, 35, 63, 0.16), rgba(20, 35, 63, 0.94) 72%);
}

.tv-card-content {
  position: relative;
  z-index: 1;
  padding: 16px;
}

.tv-card-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  padding-top: 7px;
  border: 1px solid #a88e48;
  border-radius: 14px;
  background: #253d60;
  color: #e8c96e;
  font-size: 28px;
  line-height: 32px;
  text-align: center;
}

.tv-card-title {
  margin: 10px 0 0;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.35;
}

.tv-card-description {
  margin: 4px 0 0;
  color: #d7deea;
  font-size: 14px;
}

.tv-card-count {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 12px;
  border-radius: 16px;
  background: #354866;
  color: #f1d778;
  font-size: 12px;
  font-weight: 700;
}

.tv-contact-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
}

/* Internal category pages: plain-CSS TV presentation. */
.tv-inner-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #14233f;
}

.tv-inner-header-content {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  max-width: 1152px;
  margin: 0 auto;
  padding: 12px 20px;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.tv-inner-brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  color: #e8c96e !important;
}

.tv-inner-brand img {
  width: 40px;
  height: 40px;
  margin-left: 8px;
  object-fit: contain;
}

.tv-inner-nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.tv-inner-nav-link,
.tv-inner-tab,
.tv-inner-back {
  color: #d7deea !important;
  text-decoration: none !important;
}

.tv-inner-nav-link {
  margin: 0 3px;
  padding: 9px 16px;
  border-radius: 22px;
}

.tv-inner-main {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: #f8fafc;
}

.tv-inner-back,
.tv-inner-tab {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #203656;
}

.tv-inner-heading {
  margin-top: 20px;
  text-align: center;
}

.tv-inner-title {
  margin: 0;
  color: #e8c96e;
  font-size: 34px;
  line-height: 1.3;
}

.tv-inner-description {
  margin-top: 6px;
  color: #d7deea;
}

.tv-inner-tabs {
  display: none;
}

.tv-app-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
...
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

/* A pinned group of cards that must share one row on every screen. */
.tv-app-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  width: 100%;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.tv-app-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: 176px;
  max-width: 176px;
  min-height: 180px;
  padding: 10px;
  color: #f8fafc !important;
  text-align: center;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.tv-app-item:focus,
.tv-app-item:hover {
  outline: 2px solid #e8c96e;
  outline-offset: -2px;
  background: #203656;
}

.tv-app-image {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: 100%;
  height: 132px;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.tv-app-image img {
  max-width: 100%;
  max-height: 100%;
  border: 0;
  background: transparent;
  object-fit: contain;
}

.tv-app-name {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .tv-title {
    font-size: 30px;
  }

  .tv-category-grid {
    display: block;
  }

  .tv-category-card {
    width: 100%;
    min-height: 224px;
    margin-bottom: 16px;
  }

  .tv-inner-nav {
    display: none;
  }

  .tv-inner-tabs {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
  }

  .tv-app-item {
    width: 46%;
    max-width: 190px;
  }
}

@media screen and (min-width: 1200px) and (min-aspect-ratio: 16/9) {
  .tv-hero {
    padding-top: 20px;
    padding-bottom: 12px;
  }

  .tv-logo {
    width: 144px;
    height: 144px;
  }

  .tv-category-grid {
    padding-bottom: 24px;
  }

  .tv-inner-main {
    max-width: 1720px;
  }

  .tv-app-item {
    width: 184px;
    max-width: 184px;
  }

  .tv-app-image {
    height: 148px;
  }
}