/* Основные настройки страницы */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: sans-serif;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем всё содержимое тела страницы */
}

/* Контейнер всей мобильной версии */
#telefon-wrapper {
    width: 100%;
    max-width: 400px;        /* Сужаем до ширины контента, чтобы не было пустот по бокам */
    min-height: 100vh;       
    background-image: url("https://bogsan007-oss.github.io/img-fonts-css/secret/img/body.webp");
    background-size: 30%;    
    background-repeat: repeat;
    background-position: top left;
    margin: 0 auto;          /* Центрируем блок */
    position: relative;
    padding-top: 0px;        
    box-sizing: border-box;
    overflow-x: hidden;      
    display: flex;
    flex-direction: column;
    align-items: center;     /* Выравниваем дочерние элементы по центру */
}

#player-block {
    width: 100%;
    max-width: 400px;      
    margin: 0 auto;         
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;   
    gap: 20px;             
    padding-top: 0px;      
    box-sizing: border-box;
}

/* Плеер (убираем absolute, чтобы он не улетал влево/вправо) */
#tbliza {
  position: relative;     /* Меняем с absolute на relative для нормального центрирования */
  width: 100%;
  max-width: 400px;
  height: auto;
  z-index: 1;
  margin: 20px auto;     ِ/* Отступы сверху/снизу и авто-центры по бокам */
  display: block;
}

#tbliza img {
  width: 100%;
  height: auto;
  display: block;
}
#player-circle {
  position: absolute;
  left: 30px;     /* потом подвинем */
  bottom: 280px;   /* потом подвинем */
  width: 62px;
  height: 62px;
  z-index: 2;     /* <-- вот он, слой 2 */
}
#current-track-name {
    position: absolute;
    bottom: 360px;      /* подвинь как хочешь */
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    text-align: center;
    width: 100%;
}
#play-icon {
  position: absolute;
  left: 60%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 32px;   /* можно менять */
  height: 44px;  /* можно менять */
}
#play-icon img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}
#pause-icon {
    position: absolute;
    left: 60%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 32px;
    height: 44px;
    opacity: 0;
}
/* === ВИЗУАЛИЗАТОР === */
#visualizer {
  position: absolute;
  left: 100px !important;      /* как у тебя */
  bottom: 276px !important;     /* как у тебя */

  display: flex;    
  align-items: flex-end;
  gap: 2px;

  width: 260px;     /* ← добавил, чтобы влезли все столбики */
  height: 58px;     /* ← добавил, чтобы визуализатор был виден */

  z-index: 2;
  overflow: hidden; /* ← чтобы столбики не вылезали */
}

#visualizer .bar {
  width: 6px;
  height: 40px;          /* ← было 1px, поэтому не видно */
  object-fit: cover;
  display: block;

  transform-origin: bottom; /* ← чтобы росли вверх */
  opacity: 1;               /* ← чтобы не были прозрачными */
}

.btn-playlist {
    position: absolute;
    width: 54px;
    height: 31px;
    /* регулируешь положение */
    left: 86px;
    bottom: 110px;
	z-index: 3;
}
.playlist-box {
    position: relative;
    width: 334px;
    height: 230px;
    top: 0px;               /* вверх/вниз */
    left: 30px;              /* влево/вправо */
    overflow: hidden;
}

.playlist-bg {
    width: 100%;
    height: 100%;
	inset: 0;
    display: block;
}

/* СЛОЙ 3 — как ты и делал */
.playlist-inner {
    position: absolute;
    width: 305px;
    height: 210px;
    top: 5px;
    left: 10px;
    z-index: 3;

    overflow-y: auto;     /* вертикальный скролл */
    overflow-x: hidden;   /* не даём горизонтальному появляться */

    padding-right: 10px;  /* чтобы скролл не налезал на текст */
}
.playlist-inner {
    scrollbar-width: thin;
    scrollbar-color: #856d42 #3a2a1a;   /* Firefox */
}
/* Chrome, Edge, Safari */
.playlist-inner::-webkit-scrollbar {
    width: 10px;
}

.playlist-inner::-webkit-scrollbar-track {
    background: #3a2a1a;                /* тёмный фон дорожки */
}

.playlist-inner::-webkit-scrollbar-thumb {
    background: #856d42;                /* золотистый ползунок */
}

/* картинка внутри строки трека */
.svet-icon {
    width: 12px !important;   /* нормальный размер */
    height: 22px !important;
    flex-shrink: 0; /* чтобы не сжималась */
}

/* строка трека */
.track {
    display: flex;
    align-items: center;
    gap: 14px;      /* расстояние между картинкой и текстом */
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    text-shadow: 0 0 3px rgba(0,0,0,0.7);
    margin-bottom: 5px;
    cursor: pointer;
}

.gold-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;

    color: #ac9061; /* чистое светлое золото */

    text-shadow:
        0 0 6px rgba(0,0,0,0.9),   /* тёмная обводка вокруг */
        0 0 6px rgba(0,0,0,0.7);   /* мягкая тень для читаемости */
}

.active-track {
    color: #ffd86b;
    text-shadow: 0 0 4px rgba(0,0,0,0.9);
}
#radio-box {
    position: absolute;
    left: 43px;          /* слева внутри родителя */
    top: 454px;          /* под окном — подгонено под твой макет */
    width: 296px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding: 6px;
    background: rgba(0,0,0,0.35);
    border: 1px solid #c9a86a;
    border-radius: 8px;

    z-index: 2;
}

.radio-btn {
    width: 65px !important;
    height: 51px !important;
    border-radius: 6px;
    border: 1px solid #c9a86a;
    cursor: pointer;
    transition: 0.2s;
}

.radio-btn:hover {
    transform: scale(1.05);
    border-color: #e6c98a;
}
.progress-container {
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: absolute;
	margin-left: 39px;
    margin-top: -42px;
    overflow: hidden;
	z-index: 3;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #01ff1d; /* золотой цвет */
    border-radius: 3px;
    transition: width 0.1s linear;
}
#newspaper-block {
  position: absolute;
  top: 790px;     /* твоя позиция */
  right: -2px;
  width: 400px;
  min-height: 300px;
  background: transparent;
  border: none;
  display: grid;
  grid-template-columns: 1fr 1fr; /* две колонки */
  grid-template-rows: 1fr 1fr;    /* две строки */
  gap: 0;                         /* без отступов */
}

.cell-1 {
  width: 190px;
  height: 245px;

  background-image: url('https://raw.githubusercontent.com/bogsan007-oss/img-fonts-css/main/secret/img/pravda.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(4deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 8px 15px rgba(0,0,0,0.6);
}
/* Контейнер карточки № 1 */
.paper-news {
    width: 170px !important;
    height: 190px !important;
    max-width: 170px !important;
    max-height: 190px !important;
    margin-top: 40px;
    overflow: hidden !important;
    position: relative !important; /* Включаем систему координат для абсолютных элементов */
    box-sizing: border-box !important;
}

/* Название: точные координаты сверху */
.paper-news .paper-title {
    position: absolute !important;
    top: 8px !important;          /* <-- Расстояние от верхнего края карточки */
    left: 8px !important;
    right: 8px !important;
    font-size: 22px !important;
    line-height: 1.00 !important;
    max-height: 2.3em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-align: center !important;
}

/* Картинка: точные координаты под названием */
.paper-news a {
    position: absolute !important;
    top: 70px !important;         /* <-- Расстояние от верхнего края до картинки (регулируйте это!) */
    left: 8px !important;
    right: 8px !important;
    text-align: center !important;
}

.paper-news .paper-img {
    width: 154px !important;      /* Ширина картинки */
    height: 110px !important;     /* Высота картинки */
    object-fit: cover !important; 
    border-radius: 3px !important;
    display: block !important;
    margin: 0 auto !important;
}

.cell-2 {
  width: 190px;
  height: 245px;

  background-image: url('https://raw.githubusercontent.com/bogsan007-oss/img-fonts-css/main/secret/img/obiava.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(-2deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 8px 15px rgba(0,0,0,0.6);
}
.prodam-card {
  width: 160px;
  height: 170px;
  padding: 8px;
  border-radius: 8px;
  background: transparent; /* прозрачный фон */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  box-sizing: border-box;
}

.prodam-card img {
  width: 130px;
  height: 100px;
  object-fit: cover;
}

.prodam-card-title {
  margin-top: 6px;
  font-size: 18px;
  text-align: center;
  line-height: 0.9;

  display: -webkit-box;
  -webkit-line-clamp: 2;      /* ← ограничение в 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* блок 3 мысли */
/* Внешний блок-обертка */
.paper-cell {
    position: relative !important;
    display: inline-block !important;
}

/* Сам пергамент «Мысли дня» */
.paper-cell .cell-3 {
    width: 190px !important;
    height: 245px !important;
    max-width: 190px !important;
    max-height: 245px !important;

    background-image: url('https://raw.githubusercontent.com/bogsan007-oss/img-fonts-css/main/secret/img/misla.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer !important;
    transform: rotate(-3deg) !important; /* лёгкий наклон влево */

    /* Flexbox-настройки */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;

    /* Внутренние отступы: двигаем контент ниже завитка пергамента */
    padding: 5px 45px 20px 20px !important; 
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Заголовок «Мысли дня» */
.paper-cell .cell-3 .thought-title {
    font-size: 22px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 12px !important; /* Расстояние от заголовка до мысли */
}

/* Текст мысли (preview) */
.paper-cell .cell-3 .thought-preview {
    font-size: 20px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 6 !important;   /* Максимум 6 строк */
    -webkit-box-orient: vertical !important;
}

/* Заголовок */
.thought-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-top: 16px;
  color: #000;
}
/* Превью мысли */
.thought-preview {
  font-size: 20px;
  line-height: 1.15;
  text-align: center;
  margin-top: 26px;
  color: #000;

  /* чтобы текст не ломал карточку */
  overflow: hidden;
  max-height: 160px;
}
/* ==========================================
   СТИЛИ МОДАЛЬНОГО ОКНА ДЛЯ «МЫСЛЕЙ ДНЯ»
   ========================================== */

/* 1. Затемнение фона и идеальное центрирование */
.thought-modal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  display: none; /* Без !important, чтобы JS мог перебить */
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(2px) !important;
  z-index: 9999999 !important;
}

/* Класс для показа */
.thought-modal.active {
  display: flex !important;
}

/* 2. Само всплывающее окно (пергамент) */
.thought-modal-content {
  background: transparent !important;
  width: 480px !important;
  height: 345px !important;
  max-width: 95% !important;
  position: relative !important;
  background-image: url('https://raw.githubusercontent.com/bogsan007-oss/img-fonts-css/main/secret/img/vsplivat.webp') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
    
  /* Внутренние отступы: держим текст в центре пергамента */
  padding: 0px 0px 0px 10px !important;
  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  animation: modalShow 0.25s ease-out !important;
}

/* 3. Красная кнопка закрытия (крестик): отодвинули от правого верхнего угла, чтобы не налезать на болтик */
.thought-close {
  position: absolute !important;
  top: 0px !important;    /* Чуть ниже */
  right: 50px !important;   /* Чуть левее от края, подальше от болтика */
  font-size: 46px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #ff0000 !important;
  font-family: serif !important;
  line-height: 1 !important;
  padding: 5px !important;
  z-index: 10 !important;
  
  transition: transform 0.3s ease, color 0.3s ease !important;
}

.thought-close:hover {
  color: #cc0000 !important;
  transform: rotate(90deg) !important; /* Всё так же стильно крутится */
}

/* 4. Текст внутри всплывающего окна (настраиваем шрифт под ретро-стиль) */
#thoughtText {
  text-align: center !important;
  font-size: 20px !important; /* Размер текста (можете поменять на 15px или 17px по вкусу) */
  font-family: "Georgia", "Times New Roman", serif !important; /* Красивый классический шрифт с засечками */
  font-style: italic !important; /* Делаем курсивом, как будто написано пером */
  line-height: 0.9 !important;
  color: #2b2b2b !important;
  max-height: 260px !important;
  overflow-y: auto !important;
  padding: 0 10px !important;
}

/* 5. Плавная анимация появления окна */
@keyframes modalShow {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.thought-modal.active {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  transform: none !important;
}

.cell-4 {
  width: 190px;
  height: 245px;
  background-image: url('https://raw.githubusercontent.com/bogsan007-oss/img-fonts-css/main/secret/img/izvestie.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0px 8px 15px rgba(0,0,0,0.6);
  transform: rotate(2deg); /* если хочешь лёгкий наклон */
  position: relative; /* ВАЖНО */
 }
.crime-card {
  position: absolute;
  top: 45px;        /* ровно 45px сверху */
  left: 5px;        /* чуть смещаем, чтобы красиво легло */
  width: 180px;
  height: 200px;    /* фиксируем высоту, чтобы всё совпало */
  overflow: hidden;
  color: #000;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 12px;        /* ставь свой размер */
  line-height: 1.2;       /* аккуратная высота строки */
  background: transparent;
  z-index: 5;
}
.cell-1,
.cell-2,
.cell-3,
.cell-4 {
  position: relative; /* уже есть у тебя, но пусть будет */
  overflow: hidden;   /* чтобы затемнение не вылезало */
}

/* затемнение */
.cell-1::after,
.cell-2::after,
.cell-3::after,
.cell-4::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25); /* степень затемнения */
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* при наведении — затемнение исчезает */
.cell-1:hover::after,
.cell-2:hover::after,
.cell-3:hover::after,
.cell-4:hover::after {
  opacity: 0;
}
