/* نسخة معدلة مع تكبير السويتش وتحريكه لليسار */
.cinema-section {
  width: 100%;
  max-width: 1512px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.blur-image-cinema {
  position: absolute;
  width: 717px;
  height: 382px;
  top: 1480px;
  left: 800px;
  pointer-events: none;
  z-index: 0;
}

.mobile-blur-image-cinema {
  display: none;
  position: absolute;
  width: 100%;
  max-width: 440px;
  height: auto;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.cinema-title-wrapper {
  width: 100%;
  max-width: 1108px;
  margin-bottom: 100px;
  text-align: center;
}

.cinema-title {
  font-family: Inter, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ededed;
  line-height: 100%;
  margin: 0;
}

.cinema-content {
  width: 100%;
  max-width: 1512px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.cinema-video-wrapper {
  width: 1520px;
  height: 600px; /* تعديل الطول ليكون نفس طول الصورة السابقة */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-controls-bar {
  width: 100%;
  max-width: 1512px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  gap: 24px;
}

.cinema-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 120px !important;
  height: 120px !important;
  padding: 25px !important;
  background: none;
  border-radius: 100px;
}

.cinema-toggle-switch {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 240px !important;
  height: 120px !important;
}

.toggle-icon {
  width: 240px !important;
  height: 120px !important;
  object-fit: contain;
}

.toggle-label {
  font-family: Inter, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 100%;
  text-align: center;
}

.toggle-unified {
  width: 56px !important;
  height: 28px !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}

/* تعديل حجم ومكان السويتش في الديسكتوب */
.cinema-section .toggle-unified {
  width: 280px !important; /* كان 240px */
  height: 140px !important; /* كان 120px */
  padding: 36px !important;
  transform: translateX(-30px); /* تحريك لليسار */
}

.cinema-section .toggle-unified img,
.cinema-section .toggle-unified .toggle-icon {
  width: 140px !important; /* كان 120px */
  height: 70px !important; /* كان 60px */
  object-fit: contain !important;
}

/* تحكم منفصل للديسكتوب فقط */
@media (min-width: 601px) {
  .cinema-section .toggle-unified {
    width: 500px !important; /* تكبير أكبر بكثير للديسكتوب */
    height: 250px !important; /* تكبير أكبر بكثير للديسكتوب */
    padding: 60px !important;
    transform: translateX(-100px); /* تحريك للجهة الأخرى (اليسار) */
  }
  
  .cinema-section .toggle-unified img,
  .cinema-section .toggle-unified .toggle-icon {
    width: 250px !important; /* تكبير أكبر بكثير للديسكتوب */
    height: 125px !important; /* تكبير أكبر بكثير للديسكتوب */
    object-fit: contain !important;
  }
}

.toggle-unified img,
.toggle-unified .toggle-icon {
  width: 28px !important;
  height: 14px !important;
  object-fit: contain !important;
}

.toggle-unified .toggle-label,
.toggle-unified span {
  font-family: Inter, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 100% !important;
  text-align: center !important;
  margin-top: 4px !important;
}

.toggle-row {
  width: 424px !important;
  height: 73px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-right: 48px !important;
  background: none !important;
  border-radius: 30px !important;
  box-sizing: border-box !important;
  margin: 0 auto 16px auto !important;
}

@media (max-width: 600px) {
  .cinema-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  
  /* إزالة التأثير البصري في الموبايل */
  .cinema-toggle:focus,
  .blinds-toggle:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
      outline: none !important;
      box-shadow: none !important;
  }
  
  .cinema-toggle:active,
  .blinds-toggle:active,
  button:active,
  input:active,
  select:active,
  textarea:active {
      outline: none !important;
      box-shadow: none !important;
  }

  .blur-image-cinema {
    display: none;
  }

  .mobile-blur-image-cinema {
    display: block !important;
    position: absolute;
    width: 100%;
    max-width: 440px;
    height: auto;
    top: 240px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
    filter: blur(2px);
  }

  .cinema-title-wrapper {
    width: 422px;
    margin-bottom: 16px;
    text-align: center;
  }

  .cinema-title {
    font-size: 18px;
    font-weight: 700;
    color: #ededed;
    line-height: 100%;
    margin: 0;
  }

  .cinema-content {
    width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .cinema-video-wrapper {
    width: 440px;
    height: 351px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cinema-video {
    width: 440px;
    height: 351px;
    object-fit: cover;
    border-radius: 0;
  }

  .cinema-controls-bar {
    width: 424px;
    height: 73px;
    background: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    gap: 0;
    margin: 0 auto 16px auto;
    text-align: center;
    padding-left: 80px;
  }

  .cinema-toggle {
    width: 72px;
    height: 68px;
    border-radius: 100px;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    gap: 10px;
    margin: 0 auto;
    text-align: center;
  }

  .cinema-toggle-switch {
    width: 240px !important;
    height: 120px !important;
  }

  .cinema-section .toggle-icon {
    width: 120px !important;
    height: 60px !important;
    object-fit: contain;
  }

  .toggle-label {
    font-size: 18px;
    margin-top: 4px;
  }

  .cinema-section .cinema-toggle-switch {
    width: 240px !important;
    height: 120px !important;
  }

  .cinema-section .toggle-icon {
    width: 120px !important;
    height: 60px !important;
    object-fit: contain;
  }

  .cinema-section .cinema-controls-bar {
    height: 73px;
    gap: 0;
    margin: 0 auto 16px auto;
  }

  .cinema-section .cinema-toggle {
    width: 72px;
    height: 68px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile-only toggle updates to match section 6 */
  .cinema-controls-bar {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    justify-content: center !important;
    /* تأكيد التوسيط */
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .toggle-row {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 24px auto !important;
    /* تأكيد التوسيط الأفقي */
    text-align: center !important;
  }
  
  .cinema-section .toggle-unified {
    width: 120px !important;
    height: 120px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border-radius: 100px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    gap: 16px !important;
    /* transform: none !important; */ /* معلق لمنع التعارض مع قواعد :active و :focus */
    margin: 0 auto !important;
    /* تأكيد التوسيط */
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  .cinema-section .toggle-unified.is-active {
    background: transparent !important;
  }
  
  .cinema-section .toggle-unified img,
  .cinema-section .toggle-unified .toggle-icon {
    width: 88px !important;
    height: 88px !important;
    object-fit: contain !important;
    margin: 0 !important;
    opacity: 0.8;
    transition: opacity 0.2s ease !important;
  }
  
  .cinema-section .toggle-unified.is-active img,
  .cinema-section .toggle-unified.is-active .toggle-icon {
    opacity: 1;
  }
  
  .cinema-section .toggle-unified .toggle-label,
  .cinema-section .toggle-unified span {
    font-family: Inter, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
}

/* منع تقلص زر ON/OFF عند الضغط عليه */
/* Desktop rules (min-width: 601px) */
@media (min-width: 601px) {
  .cinema-section .toggle-unified:active,
  .cinema-section .toggle-unified:focus {
    transform: translateX(-100px) !important; /* الحفاظ على الموضع الصحيح للديسكتوب */
    width: 500px !important;
    height: 250px !important;
    padding: 60px !important;
  }
  
  .cinema-section .toggle-unified:active img,
  .cinema-section .toggle-unified:active .toggle-icon,
  .cinema-section .toggle-unified:focus img,
  .cinema-section .toggle-unified:focus .toggle-icon {
    width: 250px !important;
    height: 125px !important;
  }
}

/* Mobile rules (max-width: 600px) */
@media (max-width: 600px) {
  .cinema-section .toggle-unified:active,
  .cinema-section .toggle-unified:focus {
    transform: translateX(-50%) !important; /* الحفاظ على الموضع الصحيح للموبايل */
    width: 120px !important;
    height: 120px !important;
    padding: 16px !important;
  }
  
  .cinema-section .toggle-unified:active img,
  .cinema-section .toggle-unified:active .toggle-icon,
  .cinema-section .toggle-unified:focus img,
  .cinema-section .toggle-unified:focus .toggle-icon {
    width: 88px !important;
    height: 88px !important;
  }
}
