/* ===== כללי ===== */
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Assistant', Arial, sans-serif;
  direction: rtl;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
  background-size: cover;
  color: black;
  text-align: center;
  padding: 50px;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: background-color 0.7s ease-in-out, color 0.7s ease-in-out;
  position: relative;
}

/* ===== כיסוי מצב לילה ===== */
#night-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background-color 0.6s ease;
}

body.night-mode #night-overlay {
  background-color: rgba(0, 0, 0, 0.80);
}

/* ===== מסגרת משותפת לתאריכים, פרשה וזמני שבת ===== */
#hero-frame {
  border-radius: 25px;
  padding: 10px 20px;
  margin: 5px auto;
  width: 95%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease;
}

/* מצב פעיל - עם מסגרת שקופה (חמישי עד שבת וחגים) */
#hero-frame.active {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-height: 85vh;
  padding-top: 15px;
  padding-bottom: 50px;
  margin-bottom: 20px;
}

/* מצב רגיל - בלי מסגרת (ראשון עד רביעי) */
#hero-frame.hidden {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-height: auto;
  padding: 10px;
}

#hero-frame > * {
  width: 100%;
  text-align: center;
}

/* ===== צבעי טקסט רגילים ===== */
#clock,
#date-hebrew,
#date-gregorian,
#parsha,
#shabbat-times,
#holiday-times,
#special-day-text {
  color: #eeeeee;
  transition: color 0.6s ease;
}

@keyframes golden-shimmer-gentle {
  0%, 100% {
    color: #FFD700;
    text-shadow: 
      0 0 8px rgba(255, 215, 0, 0.8),
      0 0 16px rgba(255, 165, 0, 0.6),
      2px 2px 4px rgba(0,0,0,0.3);
  }
  50% {
    color: #FFEC8B;
    text-shadow: 
      0 0 12px rgba(255, 236, 139, 0.9),
      0 0 24px rgba(255, 215, 0, 0.7),
      0 0 36px rgba(255, 165, 0, 0.5),
      2px 2px 4px rgba(0,0,0,0.3);
  }
}

/* ברכות חג בצהוב זהב מהבהב */
.holiday-greeting-golden {
  animation: golden-shimmer-gentle 3s ease-in-out infinite !important;
}

/* ===== צבעי טקסט במצב לילה ===== */
body.night-mode #clock,
body.night-mode #date-hebrew,
body.night-mode #date-gregorian,
body.night-mode #parsha,
body.night-mode #shabbat-times,
body.night-mode #holiday-times,
body.night-mode #special-day-text,
body.night-mode #day-or-holiday,
body.night-mode .audio-label,
body.night-mode button,
body.night-mode #now-playing,
body.night-mode #broadcast-header {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* ===== כפתורי אייקון (מצב לילה ומעבר תצוגה) ===== */
.icon-button {
  position: fixed;
  z-index: 1000;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: rgba(50, 50, 50, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.icon-button:hover {
  background-color: rgba(80, 80, 80, 0.9);
  opacity: 1 !important;
}

/* כפתור רמקול - שידור חי בפינה הימנית העליונה */
#quick-live-button {
  top: 10px;
  right: 10px;
  background-color: rgba(50, 50, 50, 0.25);
  opacity: 0.5;
  width: 36px;
  height: 36px;
  font-size: 1.1em;
}

#quick-live-button:hover {
  background-color: rgba(50, 50, 50, 0.6);
  opacity: 0.9;
}

#quick-live-button.playing {
  opacity: 0.9;
  background-color: rgba(50, 150, 50, 0.5);
}

/* כפתורים בתחתית */
.bottom-button {
  bottom: 20px;
  top: auto !important;
  background-color: rgba(50, 50, 50, 0.25);
  opacity: 0.5;
}

.bottom-button:hover {
  opacity: 1;
  background-color: rgba(50, 50, 50, 0.7);
}

#toggle-night {
  /* הוסר - עכשיו בתחתית הדף */
}

#toggle-auto-display {
  /* הוסר - עכשיו בתחתית הדף */
}

#toggle-view {
  /* הוסר - עכשיו בתחתית הדף */
}

/* כפתור שידור חי - למעלה */
#quick-live-button {
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
}

/* כפתורים תחתונים - נראים רק בגלילה */
#bottom-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 15px;
}

.bottom-scroll-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-scroll-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ===== מצב מובייל מאולץ ===== */
body.force-mobile {
  padding: 15px !important;
}

body.force-mobile #clock {
  font-size: 2.5em !important;
}

body.force-mobile #date-hebrew {
  font-size: 1.8em !important;
}

body.force-mobile #parsha {
  font-size: 2.2em !important;
}

body.force-mobile .times-grid {
  grid-template-columns: 1fr !important;
}

/* ===== מצב מסך מאולץ (במובייל) ===== */
body.force-desktop .times-grid {
  grid-template-columns: 1fr 1.3fr 1fr !important;
}

/* ===== לחיצה על רקע לילה ===== */
body.night-mode #night-overlay {
  pointer-events: auto;
  cursor: pointer;
}

/* ===== שעון ===== */
#clock {
  font-size: 5.5em;
  font-family: Arial, sans-serif;
  direction: ltr;
  color: #eeeeee;
}

/* שורת השעון עם זריחה ושקיעה */
#clock-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 50px;
  margin: 10px 0;
  width: 100%;
}

#clock {
  display: inline-flex;
  align-items: baseline;
  position: relative;
}

.sun-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #ffd966;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.sun-side .sun-icon {
  font-size: 0.8em;
  opacity: 0.85;
}

.sun-side .sun-time {
  font-family: Arial, sans-serif;
  direction: ltr;
  font-size: 0.9em;
}

#seconds {
  font-size: 0.35em;
  color: #eeeeee;
  margin-left: 2px;
  vertical-align: baseline;
}

/* ברכת שבת/חג - גדולה יותר */
.shabbat-greeting {
  font-size: 4em;
  font-weight: bold;
  font-family: 'David Libre', serif;
  text-align: center;
  margin: 15px 0;
  animation: golden-shimmer-gentle 3s ease-in-out infinite;
}

/* טקסט יום מיוחד / ברכת חג */
#special-day-text {
  margin-top: 10px;
  font-weight: bold;
  font-size: 4em !important;
  text-align: center;
}

/* ===== תאריכים ===== */
#date-hebrew {
  font-family: 'David Libre', serif;
  font-size: 5.0em;
  color: #eeeeee;
  font-weight: bold;
  margin-bottom: 0;
}

#date-gregorian {
  font-size: 5em;
  font-weight: bold;
  color: #eeeeee;
}

#gregorian-line {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 10px;
}

#day-or-holiday {
  color: #eeeeee;
  font-size: 3.2em;
  font-weight: bold;
}

body.night-mode #day-or-holiday {
  color: #eeeeee;
}

/* ===== פרשת השבוע ===== */
#parsha {
  background: none;
  color: #cce7ff;
  font-size: 7.5em;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
  font-family: 'Frank Ruhl Libre', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== שם החג ===== */
#holiday-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 7.5em;
  font-weight: bold;
  color: #ffd966;
  text-shadow: 0 0 20px rgba(255, 217, 102, 0.6), 3px 3px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin: 10px 0;
  letter-spacing: 3px;
}

/* ===== שבת מיוחדת ===== */
#special-shabbat {
  font-size: 4em;
  font-weight: 700;
  color: #cce7ff;
  font-family: 'Frank Ruhl Libre', serif;
  text-shadow: 0 0 15px rgba(204, 231, 255, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 5px 0 10px 0;
  text-align: center;
  letter-spacing: 3px;
}

/* ===== זמני שמש ===== */
/* ===== זמני שבת ===== */
#shabbat-times .time {
  font-size: 6.0em;
  color: #ffd966;
  font-weight: 700;
  text-shadow: 0 0 10px #ffd966, 0 3px 6px rgba(0,0,0,0.5);
  margin-top: 10px;
  font-family: 'Frank Ruhl Libre', serif;
}

.candle {
  font-size: 9.5em;
}

.shabbat-text .time {
  line-height: 1.1;
  font-size: 1em;
}

.shabbat-text > div:not(.time) {
  font-size: 2.5em;
  font-weight: 700;
  color: #ffd966;
  margin: 0;
  padding: 0;
  font-family: 'Frank Ruhl Libre', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  letter-spacing: 2px;
}

#holiday-times .shabbat-text .time {
  font-size: 6.0em;
  color: #ffd966;
  font-weight: bold;
  font-family: 'Frank Ruhl Libre', serif;
  text-shadow: 0 0 10px #ffd966, 0 3px 6px rgba(0,0,0,0.5);
}

.shabbat-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* כותרת זמני השבת עם נרות */
.shabbat-header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.shabbat-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #ffd966;
  font-family: 'Frank Ruhl Libre', serif;
  text-shadow: 0 0 15px rgba(255, 217, 102, 0.7), 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
}

/* ===== נרות עם להבה ===== */
.candle-container {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.candle {
  font-size: 10em;
  animation: candle-glow 2s infinite ease-in-out;
}

@keyframes candle-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.7));
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    filter: drop-shadow(0 0 18px rgba(255, 180, 0, 0.9));
    transform: scale(1.02);
    opacity: 0.92;
  }
}

.flame {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50px;
  height: 70px;
  background: radial-gradient(circle at 50% 75%, #fffacd 45%, transparent 85%),
    radial-gradient(circle at 50% 45%, #ff4500 65%, transparent 90%),
    radial-gradient(ellipse 45% 90% at 50% 35%, #ffd700 80%, transparent 98%);
  clip-path: path('M25 0 C38 15, 45 45, 25 60 C5 45, 12 15, 25 0 Z');
  opacity: 0.9;
  filter: drop-shadow(0 0 12px #ffa500);
  animation: flicker 0.8s infinite ease-in-out;
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%);
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: drop-shadow(0 0 10px #ffb347);
  }
  25% {
    opacity: 0.9;
    transform: translate(-48%, -2px) scale(1.08);
    filter: drop-shadow(0 0 15px #ff8c00);
  }
  50% {
    opacity: 0.75;
    transform: translate(-52%, 2px) scale(0.92);
    filter: drop-shadow(0 0 8px #ffa500);
  }
  75% {
    opacity: 0.95;
    transform: translate(-50%, -1px) scale(1.05);
    filter: drop-shadow(0 0 12px #ffb347);
  }
}

.shabbat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  font-size: 1em;
}

/* ===== אפקטים מיוחדים ===== */
#special-day-text.flicker {
  animation: flicker-special 1.5s infinite;
}

/* אנימציית ברכה צהובה מהבהבת */
#special-day-text.golden-greeting,
.golden-greeting {
  color: #FFD700 !important;
  text-shadow: 
    0 0 10px #FFD700,
    0 0 20px #FFA500,
    0 0 30px #FF8C00,
    2px 2px 4px rgba(0,0,0,0.5) !important;
  animation: golden-shimmer 2s ease-in-out infinite !important;
}

@keyframes golden-shimmer {
  0%, 100% {
    color: #FFD700;
    text-shadow: 
      0 0 10px #FFD700,
      0 0 20px #FFA500,
      0 0 30px #FF8C00,
      2px 2px 4px rgba(0,0,0,0.5);
    transform: scale(1);
  }
  50% {
    color: #FFEC8B;
    text-shadow: 
      0 0 15px #FFEC8B,
      0 0 30px #FFD700,
      0 0 45px #FFA500,
      2px 2px 4px rgba(0,0,0,0.5);
    transform: scale(1.02);
  }
}

/* נרות חנוכה מהבהבים - איטי ועדין מאוד */
.candles-row {
  display: inline-block;
  animation: candles-flicker 3s ease-in-out infinite alternate;
}

@keyframes candles-flicker {
  0% {
    filter: brightness(1) drop-shadow(0 0 3px #ff8800);
  }
  100% {
    filter: brightness(1.1) drop-shadow(0 0 8px #ffdd00);
  }
}

/* ברכת יום העצמאות - כחול מהבהב */
.independence-greeting {
  color: #0038b8;
  font-weight: 900;
  text-shadow: 0 0 10px #0038b8, 0 0 20px #ffffff, 0 0 30px #0038b8;
  animation: independence-shimmer 1s ease-in-out infinite alternate;
}

@keyframes independence-shimmer {
  0% {
    color: #0038b8;
    text-shadow: 0 0 10px #0038b8, 0 0 20px #ffffff;
    transform: scale(1);
  }
  100% {
    color: #0056e0;
    text-shadow: 0 0 20px #0056e0, 0 0 40px #ffffff, 0 0 60px #0038b8;
    transform: scale(1.05);
  }
}

@keyframes flicker-special {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  10% {
    opacity: 0.95;
    filter: brightness(1.2);
  }
  20% {
    opacity: 0.9;
    filter: brightness(0.9);
  }
  30% {
    opacity: 1;
    filter: brightness(1.1);
  }
  40% {
    opacity: 0.92;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3);
  }
  60% {
    opacity: 0.95;
    filter: brightness(0.95);
  }
  70% {
    opacity: 1;
    filter: brightness(1);
  }
  80% {
    opacity: 0.97;
    filter: brightness(1.05);
  }
  90% {
    opacity: 1;
    filter: brightness(1);
  }
}

#special-day-text.gradient-text {
  background: linear-gradient(90deg, #ff1493, #ff4500, #ffd700, #ff6347, #9400d3, #ff1493);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  animation: purim-shimmer 2s ease-in-out infinite;
}

@keyframes purim-shimmer {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.3);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
}

/* ===== כפתורים ===== */
button {
  font-size: 1em;
  padding: 8px 16px;
  border: 2px solid #ccc;
  background-color: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

button:hover {
  transform: scale(1.12);
  background-color: #a5d8ff;
  border-color: #1e40af;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.45);
  color: #000;
}

/* ===== אודיו ===== */
#now-playing-status {
  color: yellow;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

#broadcast-header {
  background-color: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  font-size: 2em;
  color: black;
  font-weight: 700;
  padding: 0;
  display: inline-block;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

#broadcast-header:hover {
  opacity: 1;
}

.buttons-container {
  margin: 8px 0;
}

.audio-container {
  margin-top: 15px;
  text-align: center;
}

.audio-label {
  font-size: 0.9rem;
  margin-top: 4px;
  color: #555;
}

#broadcast-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#broadcast-section.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.all-files-btn {
  margin-bottom: 10px;
  cursor: pointer;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.all-files-btn:hover {
  background-color: #45a049;
}

#start-button {
  margin-right: 10px;
  padding: 10px 20px;
  font-size: 16px;
}

#automation-status {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #222;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* ===== עיצוב כותרות והערות ===== */
.section-title {
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 1rem;
  color: #222;
}

.small-note {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
}

/* ===== מצב לילה ===== */
body.night-mode {
  filter: brightness(0.8) contrast(0.9) saturate(0.6);
  transition: filter 0.6s ease;
}

/* ===== זמנים הלכתיים ===== */
/* ===== זמנים הלכתיים - עיצוב קומפקטי ===== */

/* תיבת הזמן הבא - קטנה ומצומצמת */
.next-time-alert {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  padding: 8px 20px;
  margin: 0 auto 10px;
  display: inline-block;
  text-align: center;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.next-time-alert.urgent {
  background: rgba(128, 0, 32, 0.6);
  border: 1px solid rgba(128, 0, 32, 0.8);
  animation: gentle-pulse 2s infinite ease-in-out;
}

@keyframes gentle-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.next-time-icon {
  font-size: 1.4em;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.next-time-content {
  flex: 1;
  text-align: right;
}

.next-time-name {
  font-size: 0.85em;
  font-weight: 700;
  color: #1a1a2e;
  text-shadow: 
    0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 6px rgba(255, 255, 255, 0.3);
  margin-bottom: 2px;
}

.next-time-value {
  font-size: 1.2em;
  font-weight: 800;
  color: #1a1a2e;
  direction: ltr;
  font-family: 'Courier New', monospace;
  text-shadow: 
    0 1px 3px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.next-time-countdown {
  font-size: 0.75em;
  font-weight: 600;
  color: #2c3e50;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}

#main-container {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.compact-times-card {
  background: rgba(20, 20, 30, 0.15);
  border: none;
  border-radius: 20px;
  padding: 25px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: none;
  backdrop-filter: blur(10px);
  overflow-x: hidden;
  box-sizing: border-box;
}

.times-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 25px;
}

/* עמודת מידע נוסף - מוצגת מחוץ ל-grid, תמיד מתחת */
.extra-info-column {
  display: none; /* לא בשימוש יותר */
}

/* הפרדה לפני שמיטה בעמודת שבת */
.shemita-separator {
  height: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  margin: 8px 0 5px 0;
  order: 100;
}

/* שמיטה בתוך עמודת שבת - ממורכז עם אימוג'י */
.shemita-in-shabbat {
  background: rgba(255, 255, 255, 0.08) !important;
  justify-content: center !important;
  text-align: center !important;
  order: 101;
  display: flex !important;
  gap: 10px;
}

.shemita-in-shabbat .time-icon {
  display: inline-block !important;
  font-size: 1.2em;
}

.shemita-in-shabbat .time-name {
  color: #e0e0e0 !important;
  text-shadow: none !important;
}

/* הפרדה לפני שעה זמנית בעמודת ערב */
.seasonal-separator {
  height: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
  margin: 8px 0 5px 0;
  order: 200;
}

/* שעה זמנית תמיד בסוף עמודת ערב */
.evening-times .info-item,
.evening-times .seasonal-hour-item {
  order: 201;
}

/* שעה זמנית - grid עם 4 עמודות */
.seasonal-hour-item {
  display: grid !important;
  grid-template-columns: 35px 1fr auto auto !important;
  gap: 8px !important;
}

/* יחידת זמן (דקות) - אותו סגנון כמו time-value */
.time-unit {
  font-size: 1.4em;
  font-weight: 900;
  color: #87CEEB;
  direction: ltr;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(135, 206, 235, 0.5);
  letter-spacing: 0.5px;
}

/* שקיפות פחות חזקה לזמנים שעברו */
.time-item.time-passed {
  opacity: 0.75;
}

.times-grid.two-columns {
  grid-template-columns: 1fr 1fr;
}

.times-grid.three-columns {
  grid-template-columns: 1fr 1.3fr 1fr;
}

.times-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* כותרות עמודות - גדולות ובולטות - ללא מסגרת */
.column-header {
  font-size: 1.8em;
  font-weight: 900;
  color: #D4A855;
  text-align: center;
  padding: 15px 10px;
  margin-bottom: 10px;
  background: transparent;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(212, 168, 85, 0.4);
  letter-spacing: 1px;
}

.time-item {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.time-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(-3px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* זמן שעומד לעבור - הדגשה עדינה */
.time-item.time-soon {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  animation: gentle-pulse 3s infinite ease-in-out;
  box-shadow: 0 4px 20px rgba(255, 165, 2, 0.3);
}

.time-item.time-soon .time-name {
  color: #1a1a2e;
  text-shadow: 
    0 1px 2px rgba(255, 255, 255, 0.5),
    0 0 5px rgba(255, 255, 255, 0.3);
}

.time-item.time-soon .time-value {
  color: #1a1a2e;
  text-shadow: 
    0 2px 4px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4);
}

/* זמן שעבר - מעומעם */
.time-item.time-passed {
  opacity: 0.75;
  order: 100; /* דחיפה לסוף */
}

.time-item.time-passed .time-name,
.time-item.time-passed .time-value {
  color: #aaa;
}

@keyframes gentle-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(255, 165, 2, 0.3);
    opacity: 1;
  }
  50% {
    box-shadow: 0 8px 30px rgba(255, 165, 2, 0.6);
    opacity: 0.7;
  }
}

/* זמנים חשובים - רקע מוחלש */
.time-item.important {
  background: linear-gradient(135deg, rgba(255, 217, 61, 0.15) 0%, rgba(246, 201, 14, 0.15) 100%);
  font-weight: 900;
}

.time-item.important .time-name {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.time-item.important .time-value {
  color: #87CEEB;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.time-item.info-item {
  background: rgba(255, 255, 255, 0.08);
}

/* עמודת שבת - עיצוב מיוחד חום/בז' */
.times-column.shabbat-column {
  background: transparent;
  border-radius: 15px;
  padding: 0 15px 15px 15px;
}

/* כותרת עמודת שבת עם נרות */
.shabbat-header-with-candles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: -5px;
  padding: 15px 0;
}

.shabbat-header-with-candles .column-header {
  padding: 0;
  margin: 0;
}

.shabbat-candle {
  font-size: 2.5em;
  filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8));
  animation: candle-flicker 2s infinite ease-in-out;
}

@keyframes candle-flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

/* פרשה גדולה */
.parsha-large {
  font-size: 2em !important;
  font-weight: 900 !important;
  color: #3d2914 !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5) !important;
}

/* הפטרה גדולה */
.haftara-large {
  font-size: 1.8em !important;
  font-weight: 800 !important;
}

/* כניסת/יציאת שבת - גדולים */
.shabbat-main-time {
  padding: 15px !important;
  margin: 8px 0;
}

.shabbat-main-time .time-name {
  font-size: 1.3em !important;
  font-weight: 900 !important;
}

.shabbat-main-time .time-value {
  font-size: 1.8em !important;
  font-weight: 900 !important;
  color: #2d1810 !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6) !important;
}

.time-item.shabbat-time {
  background: rgba(255, 248, 230, 0.75);
  font-weight: 900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* הסתרת כל האייקונים בשורות פרשה/הפטרה/קריאת תורה */
.time-item.shabbat-time .time-icon {
  display: none;
}

/* הצגת אייקון רק בשורות זמנים (כניסת/צאת שבת) */
.time-item.shabbat-time.shabbat-main-time .time-icon {
  display: inline;
}

.time-item.shabbat-time .time-name {
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.time-item.shabbat-time .time-value {
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* פרשה - ממורכזת */
.time-item.shabbat-time .parsha-large {
  text-align: center;
  width: 100%;
}

/* הפטרה וקריאת תורה - ממורכזות */
.time-item.shabbat-time > div[style*="flex-direction"] {
  justify-self: center;
  text-align: center;
  width: 100%;
}

/* עיצוב מיוחד לפרשה והפטרה בעמודת שבת */
.parsha-block,
.haftara-block {
  background: linear-gradient(135deg, #f5e6c8 0%, #eddcb5 100%);
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.parsha-label,
.haftara-label {
  font-size: 1em;
  color: #3d2914;
  font-weight: 600;
  margin-bottom: 5px;
}

.parsha-name {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 2.1em;
  font-weight: 800;
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.haftara-name {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 1.3em;
  font-weight: 700;
  color: #3d2914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.haftara-block .haftara-source {
  font-size: 0.85em;
  color: #5a4020;
  font-weight: 500;
  margin-top: 5px;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

/* עמודת חג - עיצוב מיוחד */
.times-column.yomtov-column {
  background: transparent;
  border-radius: 15px;
  padding: 10px;
}

.time-item.yomtov-time {
  background: rgba(255, 250, 220, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-weight: 900;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* שם החג - עם אייקונים משני הצדדים */
.time-item.yomtov-time.holiday-name-row {
  gap: 15px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
}

.time-item.yomtov-time.holiday-name-row .time-icon,
.holiday-name-row .time-icon {
  display: inline !important;
  font-size: 1.8em !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* שם החג רגיל - ממורכז בלי אייקונים */
.time-item.yomtov-time[style*="text-align: center"]:not(.holiday-name-row) .time-icon {
  display: none !important;
}

.time-item.yomtov-time[style*="text-align: center"] .time-name {
  text-align: center;
}

/* הצגת אייקון בשורות זמנים של חג */
.time-item.yomtov-time.shabbat-main-time .time-icon {
  display: inline;
}

.time-item.yomtov-time .time-name {
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.time-item.yomtov-time .time-value {
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.time-icon {
  font-size: 1.8em;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.time-name {
  font-size: 1.15em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(255, 215, 0, 0.3);
  letter-spacing: 0.3px;
}

.time-value {
  font-size: 1.4em;
  font-weight: 900;
  color: #87CEEB;
  direction: ltr;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(135, 206, 235, 0.5);
  letter-spacing: 0.5px;
}

/* מצב לילה - טקסט יותר בהיר */
body.night-mode .time-name {
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 1),
    0 0 15px rgba(255, 255, 255, 0.4);
}

body.night-mode .time-value {
  color: #ADD8E6;
  text-shadow: 
    0 3px 8px rgba(0, 0, 0, 1),
    0 0 20px rgba(173, 216, 230, 0.6);
}

/* רספונסיבי */
@media (max-width: 1024px) {
  .times-grid.has-shabbat {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
    overflow-x: hidden;
  }
  
  #main-container {
    max-width: 600px;
    padding: 5px;
    overflow-x: hidden;
    margin: 0 auto;
  }
  
  #clock {
    font-size: 4em;
    margin-bottom: 8px;
  }
  
  #date-hebrew {
    font-size: 2.5em;
    margin-bottom: 8px;
    word-wrap: break-word;
  }
  
  #date-gregorian {
    font-size: 2em;
    margin-bottom: 0;
  }
  
  #gregorian-line {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-bottom: 8px;
    white-space: nowrap;
  }
  
  #day-or-holiday {
    font-size: 2em !important;
    margin-bottom: 0;
  }
  
  #sun-times {
    font-size: 1em;
    margin: 8px auto;
  }
  
  #parsha {
    font-size: 4.2em;
    margin: 8px auto;
    padding: 0;
    background: none;
    font-weight: 600;
    text-align: center;
    width: 100%;
    display: block;
  }
  
  .haftara-title {
    font-size: 1.1em;
  }
  
  .haftara-text {
    font-size: 1.8em;
  }
  
  .haftara-source {
    font-size: 0.95em;
  }
  
  #shabbat-times {
    margin: 8px 0;
  }
  
  #shabbat-times .time {
    font-size: 2.2em;
  }
  
  .shabbat-text > div:not(.time) {
    font-size: 1.3em;
  }
  
  .candle {
    font-size: 3.5em;
  }
  
  #holiday-name {
    font-size: 2.5em !important;
    margin: 8px 0;
  }
  
  /* רשימה פשוטה אחת! */
  .times-grid,
  .times-grid.has-shabbat,
  .times-grid.three-columns {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .compact-times-card {
    padding: 8px 6px;
    max-width: 550px;
    overflow-x: hidden;
    margin: 10px auto;
    background: rgba(20, 20, 30, 0.2);
  }
  
  .times-column {
    max-width: 100%;
    overflow-x: hidden;
    margin-bottom: 0;
  }
  
  .column-header {
    display: none !important;
  }
  
  /* הצגת כותרות במסכי מעבר אוטומטי */
  .auto-column-display .column-header {
    display: block !important;
    font-size: 1.4em;
  }
  
  /* הצגת כותרת זמני השבת עם הנרות במובייל */
  .shabbat-header-with-candles {
    display: flex !important;
    margin-bottom: 5px;
  }
  
  .shabbat-header-with-candles .column-header {
    display: block !important;
    font-size: 1.3em;
    padding: 5px 10px;
  }
  
  .shabbat-candle {
    font-size: 2em;
  }
  
  /* סדר הצגה במובייל בלבד */
  /* עמודת מידע נוסף במובייל - עמודה במקום שורה */
  .extra-info-column {
    flex-direction: column !important;
    gap: 5px;
  }
  
  /* ברירת מחדל (ימי חול): בוקר, ערב, שבת */
  .times-grid > .morning-times {
    order: 1 !important;
  }
  
  .times-grid > .evening-times {
    order: 2 !important;
  }
  
  .times-grid > .shabbat-column {
    order: 3 !important;
  }
  
  /* עמודה מאוחדת במובייל */
  .times-grid > .unified-times {
    order: 2 !important;
    width: 100%;
  }
  
  /* בשישי/שבת/חג: שבת, זמנים */
  .shabbat-day .times-grid > .shabbat-column {
    order: 0 !important;
  }
  
  .shabbat-day .times-grid > .unified-times {
    order: 1 !important;
  }
  
  .shabbat-day .times-grid > .morning-times {
    order: 1 !important;
  }
  
  .shabbat-day .times-grid > .evening-times {
    order: 2 !important;
  }
  
  .time-item {
    max-width: 100%;
    padding: 8px 12px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.12);
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }
  
  .time-name {
    font-size: 1.15em;
    flex: 0 0 auto;
  }
  
  .time-value {
    font-size: 1.4em;
    flex: 0 0 auto;
    margin: 0 10px;
    font-weight: bold;
  }
  
  .next-time-countdown {
    font-size: 0.85em !important;
    flex: 0 0 auto;
    opacity: 0.75;
  }
  
  .next-time-alert {
    padding: 5px 10px;
    max-width: 400px;
    margin: 8px auto;
  }
  
  .next-time-icon {
    font-size: 1.2em;
  }
  
  #live-reminders {
    margin: 8px auto;
    max-width: 500px;
  }
  
  .live-reminder {
    padding: 8px 15px;
    font-size: 1em;
  }
  
  .next-time-name {
    font-size: 0.9em;
  }
  
  .next-time-value {
    font-size: 1.2em;
  }
  
  .next-time-countdown {
    font-size: 0.8em;
  }
}

/* ===== הפטרה - מתחת לפרשה ממורכזת ===== */
#haftara {
  background: none;
  border: none;
  padding: 0;
  margin: 0 auto;
  margin-top: -5px;
  text-align: center;
  max-width: 600px;
}

.haftara-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #87ceeb;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  display: block;
  margin-bottom: 3px;
}

.haftara-text {
  font-size: 2.2em;
  color: #cce7ff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  display: block;
  margin-bottom: 3px;
  font-family: 'Frank Ruhl Libre', serif;
}

.haftara-source {
  font-size: 1.1em;
  color: #b0e0e6;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  display: block;
}

/* ===== הודעות מיוחדות (ראש חודש, ברכת הלבנה) ===== */
.special-notice {
  padding: 8px 15px;
  margin: 8px auto;
  max-width: 400px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.special-notice.rosh-chodesh {
  background: rgba(102, 126, 234, 0.25);
  color: white;
  border: 1px solid rgba(90, 103, 216, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* עיצוב מובלט להודעות יעלה ויבוא, הלל, על הניסים */
.notice-item.notice-prayer,
.notice-item.notice-hallel,
.notice-item.notice-hallel-full {
  font-size: 1.3em !important;
  font-weight: bold !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 193, 7, 0.3) 100%) !important;
  border: 2px solid rgba(255, 215, 0, 0.6) !important;
  border-radius: 12px !important;
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.special-notice.levana {
  background: rgba(240, 147, 251, 0.25);
  color: white;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.special-notice.levana.urgent {
  animation: gentle-pulse 3s ease-in-out infinite;
  background: rgba(240, 147, 251, 0.35);
  border: 1px solid rgba(255, 100, 100, 0.5);
}

.special-notice.levana.warning {
  background: rgba(240, 147, 251, 0.3);
  border: 1px solid rgba(255, 165, 0, 0.5);
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes slow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.special-notice.levana-soon {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
  border: 2px solid #6ee7b7;
}

.special-notice.special-period {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #8b4513;
  border: 2px solid #ff8c00;
}

.special-notice.period-elul {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
  color: #1e40af;
  border: 2px solid #3b82f6;
}

.special-notice.period-selichot {
  background: linear-gradient(135deg, #deb887 0%, #d2b48c 100%);
  color: #3d2914;
  border: 2px solid #c4a574;
  font-weight: bold;
}

.special-notice.period-aseret-yemei-teshuva {
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  color: #6b21a8;
  border: 2px solid #9333ea;
}

.special-notice.period-three-weeks {
  background: linear-gradient(135deg, #d4d4d4 0%, #9ca3af 100%);
  color: #1f2937;
  border: 2px solid #6b7280;
}

.special-notice.period-omer {
  background: rgba(253, 203, 110, 0.2);
  color: #d68910;
  border: 1px solid rgba(243, 156, 18, 0.3);
  padding: 6px 15px;
  font-size: 0.95em;
}

/* הבהוב ספירת העומר בערב */
.special-notice.period-omer.omer-evening {
  background: rgba(253, 203, 110, 0.4);
  border: 2px solid rgba(243, 156, 18, 0.7);
  animation: omer-pulse 2s ease-in-out infinite;
}

@keyframes omer-pulse {
  0%, 100% { 
    opacity: 1;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
  }
  50% { 
    opacity: 0.7;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
  }
}

/* ===== תזכורות זמן חי ===== */
#live-reminders {
  margin: 20px auto;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-reminder {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-reminder.reminder-urgent {
  background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
  color: white;
  border: 3px solid #ee5a6f;
  animation: pulse 1s ease-in-out infinite, slideIn 0.5s ease-out;
  font-size: 1.5em;
}

.live-reminder.reminder-high {
  background: linear-gradient(135deg, #ffa502 0%, #ff7979 100%);
  color: white;
  border: 3px solid #ff6348;
}

.live-reminder.reminder-medium {
  background: linear-gradient(135deg, #ffd32a 0%, #ffb142 100%);
  color: #333;
  border: 3px solid #ffa502;
}

.live-reminder.reminder-normal {
  background: linear-gradient(135deg, #7bed9f 0%, #70a1ff 100%);
  color: white;
  border: 3px solid #2ed573;
}

.live-reminder.reminder-low {
  background: linear-gradient(135deg, #dfe4ea 0%, #ced6e0 100%);
  color: #2f3542;
  border: 3px solid #a4b0be;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.7;
  }
}

body.night-mode .time-row {
  background-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .time-label,
body.night-mode .time-value,
body.night-mode .haftara-title,
body.night-mode .haftara-text {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* עיצוב טקסט שמיטה */
.shmita-text {
  font-size: 1em !important;
}

/* ===== התאמה לנייד (PWA) ===== */
@media (max-width: 480px) {
  body {
    padding: 8px;
    overflow-x: hidden;
  }
  
  #main-container {
    max-width: 450px;
    padding: 5px;
    overflow-x: hidden;
    margin: 0 auto;
  }
  
  #clock {
    font-size: 3.5em;
    margin-bottom: 8px;
  }
  
  #seconds {
    font-size: 0.5em;
  }
  
  #date-hebrew {
    font-size: 2em;
    margin-bottom: 6px;
    word-wrap: break-word;
  }
  
  #date-gregorian {
    font-size: 1.6em;
    margin-bottom: 6px;
  }
  
  #day-or-holiday {
    font-size: 1.8em !important;
    margin-bottom: 6px;
  }
  
  #parsha {
    font-size: 4em;
    margin: 8px auto;
    padding: 0;
    font-weight: 700;
    font-family: 'Frank Ruhl Libre', serif;
    text-align: center;
    width: 100%;
  }
  
  #holiday-name {
    font-size: 3em !important;
    margin: 10px 0;
    letter-spacing: 2px;
  }
  
  #special-shabbat {
    font-size: 2em !important;
    margin: 5px 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(204, 231, 255, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  #shabbat-times {
    margin: 8px 0;
  }
  
  #shabbat-times .time {
    font-size: 2.2em;
    font-weight: 800;
    text-shadow: 0 0 8px #ffd966, 0 2px 4px rgba(0,0,0,0.5);
  }
  
  .shabbat-text > div:not(.time) {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .candle {
    font-size: 2.5em;
  }
  
  .flame {
    width: 20px;
    height: 30px;
    top: -5px;
    clip-path: path('M10 0 C15 7, 18 18, 10 25 C2 18, 5 7, 10 0 Z');
  }
  
  .shabbat-header-main .candle {
    font-size: 2em;
  }
  
  .shabbat-header-main .flame {
    width: 15px;
    height: 22px;
    top: -3px;
    clip-path: path('M7 0 C11 5, 13 13, 7 18 C1 13, 3 5, 7 0 Z');
  }
  
  .shabbat-title {
    font-size: 1.5em;
  }
  
  #holiday-times .shabbat-text .time {
    font-size: 2.2em;
    font-weight: 800;
    text-shadow: 0 0 8px #ffd966, 0 2px 4px rgba(0,0,0,0.5);
  }
  
  #special-day-text {
    font-size: 3em !important;
    margin: 6px 0;
  }
  
  #sun-times {
    font-size: 1.1em;
    flex-direction: row;
    gap: 15px;
    margin: 10px 0;
  }
  
  .times-grid,
  .times-grid.has-shabbat {
    display: block !important;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .compact-times-card {
    padding: 6px 5px;
    max-width: 420px;
    overflow-x: hidden;
    margin: 8px auto;
    background: rgba(20, 20, 30, 0.18);
  }
  
  .times-column {
    max-width: 100%;
    overflow-x: hidden;
    margin-bottom: 0;
  }
  
  .column-header {
    display: none !important;
  }
  
  .time-item {
    padding: 6px 10px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.1);
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .time-name {
    font-size: 1.1em;
    flex: 0 0 auto;
  }
  
  .time-value {
    font-size: 1.3em;
    flex: 0 0 auto;
    margin: 0 8px;
    font-weight: bold;
  }
  
  .next-time-countdown {
    font-size: 0.8em !important;
    flex: 0 0 auto;
    opacity: 0.7;
  }
  
  #broadcast-header {
    font-size: 1em;
    margin: 6px 0;
  }
  
  button {
    font-size: 0.8em;
    padding: 5px 10px;
    margin: 2px;
  }
  
  .special-notice {
    font-size: 0.9em;
    padding: 6px 10px;
    margin: 5px 0;
  }
  
  #omer-count {
    font-size: 1em;
    margin: 5px 0;
  }
  
  .haftara-text {
    font-size: 1.4em;
    margin: 5px 0;
    font-family: 'Frank Ruhl Libre', serif;
  }
  
  .haftara-title {
    font-size: 0.9em;
  }
  
  .live-reminder {
    padding: 6px 12px;
    font-size: 0.9em;
  }
}

/* מסכים קטנים מאוד */
@media (max-width: 360px) {
  body {
    padding: 10px;
  }
  
  #main-container {
    padding: 5px;
  }
  
  #clock {
    font-size: 2.5em;
    margin-bottom: 10px;
  }
  
  #date-hebrew {
    font-size: 1.5em;
    margin-bottom: 8px;
  }
  
  #date-gregorian {
    font-size: 1.1em;
    margin-bottom: 8px;
  }
  
  #parsha {
    font-size: 3.5em;
    margin: 12px auto;
    text-align: center;
    padding: 0;
    width: 100%;
  }
  
  .compact-times-card {
    padding: 15px 8px;
    margin: 15px auto;
  }
  
  .times-column {
    margin-bottom: 15px;
  }
  
  .column-header {
    font-size: 0.95em;
    margin-bottom: 10px;
    padding: 6px;
  }
  
  .time-item {
    padding: 8px;
    margin-bottom: 5px;
  }
  
  .time-name {
    font-size: 0.9em;
  }
  
  .time-value {
    font-size: 1.1em;
  }
  
  button {
    font-size: 0.85em;
    padding: 6px 10px;
  }
}

/* ===== כפתורי Footer ===== */
.footer-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.footer-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.footer-btn:active {
  transform: translateY(0);
}

.footer-btn .btn-icon {
  font-size: 1.1em;
}

.footer-btn .btn-text {
  white-space: nowrap;
}

/* כפתור שידור חי */
#live-button {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(56, 142, 60, 0.2) 100%);
  border-color: rgba(76, 175, 80, 0.4);
}

#live-button:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.5) 0%, rgba(56, 142, 60, 0.3) 100%);
  border-color: rgba(76, 175, 80, 0.6);
}

/* כפתור אוטומציה */
#automation-toggle-button {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 160, 0, 0.2) 100%);
  border-color: rgba(255, 193, 7, 0.4);
}

#automation-toggle-button:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.5) 0%, rgba(255, 160, 0, 0.3) 100%);
  border-color: rgba(255, 193, 7, 0.6);
}

#automation-toggle-button.active {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.5) 0%, rgba(56, 142, 60, 0.4) 100%);
  border-color: rgba(76, 175, 80, 0.6);
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

/* כפתור מיקום */
#location-toggle {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(25, 118, 210, 0.2) 100%);
  border-color: rgba(33, 150, 243, 0.4);
}

#location-toggle:hover {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.5) 0%, rgba(25, 118, 210, 0.3) 100%);
  border-color: rgba(33, 150, 243, 0.6);
}

/* ===== עבור לזמן אחר ===== */
.time-travel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 180, 0, 0.2) 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.time-travel-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.5) 0%, rgba(255, 180, 0, 0.3) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* כפתורי קיצור דרך */
.quick-date-btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  color: white;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.3s ease;
}

.quick-date-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 180, 0, 0.3) 100%);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.quick-date-btn:active {
  transform: translateY(0);
}

.time-travel-apply-btn {
  padding: 8px 16px;
  background: #2ed573;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.time-travel-reset-btn {
  padding: 8px 16px;
  background: #ff6b6b;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

/* שנה עברית עם חצים */
.hebrew-year-selector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 5px 15px;
}

#hebrewYearDisplay {
  font-size: 1.3em;
  font-weight: bold;
  color: #ffd966;
  min-width: 70px;
  text-align: center;
}

.year-arrow {
  background: rgba(255, 215, 0, 0.3);
  border: none;
  color: white;
  font-size: 1.2em;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.year-arrow:hover {
  background: rgba(255, 215, 0, 0.5);
}
/* ===== תיקון מצב מובייל - נוסף ל-style.css =====  */

/* הגדרות נוספות לכפתורי מצב - התחתית */
@media (max-width: 768px) {
  .bottom-button {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    bottom: 15px;
  }
  
  #toggle-night {
    right: 10px;
  }
  
  #toggle-view {
    right: 55px;
  }
  
  #quick-live-button {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }
}

/* מצב מובייל מאולץ */
body.force-mobile {
  padding: 10px !important;
}

body.force-mobile #main-container {
  max-width: 100% !important;
  padding: 10px !important;
}

body.force-mobile #clock {
  font-size: 3em !important;
}

body.force-mobile #date-hebrew {
  font-size: 1.5em !important;
}

body.force-mobile #date-gregorian {
  font-size: 1em !important;
}

body.force-mobile #parsha {
  font-size: 1.5em !important;
}

body.force-mobile .compact-times-card {
  max-width: 100% !important;
  padding: 5px !important;
}

body.force-mobile .times-grid {
  grid-template-columns: 1fr !important;
  gap: 5px !important;
}

body.force-mobile .column-header {
  font-size: 0.9em !important;
}

body.force-mobile .time-name {
  font-size: 0.7em !important;
}

body.force-mobile .time-value {
  font-size: 0.85em !important;
}

/* מצב מחשב מאולץ (במובייל) */
body.force-desktop {
  padding: 50px !important;
}

body.force-desktop #main-container {
  max-width: 1400px !important;
}

body.force-desktop #clock {
  font-size: 6.5em !important;
}

body.force-desktop #date-hebrew {
  font-size: 4em !important;
}

body.force-desktop .times-grid {
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 2px !important;
}

/* ===== תיקון נוסף למובייל - מניעת חפיפות ===== */
@media (max-width: 768px) {
  /* וודא שכל אלמנט ראשי יש לו margin */
  #date-hebrew,
  #gregorian-line,
  #clock,
  #special-day-text,
  #sun-times,
  #parsha,
  #haftara,
  #special-shabbat,
  #shabbat-times,
  #live-reminders,
  #holiday-name,
  #holiday-times,
  #rosh-chodesh-info,
  #birchat-levana-info,
  #special-period-info,
  #special-notices,
  #omer-count {
    margin-top: 2px;
    margin-bottom: 2px;
    clear: both;
    display: block;
  }
  
  /* וודא שהטבלה לא חופפת */
  #halachic-times {
    margin-top: 4px;
    margin-bottom: 4px;
    clear: both;
  }
  
  /* ריווח נוסף בין כרטיסי זמנים */
  .times-column {
    margin-bottom: 2px;
  }
  
  .times-column:last-child {
    margin-bottom: 0;
  }
}

/* ===== תיקונים ספציפיים לכרטיסים גדולים במובייל ===== */
@media (max-width: 768px) {
  #live-reminders {
    margin: 8px auto;
    gap: 5px;
    max-width: 500px;
  }
  
  .live-reminder {
    padding: 8px 15px;
    font-size: 1em;
  }
  
  /* הקטנת כרטיסים מיוחדים */
  #special-shabbat-card,
  #parsha-display,
  #holiday-display {
    padding: 8px 15px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  #live-reminders {
    margin: 6px auto;
    gap: 4px;
    max-width: 400px;
  }
  
  .live-reminder {
    padding: 6px 12px;
    font-size: 0.9em;
  }
  
  #special-shabbat-card,
  #parsha-display,
  #holiday-display {
    padding: 6px 12px;
    font-size: 0.9em;
  }
}

/* ===== מצב תצוגה אוטומטי ===== */
.auto-display-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 85vh;
  padding: 20px 30px;
  padding-top: 10px;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.auto-display-screen.visible {
  opacity: 1;
}

.auto-display-screen.fade-out {
  opacity: 0;
}

/* מעבר עדין גם למסך הבית */
#hero-frame {
  transition: opacity 1.2s ease-in-out;
}

#hero-frame.fade-out {
  opacity: 0;
}

/* עיצוב עמודה בודדת - ללא רקע כללי כמו במסך הרגיל */
.auto-column-display {
  background: transparent;
  padding: 5px;
  min-width: 300px;
  max-width: 400px;
  width: 90%;
}

/* התאמה למחשב */
@media (min-width: 768px) {
  .auto-column-display {
    min-width: 350px;
    max-width: 450px;
  }
}

@media (min-width: 1200px) {
  .auto-column-display {
    min-width: 400px;
    max-width: 500px;
  }
}

/* הצגת כותרת במסכי מעבר */
.auto-column-display .column-header {
  display: block !important;
}

/* רווח בין שורות זמנים במסכי מעבר */
.auto-display-screen .time-item {
  margin-bottom: 5px;
  padding: 8px 10px;
}
  margin-bottom: 8px;
}

.auto-display-screen .time-item.shabbat-time {
  margin-bottom: 8px;
}

/* ביטול שקיפות זמנים שעברו במסכי מעבר - שמירה על סגנון רגיל */
.auto-display-screen .time-item.time-passed {
  opacity: 1;
  order: unset;
}

.auto-display-screen .time-item.time-passed .time-name {
  color: #e0e0e0;
}

.auto-display-screen .time-item.time-passed .time-value {
  color: #ffd700;
}

/* עיצוב מסך שמיטה */
/* עיצוב מסך שמיטה במצב מעבר */

.auto-shemita-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.auto-shemita-content .time-item {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.auto-shemita-content .time-icon {
  font-size: 1.3em;
  text-align: center;
}

.auto-shemita-content .time-name {
  font-size: 1em;
  color: #e0e0e0;
}

.auto-shemita-content .time-value {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffd700;
}

.auto-display-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.auto-display-times {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 500px;
}

.auto-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.auto-time-row.highlight {
  background: rgba(255,215,0,0.2);
  border: 1px solid rgba(255,215,0,0.3);
}

.auto-time-label {
  font-size: 1.3em;
  color: #fff;
}

.auto-time-value {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffd700;
  font-family: 'Courier New', monospace;
}

/* מסך זמני שבת */
.shabbat-display {
  gap: 25px;
}

.auto-shabbat-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.candle-big {
  font-size: 3em;
}

.auto-shabbat-info {
  display: flex;
  flex-direction: column;
}

.auto-shabbat-label {
  font-size: 1.2em;
  color: #ccc;
}

.auto-shabbat-time {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffd700;
  font-family: 'Courier New', monospace;
}

/* התאמה למובייל */
@media (max-width: 600px) {
  .auto-display-title {
    font-size: 1.8em;
  }
  
  .auto-time-row {
    padding: 12px 15px;
  }
  
  .auto-time-label {
    font-size: 1em;
  }
  
  .auto-time-value {
    font-size: 1.4em;
  }
  
  .auto-shabbat-time {
    font-size: 2em;
  }
  
  .candle-big {
    font-size: 2.5em;
  }
}

/* טקסט לעילוי נשמת */
#memorial-text {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85em;
  font-family: 'David', 'Times New Roman', serif;
  font-weight: normal;
  letter-spacing: 1px;
  color: rgba(212, 168, 85, 0.7);
  text-align: center;
  z-index: 100;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  #memorial-text {
    font-size: 0.95em;
    top: 10px;
  }
}

/* כפתור קיצור דרך לשידור חי */
#quick-live-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

#quick-live-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#quick-live-btn.playing {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(39, 174, 96, 0.8); }
}


/* כפתור רמקול משופר */
#quick-live-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#quick-live-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

#quick-live-btn .speaker-icon {
  font-size: 20px;
  transition: all 0.3s ease;
}

#quick-live-btn .speaker-waves {
  display: none;
}

/* מצב פעיל - ירוק בהיר עם גלי קול */
#quick-live-btn.playing {
  background: rgba(46, 204, 113, 0.3);
  border-color: rgba(46, 204, 113, 0.5);
}

#quick-live-btn.playing .speaker-icon {
  color: #2ecc71;
}

#quick-live-btn.playing .speaker-waves {
  display: block;
  position: absolute;
  right: -2px;
  width: 18px;
  height: 18px;
}

#quick-live-btn.playing .speaker-waves::before,
#quick-live-btn.playing .speaker-waves::after {
  content: '';
  position: absolute;
  border: 2px solid #2ecc71;
  border-left: none;
  border-radius: 0 50% 50% 0;
  animation: sound-wave 1s infinite;
}

#quick-live-btn.playing .speaker-waves::before {
  width: 8px;
  height: 8px;
  top: 5px;
  left: 2px;
  animation-delay: 0s;
}

#quick-live-btn.playing .speaker-waves::after {
  width: 14px;
  height: 14px;
  top: 2px;
  left: 0;
  animation-delay: 0.2s;
}

@keyframes sound-wave {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* ביטול גלי הקול - רק הרמקול מהבהב */
#quick-live-btn.playing .speaker-waves {
  display: none !important;
}

#quick-live-btn.playing .speaker-icon {
  animation: speaker-blink 1s infinite;
}

@keyframes speaker-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* קונטיינר לכפתור רמקול וסליידר */
#quick-live-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* סליידר ווליום */
#quick-volume-slider {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 12px;
  border-radius: 20px;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
}

#quick-live-container:hover #quick-volume-slider,
#quick-volume-slider:hover {
  display: flex;
}

#quick-volume {
  width: 80px;
  height: 5px;
  cursor: pointer;
  accent-color: #2ecc71;
}

#quick-volume-display {
  color: white;
  font-size: 11px;
  min-width: 35px;
  text-align: center;
}

/* סליידר ווליום אנכי */
#quick-live-container {
  flex-direction: row !important;
  align-items: flex-start !important;
}

#quick-volume-slider {
  flex-direction: column !important;
  padding: 12px 8px !important;
  border-radius: 25px !important;
  height: 120px;
  margin-top: 5px;
}

#quick-volume {
  width: 6px !important;
  height: 100px !important;
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
}

#quick-volume-display {
  margin-top: 5px;
}

/* הסתרה והצגה עם טיימר */
#quick-volume-slider {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#quick-volume-slider.visible {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

/* תיקון מיקום - סליידר מתחת לרמקול */
#quick-live-container {
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

#quick-volume-slider {
  position: relative !important;
  margin-top: 10px !important;
  height: 180px !important;
  padding: 15px 10px !important;
}

#quick-volume {
  height: 150px !important;
}

/* סליידר עוד יותר למטה ויותר ארוך */
#quick-volume-slider {
  margin-top: 20px !important;
  height: 220px !important;
  padding: 20px 12px !important;
}

#quick-volume {
  height: 180px !important;
}

/* ביטול פתיחה אוטומטית בהעברת עכבר */
#quick-live-container:hover #quick-volume-slider {
  display: none;
}

/* ===== מסך הגדרות ===== */
#settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

#settings-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px;
  padding: 25px;
  width: 90%;
  max-width: 450px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#settings-header h2 {
  margin: 0;
  color: #ffd700;
  font-size: 1.5em;
}

#close-settings {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5em;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

#close-settings:hover {
  background: rgba(255, 100, 100, 0.3);
}

.settings-section {
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.settings-section h3 {
  margin: 0 0 15px 0;
  color: #87ceeb;
  font-size: 1.1em;
}

.setting-item {
  margin-bottom: 12px;
}

.setting-item label {
  display: block;
  color: #ccc;
  margin-bottom: 5px;
  font-size: 0.95em;
}

.setting-item input[type="number"],
.setting-item textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 1em;
  box-sizing: border-box;
}

.setting-item input[type="number"] {
  width: 80px;
}

.setting-item textarea {
  resize: vertical;
  font-family: inherit;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
}

.setting-item input[type="file"] {
  color: #ccc;
  font-size: 0.9em;
}

.settings-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s;
  width: 100%;
}

.settings-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.settings-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#reset-background {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

#reset-background:hover {
  background: rgba(255, 100, 100, 0.2);
}

/* ===== חנוכה - אפקט אש ===== */
.chanukah-fire-text {
  background: linear-gradient(180deg, #fff5cc 0%, #ffcc00 25%, #ff9900 50%, #ff6600 75%, #cc3300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
  animation: fire-flicker 2s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
  0% {
    filter: brightness(1) drop-shadow(0 0 5px #ff6600);
  }
  100% {
    filter: brightness(1.1) drop-shadow(0 0 10px #ffcc00);
  }
}

/* הקטנת נרות חנוכה במובייל */
@media (max-width: 768px) {
  #special-day-text .candles-row {
    font-size: 0.55em !important;
    display: block;
    margin: 3px 0;
  }
  
  #special-day-text {
    margin-bottom: 5px !important;
  }
}

/* ===== מסך הודעה מיוחדת ===== */
.special-message-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.special-message-content {
  text-align: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  border: 3px solid rgba(255, 215, 0, 0.4);
  max-width: 90%;
  animation: special-glow 3s ease-in-out infinite alternate;
}

.special-message-title {
  font-size: 3em;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  font-family: "David Libre", serif;
}

.special-message-text {
  font-size: 1.8em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  white-space: pre-wrap;
}

@keyframes special-glow {
  0% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  }
}

@media (max-width: 768px) {
  .special-message-title {
    font-size: 2em;
  }
  .special-message-text {
    font-size: 1.3em;
  }
  .special-message-content {
    padding: 25px;
  }
}

/* שדה טקסט בהגדרות */
.setting-item input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 1em;
  box-sizing: border-box;
}


/* בוחר צבע ו-select בהגדרות */
.setting-item input[type="color"] {
  width: 50px;
  height: 35px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
}

.setting-item select {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 0.95em;
}


/* כפתור מחיקה מהירה */
.clear-btn {
  background: rgba(255, 100, 100, 0.3);
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1em;
}

.clear-btn:hover {
  background: rgba(255, 100, 100, 0.5);
}


/* ===== עורך טקסט עשיר ===== */
.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  align-items: center;
}

.rich-editor-toolbar button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  min-width: 30px;
}

.rich-editor-toolbar button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rich-editor-toolbar select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px;
  border-radius: 4px;
  font-size: 12px;
}

.rich-editor-toolbar input[type="color"] {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.toolbar-divider {
  width: 1px;
  height: 25px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
}

.rich-editor {
  min-height: 100px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 0 8px 8px;
  color: white;
  font-size: 1.1em;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

.rich-editor:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
}

.rich-editor:empty:before {
  content: attr(placeholder);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* צבעים מהירים */
.color-palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  align-items: center;
}

.quick-color, .palette-color {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.quick-color:hover, .palette-color:hover {
  border-color: white;
  transform: scale(1.1);
}
