:root {
    --bg: #111111;
    --card-bg: #201f1f;
    --radius: 12px;
    --accent: #d6d6d6;
    --accent-green: #0d5f0d;
}

body {
    font-family: Helvetica Neue,Helvetica,Arial,ui-sans-serif,system-ui,sans-serif;
    background: var(--bg);
    margin: 0;
    position: relative;
    padding: 15px;
}

h1{
    color: #e6e6e6;
}

h2{
    color: #e6e6e6;
}

p{
    color: #e6e6e6;
}

/*body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(46, 204, 113, 0.3), rgba(46, 204, 113, 0.3)), 
        url('bg2.jpg');

    /*background-image: url('bg2.jpg'); 
    background-size: cover;
    background-position: center;

    opacity: 0.1; 
    
    z-index: -1;
}*/

.container {
    max-width: 1200px;
    margin: 0 auto;
}

        /* 1. Меню */
.top-nav {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: var(--accent-green);
    /* Градиент волнами (под углом) */
    /*background: linear-gradient(
        135deg, 
        #2ecc71 0%, 
        #f1c40f 50%, 
        #e74c3c 100%
    );

    
    /* Если хочешь более "полосатый" или резкий переход, можно использовать:
    background: linear-gradient(90deg, #2ecc71, #f1c40f, #e74c3c); 
    */
    
    border: 1px solid rgba(0,0,0,0.1); /* Сделал бордер прозрачнее, чтобы не конфликтовал с цветом */
    border-radius: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    
    /* Тень для объема */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.top-nav a {
    text-decoration: none;
    /* Белый цвет текста или темно-серый, чтобы читалось на всех цветах */
    color: #fff; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 600;
    white-space: nowrap;
}

/* Эффект при наведении */
.top-nav a:hover {
    opacity: 0.8;
}

/* 2. Блоки в эфире (сетка в одну строку) */
.broadcast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 14px;
    margin-top:14px;
    text-transform: uppercase;
    font-weight: bold; 
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}

.card-live {
    background: var(--card-bg);
    border-radius: var(--radius);
    display: flex;
    overflow: hidden;
    height: 100px;
}

.card-live img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.card-content {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 12px 12px 15px; 
    box-shadow: 0 4px 15px var(--accent-green);
}
.meta-info { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    min-width: 0;
    gap: 2px; 
}

.meta-info .title { 
    font-weight: bold; 
    font-size: 18px; 
    color: #ffffff; 
    display: block;      
    line-height: 1.2;
    overflow: hidden;   
    text-overflow: ellipsis;
    flex-shrink: 1;
}

.meta-info .playlist { 
    font-size: 11px; 
    color: #ffffff; 
    opacity: 0.6;
}

.meta-info .time { 
    font-size: 16px;
    font-weight: bold;
    color: #ffffff; 
    margin-top: auto;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 30px;
    margin-top: 8px;
    background: white;
    color: black;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    opacity: 0.9;
}

/* 3. Вертикальный список */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    display: flex;
    min-height: 250px;
    overflow: hidden;
    align-items: flex-start;
    padding-left: 5px;
    padding-top: 5px;
}

.list-item img {
    width: 240px; 
    height: auto;
    aspect-ratio: 1 / 1; 
    
    max-width: 25%;
    max-height: 240px; 
    
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 1;
}

.item-right-part {
    display: flex;
    flex-direction: column; /* Тексты сверху, вейвформа снизу */
    flex: 1;
    padding: 10px 40px;
    justify-content: flex-start; /* Все элементы прижаты к верху */
    gap: 10px;
    min-height: 240px;
    align-items: flex-start; 
    min-width: 0;
    flex-direction: column; /* Отступ между текстом и плеером */
}

.item-header .name {
    color: #ffffff; 
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 2px;
}

.item-header .artist {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.item-header .item-links {
    color: #888888;
    font-size: 11px;
}

.item-header a {
    text-decoration: none; 
    color: inherit;        
    transition: 0.2s;      
}

.item-header a:hover {
    text-decoration: underline;
    opacity: 0.8;               
}

.btn-listen {
    padding: 8px 20px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start; /* Чтобы кнопка не растягивалась на всю ширину */
}

.btn-listen:hover {
    background: #018a08;
}


.waveform-container {
    width: 100%;
    flex-shrink: 0;
    min-height: 60px;
    margin-top: 5px;
}

.waveform-visual {
    width: 100%;
    height: 60px;
    
    opacity: 0.9;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top:10px;
}

.tag {
    font-size: 11px;
    background: #000000;
    color: #e6e6e6;
    padding: 5px 10px;
    border-radius: 6px;
}
.time-display{
    color: #e6e6e6;
    font-size: 11px;
}


.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume-slider {
    width: 80px;
    cursor: pointer;
    accent-color: #000000
}

.volume-icon {
    font-size: 14px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.episode-card {
    text-decoration: none; /* Убираем подчеркивание ссылки */
    transition: transform 0.2s ease;
}

.episode-card:hover {
    transform: scale(1.03);
}

.cover-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-name {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    /* Троеточие если длинное название */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




@media (max-width: 768px) {
    .broadcast-grid {
        grid-template-columns: 1fr; /* На очень узких экранах в колонку */
    }
    .item-body {
        gap: 10px;
        padding: 10px;
    }
    .item-info { min-width: 80px; }
    .item-info .name { font-size: 13px; } /* Скрываем вейвформу на мобилках если места мало, либо оставляем */
}

@media (min-width: 481px) {
    .waveform-container { display: flex; }
        }