/* --- ОСНОВНОЙ КОНТЕЙНЕР ПЛЕЕРА --- */
.player-container {
    background: #1a1a1a;
    padding: 50px;
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
}

/* Glassmorphism applied to general containers */
.player-container {
    background-color: rgba(20, 20, 20, 0.2) !important; 
    backdrop-filter: blur(4px);                         
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(40, 30, 10, 0.8);
	text-align: center;
}

.lyrics-box,
.comments-section {
    background-color: rgba(25, 25, 25, 0.2) !important; 
    backdrop-filter: blur(4px);                         
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(40, 30, 10, 0.8);
	border-radius: 15px;
	padding: 30px;
}

/* Блок медиа (Видео или Обложка) */
.media-display {
    position: relative;
    width: 100%;
    height: 400px; /* Задаем фиксированную высоту для стабильности */
    display: flex;
    align-items: center;
    justify-content: center;
	background: transparent; /* Позрачный фон */
    border-radius: 10px;
    overflow: hidden;
}

.media-display video, 
.media-display img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Чтобы картинка не обрезалась */
}

.media-placeholder {
    color: white;
    font-size: 5rem;
}

/* Информация о песне */
.meta-info {
    margin-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

.player-container h4 {
    color: var(--gold);
    font-size: 1.6rem;
    margin: 15px 0;
}

/* --- РЕЙТИНГ (ЗВЕЗДЫ) --- */
.rating-container {
    margin: 20px 0;
}

.rating-label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.star-rating {
    font-size: 1.5rem;
    cursor: pointer;
    color: #444; /* Цвет пустых звезд */
}

.star {
    transition: color 0.2s ease;
}

.star.active, .star:hover {
    color: var(--gold);
}

.rating-msg {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
    height: 1rem; /* Чтобы текст не дергал верстку */
}

/* --- АУДИО ПЛЕЕР --- */
.audio-player {
    margin-top: 20px;
}

.audio-player audio {
    width: 100%;
}

.audio-not-found {
    color: #888;
    font-style: italic;
}

/* --- СКАЧИВАНИЕ --- */
/* Общие стили для всех кнопок скачивания (УМЕНЬШЕННЫЕ) */
.btn-download {
    padding: 4px 12px;          /* Было 10px 25px — уменьшили отступы */
    border-radius: 4px;         /* Чуть уменьшили скругление для компактности */
    text-decoration: none;
    color: #ece6aa !important; /* Светло-золотистый текст для темных кнопок */
    font-weight: bold;
    font-size: 0.7rem;         /* Было 0.9rem — уменьшили шрифт */
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;      /* Чуть уменьшили межбуквенный интервал */
    display: inline-block;
}

/* FLAC - золотой градиент */
.btn-flac { 
    /* Используем более глубокие, насыщенные коричнево-золотые тона */
    background: linear-gradient(to bottom, #b8860b 0%, #8a6508 50%, #5e4306 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* MP3 - матовое золото */
.btn-mp3 { 
    background: transparent;
}

/* Эффекты при наведении (адаптированы под размер) */
.btn-download:hover {
    transform: translateY(-1px); /* Подъем стал чуть меньше */
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Чтобы кнопки не стояли слишком далеко друг от друга в блоке .download-section */
.download-section {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px; /* Было 15px — уменьшили расстояние между кнопками */
}

/* --- ЛИРИКА И ОПИСАНИЕ --- */
.lyrics-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 40px 0 20px;
	text-align: center;
}

.lyrics-box {
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.song-title-in-lyrics {
    font-size: 1.5rem;
    color: var(--gold);
}

.description-text, .author-text {
    display: block;
    color: #888;
    margin-top: 15px;
    font-style: normal;
}

/* --- КОММЕНТАРИИ --- */
.comments-section {
    margin-top: 50px;
}

.comment-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comment-meta {
    display: flex;
    align-items: center;
}

.comment-date {
    font-size: 0.8rem;
    color: #888;
    margin-left: 10px;
}

.comment-text {
    margin-top: 5px;
    margin-bottom: 10px;
    color: #ccc;
}

/* Ответ администратора */
.admin-reply {
    margin-left: 25px;
    padding: 10px 15px;
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 0.95rem;
}

.admin-reply strong {
    color: var(--gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}

/* Форма комментария */
.add-comment textarea {
    width: 100%;
    background: #222;
    color: white;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 10px;
    resize: vertical;
}

.btn-comment-submit {
    background: var(--gold);
    color: black;
    font-weight: bold;
    border: none;
    padding: 8px 25px;
    cursor: pointer;
    border-radius: 4px;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 97%;
    max-height: 97%;
}

.close {
    position: absolute;
    right: 35px; top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    cursor: pointer;
}

/* Разделитель */
.content-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 40px 0;
}

.retro-stamp {
    display: block;
    text-align: center;
    color: #444;
    font-style: italic;
	font-size: 1.1rem;
    margin-top: 50px;
}

/* Кнопки плеера */
.player-btn.active i {
    color: #d4af37 !important; /* Золотой цвет при активации */
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
