body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    overflow-x: hidden;
}

.wave-bg {
    position: relative;
    min-height: 100vh;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E') bottom no-repeat;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 i {
    color: #ff6b6b;
    margin-left: 10px;
}

.form-select {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-select:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    outline: none;
}

.input-group-text {
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 0 15px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.station-logo {
    max-width: 120px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.station-logo:hover {
    transform: scale(1.05);
}

.station-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.station-stream a {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.station-stream a:hover {
    color: #e55050;
}

.status-active {
    color: #2e7d32;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #2e7d32;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 auto;
    width: 200px;
    max-width: 100%;
}

.status-inactive {
    background: #ffebee;
    color: #c62828;
}

.btn-radio {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-radio i {
    margin-right: 5px;
}

.btn-radio:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #e55050, #e57340);
}

.btn-radio:active {
    transform: translateY(0);
}

.btn-radio:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-radio:hover:before {
    width: 200px;
    height: 200px;
}

.preloader {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ff6b6b;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.preloader span {
    font-size: 1.9rem;
    color: #ffffff;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    .station-logo {
        max-width: 100px;
    }

    .btn-radio {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .form-select {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 15px;
    }

    .station-title {
        font-size: 1.5rem;
    }
}

.btn-radio {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-radio:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn-radio i {
    font-size: 16px;
}

#playBtn, #stopBtn {
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.fa-play, .fa-pause {
    margin: 0 !important;
}

.player-controls, .playlist-controls {
    margin: 5px;
}

.player-controls .btn-radio {
    background-color: #28a745;
}

.player-controls .btn-radio:hover {
    background-color: #218838;
}

.playlist-controls .btn-radio {
    background-color: #007bff;
}

.playlist-controls .btn-radio:hover {
    background-color: #0056b3;
}

.track-checker {
    font-size: 16px;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    min-height: 30px;
    display: block;
}

.track-checker:empty, #TrackChecker:empty {
    display: none !important;
}

.btn-stats {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffc107;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000;
}

.btn-stats:hover {
    background-color: #e0a800;
    transform: scale(1.1);
}

/* Стилі для модального вікна */
#statsModal .modal-content {
    background-color: #fff;
    color: #333;
    min-height: 300px;
}

#statsModal .modal-title {
    color: #1e3c72;
}

#statsModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

#statsModal .table {
    margin-bottom: 0;
}

#statsModal .table th {
    background-color: #1e3c72;
    color: #fff;
}

#statsModal .table td {
    vertical-align: middle;
}

#statsModal .table tr.total-row td {
    font-weight: bold;
    background-color: #f8f9fa;
}

#statsFilter {
    border-radius: 5px;
}

#statsModal .preloader {
    margin: 20px auto;
}