/* ShwePlay Detail Views & Editorial Hub — Consolidated & Mobile Remediation */
.sp-route-wep_movie_view .sp-page-heading,
.sp-route-wep_serie_view .sp-page-heading,
.sp-route-wep_channel_view .sp-page-heading,
.sp-route-wep_actor_view .sp-page-heading {
  display: none !important;
}

.sp-detail-hero-content { align-items: flex-start !important; }

/* Cinema Story & Editorial Showcase Hub */
.sp-detail-cinema-hub {
  margin-top: 18px !important;
  background: linear-gradient(145deg, rgba(20, 26, 38, 0.88) 0%, rgba(11, 15, 23, 0.96) 100%) !important;
  border: 1px solid rgba(255, 214, 91, 0.22) !important;
  border-radius: 20px !important;
  padding: 22px 26px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 214, 91, 0.3) !important;
  max-width: 960px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  text-align: left !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.sp-detail-cinema-hub:hover {
  border-color: rgba(255, 214, 91, 0.38) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 214, 91, 0.08) !important;
}
.sp-cinema-stack-block { display: flex !important; flex-direction: column !important; gap: 12px !important; }
.sp-cinema-stack-header { display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 10px !important; }
.sp-cinema-section-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, rgba(255, 214, 91, 0.18), rgba(245, 179, 1, 0.1)) !important;
  border: 1px solid rgba(255, 214, 91, 0.45) !important;
  color: #ffd65b !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 214, 91, 0.15) !important;
}
.sp-editorial-pill-glow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 8px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #0b0f19 !important;
  background: linear-gradient(135deg, #ffd65b, #f5a623) !important;
  border-radius: 10px !important;
  text-transform: uppercase !important;
  margin-left: 4px !important;
  box-shadow: 0 2px 8px rgba(255, 214, 91, 0.3) !important;
}
.sp-editorial-details { border-top: 1px solid rgba(255, 255, 255, 0.1) !important; padding-top: 16px !important; margin-top: 2px !important; width: 100% !important; }
.sp-editorial-summary-bar {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 12px !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 214, 91, 0.28) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  user-select: none !important;
  flex-wrap: wrap !important;
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.sp-editorial-summary-bar::-webkit-details-marker,
.sp-editorial-summary-bar::marker { display: none !important; content: "" !important; }
.sp-editorial-summary-bar * { pointer-events: none !important; }
.sp-editorial-summary-bar:hover { background: rgba(255, 214, 91, 0.1) !important; border-color: #ffd65b !important; box-shadow: 0 6px 18px rgba(255, 214, 91, 0.15) !important; }
.sp-editorial-summary-left { display: flex !important; align-items: center !important; gap: 8px 10px !important; flex-wrap: wrap !important; min-width: 0; }
.sp-editorial-summary-right { display: inline-flex !important; align-items: center !important; gap: 10px !important; margin-left: auto; }
.sp-editorial-toggle-hint { font-size: 12px !important; font-weight: 700 !important; color: #ffd65b !important; }
.sp-editorial-details:not([open]) .sp-hint-opened,
.sp-editorial-details[open] .sp-hint-closed { display: none !important; }
.sp-editorial-chevron-circle {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 214, 91, 0.16) !important;
  border: 1px solid rgba(255, 214, 91, 0.4) !important;
  color: #ffd65b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
}
.sp-editorial-chevron { transition: transform 0.25s ease !important; }
.sp-editorial-details[open] .sp-editorial-chevron { transform: rotate(180deg) !important; }
.sp-editorial-details[open] .sp-editorial-summary-bar {
  margin-bottom: 14px !important;
  background: linear-gradient(135deg, rgba(255, 214, 91, 0.12), rgba(245, 179, 1, 0.05)) !important;
  border-color: rgba(255, 214, 91, 0.45) !important;
}
.sp-cinema-pane { animation: spCinemaFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; }
@keyframes spCinemaFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.sp-editorial-spotlight { background: rgba(13, 18, 28, 0.6) !important; border: 1px solid rgba(255, 214, 91, 0.15) !important; border-radius: 14px !important; padding: 18px 20px !important; }
.sp-editorial-byline-bar { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; padding-bottom: 14px !important; margin-bottom: 16px !important; border-bottom: 1px solid rgba(255, 214, 91, 0.15) !important; flex-wrap: wrap !important; }
.sp-editorial-byline-left { display: flex !important; align-items: center !important; gap: 12px !important; }
.sp-byline-avatar { width: 38px !important; height: 38px !important; border-radius: 10px !important; background: linear-gradient(135deg, rgba(255, 214, 91, 0.2), rgba(245, 179, 1, 0.1)) !important; border: 1px solid rgba(255, 214, 91, 0.35) !important; color: #ffd65b !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 16px !important; flex-shrink: 0; }
.sp-byline-name { display: block !important; font-size: 13.5px !important; font-weight: 800 !important; color: #ffffff !important; }
.sp-byline-desc { display: block !important; font-size: 11.5px !important; color: #94a3b8 !important; }
.sp-editorial-verified-tag { display: inline-flex !important; align-items: center !important; gap: 5px !important; padding: 4px 10px !important; background: rgba(16, 185, 129, 0.15) !important; border: 1px solid rgba(16, 185, 129, 0.35) !important; color: #34d399 !important; border-radius: 999px !important; font-size: 11.5px !important; font-weight: 700 !important; }
.sp-editorial-body-content { display: flex !important; gap: 14px !important; align-items: flex-start !important; }
.sp-quote-icon { color: rgba(255, 214, 91, 0.35) !important; font-size: 22px !important; margin-top: 3px !important; flex-shrink: 0 !important; }
.sp-editorial-text-article { color: #e2e8f0 !important; font-size: 14.5px !important; line-height: 1.85 !important; font-weight: 400 !important; word-break: break-word !important; }

/* Light Mode WCAG AA Overrides for Cinema Editorial Hub */
.light-mode .sp-detail-cinema-hub { background: rgba(255, 255, 255, 0.96) !important; border-color: rgba(180, 83, 9, 0.3) !important; box-shadow: 0 14px 36px rgba(15, 23, 42, 0.25) !important; }
.light-mode .sp-detail-stage .sp-detail-cinema-hub p,
.light-mode .sp-detail-cinema-hub .sp-detail-description,
.light-mode .sp-detail-cinema-hub .sp-editorial-text-article { color: #1e293b !important; text-shadow: none !important; }
.light-mode .sp-detail-cinema-hub .sp-cinema-section-badge { background: rgba(245, 158, 11, 0.14) !important; border-color: rgba(180, 83, 9, 0.4) !important; color: #92400e !important; box-shadow: none !important; }
.light-mode .sp-detail-cinema-hub .sp-editorial-details { border-top-color: rgba(15, 23, 42, 0.1) !important; }
.light-mode .sp-detail-cinema-hub .sp-editorial-summary-bar { background: #f8fafc !important; border-color: rgba(180, 83, 9, 0.3) !important; }
.light-mode .sp-detail-cinema-hub .sp-editorial-toggle-hint,
.light-mode .sp-detail-cinema-hub .sp-editorial-chevron-circle,
.light-mode .sp-detail-cinema-hub .sp-byline-avatar { color: #92400e !important; }
.light-mode .sp-detail-cinema-hub .sp-editorial-spotlight { background: #f8fafc !important; border-color: rgba(15, 23, 42, 0.1) !important; }
.light-mode .sp-detail-cinema-hub .sp-byline-name { color: #0f172a !important; }
.light-mode .sp-detail-cinema-hub .sp-byline-desc { color: #475569 !important; }
.light-mode .sp-detail-cinema-hub .sp-editorial-verified-tag { background: rgba(16, 185, 129, 0.12) !important; border-color: rgba(5, 150, 105, 0.35) !important; color: #065f46 !important; }

/* CRITICAL Share Menu Fix [S2-DET-01] */
.sp-luxury-share-menu { display: none !important; }
.sp-luxury-share-menu.is-open { display: flex !important; align-items: center; gap: 8px; }
.sp-share-item {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

/* Burmese Line-Height Safeguards */
.sp-locale-mm .sp-detail-title { line-height: 1.55 !important; letter-spacing: 0 !important; }
.sp-locale-mm .sp-detail-description,
.sp-locale-mm .sp-editorial-text-article,
.sp-locale-mm .comment-text p,
.sp-locale-mm .review article p { line-height: 1.8 !important; }

/* Tablet & Phone Hero Centering + Channel Alignment */
@media (max-width: 991.98px) {
  .sp-detail-stage { margin-top: 0 !important; padding-top: 16px !important; padding-bottom: 28px !important; }
  .sp-detail-hero-content { flex-direction: column !important; align-items: center !important; padding-top: 4px !important; gap: 20px !important; text-align: center !important; }
  .sp-detail-poster-col { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; margin: 0 auto !important; display: flex !important; justify-content: center !important; }
  .sp-detail-poster-card { margin: 0 auto !important; display: flex; justify-content: center; }
  .sp-detail-info-col { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; }
  .sp-channel-broadcast-stage .sp-detail-poster-card { width: 184px !important; height: 184px !important; padding: 20px !important; }
  .sp-channel-broadcast-stage .sp-detail-synopsis-box { width: 100% !important; max-width: 100% !important; text-align: left !important; padding: 16px !important; }
}

/* Mobile Comments & Reviews (<= 767.98px) */
@media (max-width: 767.98px) {
  .input-comment,
  .input-review { font-size: 16px !important; }
  .sp-community-card-box { padding: 16px 14px !important; border-radius: 16px !important; }
  .comment-section { padding: 10px !important; }
  .comment-item { padding: 12px 6px !important; }
  .comment-item:not(.comment-write) .avatar-thumb { float: left; width: 34px; height: 34px; }
  .comment-item:not(.comment-write) .avatar-thumb img { width: 34px !important; height: 34px !important; }
  .comment-item:not(.comment-write) .comment-text { margin-left: 44px !important; }
  .comment-item.comment-write .comment-text { margin-left: 0 !important; }
  .comment-btn-item.open-login,
  .submit-comment { min-height: 44px !important; }
}

/* Phone Stacked Action Column & Cinema Hub (<= 576px) */
@media (max-width: 576px) {
  .sp-detail-container { padding-left: 14px !important; padding-right: 14px !important; }
  .sp-detail-actions-hub { flex-direction: column !important; align-items: stretch !important; width: 100% !important; gap: 10px !important; }
  .sp-detail-actions-hub .sp-btn-play-hero,
  .sp-detail-actions-hub .sp-btn-glass-action,
  .sp-detail-actions-hub .btn-fav,
  .sp-detail-actions-hub .btn-fav-channel,
  .sp-btn-fav-detail,
  .sp-share-dropdown-wrapper #share-btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    min-height: 46px !important;
  }
  .sp-share-dropdown-wrapper { width: 100% !important; display: block !important; }
  .sp-luxury-share-menu.is-open {
    position: static !important;
    margin-top: 10px !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
  }
}

@media (max-width: 575.98px) {
  .sp-detail-title { font-size: 1.55rem !important; line-height: 1.35 !important; }
  .sp-locale-mm .sp-detail-title { line-height: 1.55 !important; }
  .sp-detail-cinema-hub { padding: 16px 14px !important; text-align: left !important; border-radius: 16px !important; }
  .sp-detail-description { text-align: left !important; line-height: 1.75 !important; }
  .sp-cinema-section-badge { flex-wrap: wrap; padding: 6px 12px !important; font-size: 12.5px !important; max-width: 100%; }
  .sp-cinema-section-badge > span:first-of-type { white-space: nowrap; }
  .sp-editorial-summary-left > .sp-editorial-verified-tag { display: none !important; }
  .sp-editorial-spotlight { padding: 14px 12px !important; }
  .sp-quote-icon { display: none !important; }
}
