* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f6fbff;
}

.mnahyl-stv-body {
  min-height: 100vh;
  margin: 0;
  color: #102f47;
  background:
    radial-gradient(circle at 20% 0%, rgba(17, 163, 154, .10), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
}

.mnahyl-stv-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.mnahyl-stv-header {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0 auto 28px;
  text-align: center;
}

.mnahyl-stv-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  min-height: 118px;
  border-radius: 8px;
  outline-offset: 5px;
}

.mnahyl-stv-logo img {
  display: block;
  width: 142px;
  height: auto;
}

.mnahyl-stv-header h1 {
  margin: 0;
  color: #102f47;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.mnahyl-stv-header p {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
  font-weight: 700;
}

.mnahyl-stv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.mnahyl-stv-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #cfe1f0;
  border-radius: 8px;
  color: #102f47;
  background: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(16, 47, 71, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.mnahyl-stv-actions a:first-child {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #2867df, #119d92);
}

.mnahyl-stv-actions a:hover,
.mnahyl-stv-actions a:focus-visible {
  transform: translateY(-1px);
  border-color: #2f73ea;
  box-shadow: 0 16px 30px rgba(16, 47, 71, .12);
}

.mnahyl-stv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mnahyl-stv-card-wrap {
  min-width: 0;
}

.mnahyl-stv-card {
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d5e5f2;
  border-radius: 8px;
  color: #102f47;
  background: #ffffff;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(16, 47, 71, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  appearance: none;
}

.mnahyl-stv-card:hover,
.mnahyl-stv-card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: #15a39a;
  box-shadow: 0 18px 42px rgba(16, 47, 71, .14);
}

.mnahyl-stv-card.is-placeholder {
  cursor: default;
}

.mnahyl-stv-card.is-placeholder:hover {
  transform: none;
  border-color: #d5e5f2;
}

.mnahyl-stv-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eaf6ff, #e8fbf6);
}

.mnahyl-stv-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mnahyl-stv-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 47, 71, .02), rgba(16, 47, 71, .24));
}

.mnahyl-stv-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2867df, #119d92);
  box-shadow: 0 12px 26px rgba(16, 47, 71, .24);
  transform: translate(-50%, -50%);
}

.mnahyl-stv-play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ffffff;
}

.mnahyl-stv-coming {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: #dffaf6;
  font-size: 13px;
  font-weight: 900;
}

.mnahyl-stv-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #0f766e;
  font-size: 24px;
  font-weight: 900;
}

.mnahyl-stv-title {
  display: block;
  min-height: 76px;
  padding: 18px 18px 20px;
  color: #102f47;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 900;
}

.mnahyl-stv-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #bcd4e8;
  border-radius: 8px;
  color: #64748b;
  background: rgba(255, 255, 255, .76);
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.mnahyl-stv-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mnahyl-stv-modal.is-open {
  display: flex;
}

.mnahyl-stv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 43, .74);
}

.mnahyl-stv-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .32);
}

.mnahyl-stv-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #dbe8f2;
}

.mnahyl-stv-dialog h2 {
  margin: 0;
  color: #102f47;
  font-size: 19px;
  font-weight: 900;
}

.mnahyl-stv-dialog button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d5e5f2;
  border-radius: 8px;
  color: #102f47;
  background: #ffffff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.mnahyl-stv-frame {
  aspect-ratio: 16 / 9;
  background: #071927;
}

.mnahyl-stv-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mnahyl-stv-actions a:focus-visible,
.mnahyl-stv-card:focus-visible,
.mnahyl-stv-dialog button:focus-visible {
  outline: 3px solid rgba(40, 103, 223, .35);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .mnahyl-stv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mnahyl-stv-page {
    width: min(100% - 24px, 520px);
    padding-top: 24px;
  }

  .mnahyl-stv-logo {
    width: 126px;
    min-height: 96px;
  }

  .mnahyl-stv-logo img {
    width: 116px;
  }

  .mnahyl-stv-actions {
    width: 100%;
  }

  .mnahyl-stv-actions a {
    width: 100%;
  }

  .mnahyl-stv-grid {
    grid-template-columns: 1fr;
  }

  .mnahyl-stv-title {
    min-height: auto;
    font-size: 18px;
  }

  .mnahyl-stv-modal {
    padding: 12px;
  }
}
