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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Istok Web", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #121212;
  color: #ffffff;
}

#stream-app {
  min-height: 100vh;
  background-color: #121212;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.sa-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sa-shell__content {
  flex: 1 1 auto;
  padding: 20px 16px 16px;
  overflow-y: auto;
}

.sa-shell__content--padded-top {
  padding-top: 32px;
}

.sa-shell__bottom-nav-space {
  height: 72px;
  flex-shrink: 0;
}

.sa-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.sa-welcome {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 18px 32px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 80%),
    radial-gradient(circle at 0% 0%, #212121 0, #000000 65%);
}

.sa-welcome__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* CSS file is in assets/css, image is in /image, so we go two levels up */
  background-image: url("../../image/1-st-scren-bg.png");
  opacity: 0.65;
  filter: contrast(1.05) saturate(1.1);
}

.sa-welcome__content {
  position: relative;
  z-index: 1;
}

.sa-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b2b2b2;
  margin-bottom: 8px;
}

.sa-title {
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 10px;
}

.sa-subtitle {
	text-align: center;
  margin: 0 0 22px;
  font-size: 16px;
  color: #B2B2B2;
}

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

.sa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 14px 20px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.15s ease-out, color 0.15s ease-out;
}

.sa-button--primary {
  background-color: #ff2120;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(255, 33, 32, 0.45);
}

.sa-button--primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 12px rgba(255, 33, 32, 0.3);
}

.sa-button--ghost {
  background-color: transparent;
  color: #f5f5f5;
}

.sa-button--ghost-text {
  text-decoration: underline;
  color: #B2B2B2!important;
  font-weight: 500;
  font-size: 16px;
}

.sa-button--ghost:active {
  transform: translateY(1px) scale(0.99);
}

.sa-caption {
  margin-top: 14px;
  font-size: 12px;
  color: #b2b2b2;
}

.sa-home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.sa-home-header__title {
  font-size: 22px;
  font-weight: 700;
}

.sa-home-header__subtitle {
  font-size: 13px;
  color: #b2b2b2;
}

.sa-hero-card {
  border: 1px solid #B2B2B2;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
	height: 245px;
  background:
    radial-gradient(circle at top left, #1c1c1c 0, #000000 60%),
    linear-gradient(160deg, #000000, #121212);
  padding: 16px 16px 18px;
  margin-bottom: 22px;
}

.sa-hero-card__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sa-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), #000000 85%);
}

.sa-hero-card__content {
  position: relative;
  z-index: 1;
	    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;

}

.sa-pill {
  display: inline-flex;
  align-items: left;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0px;
}

.sa-hero-card__title {
  margin: 0px 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #B2B2B2;
}

.sa-meta {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d9d9d9;
}

.sa-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #b2b2b2;
}

.sa-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sa-rating__star {
  width: 12px;
  height: 12px;
  display: inline-block;
  background-image: url("../../image/icons/star-red.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.sa-hero-card__cta {
  margin-top: 14px;
}

.sa-hero-card__button {
  width: 140px;
}

.sa-section {
  margin-bottom: 18px;
}

.sa-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.sa-section__title {
  font-size: 20px;
  font-weight: 600;
margin-bottom: 0;
}

.sa-section__subtitle {
  font-size: 12px;
  color: #b2b2b2;
}

.sa-row-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sa-card-episode {
  flex: 0 0 120px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.sa-card-episode--grid {
  flex: 0 0 auto;
}

.sa-card-episode__image {
  display: block;
  height: 180px;
  border: 1px solid #fff;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), #000000 85%),
    radial-gradient(circle at 10% 0%, #2a2a2a 0, #000000 70%);
}

.sa-card-episode--grid .sa-card-episode__image {
	height: 250px;
}

.sa-card-episode__badge {
      position: absolute;
    top: 8px;
    left: 8px;
    padding: 0px 15px;
    text-transform: uppercase;
    border-radius: 999px;
    background-color: #ff2120;
    font-size: 10px;
    font-weight: 600;
}

.sa-card-episode__body {
  background-color: #000000;
}

.sa-card-episode__title {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 4px;
}

.sa-card-episode__meta {
  font-size: 14px;
  color: #b2b2b2;
}

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

.sa-card-small {
  border-radius: 12px;
  background: radial-gradient(circle at top left, #252525, #151515);
  padding: 8px 8px 10px;
}

.sa-card-small__title {
  font-size: 12px;
  margin: 0 0 4px;
}

.sa-card-small__meta {
  font-size: 11px;
  color: #b2b2b2;
}

.sa-genres-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sa-chip {
      border-radius: 14px;
    padding: 20px 12px;
    background-color: #1C1C1C;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}


.sa-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 8px 0 10px;
  pointer-events: none;
}

.sa-bottom-nav__inner {
  width: 100%;
  max-width: 430px;
  padding: 8px 22px 10px;
  border-radius: 24px 24px 0 0;
  background-color: #050505;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.sa-popular-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.sa-back-button {
  border: none;
  background: none;
  color: #ffffff;
  font-size: 24px;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.sa-popular-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.sa-popular-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sa-genres-header {
  margin-bottom: 18px;
}

.sa-genres-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.sa-genres-empty {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sa-genres-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  position: relative;
}

.sa-genres-empty-icon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transform: rotate(45deg);
  right: -6px;
  bottom: -2px;
}

.sa-genres-empty-text {
  font-size: 14px;
  color: #b2b2b2;
}

.sa-tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 0;
  color: #b2b2b2;
  font-size: 11px;
  cursor: pointer;
}

.sa-tab__icon {
  width: 48px;
  height: 40px;
}

.sa-tab__icon--inactive {
  filter: grayscale(1) brightness(1.3);
}

.sa-tab--active {
  color: #ff2120;
}

.sa-tab--active .sa-tab__icon--inactive {
  filter: none;
}

.sa-player-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sa-player-back {
  border: none;
  background: none;
  color: #ffffff;
  font-size: 24px;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.sa-player-header__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sa-player-series {
  font-size: 13px;
  color: #b2b2b2;
}

.sa-player-episode {
  font-size: 15px;
  font-weight: 600;
}

.sa-player-frame {
  border-radius: 0;
  overflow: hidden;
  background-color: #000000;
  margin: 0;
}

.sa-player-video {
  width: 100%;
  display: block;
  max-height: none;
  height: calc(100vh - 140px);
  object-fit: cover;
  background-color: #000000;
}

.sa-player-hint {
  padding: 10px 12px 12px;
  font-size: 11px;
  color: #8c8c8c;
}

.sa-player-locked {
  padding: 18px 16px 20px;
  text-align: center;
}

.sa-player-locked p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #d0d0d0;
}

.sa-player-details {
  margin-bottom: 18px;
}

.sa-player-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.sa-player-description {
  font-size: 13px;
  color: #b2b2b2;
  margin: 0 0 14px;
}

.sa-button--outline {
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
}

.sa-player-next {
  width: 100%;
}

.sa-player-episodes__next-wrap {
  padding: 12px 0 20px;
}

.sa-player-episodes__next-wrap .sa-player-next {
  margin: 0;
}

/* Mux fullscreen overlay – https://www.mux.com/docs/guides/mux-player-web */
.sa-mux-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-mux-overlay__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.sa-mux-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sa-mux-overlay__close--hidden {
  opacity: 0;
  pointer-events: none;
}

.sa-mux-overlay__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sa-player-episodes {
  border-top: 1px solid #1b1b1b;
  padding-top: 10px;
}

.sa-episode-row {
  width: 100%;
  border: none;
  background: #1c1c1c;
  border-radius: 14px;
  padding: 10px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.sa-episode-row__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sa-episode-row__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-episode-row__icon {
  width: 100%;
  height: 100%;
}

.sa-episode-row__text {
  text-align: left;
}

.sa-episode-row__title {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
}

.sa-episode-row__meta {
  font-size: 14px;
  color: #b2b2b2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sa-episode-row__meta-lock {
  color: #ff2120;
}

.sa-episode-row--locked {
  background: #0b0b0b;
}

.sa-episode-row--locked .sa-episode-row__title {
  color: #e0e0e0;
}

.sa-episode-row--locked .sa-episode-row__icon-wrap {
  background: #181818;
}

.sa-paywall-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
}

.sa-paywall-modal {
  width: 100%;
  max-width: 360px;
  background: radial-gradient(circle at top, #242424, #050505);
  border-radius: 24px;
  padding: 26px 22px 24px;
  position: relative;
  text-align: center;
}

.sa-paywall-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.sa-paywall-lock {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #201415;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px;
}

.sa-paywall-lock__icon {
  width: 24px;
  height: 24px;
}

.sa-paywall-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}

.sa-paywall-subtitle {
  font-size: 13px;
  color: #b2b2b2;
  margin: 0 0 14px;
}

.sa-paywall-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  font-size: 13px;
}

.sa-paywall-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.sa-paywall-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff2120;
}

.sa-paywall-price {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sa-paywall-price-note {
  font-size: 12px;
  color: #b2b2b2;
  margin-bottom: 14px;
}

.sa-paywall-button {
  width: 100%;
  margin-bottom: 10px;
}

.sa-paywall-caption {
  font-size: 11px;
  color: #8c8c8c;
  margin: 0;
}

/* Checkout (Stripe) */
.sa-checkout-overlay {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 18px 40px;
}

.sa-checkout-modal {
  width: 100%;
  max-width: 400px;
  background: radial-gradient(circle at top, #242424, #050505);
  border-radius: 24px;
  padding: 26px 22px 28px;
  position: relative;
}

.sa-checkout-header {
  text-align: center;
  margin-bottom: 12px;
}

.sa-checkout-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #ffffff;
}

.sa-checkout-subtitle {
  font-size: 13px;
  color: #b2b2b2;
  margin: 0;
}

.sa-checkout-price-block {
  text-align: center;
  margin-bottom: 18px;
}

.sa-checkout-price {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.sa-checkout-price-note {
  font-size: 12px;
  color: #b2b2b2;
  margin: 0;
}

.sa-checkout-cfg-error {
  font-size: 13px;
  color: #e53e3e;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(229, 62, 62, 0.15);
  border-radius: 8px;
}

.sa-checkout-form-wrap {
  margin-top: 8px;
}

.sa-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sa-checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sa-checkout-label {
  font-size: 12px;
  font-weight: 600;
  color: #d0d0d0;
}

.sa-checkout-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #3a3a3a;
  border-radius: 12px;
  font-size: 15px;
  color: #ffffff;
  background: #1a1a1a;
  outline: none;
  box-sizing: border-box;
}

.sa-checkout-input:focus {
  border-color: #c41e3a;
}

.sa-checkout-input::placeholder {
  color: #6c6c6c;
}

.sa-checkout-stripe-el {
  padding: 12px 14px;
  border: 1.5px solid #3a3a3a;
  border-radius: 12px;
  background: #1a1a1a;
  min-height: 46px;
}

.sa-checkout-stripe-el.StripeElement--focus {
  border-color: #c41e3a;
}

.sa-checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sa-checkout-errors {
  min-height: 1.2em;
  font-size: 13px;
  color: #e53e3e;
}

.sa-checkout-submit {
  width: 100%;
  margin-top: 6px;
}

.sa-series-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-color: #050505;
  margin-bottom: 18px;
  height: 240px;
}

.sa-series-hero__image {
  position: absolute;
  inset: 0;
  background-color: #000000;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.sa-series-back {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sa-series-hero__body {
  position: relative;
    padding: 14px 14px 16px;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.sa-series-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.sa-series-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #d0d0d0;
  margin-bottom: 12px;
}

.sa-series-genre {
  color: #d0d0d0;
}

.sa-series-watch {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sa-series-watch__icon {
  width: 14px;
  height: 14px;
}

.sa-series-description {
  margin-bottom: 18px;
}

.sa-series-description__text {
  font-size: 13px;
  color: #b2b2b2;
  margin: 0 0 6px;
  max-height: 54px;
  overflow: hidden;
}

.sa-series-description__text--expanded {
  max-height: none;
}

.sa-series-description__toggle {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: #ff2120;
  cursor: pointer;
}

/* Desktop blocker: disable site on larger screens */

#sa-desktop-blocker {
  display: none;
}

@media (min-width: 769px) {
  body {
    overflow: hidden;
    background: #2d2d2d;
  }

  #stream-app {
    padding: 24px 0;
  }

  .sa-shell {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  }

  #sa-desktop-blocker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at top left, #1c1c1c 0, #000000 55%),
      linear-gradient(145deg, #1e1514 0%, #120c0b 45%, #050505 100%);
    padding: 32px 16px;
  }

  .sa-blocker-card {
    max-width: 440px;
    width: 100%;
    background: #151111;
    border-radius: 28px;
    padding: 32px 26px 28px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  .sa-blocker-title {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 4px;
  }

  .sa-blocker-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #ff2120;
    margin: 0 0 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .sa-blocker-text {
    font-size: 14px;
    color: #e0dddd;
    line-height: 1.6;
    margin: 0 0 18px;
  }

  .sa-blocker-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 33, 32, 0.6),
      rgba(255, 255, 255, 0.04)
    );
    margin: 0 0 14px;
  }

  .sa-blocker-hint {
    font-size: 13px;
    color: #b2b2b2;
    margin: 0 0 6px;
  }

  .sa-blocker-url {
    font-size: 13px;
    color: #ffffff;
    background: #1f1a1a;
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

