/* DailyPlay Floating Widget — host page overlay styles */

/* Stream widgets stay hidden until dailyplay-widget.js marks them ready. */
[data-dailyplay-floating-widget][data-embed-type="stream"]:not([data-dailyplay-stream-ready="true"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.dailyplay-floating-widget {
  position: fixed !important;
  z-index: 2147483000 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.dailyplay-floating-widget--bottom-right {
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  top: auto !important;
}

.dailyplay-floating-widget--bottom-left {
  bottom: 24px !important;
  left: 24px !important;
  right: auto !important;
  top: auto !important;
}

.dailyplay-floating-widget--bottom-center {
  bottom: 24px !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  transform: translateX(-50%) !important;
}

.dailyplay-floating-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  line-height: 1.2;
  box-sizing: border-box;
}

.dailyplay-floating-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.dailyplay-floating-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  z-index: 2147483001 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none !important;
  border-radius: 0 !important;
}

.dailyplay-floating-modal.is-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.dailyplay-floating-modal__panel {
  position: relative;
  width: 100%;
  max-width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.dailyplay-floating-modal iframe {
  display: block;
  width: 100%;
  height: 560px;
  min-height: 480px;
  border: none !important;
  background: transparent !important;
  border-radius: 16px;
  transition: height 0.2s ease;
  overflow: hidden;
}

.dailyplay-floating-modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  background: rgba(17, 24, 39, 0.9) !important;
  color: #fff !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 1 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dailyplay-floating-modal__close:hover {
  background: rgba(17, 24, 39, 1) !important;
  transform: scale(1.05);
}

body.dailyplay-widget-open {
  overflow: hidden !important;
}

.dailyplay-floating-modal__missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  color: #374151;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
