/* === существующие стили (оставлены как у тебя) === */

#reviews-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
}

#reviews-list {
    margin-bottom: 20px;
}

/* карточка отзыва */
.review-card {
    margin-bottom: 15px; /* расстояние между разными комментариями = 15px */
}

/* header и content */
.review-card .header-block,
.review-card .content-block {
    background-color: #bce0cb;
    padding: 10px;
    border-radius: 6px;
    margin: 0;
}

.review-card .header-block {
    font-weight: 700;
    color: #222;
    margin-bottom: 1px; /* 1px раздел между header и content */
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.review-card .content-block {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.review-card .nickname { font-weight: 700; color: #222; }
.review-card .datetime { font-weight: 700; color: #222; }

/* контейнер для индикаторов тегов (точек) — справа от времени */
.tag-indicators {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    align-items: center;
    flex-shrink: 0;
    max-width: 120px; /* не даст меткам выползать за границы */
    overflow: hidden;
    white-space: nowrap;
}

/* одна точка-метка */
.tag-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    color: #222;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(0,0,0,0.1);
}

/* при ховере чуть подсказка */
.tag-dot:hover { box-shadow: 0 0 0 3px rgba(88,224,103,0.15); }

/* NEW-badge: маленький зелёный кружок рядом с датой, пока не просмотрено */
.new-badge {
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#2ecc40; /* ярко-зелёный */
    margin-left:6px;
    flex-shrink:0;
    border: 1px solid rgba(0,0,0,0.08);
}

/* подсказка для бейджа */
.new-badge[title] { cursor: default; }

/* форма */
#review-form input, #review-form textarea {
    width: 100%;
    padding: 7px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 15px;
}

#review-form input[type="file"] { border: none; padding: 0; }

#review-form button {
    padding: 10px 20px;
    background-color: #58e067;
    color: black;
    border: none;
    cursor: pointer;
    border-radius: 20px;
}
#review-form button:hover { background-color: #4caf50; }

/* фон и анимация */
body { background-color: #000; }
@keyframes dvdAnimation {
    0% { background-position: 0 0; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0 0; }
}
body {
    background-image: url('otzivi.jpg');
    background-size: 600px;
    background-position: center;
    animation: dvdAnimation 300s linear infinite;
}

.music-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #58e067;
}

/* media внутри карточки */
.media-container { margin-top: 8px; display:flex; flex-direction:column; gap:8px; }

/* изображения */
.media-container img {
    max-width: 220px;
    max-height: 160px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    display:block;
}
.media-container img.blurred { filter: blur(10px); }

/* локальные видео-превью */
.media-container video {
    max-width: 220px;
    max-height: 160px;
    cursor: pointer;
    display:block;
}

.media-container video.blurred {
    filter: blur(10px);
    -webkit-filter: blur(10px);
    transition: filter 0.15s ease;
}

/* превью видео — не показываем controls (полноразмерный плеер в lightbox будет иметь controls) */
.media-container video.preview {
    max-width: 220px;
    max-height: 160px;
    display: block;
    margin-top: 10px;
    cursor: pointer;
}

/* iframe-embed preview (YouTube / Twitch) */
.media-container .embed-preview {
    width: 320px;
    height: 180px;
    max-width: 90%;
    border: none;
    cursor: pointer;
}

/* twitch fallback link style */
.twitch-fallback {
    display:inline-block;
    padding:6px 10px;
    background:#222;
    color:#fff;
    border-radius:8px;
    text-decoration:none;
}

/* аудио */
.review-card audio { max-width: 100%; margin-top: 10px; display: block; }

/* подсветка при навигации (переход по тегу) */
.highlight {
    box-shadow: 0 0 0 4px rgba(255,230,0,0.85);
    border-radius: 8px;
    transition: box-shadow 0.6s ease;
}

/* пагинация */
#pagination { text-align: center; margin: 10px 0; position: relative; }
#pagination button {
    padding: 6px 10px;
    border-radius: 12px;
    border: none;
    background: #58e067;
    cursor: pointer;
}
#pagination button:disabled { opacity: 0.5; cursor: default; }

/* кнопка-номер выглядит как plain text, но кликабельна */
#page-number {
    background: transparent;
    border: none;
    color: #222;
    font-weight: 700;
    margin: 0 10px;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
}

/* выпадающий список страниц */
.page-dropdown {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    z-index: 2000;
    max-height: 240px;
    overflow-y: auto;
    min-width: 120px;
}
.page-dropdown button {
    display:block;
    width:100%;
    text-align:left;
    padding:6px 8px;
    background: none;
    border:none;
    cursor:pointer;
}
.page-dropdown button:hover { background:#eee; }

/* lightbox overlay */
#image-lightbox {
    position: fixed;
    inset: 0;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
}
#image-lightbox img, #image-lightbox video, #image-lightbox iframe {
    max-width: 95%;
    max-height: 95%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* мобильная оптимизация */
@media (max-width:480px) {
    .media-container img, .media-container video { max-width: 180px; max-height: 140px; }
    .page-dropdown { left: 50%; transform: translateX(-50%); }
}
