:root {
    --primary-color: #8e44ad;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #ffffff;
    --bg-overlay: rgba(7, 10, 18, 0.40);
    --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: #000;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.has-custom-bg {
    background-color: #000;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

body.has-custom-bg .overlay {
    background: rgba(0, 0, 0, 0.48);
}

.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: center;
    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 {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    justify-items: stretch;
    justify-content: 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 {
    grid-column: 1;
    grid-row: 1;
    max-width: 340px;
    width: 100%;
    margin: 0;
    align-self: start;
    position: sticky;
    top: 20px;
}


.main-content.page-active[data-page="djs"] .player-section {
    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;
}

.now-playing-logo {
    margin-bottom: 30px;
}

.player-logo {
    width: 350px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 14px rgba(52, 152, 219, 0.45));
}

.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;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 0;
    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;
}

.schedule-shell {
    width: 100%;
}

.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(4, minmax(0, 1fr));
    gap: 14px;
    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: 12px 8px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

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

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

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

.dj-card h3 {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.program-name {
    display: block;
    color: #dfeeff;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.35;
}

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

.dj-page-button {
    min-width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.12);
}

.dj-page-button:hover,
.dj-page-button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px rgba(52, 152, 219, 0.22);
}

.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: 1199px) {
    .main-content.page-active {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

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

    .main-content,
    .main-content.page-active {
        display: flex;
        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;
        align-self: stretch;
    }

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

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

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

    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: 56px;
        height: 56px;
    }

    nav ul {
        gap: 12px;
    }
}

.rich-page-content {
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.rich-page-content h2,
.rich-page-content h3,
.rich-page-content h4 {
    margin: 18px 0 10px;
}

.rich-page-content p,
.rich-page-content ul,
.rich-page-content ol,
.rich-page-content blockquote {
    margin-bottom: 14px;
}

.rich-page-content ul,
.rich-page-content ol {
    padding-left: 24px;
}

.rich-page-content a {
    color: var(--secondary-color);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.contact-layout .ajax-form {
    max-width: none;
}

.contact-info-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-card h3 {
    margin-bottom: 18px;
    color: #fff;
}

.contact-info-card p {
    margin-bottom: 14px;
}

.contact-info-card strong,
.contact-info-card span {
    display: block;
}

.contact-info-card strong {
    color: var(--secondary-color);
    margin-bottom: 4px;
}

@media (max-width: 760px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
