/* ========================================
   ئاساسىي تەڭشەك
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
  font-size: 16px;
  /* ئاساس چوڭلۇق */
}

body {
  font-family: 'UKIJ Ekran', 'Alkatip Basma Tom', 'UKIJ Tuz Tom', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #040714;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  text-align: center;
}

/* ========================================
   ئاساسىي كونتېينېر
   ======================================== */

.disney-page {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  /* ئەڭ كىچىك ئېگىزلىك */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ========================================
   كىنو ئارقا كۆرۈنۈشى
   ======================================== */

.movies-background {
  position: absolute;
  top: -8%;
  left: -8%;
  right: -8%;
  bottom: -8%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.5vw;
  z-index: 1;
  animation: gridDrift 26s linear infinite alternate;
  transform-origin: center;
  will-change: transform;
}

@keyframes gridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(-2%, -2%, 0);
  }

  50% {
    transform: translate3d(-3%, -1%, 0);
  }

  75% {
    transform: translate3d(-2%, 1%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.movie-poster {
  overflow: hidden;
  border-radius: 0.8vw;
  position: relative;
  box-shadow: 0 0 2vw rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at center, rgba(0, 179, 255, 0.22), transparent 62%);
  animation: floatPoster 9s ease-in-out infinite;
}

.movie-poster:nth-child(odd) {
  animation-duration: 10s;
  animation-delay: -3s;
}

.movie-poster:nth-child(3n) {
  animation-duration: 12s;
  animation-delay: -5s;
}

.movie-poster.focus {
  animation-duration: 9s;
}

.movie-poster:hover {
  box-shadow: 0 0 3vw rgba(0, 179, 255, 1);
}

@keyframes floatPoster {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    filter: brightness(0.7);
  }

  20% {
    transform: translate3d(0, -0.2vh, 0);
    opacity: 1;
    filter: brightness(1);
  }

  40% {
    transform: translate3d(0, 0.1vh, 0);
    opacity: 0.9;
    filter: brightness(0.8);
  }

  60% {
    transform: translate3d(0, -0.1vh, 0);
    opacity: 1;
    filter: brightness(1);
  }

  80% {
    transform: translate3d(0, 0.1vh, 0);
    opacity: 0.9;
    filter: brightness(0.85);
  }

  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    filter: brightness(0.7);
  }
}

@keyframes twinklePoster {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  18% {
    opacity: 0.1;
  }

  26% {
    opacity: 0.7;
  }

  40% {
    opacity: 0;
  }

  60% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.2;
  }

  100% {
    opacity: 0;
  }
}

.movie-poster::after {
  content: '';
  position: absolute;
  inset: -0.1vw;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(0, 220, 255, 0.35), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: twinklePoster 9s ease-in-out infinite;
}

.movie-poster:nth-child(2n)::after {
  animation-delay: -3s;
}

.movie-poster:nth-child(3n)::after {
  animation-delay: -5s;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.movie-poster.focus {
  border: 0.2vw solid #00b3ff;
  box-shadow: 0 0 4vw rgba(0, 179, 255, 1);
  z-index: 3;
}

/* ========================================
   قارا ماسكا
   ======================================== */

.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(4, 7, 20, 0.05) 0%, rgba(4, 7, 20, 0.4) 50%, rgba(4, 7, 20, 0.9) 80%, rgba(4, 7, 20, 1) 100%);
  z-index: 2;
}

/* ========================================
   ئاساسىي مەزمۇن
   ======================================== */

.main-content {
  position: absolute;
  bottom: 10%;
  z-index: 3;
  width: min(440px, 90vw);
  padding: clamp(32px, 5vh, 56px) clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vh, 24px);
  text-align: center;
}

/* APP رەسىمى ۋە نامى */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vh, 12px);
}

.hero-icon {
  width: clamp(80px, 12vw, 110px);
  height: clamp(80px, 12vw, 110px);
  border-radius: clamp(18px, 2.8vw, 26px);
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(255, 115, 0, 0.6),
    0 8px 16px rgba(0, 0, 0, 0.3);
  animation: heroPulse 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-icon:hover {
  transform: scale(1.05);
}

@keyframes heroPulse {

  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.1),
      0 0 40px rgba(255, 115, 0, 0.6),
      0 8px 16px rgba(0, 0, 0, 0.3);
  }

  50% {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.15),
      0 0 60px rgba(255, 140, 40, 0.9),
      0 12px 24px rgba(0, 0, 0, 0.4);
  }
}

.logo-text {
  font-size: clamp(28px, 5.5vw, 42px);
  font-weight: 900;
  letter-spacing: clamp(2px, 0.4vw, 6px);
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.app-version {
  font-size: clamp(12px, 1.6vw, 16px);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-top: -0.9em;
}


/* چۈشۈرۈش كۇنۇپكىسى */
.main-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.7em 2.4em;
  font-size: clamp(13px, 1.7vw, 16px);
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0f172a 100%);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 10;
  touch-action: manipulation;
  width: auto;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.65);
}

/* كۇنۇپكا لوگوسى */
.btn-icon {
  width: 1.25em;
  height: 1.25em;
  min-width: 18px;
  min-height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: none;
  flex-shrink: 0;
}

/* Android لوگوسى */
.btn-icon.android-logo {
  display: block;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.28-.55-.37-.83-.22-.3.16-.42.54-.26.85l1.84 3.18C2.92 10.88 1 13.94 1 17.5h22c0-3.56-1.92-6.62-5.4-8.02M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"/></svg>');
}

/* iOS/Apple لوگوسى */
.btn-icon.ios-logo {
  display: block;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01M12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25"/></svg>');
}

.main-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-150%);
  animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    transform: translateX(-150%);
  }

  100% {
    transform: translateX(350%);
  }
}

.main-btn:hover {
  background: linear-gradient(135deg, #0075ff 0%, #005ce6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 99, 229, 0.45);
}

.main-btn:hover::before {
  opacity: 1;
}

.main-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 99, 229, 0.4);
}

/* ========================================
   كومپيۇتېر QR Code كۆزنىكى
   ======================================== */

.desktop-qr {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: none;
  align-items: center;
  justify-content: center;
}

.desktop-qr.show {
  display: flex;
}

.qr-container {
  background: white;
  border-radius: 2.5vw;
  padding: 5vh 6vw;
  text-align: center;
  box-shadow: 0 2vh 6vw rgba(0, 0, 0, 0.3);
  max-width: 50vw;
}

.qr-title {
  font-size: 3.5vw;
  font-weight: 900;
  color: #333;
  margin-bottom: 3vh;
  direction: rtl;
}

.qr-code-box {
  background: white;
  padding: 2vh;
  border-radius: 1.6vw;
  border: 0.3vw solid #f0f0f0;
  margin-bottom: 2.5vh;
  display: inline-block;
}

.qr-image {
  width: 30vw;
  height: 30vw;
  max-width: 300px;
  max-height: 300px;
  display: block;
}

.qr-desc {
  font-size: 2vw;
  color: #666;
  direction: rtl;
  margin: 0 0 3vh 0;
}

/* قەدەم-قەدەم چۈشەندۈرۈش */
.qr-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
  margin-top: 2vh;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1.5vw;
  padding: 1.5vh 2vw;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1.2vw;
  direction: rtl;
  transition: transform 0.2s ease;
}

.step-item:hover {
  transform: translateX(-0.5vw);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5vw;
  height: 3.5vw;
  min-width: 32px;
  min-height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.8vw;
  font-weight: 900;
  flex-shrink: 0;
}

.step-text {
  font-size: 1.8vw;
  color: #333;
  font-weight: 600;
  flex: 1;
  text-align: right;
}

/* ========================================
   微信 كۆرسەتمە كۆزنىكى
   ======================================== */

.wechat-tip {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f5f5f5;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 3vw;
  overflow-y: auto;
}

.wechat-tip.show {
  display: flex;
}

.wechat-content {
  max-width: 90vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wechat-guide-img {
  max-width: 70vw;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 3vh;
  border-radius: 1vw;
  box-shadow: 0 0.5vh 1.5vh rgba(0, 0, 0, 0.1);
}

/* چۈشەندۈرۈش قەدەملىرى */
.wechat-steps {
  width: 100%;
  max-width: 85vw;
  background: white;
  border-radius: 2vw;
  padding: 3vh 3vw;
  box-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.08);
  margin-bottom: 2vh;
}

.wechat-step {
  display: flex;
  align-items: center;
  gap: 2vw;
  padding: 2vh 0;
  border-bottom: 0.1vh solid #f0f0f0;
  direction: rtl;
}

.wechat-step:last-child {
  border-bottom: none;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5vw;
  height: 4.5vw;
  min-width: 32px;
  min-height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-size: 2.2vw;
  font-weight: 900;
  flex-shrink: 0;
}

.step-desc {
  flex: 1;
  font-size: 2vw;
  color: #1a1a1a;
  line-height: 1.6;
  text-align: right;
}

.step-desc strong {
  color: #000000;
  font-weight: 900;
}

/* ئەسكەرتىش */
.wechat-hint {
  width: 100%;
  max-width: 85vw;
  text-align: center;
  font-size: 1.8vw;
  color: #2a2a2a;
  direction: rtl;
  line-height: 1.8;
  padding: 2vh 2vw;
  background: white;
  border-radius: 1.5vw;
  box-shadow: 0 0.3vh 1vh rgba(0, 0, 0, 0.06);
}

/* ========================================
   بەت ئاستى ئۇچۇر
   ======================================== */

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  text-align: center;
  font-size: clamp(9px, 1.2vw, 12px);
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: inline-flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 10px);
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
}

.footer-inner .dot {
  opacity: 0.5;
  margin: 0 clamp(2px, 0.3vw, 4px);
}

/* ========================================
   تېلېفون تەڭشىكى (< 768px)
   ======================================== */

@media (max-width: 768px) {

  .movies-background {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 1.5vw;
  }

  .main-content {
    width: 90vw;
    padding: 4vh 6vw;
  }

  .hero {
    gap: 2vh;
  }

  .hero-icon {
    width: 18vw;
    height: 18vw;
  }

  .logo-text {
    font-size: 8.5vw;
  }

  .app-version {
    font-size: 3vw;
  }

  .main-btn {
    width: auto;
    justify-content: center;
    padding: 0.95em 2.2em;
    font-size: 4vw;
    gap: 0.55em;
  }

  .btn-icon {
    width: 1.45em;
    height: 1.45em;
  }

  .qr-container {
    padding: 4vh 5vw;
    margin: 3vh;
    max-width: 90vw;
  }

  .qr-title {
    font-size: 6.5vw;
    margin-bottom: 3vh;
  }

  .qr-image {
    width: 65vw;
    height: 65vw;
  }

  .qr-desc {
    font-size: 4.2vw;
    margin-bottom: 3vh;
  }

  .step-item {
    padding: 1.5vh 3vw;
    gap: 3vw;
  }

  .step-number {
    width: 8vw;
    height: 8vw;
    font-size: 4vw;
  }

  .step-text {
    font-size: 3.8vw;
  }

  .wechat-tip {
    padding: 3vh 4vw;
  }

  .wechat-guide-img {
    max-width: 90vw;
    margin-bottom: 3vh;
  }

  .wechat-steps {
    padding: 3vh 4vw;
  }

  .wechat-step {
    padding: 2vh 0;
    gap: 3vw;
  }

  .step-num {
    width: 9vw;
    height: 9vw;
    font-size: 4.5vw;
  }

  .step-desc {
    font-size: 4vw;
  }

  .wechat-hint {
    font-size: 3.5vw;
    padding: 2vh 3vw;
  }

  .site-footer {
    font-size: 2.5vw;
    bottom: 0;
  }

  .footer-inner {
    padding: 1vh 3vw;
    gap: 1.5vw;
  }
}

/* كىچىك تېلېفونلار (< 375px) */
@media (max-width: 375px) {

  .main-content {
    width: 92vw;
    padding: 3vh 4vw;
  }

  .hero-icon {
    width: 22vw;
    height: 22vw;
  }

  .logo-text {
    font-size: 10vw;
  }

  .app-version {
    font-size: 4vw;
  }

  .main-btn {
    font-size: 4.4vw;
    padding: 2.2vh 0;
  }

  .qr-image {
    width: 72vw;
    height: 72vw;
  }
}

/* چوڭ تېلېفونلار (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

  .main-content {
    width: min(500px, 70vw);
  }

  .hero-icon {
    width: 12vw;
    height: 12vw;
  }

  .logo-text {
    font-size: 6vw;
  }

  .app-version {
    font-size: 2.2vw;
  }

  .main-btn {
    padding: 2vh 0;
    font-size: 2.2vw;
  }
}

/* كېڭلىكى بويىچە (Landscape) */
@media (max-height: 600px) and (orientation: landscape) {

  .disney-page {
    padding-bottom: 5vh;
  }

  .main-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(600px, 80vw);
    margin: 0 auto;
    padding: 2vh 3vw 3vh;
  }

  .hero {
    margin-bottom: 1.5vh;
  }

  .hero-icon {
    width: 8vw;
    height: 8vw;
  }

  .logo-text {
    font-size: 5vw;
  }

  .main-btn {
    margin-top: 1vh;
    margin-bottom: 2vh;
    padding: 1.5vh 0;
  }

  .site-footer {
    bottom: 0;
    font-size: 2vw;
  }
}