:root {
    --primary-color: #8e44ad;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.76);
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    min-height: 100%;
}

body {
    background-image:
        radial-gradient(circle at top left, rgba(142, 68, 173, 0.42), transparent 35%),
        radial-gradient(circle at top right, rgba(52, 152, 219, 0.28), transparent 30%),
        linear-gradient(135deg, #1c1f2b 0%, #12131d 45%, #07080c 100%),
        var(--site-background-image, none);
    background-size: auto, auto, auto, cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container img {
    height: 60px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.5));
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease-in-out;
    padding-bottom: 40px;
    gap: 25px;
}

.main-content.page-active {
    justify-content: flex-start;
    align-items: flex-start;
}

.player-section {
    width: 100%;
    max-width: 600px;
    text-align: center;
    transition: all 0.5s ease-in-out;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.main-content.page-active .player-section {
    max-width: 400px;
    margin-right: 25px;
    position: sticky;
    top: 20px;
}

.now-playing h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.song-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.artist-name {
    font-size: 1.3rem;
    opacity: 0.7;
    margin-bottom: 30px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.btn-play {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(142, 68, 173, 0.7);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: min(220px, 100%);
    margin-top: 10px;
}

.volume-container i {
    font-size: 1.2rem;
    width: 25px;
}

input[type=range] {
    flex-grow: 1;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.ajax-content {
    flex-grow: 1;
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    min-height: 400px;
    width: 100%;
}

.ajax-content.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.day-tab {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    color: #fff;
}

.day-tab.active,
.day-tab:hover {
    background: var(--secondary-color);
    color: white;
}

.schedule-list {
    display: none;
}

.schedule-list.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.dj-grid.slide-left {
    opacity: 0.2;
    transform: translateX(-35px);
}

.dj-grid.slide-right {
    opacity: 0.2;
    transform: translateX(35px);
}

.dj-card {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dj-card:hover {
    transform: translateY(-6px);
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.dj-image-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.dj-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dj-card h3 {
    margin-bottom: 8px;
}

.program-name {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 8px;
}

.dj-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.dj-pager {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dj-nav-button {
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.dj-nav-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dj-page-indicator {
    min-width: 70px;
    text-align: center;
    font-weight: 700;
}

.ajax-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 520px;
}

.ajax-form input,
.ajax-form textarea {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    outline: none;
    font-size: 1rem;
    resize: vertical;
}

.ajax-form button {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
}

.ajax-form button:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.ajax-form button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

.form-status,
.empty-state {
    margin-top: 15px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-status.success {
    color: #7dffb3;
}

.form-status.error {
    color: #ffb7b7;
}

.disabled-request-state {
    color: #ffcf91;
}

footer {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left {
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer-right a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-right a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 50px;
    margin-bottom: 25px;
}

.bar {
    width: 6px;
    background: var(--secondary-color);
    border-radius: 3px;
    height: 5px;
    transition: height 0.2s;
}

.playing .bar {
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { height: 8px; }
    50% { height: 45px; }
}

.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }
.bar:nth-child(6) { animation-delay: 0.5s; }
.bar:nth-child(7) { animation-delay: 0.6s; }

.recaptcha-placeholder {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

@media (max-width: 992px) {
    body {
        overflow-y: auto;
    }

    .main-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .main-content.page-active .player-section {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        position: static;
    }

    .ajax-content {
        width: 100%;
        min-height: auto;
    }

    .btn-play {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    footer {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 16px;
    }

    .player-section,
    .ajax-content {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .page-title {
        font-size: 1.55rem;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dj-card img {
        width: 110px;
        height: 110px;
    }

    nav ul {
        gap: 12px;
    }
}
