/* SpaceGate Nova — Commercial Experience v3
   Premium OTT design system. RTL-first, responsive and intentionally original. */

:root {
  --sg3-bg: #030308;
  --sg3-bg-soft: #080811;
  --sg3-panel: #0d0e18;
  --sg3-panel-2: #141625;
  --sg3-text: #fbfbff;
  --sg3-muted: #a6a8b6;
  --sg3-dim: #747787;
  --sg3-violet: #8b42ff;
  --sg3-violet-hot: #b866ff;
  --sg3-cyan: #45d7ff;
  --sg3-gold: #f5c96b;
  --sg3-line: rgba(255, 255, 255, .105);
  --sg3-line-soft: rgba(255, 255, 255, .065);
  --sg3-glass: rgba(7, 7, 14, .72);
  --sg3-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  --sg3-radius-sm: 12px;
  --sg3-radius: 18px;
  --sg3-radius-lg: 28px;
  --sg3-page: clamp(20px, 4.8vw, 78px);
  --sg3-ease: cubic-bezier(.2, .8, .2, 1);
  --sg3-out: cubic-bezier(.16, 1, .3, 1);
}

html {
  background: var(--sg3-bg);
  scrollbar-color: rgba(139, 66, 255, .65) var(--sg3-bg);
}

body.sgx-signature {
  background:
    radial-gradient(circle at 85% -10%, rgba(139, 66, 255, .13), transparent 32rem),
    var(--sg3-bg) !important;
  color: var(--sg3-text);
  font-family: Alexandria, "IBM Plex Sans Arabic", Inter, sans-serif;
}

body.sgx-signature::before {
  background:
    radial-gradient(circle at 76% 0, rgba(139, 66, 255, .16), transparent 45%),
    radial-gradient(circle at 20% 12%, rgba(69, 215, 255, .07), transparent 34%);
}

body.sgx-signature::after {
  opacity: .018;
}

.sgx-signature * {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 66, 255, .55) transparent;
}

.sgx-signature button,
.sgx-signature input,
.sgx-signature select {
  font-family: inherit;
}

.sgx-signature button:focus-visible,
.sgx-signature a:focus-visible,
.sgx-signature input:focus-visible,
.sgx-signature select:focus-visible {
  outline: 2px solid var(--sg3-cyan) !important;
  outline-offset: 4px !important;
}

/* Header */
.sgx-signature .sg-header {
  height: 78px;
  min-height: 78px;
  padding: 0 var(--sg3-page);
  background: linear-gradient(180deg, rgba(3, 3, 8, .94), rgba(3, 3, 8, .58) 68%, transparent);
  border: 0;
  transition: height .35s var(--sg3-ease), background .35s var(--sg3-ease), box-shadow .35s var(--sg3-ease);
}

.sgx-signature .sg-header.sgx-header--solid {
  height: 66px;
  min-height: 66px;
  background: rgba(5, 5, 11, .86);
  border-bottom: 1px solid var(--sg3-line-soft);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .28);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
}

.sgx-signature .header-right,
.sgx-signature .header-left {
  gap: 10px;
}

.sgx-signature .brand {
  gap: 11px;
}

.sgx-signature .brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 34px rgba(139, 66, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.sgx-signature .brand__mark::after {
  background: conic-gradient(from 45deg, transparent, rgba(69, 215, 255, .42), transparent, rgba(139, 66, 255, .58), transparent);
}

.sgx-signature .brand__mark img {
  width: 26px;
  height: 26px;
}

.sgx-signature .brand__text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: Manrope, Inter, sans-serif;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .01em;
  text-transform: none;
}

.sgx-signature .brand__text::after {
  content: "NOVA+";
  margin: 0;
  padding: 4px 7px;
  border: 1px solid rgba(69, 215, 255, .28);
  border-radius: 99px;
  background: linear-gradient(120deg, rgba(69, 215, 255, .1), rgba(139, 66, 255, .14));
  color: var(--sg3-cyan);
  font-size: 8px;
  letter-spacing: .16em;
}

.sgx-signature .top-links {
  gap: 2px;
  margin-inline-start: 22px;
  margin-right: 22px;
}

.sgx-signature .top-links a {
  height: 38px;
  padding: 0 14px;
  border-radius: 99px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
}

.sgx-signature .top-links a::after {
  display: none;
}

.sgx-signature .top-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .065);
}

.sgx-signature .top-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.sgx-signature .icon-btn {
  width: 41px;
  height: 41px;
  border: 1px solid var(--sg3-line);
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.sgx-signature .icon-btn:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
}

.sgx-signature .btn-subscribe {
  height: 41px;
  padding: 0 19px;
  border-radius: 99px;
  background: linear-gradient(115deg, #7c35f4, #ae5bff);
  box-shadow: 0 12px 30px rgba(139, 66, 255, .3);
  font-size: 12px;
  font-weight: 800;
}

/* Home / Hero */
.sg3-home {
  min-height: 100vh;
  background: var(--sg3-bg);
}

.sg3-hero {
  position: relative;
  min-height: min(920px, 94vh);
  isolation: isolate;
  overflow: hidden;
  background: #05050a;
}

.sg3-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--sg3-ease), visibility 1s var(--sg3-ease);
}

.sg3-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.sg3-hero__asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.015);
  animation: sg3HeroZoom 12s ease-out both;
}

.sg3-hero__slide::before,
.sg3-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sg3-hero__slide::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 8, .08) 0, rgba(3, 3, 8, .33) 42%, rgba(3, 3, 8, .98) 100%),
    linear-gradient(0deg, var(--sg3-bg) 0, rgba(3, 3, 8, .72) 12%, transparent 52%),
    linear-gradient(180deg, rgba(3, 3, 8, .58), transparent 26%);
}

.sg3-hero__slide::after {
  background:
    radial-gradient(circle at 74% 35%, transparent 0 18%, rgba(3, 3, 8, .1) 48%, rgba(3, 3, 8, .45) 100%),
    linear-gradient(90deg, transparent 20%, rgba(3, 3, 8, .12));
}

.sg3-hero__aura {
  position: absolute;
  z-index: 1;
  right: 9%;
  bottom: 20%;
  width: 26rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 66, 255, .19), transparent 68%);
  filter: blur(36px);
}

.sg3-hero__copy {
  position: absolute;
  z-index: 3;
  right: var(--sg3-page);
  bottom: clamp(180px, 23vh, 240px);
  width: min(680px, 47vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  animation: sg3HeroIn .9s var(--sg3-out) both;
}

.sg3-hero__original {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.sg3-hero__original svg {
  width: 17px;
  height: 17px;
  fill: var(--sg3-cyan);
  filter: drop-shadow(0 0 12px rgba(69, 215, 255, .6));
}

.sg3-hero__original b {
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: .13em;
  color: #fff;
}

.sg3-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-family: Alexandria, "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(3rem, 5.5vw, 6.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0, 0, 0, .6);
}

.sg3-hero__logo {
  display: block;
  max-width: min(430px, 82%);
  max-height: 155px;
  margin: 0 0 18px;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 16px 35px rgba(0, 0, 0, .5));
}

.sg3-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 700;
}

.sg3-hero__meta span {
  display: inline-flex;
  align-items: center;
}

.sg3-hero__meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}

.sg3-hero__meta .is-score {
  color: var(--sg3-gold);
}

.sg3-hero__meta .is-age {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
}

.sg3-hero__copy > p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.9;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .65);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.sg3-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.sg3-btn {
  min-width: 0;
  height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform .25s var(--sg3-ease), background .25s var(--sg3-ease), border-color .25s var(--sg3-ease), box-shadow .25s var(--sg3-ease);
}

.sg3-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.sg3-btn--primary {
  color: #09090d;
  background: #fff;
  box-shadow: 0 15px 38px rgba(0, 0, 0, .28);
}

.sg3-btn--primary:hover {
  background: var(--sg3-cyan);
  box-shadow: 0 17px 42px rgba(69, 215, 255, .18);
  transform: translateY(-2px);
}

.sg3-btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, .105);
  border-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sg3-btn--glass:hover {
  background: rgba(255, 255, 255, .17);
  border-color: rgba(255, 255, 255, .25);
}

.sg3-btn--icon {
  width: 50px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

.sg3-btn--icon:hover {
  color: #09090d;
  background: #fff;
}

.sg3-hero__previews {
  position: absolute;
  z-index: 5;
  right: var(--sg3-page);
  bottom: 42px;
  left: var(--sg3-page);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sg3-hero__previews::-webkit-scrollbar {
  display: none;
}

.sg3-hero__preview {
  position: relative;
  width: clamp(120px, 11vw, 175px);
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  color: #fff;
  opacity: .55;
  cursor: pointer;
  transition: width .35s var(--sg3-out), opacity .35s var(--sg3-ease), transform .35s var(--sg3-out), border-color .35s var(--sg3-ease);
}

.sg3-hero__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 3, 8, .92), transparent 70%);
}

.sg3-hero__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg3-hero__preview > span {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 8px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: right;
}

.sg3-hero__preview i {
  color: var(--sg3-cyan);
  font: 800 9px Manrope, Inter, sans-serif;
  font-style: normal;
}

.sg3-hero__preview b {
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg3-hero__preview.is-active {
  width: clamp(155px, 14vw, 220px);
  opacity: 1;
  border-color: rgba(69, 215, 255, .62);
  box-shadow: 0 0 0 2px rgba(69, 215, 255, .1), 0 16px 40px rgba(0, 0, 0, .4);
  transform: translateY(-5px);
}

.sg3-hero__preview.is-active::before {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sg3-cyan), var(--sg3-violet));
  animation: sg3HeroProgress 9s linear both;
}

.sg3-hero__counter {
  position: absolute;
  z-index: 5;
  left: var(--sg3-page);
  bottom: 66px;
  display: flex;
  align-items: center;
  gap: 9px;
  direction: ltr;
  color: rgba(255, 255, 255, .45);
  font: 750 9px Manrope, Inter, sans-serif;
}

.sg3-hero__counter b {
  color: #fff;
  font-size: 12px;
}

.sg3-hero__counter span {
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, .3);
}

/* Content rails */
.sg3-home__content {
  position: relative;
  z-index: 8;
  margin-top: -1px;
  padding: 30px 0 110px;
  background:
    linear-gradient(180deg, var(--sg3-bg), transparent 14rem),
    radial-gradient(circle at 100% 20%, rgba(139, 66, 255, .06), transparent 28rem);
}

.sg3-section {
  position: relative;
  margin: 0 0 36px;
  padding: 0 var(--sg3-page);
}

.sg3-section--flush {
  padding: 0;
}

.sg3-section__head {
  min-height: 50px;
  margin-bottom: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.sg3-section__head > div:first-child {
  min-width: 0;
}

.sg3-section__head small {
  display: block;
  margin-bottom: 4px;
  color: var(--sg3-violet-hot);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.sg3-section__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 1.6vw, 26px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.sg3-section__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg3-section__tools a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-inline-end: 4px;
  color: var(--sg3-muted);
  font-size: 11px;
  font-weight: 700;
}

.sg3-section__tools a:hover {
  color: #fff;
}

.sg3-section__tools a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sg3-section__tools button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--sg3-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  cursor: pointer;
}

.sg3-section__tools button:hover {
  color: #07070b;
  background: #fff;
}

.sg3-section__tools button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sg3-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 13.4vw, 215px);
  gap: clamp(11px, 1.1vw, 17px);
  padding: 7px 3px 22px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.sg3-rail::-webkit-scrollbar {
  display: none;
}

.sg3-rail--wide,
.sg3-rail--continue {
  grid-auto-columns: clamp(260px, 24vw, 395px);
}

.sg3-rail--rank {
  grid-auto-columns: clamp(220px, 19vw, 305px);
  gap: 18px;
}

/* Cards */
.sg3-card {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  display: block;
  background: transparent;
  color: #fff;
  text-align: right;
  scroll-snap-align: start;
  cursor: pointer;
}

.sg3-card__visual {
  position: relative;
  aspect-ratio: 2 / 3;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--sg3-radius);
  background: var(--sg3-panel);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .26);
  transform: translateZ(0);
  transition: transform .38s var(--sg3-out), box-shadow .38s var(--sg3-out), border-color .3s var(--sg3-ease);
}

.sg3-card--wide .sg3-card__visual,
.sg3-card--continue .sg3-card__visual {
  aspect-ratio: 16 / 9;
}

.sg3-card__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--sg3-out), filter .35s var(--sg3-ease);
}

.sg3-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 3, 8, .95), transparent 50%);
  opacity: .15;
  transition: opacity .3s var(--sg3-ease);
}

.sg3-card__new,
.sg3-card__quality {
  position: absolute;
  z-index: 3;
  top: 10px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.sg3-card__new {
  right: 10px;
  color: #09090d;
  background: var(--sg3-cyan);
}

.sg3-card__quality {
  left: 10px;
  color: rgba(255, 255, 255, .82);
  background: rgba(5, 5, 10, .7);
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: .08em;
}

.sg3-card__play {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #08080c;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 13px 35px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translate(-50%, -45%) scale(.8);
  transition: opacity .3s var(--sg3-ease), transform .3s var(--sg3-out);
}

.sg3-card__play svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  margin-left: 2px;
}

.sg3-card:hover .sg3-card__visual,
.sg3-card:focus-visible .sg3-card__visual {
  transform: translateY(-7px) scale(1.025);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 26px 65px rgba(0, 0, 0, .56), 0 0 0 1px rgba(139, 66, 255, .16);
}

.sg3-card:hover .sg3-card__visual > img {
  transform: scale(1.075);
  filter: saturate(1.08) contrast(1.03);
}

.sg3-card:hover .sg3-card__shade {
  opacity: .72;
}

.sg3-card:hover .sg3-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sg3-card__body {
  display: block;
  padding: 11px 4px 0;
}

.sg3-card__body > strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg3-card__body > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  overflow: hidden;
  color: var(--sg3-dim);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.sg3-card__body i {
  font-style: normal;
}

.sg3-card__body i + i::before {
  content: "•";
  margin-inline-end: 7px;
  color: #505261;
}

.sg3-card__body i:last-child {
  color: var(--sg3-gold);
}

.sg3-card--wide .sg3-card__body {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px 15px 14px;
  background: linear-gradient(0deg, rgba(3, 3, 8, .95), transparent);
  pointer-events: none;
}

.sg3-card--wide .sg3-card__body > strong {
  font-size: 14px;
}

.sg3-progress {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
}

.sg3-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sg3-cyan), var(--sg3-violet));
  box-shadow: 0 0 12px rgba(69, 215, 255, .5);
}

.sg3-rank {
  min-width: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: clamp(68px, 6vw, 96px) 1fr;
  align-items: end;
  background: transparent;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
}

.sg3-rank__number {
  z-index: 0;
  color: transparent;
  font: 950 clamp(6rem, 8vw, 9.4rem) / .72 Manrope, Inter, sans-serif;
  letter-spacing: -.11em;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .75);
  text-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  transform: translateX(-4px);
}

.sg3-rank__visual {
  position: relative;
  z-index: 1;
  aspect-ratio: 2 / 3;
  margin-inline-start: -18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--sg3-radius);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .4);
  transition: transform .35s var(--sg3-out), border-color .3s var(--sg3-ease);
}

.sg3-rank__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--sg3-out);
}

.sg3-rank:hover .sg3-rank__visual {
  border-color: rgba(69, 215, 255, .42);
  transform: translateY(-6px) scale(1.025);
}

.sg3-rank:hover .sg3-rank__visual > img {
  transform: scale(1.07);
}

.sg3-rank .sg3-card__play {
  width: 44px;
  height: 44px;
}

.sg3-rank:hover .sg3-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Editorial */
.sg3-editorial {
  position: relative;
  min-height: 390px;
  margin: 60px var(--sg3-page);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--sg3-radius-lg);
  background: var(--sg3-panel);
  box-shadow: var(--sg3-shadow);
}

.sg3-editorial__asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg3-editorial__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 11, .05), rgba(5, 5, 11, .58) 48%, rgba(5, 5, 11, .98)),
    linear-gradient(0deg, rgba(5, 5, 11, .78), transparent 65%);
}

.sg3-editorial__copy {
  position: relative;
  z-index: 2;
  width: min(610px, 65%);
  padding: clamp(32px, 5vw, 70px);
}

.sg3-editorial__copy small {
  color: var(--sg3-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sg3-editorial__copy h2 {
  margin: 10px 0 13px;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.sg3-editorial__copy p {
  max-width: 560px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sg3-editorial__stamp {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 30px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(5, 5, 12, .56);
  backdrop-filter: blur(16px);
  transform: rotate(-9deg);
}

.sg3-editorial__stamp span {
  color: var(--sg3-cyan);
  font-size: 9px;
  font-weight: 800;
}

.sg3-editorial__stamp b {
  margin-top: 3px;
  font: 900 13px Manrope, Inter, sans-serif;
  letter-spacing: .12em;
}

/* Library / filters */
.sg3-library,
.sg3-browse,
.sg3-search {
  min-height: 100vh;
  padding: 125px var(--sg3-page) 120px;
  background:
    radial-gradient(circle at 92% -5%, rgba(139, 66, 255, .13), transparent 28rem),
    var(--sg3-bg);
}

.sg3-library__head,
.sg3-browse__head {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.sg3-library__head small,
.sg3-browse__head small,
.sg3-search > header > small {
  color: var(--sg3-violet-hot);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}

.sg3-library__head h1,
.sg3-browse__head h1 {
  margin: 5px 0 0;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}

.sg3-library__head > span,
.sg3-search__result-head span {
  color: var(--sg3-muted);
  font-size: 12px;
  font-weight: 700;
}

.sg3-filterbar {
  position: sticky;
  z-index: 70;
  top: 76px;
  margin-bottom: 30px;
  padding: 9px;
  border: 1px solid var(--sg3-line-soft);
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  background: rgba(10, 10, 18, .8);
  box-shadow: 0 15px 42px rgba(0, 0, 0, .25);
  backdrop-filter: blur(26px) saturate(145%);
}

.sg3-filterbar__genres {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sg3-filterbar__genres::-webkit-scrollbar {
  display: none;
}

.sg3-chip {
  height: 37px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 99px;
  flex: 0 0 auto;
  background: transparent;
  color: var(--sg3-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sg3-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.sg3-chip.is-active {
  color: #08080c;
  background: #fff;
}

.sg3-filterbar__selects {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.sg3-select {
  height: 37px;
  min-width: 114px;
  padding: 0 13px;
  border: 1px solid var(--sg3-line);
  border-radius: 99px;
  background: #11121b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.sg3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 27px 16px;
}

/* Browse */
.sg3-searchbox {
  width: min(430px, 42vw);
  height: 52px;
  padding: 0 17px;
  border: 1px solid var(--sg3-line);
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px);
}

.sg3-searchbox svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: var(--sg3-muted);
}

.sg3-searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.sg3-searchbox input::placeholder,
.sg3-search__form input::placeholder {
  color: var(--sg3-dim);
}

.sg3-types {
  margin-bottom: 54px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sg3-type {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--sg3-radius-lg);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.sg3-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 11, .15), rgba(5, 5, 11, .92)),
    linear-gradient(0deg, rgba(5, 5, 11, .55), transparent);
  transition: background .35s var(--sg3-ease);
}

.sg3-type:hover::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 11, .08), rgba(5, 5, 11, .78)),
    linear-gradient(0deg, rgba(5, 5, 11, .45), transparent);
}

.sg3-type > span {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 30px;
}

.sg3-type small,
.sg3-genre small {
  color: var(--sg3-cyan);
  font-size: 9px;
  font-weight: 800;
}

.sg3-type h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3.7vw, 4rem);
  line-height: 1;
}

.sg3-type i,
.sg3-genre i {
  color: var(--sg3-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.sg3-genres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.sg3-genre {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: var(--sg3-radius);
  background-position: center;
  background-size: cover;
}

.sg3-genre::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 5, 11, .96), rgba(5, 5, 11, .1)),
    linear-gradient(110deg, rgba(139, 66, 255, .16), transparent);
  transition: background .3s var(--sg3-ease);
}

.sg3-genre:hover::before {
  background:
    linear-gradient(0deg, rgba(5, 5, 11, .88), transparent),
    linear-gradient(110deg, rgba(69, 215, 255, .12), transparent);
}

.sg3-genre > span {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 15px;
  left: 17px;
}

.sg3-genre strong {
  display: block;
  margin: 3px 0 5px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Search */
.sg3-search > header {
  max-width: 930px;
  margin: 0 auto 55px;
  text-align: center;
}

.sg3-search__form {
  height: 76px;
  margin-top: 12px;
  padding: 0 19px 0 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  backdrop-filter: blur(24px);
}

.sg3-search__form > svg {
  width: 25px;
  height: 25px;
  fill: var(--sg3-violet-hot);
}

.sg3-search__form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 650;
}

.sg3-search__form button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #09090e;
}

.sg3-search__form button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.sg3-search__result-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.sg3-search__result-head h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -.04em;
}

/* Detail */
.sg3-detail {
  min-height: 100vh;
  background: var(--sg3-bg);
}

.sg3-detail__hero {
  position: relative;
  min-height: min(840px, 88vh);
  overflow: hidden;
}

.sg3-detail__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.sg3-detail__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 8, .08), rgba(3, 3, 8, .42) 45%, rgba(3, 3, 8, .98)),
    linear-gradient(0deg, var(--sg3-bg), transparent 48%),
    linear-gradient(180deg, rgba(3, 3, 8, .5), transparent 25%);
}

.sg3-detail__copy {
  position: absolute;
  z-index: 2;
  right: var(--sg3-page);
  bottom: 15%;
  width: min(650px, 48vw);
}

.sg3-detail__overline {
  display: block;
  margin-bottom: 14px;
  color: var(--sg3-cyan);
  font: 800 9px Manrope, Inter, sans-serif;
  letter-spacing: .16em;
}

.sg3-detail__copy h1 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 6vw, 6.8rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.06em;
}

.sg3-detail__logo {
  max-width: min(440px, 80%);
  max-height: 160px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: right;
}

.sg3-detail__copy > p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.sg3-detail__genres {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sg3-detail__genres span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 99px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  font-weight: 700;
}

.sg3-detail__body {
  padding: 18px 0 110px;
}

.sg3-detail__episodes {
  padding: 0 var(--sg3-page);
  margin-bottom: 55px;
}

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

.sg3-seasons {
  display: flex;
  gap: 7px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sg3-seasons::-webkit-scrollbar {
  display: none;
}

.sg3-seasons button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--sg3-line);
  border-radius: 99px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .045);
  color: var(--sg3-muted);
  font-size: 11px;
  font-weight: 700;
}

.sg3-seasons button.active {
  border-color: #fff;
  background: #fff;
  color: #08080c;
}

.sg3-episode {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--sg3-radius);
  background: var(--sg3-panel);
  border: 1px solid var(--sg3-line-soft);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
}

.sg3-episode__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: grid;
  place-items: center;
  background-color: #11131c;
  background-position: center;
  background-size: cover;
  color: #08080c;
  cursor: pointer;
}

.sg3-episode__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 3, 8, .55), transparent 65%);
  transition: background .3s var(--sg3-ease);
}

.sg3-episode__visual > span {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .42);
  transform: scale(.9);
  transition: transform .3s var(--sg3-out), background .3s var(--sg3-ease);
}

.sg3-episode__visual > span svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.sg3-episode:hover .sg3-episode__visual::before {
  background: linear-gradient(0deg, rgba(3, 3, 8, .72), rgba(3, 3, 8, .08));
}

.sg3-episode:hover .sg3-episode__visual > span {
  background: var(--sg3-cyan);
  transform: scale(1);
}

.sg3-episode__body {
  padding: 16px;
}

.sg3-episode__body small {
  color: var(--sg3-violet-hot);
  font-size: 9px;
  font-weight: 800;
}

.sg3-episode__body h3 {
  margin: 6px 0 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg3-episode__body p {
  margin: 8px 0 0;
  color: var(--sg3-muted);
  font-size: 10px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sg3-detail .sgx-season-tabs button.active {
  background: #fff;
  color: #08080c;
}

/* Bottom navigation */
.sgx-signature .bottom-nav {
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  min-height: 62px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background: rgba(9, 9, 17, .88);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .55);
  backdrop-filter: blur(24px) saturate(150%);
}

.sgx-signature .bottom-nav a {
  border-radius: 14px;
  color: var(--sg3-muted);
}

.sgx-signature .bottom-nav a.active {
  color: #fff;
  background: linear-gradient(130deg, rgba(69, 215, 255, .12), rgba(139, 66, 255, .2));
}

.sgx-signature .bottom-nav a.active svg {
  color: var(--sg3-cyan);
}

/* Shared legacy pages */
.sgx-signature .empty,
.sgx-signature .error {
  border: 1px solid var(--sg3-line-soft);
  border-radius: var(--sg3-radius);
  background: var(--sg3-panel);
  color: var(--sg3-muted);
}

.sgx-signature .toast {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(12, 12, 20, .92);
  backdrop-filter: blur(22px);
}

.sgx-signature .sg-boot-splash {
  background:
    radial-gradient(circle at center, rgba(139, 66, 255, .22), transparent 24rem),
    var(--sg3-bg);
}

.sgx-signature .sg-splash-logo-wrap {
  border: 1px solid rgba(255, 255, 255, .13);
  background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  box-shadow: 0 24px 70px rgba(139, 66, 255, .32);
}

/* Responsive */
@media (max-width: 1100px) {
  .sgx-signature .top-links {
    display: flex;
    max-width: 46vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sgx-signature .top-links::-webkit-scrollbar {
    display: none;
  }

  .sg3-hero__copy {
    width: min(620px, 58vw);
  }

  .sg3-genres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  :root {
    --sg3-page: 18px;
    --sg3-radius: 14px;
    --sg3-radius-lg: 20px;
  }

  body.sgx-signature {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .sgx-signature .sg-header {
    height: 64px;
    min-height: 64px;
    padding: 0 16px;
  }

  .sgx-signature .sg-header.sgx-header--solid {
    height: 60px;
    min-height: 60px;
  }

  .sgx-signature .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .sgx-signature .brand__text,
  .sgx-signature .header-left .icon-btn[aria-label="حسابي"],
  .sgx-signature .btn-subscribe {
    display: none;
  }

  .sgx-signature .top-links {
    display: flex;
    max-width: calc(100vw - 116px);
    margin: 0 10px 0 0;
    gap: 0;
  }

  .sgx-signature .top-links a {
    height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .sgx-signature .icon-btn {
    width: 38px;
    height: 38px;
  }

  .sgx-signature .bottom-nav {
    display: grid;
  }

  .sg3-hero {
    min-height: 760px;
    height: 88vh;
  }

  .sg3-hero__asset {
    object-position: center 20%;
  }

  .sg3-hero__slide::before {
    background:
      linear-gradient(0deg, var(--sg3-bg) 0, rgba(3, 3, 8, .82) 24%, rgba(3, 3, 8, .05) 70%),
      linear-gradient(90deg, rgba(3, 3, 8, .12), rgba(3, 3, 8, .62));
  }

  .sg3-hero__slide::after {
    background: linear-gradient(180deg, rgba(3, 3, 8, .48), transparent 24%);
  }

  .sg3-hero__copy {
    right: 18px;
    bottom: 154px;
    width: calc(100% - 36px);
  }

  .sg3-hero h1 {
    max-width: 88%;
    font-size: clamp(2.7rem, 12vw, 4.8rem);
  }

  .sg3-hero__logo {
    max-width: min(300px, 72%);
    max-height: 110px;
  }

  .sg3-hero__copy > p {
    max-width: 92%;
    font-size: 12px;
    line-height: 1.75;
    -webkit-line-clamp: 2;
  }

  .sg3-hero__original {
    margin-bottom: 11px;
    font-size: 9px;
  }

  .sg3-hero__meta {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .sg3-hero__actions {
    margin-top: 19px;
  }

  .sg3-btn {
    height: 46px;
    padding: 0 18px;
    font-size: 12px;
  }

  .sg3-btn--icon {
    width: 46px;
    padding: 0;
  }

  .sg3-hero__previews {
    right: 18px;
    bottom: 30px;
    left: 18px;
  }

  .sg3-hero__preview {
    width: 108px;
    border-radius: 10px;
  }

  .sg3-hero__preview.is-active {
    width: 145px;
  }

  .sg3-hero__preview > span {
    right: 7px;
    bottom: 6px;
    left: 7px;
  }

  .sg3-hero__preview b {
    font-size: 8px;
  }

  .sg3-hero__counter {
    display: none;
  }

  .sg3-home__content {
    padding-top: 20px;
  }

  .sg3-section {
    margin-bottom: 27px;
  }

  .sg3-section__head {
    min-height: 43px;
    margin-bottom: 10px;
  }

  .sg3-section__head h2 {
    font-size: 19px;
  }

  .sg3-section__tools button {
    display: none;
  }

  .sg3-section__tools a {
    font-size: 10px;
  }

  .sg3-rail {
    grid-auto-columns: 132px;
    gap: 11px;
    margin-inline: -18px;
    padding: 6px 18px 18px;
  }

  .sg3-rail--wide,
  .sg3-rail--continue {
    grid-auto-columns: 245px;
  }

  .sg3-rail--rank {
    grid-auto-columns: 208px;
  }

  .sg3-card__body {
    padding-top: 9px;
  }

  .sg3-card__body > strong {
    font-size: 12px;
  }

  .sg3-card__body > span {
    font-size: 9px;
  }

  .sg3-card__play {
    display: none;
  }

  .sg3-editorial {
    min-height: 410px;
    margin: 42px 18px;
    display: flex;
    align-items: flex-end;
  }

  .sg3-editorial__shade {
    background: linear-gradient(0deg, rgba(5, 5, 11, .98), rgba(5, 5, 11, .2) 80%);
  }

  .sg3-editorial__copy {
    width: 100%;
    padding: 26px;
  }

  .sg3-editorial__copy h2 {
    font-size: 2.4rem;
  }

  .sg3-editorial__stamp {
    top: 18px;
    left: 18px;
    width: 68px;
    height: 68px;
  }

  .sg3-library,
  .sg3-browse,
  .sg3-search {
    padding-top: 96px;
    padding-bottom: 98px;
  }

  .sg3-library__head,
  .sg3-browse__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sg3-library__head h1,
  .sg3-browse__head h1 {
    font-size: 2.8rem;
  }

  .sg3-filterbar {
    top: 68px;
    align-items: stretch;
    flex-direction: column;
  }

  .sg3-filterbar__selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sg3-select {
    width: 100%;
  }

  .sg3-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 11px;
  }

  .sg3-searchbox {
    width: 100%;
  }

  .sg3-types {
    grid-template-columns: 1fr;
  }

  .sg3-type {
    min-height: 210px;
  }

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

  .sg3-search__form {
    height: 64px;
    border-radius: 19px;
  }

  .sg3-search__form input {
    font-size: 16px;
  }

  .sg3-search__form button {
    width: 45px;
    height: 45px;
    border-radius: 14px;
  }

  .sg3-detail__hero {
    min-height: 760px;
    height: 88vh;
  }

  .sg3-detail__veil {
    background:
      linear-gradient(0deg, var(--sg3-bg), rgba(3, 3, 8, .8) 30%, transparent 68%),
      linear-gradient(180deg, rgba(3, 3, 8, .5), transparent 26%);
  }

  .sg3-detail__copy {
    right: 18px;
    bottom: 10%;
    width: calc(100% - 36px);
  }

  .sg3-detail__copy h1 {
    max-width: 90%;
    font-size: clamp(2.7rem, 12vw, 4.8rem);
  }

  .sg3-detail__copy > p {
    max-width: 94%;
    font-size: 12px;
    -webkit-line-clamp: 3;
  }

  .sg3-detail__logo {
    max-width: 290px;
    max-height: 110px;
  }

  .sg3-detail__episodes {
    padding: 0 18px;
  }

  .sg3-episode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sg3-hero {
    min-height: 700px;
  }

  .sg3-hero__copy {
    bottom: 137px;
  }

  .sg3-hero h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .sg3-hero__meta span:nth-last-child(-n + 2) {
    display: none;
  }

  .sg3-hero__actions {
    width: 100%;
  }

  .sg3-btn--primary,
  .sg3-btn--glass {
    flex: 1 1 auto;
  }

  .sg3-hero__actions .sg3-btn--icon {
    flex: 0 0 46px;
  }

  .sg3-hero__preview {
    width: 96px;
  }

  .sg3-hero__preview.is-active {
    width: 132px;
  }

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

  .sg3-genres {
    gap: 10px;
  }

  .sg3-genre {
    min-height: 132px;
  }

  .sg3-genre strong {
    font-size: 15px;
  }

  .sg3-search__result-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: none) {
  .sg3-card__quality {
    display: none;
  }

  .sg3-card__play {
    display: none;
  }

  .sg3-card__visual,
  .sg3-rank__visual {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg3-hero__asset,
  .sg3-hero__preview.is-active::before {
    animation: none !important;
  }
}

@keyframes sg3HeroIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sg3HeroZoom {
  from { transform: scale(1.015); }
  to { transform: scale(1.075); }
}

@keyframes sg3HeroProgress {
  from { width: 0; }
  to { width: 100%; }
}
