/* ======================================= */
/* === БАЗОВІ СТИЛІ (спільні для всіх пристроїв) === */
/* ======================================= */

body {
  font-family: 'Inter', sans-serif;
  color: #E5E7EB;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #111827; /* Темно-сірий фон як запасний */
  
  /* === ФОН ДЛЯ МОБІЛЬНИХ (ПРОКРУЧУЄТЬСЯ) === */
  background-image: url("https://radio.nikopolnews.net/img/bg_mob.jpg"); /* ТЕПЕР ВИКОРИСТОВУЄТЬСЯ МОБІЛЬНИЙ ФОН */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Мобільний фон прокручується */
}
/* Імпорт шрифту e-Ukraine Head. Це посилання на CSS файл з @font-face деклараціями */
@import url('https://uafonts.com/css/e-Ukraine-Head.css');

/* --- СТИЛІ ДЛЯ КОНТЕЙНЕРІВ КНОПОК (ПОЗИЦІОНУВАННЯ) --- */

/* Контейнер для кнопки "Інформація" (Червона) */
.info-button-wrapper {
    position: fixed;
    right: 1rem; /* 16px */
    bottom: 9rem; /* 144px (9rem) - Висота над нижнім плеєром */
    z-index: 50; 
}

/* Контейнер для кнопки "Благодійні внески" (Жовта) */
.donate-button-wrapper {
    position: fixed;
    right: 1rem; /* 16px */
    /* 9rem (info-button) + 3rem (висота кнопки) + 1rem (відступ) = 13rem */
    bottom: 13rem; /* 208px */ 
    z-index: 50; 
}

/* Адаптивність для десктопу (збільшений відступ) */
@media (min-width: 640px) { /* sm breakpoint */
    .info-button-wrapper {
        bottom: 10rem; /* 160px */
    }
    .donate-button-wrapper {
        bottom: 14rem; /* 224px */ 
    }
}


/* --- СТИЛІ ДЛЯ САМИХ КНОПОК (ФОРМА ТА КОЛІР) --- */

/* Базовий стиль для обох кнопок: Кругла форма, розмір, тінь */
.info-button, .donate-button {
    width: 3rem; /* 48px */
    height: 3rem; /* 48px - Робить її ідеально круглою */
    padding: 0;
    color: #ffffff; /* За замовчуванням білий колір для іконок */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
    border: none;
    line-height: 1;
    display: flex; 
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; /* Розмір іконки */
}

/* Стилі для червоної кнопки "Інформація" */
.info-button {
    background-color: #ef4444; /* bg-red-500 */
}
.info-button:hover {
    background-color: #dc2626; /* hover:bg-red-600 */
    transform: scale(1.05); 
}

/* Стилі для жовтої кнопки "Благодійні внески" */
.donate-button {
    background-color: #f59e0b; /* bg-amber-500 (жовтий) */
    color: #1f2937; /* text-gray-900 (темна іконка для контрасту) */
}
.donate-button:hover {
    background-color: #d97706; /* hover:bg-amber-600 */
    transform: scale(1.05);
}


/* --- СТИЛІ ДЛЯ МОДАЛЬНОГО ВІКНА (ЗАГАЛЬНІ для обох) --- */

/* Оверлей (фон) модального вікна */
.info-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: flex-end; /* Для мобільного: вміст знизу */
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

/* Адаптивність: Для десктопу - по центру */
@media (min-width: 640px) {
    .info-modal-overlay {
        align-items: center;
    }
}

/* Вміст модального вікна */
.info-modal-content {
    background-color: #ffffff;
    color: #1f2937; 
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
    width: 100%;
    max-width: 28rem; /* max-w-md */
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(0);
    transition: transform 0.3s;
}

/* Заголовок (робимо sticky для скролу) */
.info-modal-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* Кнопка закриття */
.info-modal-close-btn {
    color: #6b7280; 
    padding: 0.5rem; 
    border-radius: 9999px; 
    transition: color 0.2s, background-color 0.2s;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.info-modal-close-btn:hover {
    color: #4b5563; 
    background-color: #f3f4f6; 
}
/* Можна додати dark mode класи, якщо вони використовуються у вашому stiles.css */
/*
.info-modal-content.dark {
    background-color: #1f2937;
    color: #f9fafb;
}
.info-modal-header.dark {
    background-color: #1f2937;
    border-color: #374151;
}
*/

  #nikopol-popup {
    max-width: 460px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f9f9fc);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-align: center;
    line-height: 1.7;
    animation: nikopolFadeIn 1s ease-in-out;
  }
  #nikopol-popup h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 22px;
  }
  #nikopol-popup p {
    color: #444;
    font-size: 16px;
    margin: 10px 0;
  }
  #nikopol-popup strong {
    color: #000;
  }
  #nikopol-popup-link {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    background: #007BFF;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.4);
    transition: background 0.3s, transform 0.2s;
  }
  #nikopol-popup-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
  }
  @keyframes nikopolFadeIn {
    from {opacity: 0; transform: translateY(-12px);}
    to {opacity: 1; transform: translateY(0);}
  }

/* Застосовуємо шрифт до елементу з класом site-title */

h1.site-title.flex.items-center.justify-center {
	font-family: 'e-Ukraine Head', sans-serif !important;
	/* Додаємо !important, щоб перекрити можливі правила з Tailwind або stiles.css */
	font-weight: 700; /* Встановлюємо товщину, якщо потрібна жирна версія */
}
.radio-text {
  color: white;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Arial", sans-serif;
}
#overlay { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: flex-start; 
  /* Залишаємо місце для фіксованого нижнього плеєра (5rem + 1rem) */
  padding-bottom: 6rem; 
}

/* --- Заголовок та Статус --- */
.header { 
  text-align: center; 
  padding: 2rem 0; 
  width: 100%;
  padding-bottom: 10px;
}
.site-title { 
  font-size: 2.0rem; 
  font-weight: 800; 
  color: #fde047; /* Яскраво-жовтий */
  margin-bottom: 0.5rem;
}
.status-container {
  min-height: 1.5rem; /* Запобігає зміщенню при завантаженні тексту */
}
.status-text { 
  font-size: 1rem;
  font-weight: 600; 
  font-style: italic; 
  color: #eab308; /* Золотистий */
}


/* ======================================= */
/* === 1. БЛОК НОВИН (news-section) === */
/* ======================================= */

.news-section { 
  width: 100%; 
  max-width: 36rem; 
  margin: 0.5rem auto 1.5rem; 
  padding: 0 1rem; 
}

.news-container { 
  /* НЕЗАЛЕЖНІ СТИЛІ БЛОКУ НОВИН */
  background: rgba(0,0,0,0.3); 
  padding: 1.25rem; 
  border-radius: 0.75rem; 
  border: 1px solid rgba(253, 224, 71, 0.2);
  transition: all 0.3s ease;
}

.news-status-text {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: #cbced2;
  margin-bottom: 1rem;
}




/* --- Стилі окремих новин --- */
.news-item {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Розділювач між новинами */
.news-item-separator {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-time, .news-time-latest {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.news-time {
  color: #8ba02d; /* Сірий для старих новин */
}
.news-time-latest {
  color: #FDE047; /* Яскраво-жовтий для останньої */
}

.news-title, .news-title-latest {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.news-title-latest {
  color: #FDE047; /* Яскраво-жовтий */
}

.news-description {
  font-size: 0.875rem;
  color: #D1D5DB;
  line-height: 1.5;
}

/* --- Кнопка "Перейти до каналу" --- */
.channel-link-button {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #1D4ED8; /* Синій */
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.channel-link-button:hover {
  background-color: #3B82F6;
  transform: translateY(-1px);
}
.channel-link-button:active {
  transform: translateY(0);
}


/* --- КАСТОМНИЙ СКРОЛБАР (jQuery-імітація) --- */

/* news-scroll-area тепер виступає як контейнер для прокрутки і доріжки */
.news-scroll-area {
    position: relative; /* Важливо для абсолютного позиціонування доріжки */
    height: 150px; /* Висота для мобільних пристроїв */
    overflow: hidden; /* Приховуємо будь-яку прокрутку, яка може вилізти за межі */
    /* Видалено: scrollbar-width: none; та -ms-overflow-style: none; */
}


/* 1. КОНТЕНТ (Справжня прокрутка) */
.content-scroll-wrapper {
    height: 100%;
    /* Дозволяємо прокрутку, але приховуємо рідний скролбар */
    overflow-y: scroll; 
    
    /* Приховування рідного скролбара (для всіх браузерів) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.content-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
    width: 0;
    height: 0;
}


/* 2. ДОРОЖКА (Track) */
.custom-scrollbar-track {
    position: absolute;
    right: 5px; /* Відступ від правого краю */
    top: 5px; /* Відступ від верхнього краю */
    bottom: 5px; /* Відступ від нижнього краю */
    width: 8px; /* Ширина трека */
    background-color: rgba(255, 255, 255, 0.1); /* Світло-сірий, прозорий фон */
    border-radius: 4px;
    pointer-events: none; /* Ігноруємо кліки по доріжці */
    opacity: 0.8;
}

/* 3. ПОВЗУНОК (Thumb) */
.custom-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: #FDE047; /* ЯСКРАВО-ЖОВТИЙ КОЛІР */
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto; /* Дозволяємо взаємодію з повзунком */
    transition: background-color 0.1s ease;
}

.custom-thumb:hover, .custom-thumb.active {
    background-color: #FFEA79; /* Трохи світліший при наведенні/активності */
}


/* ======================================= */
/* === 2. БЛОК БАНЕРА (ad-section) === */
/* ======================================= */

/* --- СТИЛІ ЗА ЗАМОВЧУВАННЯМ (МОБІЛЬНІ: 320x50, ДІЮТЬ < 768px) --- */

.ad-section {
    /* Позиціонування та центрування для фіксованого елемента */
    position: fixed;
    /* bottom: 5.5rem = 4.5rem (плеєр) + 1rem (відступ) */
    bottom: 5.5rem; 
    left: 0;
    right: 0;
    margin: 0 auto; 
    z-index: 990; 
    
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    width: 100%; 

    /* Обмеження ширини для мобільного банера 320px + padding */
    max-width: 352px; /* 320px + 2*16px */
}

/* ---------------------------------------------------------------------- */
/* 2.1. МОБІЛЬНИЙ БАНЕР (320x50) */
/* ---------------------------------------------------------------------- */
.banner-mobile {
    display: block; /* За замовчуванням видимий */
}
/* Примусові стилі для iframe і контейнерів */
.banner-mobile .adsbygoogle {
    /* Жорсткі розміри, щоб перекрити AdSense і уникнути розтягування */
    width: 320px !important;
    height: 50px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    min-height: 50px !important;
    max-height: 50px !important;
}
.banner-mobile .adsbygoogle > div:first-child,
.banner-mobile .adsbygoogle iframe {
    width: 320px !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
}

/* ---------------------------------------------------------------------- */
/* 2.2. ДЕСКТОПНИЙ БАНЕР (728x90) */
/* ---------------------------------------------------------------------- */
.banner-desktop {
    display: none; /* За замовчуванням прихований */
}


/* ======================================= */
/* === 3. ФІКСОВАНИЙ НИЖНІЙ ПЛЕЄР (bottom-player) === */
/* ======================================= */

.bottom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4.5rem; /* Висота плеєра на мобільному */
  padding: 0 0.5rem;
  background-color: rgba(17, 24, 39, 0.95); /* Майже чорний, прозорий */
  border-top: 2px solid #eab308;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  gap: 1rem;
}

.player-controls-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Кнопка Play/Pause --- */
.play-button {
  width: 3rem; 
  height: 3rem;
  background-color: #EAB308; /* Золотистий */
  color: #111827;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.1s ease, background-color 0.2s ease;
}
.play-button:not([disabled]):hover {
  background-color: #FCD34D; /* Світліший при наведенні */
}
.play-button:not([disabled]):active {
  transform: translateY(0);
}
.play-button[disabled] {
  background-color: #4B5563; /* Сірий, коли неактивна */
  cursor: not-allowed;
}

.play-icon, .pause-icon {
  width: 1.5rem;
  height: 1.5rem;
  /* Підлаштовуємо іконку Play */
  margin-left: 0.15rem; 
}
.loading-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #111827;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* --- Перемикач Автоозвучення (Toggle) --- */
.auto-announce-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}
.toggle-label-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9CA3AF;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.2rem;
  height: 1.2rem;
}

.toggle-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-label:before {
  position: absolute;
  content: "";
  height: 0.9rem;
  width: 0.9rem;
  left: 0.15rem;
  bottom: 0.15rem;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #FDE047;
}

.toggle-checkbox:checked + .toggle-label:before {
  transform: translateX(1rem);
}

/* --- Регулятор Гучності (Volume) --- */
.volume-control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.volume-icon {
    color: #9CA3AF;
    font-size: 1.1rem;
    min-width: 1.1rem; /* Запобігає зміщенню при зміні іконки */
}
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 6rem;
  height: 0.4rem;
  background: #374151;
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
  border-radius: 4px;
}

.volume-slider:hover {
  opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #FDE047;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #FDE047;
  cursor: pointer;
}


/* ======================================= */
/* === АДАПТИВНІСТЬ ТА ВЕЛИКІ ЕКРАНИ === */
/* ======================================= */

/* --- СТИЛІ ДЛЯ ПЛАНШЕТІВ ТА ДЕСКТОПІВ (від 768px) --- */
@media (min-width: 768px) {
  
  /* Фон для десктопів */
  body {
    /* === ФОН ДЛЯ ДЕСКТОПІВ (ФІКСОВАНИЙ) === */
    background-image: url("https://radio.nikopolnews.net/img/bg_deck.jpg"); /* ДЕСКТОПНИЙ ФОН */
    background-attachment: fixed; /* ФІКСАЦІЯ */
  }
  
  /* Збільшення заголовка */
  .site-title { font-size: 3rem; }
  .status-text { font-size: 1.125rem; }

  /* Збільшення новинного блоку */
  .news-section { margin-top: 3rem; margin-bottom: 2rem; }
  .news-container { padding: 1.5rem; border-radius: 1rem; }
  /* Висота 200px для десктопів */
  .news-scroll-area { height: 200px; } 
  
  .news-title, .news-title-latest { font-size: 1.25rem; }
  .news-description { font-size: 0.9375rem; }

  /* ВИПРАВЛЕННЯ: Позиціонування банера на десктопі */
  .ad-section {
    /* bottom: 6rem = 5rem (desktop player height) + 1rem (gap) */
    bottom: 6rem; 
    max-width: 760px; /* 728px + 2*16px */
  }

  /* 1. ПРИХОВУЄМО МОБІЛЬНИЙ БАНЕР */
  .banner-mobile {
      display: none;
  }

  /* 2. ПОКАЗУЄМО ДЕСКТОПНИЙ БАНЕР (728x90) */
  .banner-desktop {
      display: block; /* Робимо видимим */
      width: 100%;
      /* Обмежуємо його вміст точним розміром банера */
      max-width: 728px;
  }

  /* Примусові стилі для iframe і контейнерів */
  .banner-desktop .adsbygoogle {
      /* Жорсткі розміри, щоб перекрити AdSense і уникнути розтягування */
      width: 728px !important;
      height: 90px !important;
      min-width: 728px !important;
      max-width: 728px !important;
      min-height: 90px !important;
      max-height: 90px !important;
  }
  .banner-desktop .adsbygoogle > div:first-child,
  .banner-desktop .adsbygoogle iframe {
      width: 728px !important;
      height: 90px !important;
      min-height: 90px !important;
      max-height: 90px !important;
  }
  
  /* Збільшення елементів плеєра */
  .bottom-player { height: 5rem; padding: 0 1.5rem; }
  .player-controls-group { gap: 1.5rem; }
  .play-button { width: 3.5rem; height: 3.5rem; }
  .play-icon, .pause-icon, .loading-icon { width: 1.8rem; height: 1.8rem; }
  .volume-slider { width: 8rem; }
  .toggle-label-text { font-size: 0.875rem; }
}

/* === ДОДАНО: СТИЛІ ДЛЯ ПЛАНШЕТІВ / МАЛИХ ДЕСКТОПІВ (1024px і більше) === */
@media (min-width: 1024px) and (max-width: 1280px) {
    /* Зменшення заголовка */
    .site-title { font-size: 2.5rem; }
    
    /* Зменшення відступів для економії вертикального простору */
    .header { 
        padding: 0.5rem 0; /* Виконано запит */
        padding-bottom: 10px; 
    }
    .news-section { 
        margin-top: 1rem; /* Виконано запит */
        margin-bottom: 1.5rem;
    }
    
    /* Висота скрол-блока */
    .news-scroll-area { height: 180px; }
}

/* --- СТИЛІ ДЛЯ ДУЖЕ ВЕЛИКИХ ЕКРАНІВ (> 1280px) --- */
/* Тут зберігаються більші стилі, визначені у 768px, але ми можемо їх посилити, якщо 1024px їх перебиває */
@media (min-width: 1281px) {
    .site-title { font-size: 3rem; }
    .header { 
        padding: 2rem 0; 
        padding-bottom: 10px; 
    }
    .news-section { 
        margin-top: 3rem; 
        margin-bottom: 2rem; 
    }
}


/* === ДОДАНО: показ кнопки тільки на мобільних, приховування у PWA === */
.channel-link-button {
  display: none;
}

@media (max-width: 767px) {
  .channel-link-button {
    display: block;
  }
}

body.pwa-installed .channel-link-button {
  display: none !important;
}
/* --- КАСТОМНИЙ СКРОЛБАР (jQuery-імітація) --- */

/* news-scroll-area тепер виступає як контейнер для прокрутки і доріжки */
.news-scroll-area {
    position: relative; /* Важливо для абсолютного позиціонування доріжки */
    height: 150px; /* Висота для мобільних пристроїв */
    overflow: hidden; /* Приховуємо будь-яку прокрутку, яка може вилізти за межі */
    /* Видалено: scrollbar-width: none; та -ms-overflow-style: none; */
}


/* 1. КОНТЕНТ (Справжня прокрутка) */
.content-scroll-wrapper {
    height: 100%;
    /* Дозволяємо прокрутку, але приховуємо рідний скролбар */
    overflow-y: scroll; 
    
    /* Приховування рідного скролбара (для всіх браузерів) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.content-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
    width: 0;
    height: 0;
}


/* 2. ДОРОЖКА (Track) */
.custom-scrollbar-track {
    position: absolute;
    right: 5px; /* Відступ від правого краю */
    top: 5px; /* Відступ від верхнього краю */
    bottom: 5px; /* Відступ від нижнього краю */
    width: 8px; /* Ширина трека */
    background-color: rgba(255, 255, 255, 0.1); /* Світло-сірий, прозорий фон */
    border-radius: 4px;
    pointer-events: none; /* Ігноруємо кліки по доріжці */
    opacity: 0.8;
}

/* 3. ПОВЗУНОК (Thumb) */
.custom-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background-color: #FDE047; /* ЯСКРАВО-ЖОВТИЙ КОЛІР */
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto; /* Дозволяємо взаємодію з повзунком */
    transition: background-color 0.1s ease;
}

.custom-thumb:hover, .custom-thumb.active {
    background-color: #FFEA79; /* Трохи світліший при наведенні/активності */
}

#qrCodeBlock {
/* Приховуємо за замовчуванням */
display: none;
}

/* 1. ПРАВИЛО ДЛЯ ДЕСКТОПІВ (Показуємо, якщо ширина >= 1024px, і неважливо, PWA це чи ні) /
/ Ця умова має завжди спрацьовувати на десктопі */
@media (min-width: 1024px) {
#qrCodeBlock {
position: fixed;
top: 10px;
right: 0px;
width: 180px;
height: 180px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 50;
}
}

/* 2. ПРАВИЛО ПРИХОВУВАННЯ ВІД PWA (Навіть на десктопах) /
/ Це правило перекриває попереднє, якщо app запущено як PWA */
@media (display-mode: standalone) {
#qrCodeBlock {
display: none !important;
}
}

.qr-code-image {
width: 90%;
height: auto;
border-radius: 8px;
margin-bottom: 4px;
}

.qr-code-text {
font-size: 0.75rem;
color: #333;
font-weight: 500;
text-align: center;
}