/* surges.css – Surges activity styles */

#surges-activity {
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  color: white;
}

#surges-activity .screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

/* Home screen */
#surgesHomeScreen {
  justify-content: flex-start;
  align-items: center;
  padding: 60px 20px 20px;
}

.home-center {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  color: #1a202c;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
}

.corner-btn {
  position: absolute;
  top: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  color: #374151;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.corner-btn:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.corner-btn.left { left: 20px; }
.corner-btn.right { right: 20px; }

.home-center-inner {
  text-align: center;
  padding: 48px 40px;
}

.home-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 28px;
  color: #111827;
  letter-spacing: -0.02em;
}

.play-random-btn {
  padding: 18px 56px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(107, 182, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-random-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 182, 255, 0.45);
}

.play-hint {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.4;
}

/* Explanation below main area on Surges home – same width as .home-center (420px) so block aligns with Play card */
.surges-explanation {
  max-width: 420px;
  width: 100%;
  margin: 48px auto 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* List screen */
#surgesListScreen {
  padding: 20px 24px 56px;
  align-items: center;
  position: relative;
}

#surgesListScreen .list-content-wrap {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 24px 28px;
  width: 100%;
  max-width: 800px;
  color: #1a202c;
}

.list-header {
  margin-bottom: 16px;
}

.back-btn {
  background: none;
  border: none;
  color: #4a5568;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: #1a202c;
}

.list-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.list-title {
  font-size: 26px;
  font-weight: 600;
  color: #1a202c;
}

.icon-btn {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #4a5568;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s ease;
}

.icon-btn:hover {
  background: #edf2f7;
}

.icon-btn-text {
  font-size: 20px;
}

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1a202c;
  font-family: inherit;
  font-size: 16px;
}

.search-input::placeholder {
  color: #a0aec0;
}

.search-input:focus {
  outline: none;
  border-color: #6bb6ff;
}

.surges-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

/* Match desktop: horizontal cards, white background, elevated, black font */
.surge-card {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.surge-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.surge-card-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}

.surge-card-thumb {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.2);
}

.surge-card-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  color: white;
  font-size: 28px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.surge-card-thumb-wrap:hover .surge-card-thumb-play {
  opacity: 1;
}

.surge-card-body {
  flex: 1;
  min-width: 0;
}

.surge-card-note {
  font-size: 12px;
  color: #111827;
  margin-bottom: 2px;
  font-style: italic;
}

.surge-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.surge-card-channel {
  font-size: 12px;
  color: #374151;
  margin-bottom: 2px;
}

.surge-card-dates {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.surge-card-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.surge-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.surge-card-time {
  font-size: 11px;
  color: #374151;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.surge-card-youtube-link {
  font-size: 13px;
  color: #4b5563;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.surge-card-youtube-link:hover {
  color: #111827;
}

.surge-card-edit-btn,
.surge-card-remove-btn {
  font-size: 12px;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.surge-card-edit-btn:hover,
.surge-card-remove-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.surge-card-remove-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.no-surges-message {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
}

.surges-add-link {
  color: #6bb6ff;
  font-weight: 600;
  text-decoration: none;
}

.surges-add-link:hover {
  text-decoration: underline;
}

/* Save screen – centered action, white URL input */
#surgesSaveScreen {
  padding: 12px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#surgesSaveScreen .save-content-wrap {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 20px 24px;
  width: 100%;
  max-width: 480px;
  max-width: 540px;
  color: #1a202c;
  font-size: 17px;
}

.save-header {
  margin-bottom: 20px;
  width: 100%;
  max-width: 500px;
}

.save-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 8px;
  color: #1a202c;
}

.save-form {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#surgesSaveScreen .secondary-button,
#surgesSaveScreen .primary-button {
  align-self: center;
}

#surgesSaveScreen .secondary-button {
  border-color: #e2e8f0;
  color: #4a5568;
  background: #f7fafc;
}

#surgesSaveScreen .secondary-button:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

#surgesSaveScreen .save-preview {
  width: 100%;
}

#surgesSaveScreen .form-group {
  margin-bottom: 12px;
  width: 100%;
}

#surgesSaveScreen .form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #4a5568;
}

#surgesSaveScreen #surgesUrlInput {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 16px;
}

#surgesSaveScreen #surgesUrlInput::placeholder {
  color: #9ca3af;
}

#surgesSaveScreen #surgesUrlInput:focus {
  outline: none;
  border-color: #6bb6ff;
}

#surges-activity .form-group input[type="text"]:not(#surgesUrlInput) {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1a202c;
  font-family: inherit;
  font-size: 16px;
}

#surges-activity .form-group input::placeholder {
  color: #a0aec0;
}

#surges-activity .form-group input:focus {
  outline: none;
  border-color: #6bb6ff;
}

.form-hint {
  font-size: 14px;
  color: #718096;
  margin-top: 4px;
}

.save-preview {
  margin-top: 12px;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.save-preview-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 140px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 8px;
}

.save-preview-info {
  margin-bottom: 10px;
}

.save-preview-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #1a202c;
}

.save-preview-author {
  font-size: 13px;
  color: #718096;
}

#surgesSaveScreen .form-hint {
  font-size: 13px;
  margin-top: 4px;
}

.timing-group {
  margin-top: 16px;
}

.timing-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.timing-field {
  flex: 1;
}

.timing-field label {
  font-size: 12px !important;
  margin-bottom: 4px !important;
}

.timing-field input {
  width: 100%;
}

.timing-adjust-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.timing-label {
  font-size: 14px;
  color: #718096;
}

.small-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #f7fafc;
  color: #4a5568;
  transition: background 0.2s ease;
}

.small-btn:hover {
  background: #edf2f7;
}

.error-message {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  font-size: 15px;
  color: #c53030;
}

/* Player overlay – fixed bottom-right corner */
.player-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 420px;
  max-width: calc(100vw - 40px);
  z-index: 150;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.player-overlay-inner {
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.player-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 8px 2px;
  background: #fff;
}

.player-header-spacer {
  flex: 1;
}

.player-overlay .player-close-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-overlay .player-close-btn:hover {
  background: #f3f4f6;
}

.player-overlay .player-video-wrap {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.player-overlay .player-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.player-overlay .player-content {
  padding: 12px 14px;
  background: #fff;
}

.player-overlay .player-description {
  font-size: 0.98rem;
  font-weight: 400;
  font-style: italic;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 8px;
}

.player-overlay .player-title {
  font-size: 1rem;
  font-weight: 400;
  color: #374151;
  line-height: 1.2;
  margin-bottom: 4px;
}

.player-overlay .player-author {
  font-size: 0.98rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.2;
  margin-bottom: 8px;
}

.player-overlay .player-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

.player-overlay .player-info {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 6px;
}

/* Delete modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  color: #1a202c;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal-body {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

#surges-activity .modal-actions .secondary-button {
  background: #e2e8f0;
  color: #4a5568;
  border: none;
}

#surges-activity .modal-actions .secondary-button:hover {
  background: #cbd5e0;
}

.danger-button {
  background: #e53e3e;
  color: white;
  border: none;
  transition: background 0.2s ease;
}

.danger-button:hover {
  background: #c53030;
}

/* Section headers in list view */
.surges-section-header {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.surges-section-header:first-child {
  margin-top: 0;
}

.surges-section-header--public {
  margin-top: 32px;
  color: #4a5568;
}

/* Share button on own surge cards */
.surge-card-share-btn {
  font-size: 12px;
  color: #1a73e8;
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.surge-card-share-btn:hover {
  background: #d2e3fc;
  border-color: #a8c7f5;
}

/* Share with all users button */
.surge-card-share-all-btn {
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, #6bb6ff 0%, #86efac 100%);
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
}

.surge-card-share-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107, 182, 255, 0.3);
}

/* Shared by username on public cards */
.surge-card-shared-by {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

/* Already shared publicly */
.surge-card-shared-public-btn {
  font-size: 12px;
  color: #38a169;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: 10px;
  padding: 6px 10px;
  font-family: inherit;
  cursor: default;
}

/* Save-to-my-surges button on public cards */
.surge-card-save-btn {
  font-size: 12px;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.surge-card-save-btn:hover {
  background: #a7f3d0;
  border-color: #6ee7b7;
}

/* Admin remove button on public cards */
.surge-card-admin-remove-btn {
  font-size: 12px;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.surge-card-admin-remove-btn:hover {
  background: #fca5a5;
  border-color: #f87171;
}

/* Badge for company picks */
.surge-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #6b21a8;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 4px;
}

/* Loading state for public surges */
.surges-loading {
  text-align: center;
  padding: 24px 16px;
  color: #718096;
  font-size: 15px;
}

/* First-visit banner */
.surges-first-visit-banner {
  max-width: 420px;
  width: 100%;
  margin: 20px auto 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.surges-banner-dismiss {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  color: white;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.surges-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Shared surge page (/surge/<code>) */
.shared-surge-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: linear-gradient(135deg, #6bb6ff 0%, #7dd3fc 50%, #86efac 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.shared-surge-loading {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

.shared-surge-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
}

.shared-surge-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}

.shared-surge-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.shared-surge-info {
  padding: 20px 24px;
}

.shared-surge-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.shared-surge-author {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 8px;
}

.shared-surge-time {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.shared-surge-save-btn,
.shared-surge-view-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.shared-surge-view-btn {
  margin-top: 10px;
}

.shared-surge-footer {
  padding: 12px 24px 16px;
  text-align: center;
  border-top: 1px solid #f3f4f6;
}

.shared-surge-footer a {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.shared-surge-footer a:hover {
  color: #6b7280;
}

/* ===== SURGES BOOKMARKLET — HOME SCREEN ===== */
.surges-bm-home {
  margin: 16px auto 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
}

.surges-bm-home-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  margin-bottom: 10px;
  text-align: center;
}

.surges-bm-home-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.surges-bm-home-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 6px;
  transition: color 0.15s ease;
  margin-left: auto;
}

.surges-bm-home-dismiss:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== SURGES BOOKMARKLET — LIST/SAVE FOOTER ===== */
.surges-bm-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(15, 15, 25, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.surges-bm-footer-link {
  font-size: 13px;
  padding: 7px 14px;
}

.surges-bm-footer-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.surges-bm-footer-dismiss:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== SURGES BOOKMARKLET — DISMISS CONFIRM ===== */
.surges-bm-confirm-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 180;
}

.surges-bm-confirm-card {
  background: #1e293b;
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
}

.surges-bm-confirm-card p {
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.surges-bm-confirm-note {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-bottom: 16px !important;
}

.surges-bm-confirm-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ===== RESPONSIVE (Mobile) ===== */
@media (max-width: 600px) {
  #surgesHomeScreen {
    padding: 16px;
  }

  .corner-btn {
    top: 12px;
    padding: 7px 14px;
    font-size: 14px;
  }

  .corner-btn.left { left: 12px; }
  .corner-btn.right { right: 12px; }

  .home-center-inner {
    padding: 32px 24px;
  }

  .home-title {
    font-size: 32px;
  }

  #surgesListScreen {
    padding: 16px 12px;
  }

  #surgesListScreen .list-content-wrap {
    padding: 16px;
  }

  .surge-card {
    flex-direction: row;
    align-items: center;
    padding: 10px;
    gap: 10px;
  }

  /* Taller thumbnail (still 16:9 for YouTube), centered in the left column */
  .surge-card-thumb-wrap {
    width: 120px;
    height: 68px;
    min-width: 120px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
  }

  .surge-card-title {
    white-space: normal;
    font-size: 13px;
  }

  .surge-card-note {
    font-size: 11px;
  }

  .surge-card-channel,
  .surge-card-dates,
  .surge-card-shared-by {
    font-size: 11px;
  }

  .surge-card-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .surge-card-time-row {
    width: 100%;
  }

  .surge-card-edit-btn,
  .surge-card-remove-btn,
  .surge-card-share-btn,
  .surge-card-share-all-btn,
  .surge-card-shared-public-btn,
  .surge-card-save-btn,
  .surge-card-admin-remove-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  #surgesSaveScreen {
    padding: 16px 12px;
  }

  #surgesSaveScreen .save-content-wrap {
    padding: 20px;
  }

  .player-overlay {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 10px;
  }

  .timing-adjust-btns {
    gap: 4px;
  }

  .running-controls {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .shared-surge-page {
    padding: 12px;
    align-items: flex-start;
    padding-top: 60px;
  }

  .shared-surge-info {
    padding: 16px;
  }

  .surges-section-header {
    font-size: 16px;
  }

  /* Bookmarklets not usable on mobile */
  .surges-bm-home,
  .surges-bm-footer {
    display: none !important;
  }
}
