/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #000000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Video Container Viewport */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  user-select: none;
}

/* Background Canvas Effects */
.video-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0f0f15 0%, #000000 100%);
  z-index: 1;
}

.video-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Modal Overlay Area */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease-out forwards;
}

/* Modal Card Box */
.modal-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px 16px 14px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Close 'X' Button */
.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
  z-index: 2;
}

.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.close-btn svg path {
  transition: stroke 0.15s ease;
}

.close-btn:hover svg path {
  stroke: #18181b;
}

/* Modal Body Content */
.modal-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 6px;
  padding-right: 18px;
}

/* Red Bell Icon Wrapper */
.bell-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bell-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0px 2px 4px rgba(234, 67, 53, 0.2));
}

/* Modal Text Content */
.modal-text {
  font-size: 15px;
  line-height: 1.38;
  font-weight: 500;
  color: #111111;
  letter-spacing: -0.15px;
}

/* Modal Action Buttons Row */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* Button Base Styles */
.btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  user-select: none;
}

/* Cancel Button Styles */
.btn-cancel {
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #3B82F6;
}

.btn-cancel:hover {
  background-color: #F9FAFB;
  border-color: #9CA3AF;
}

.btn-cancel:active {
  background-color: #F3F4F6;
  transform: scale(0.98);
}

/* PLAY Button Styles */
.btn-play {
  background-color: #3B82F6;
  border: 1px solid transparent;
  color: #FFFFFF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.btn-play:hover {
  background-color: #2563EB;
}

.btn-play:active {
  background-color: #1D4ED8;
  transform: scale(0.98);
}

/* Video Player Control Bar */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  z-index: 10;
  padding-bottom: 2px;
}

/* Red Progress Line */
.progress-bar-container {
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.25);
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar-container:hover {
  height: 5px;
}

.progress-bar-fill {
  height: 100%;
  background-color: #FF0000;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  background-color: #FF0000;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.progress-bar-container:hover .progress-bar-fill::after {
  transform: translateY(-50%) scale(1);
}

/* Controls Bar Row */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 4px 6px;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Control Icon Button */
.control-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.control-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.control-btn:active {
  transform: scale(0.92);
}

/* Time Display Text */
.time-display {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0.2px;
  user-select: none;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-card {
    max-width: 320px;
    padding: 14px 14px 12px 14px;
  }
  .modal-text {
    font-size: 14px;
  }
  .bell-icon {
    width: 42px;
    height: 42px;
  }
  .btn {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
}
