/* --------------------------------------------------
   SLIM RADIO — GLOBAL BRAND VARIABLES
-------------------------------------------------- */
:root {
    --pink: #ff007f;
    --pink-light: #ff4fa3;
    --black: #0d0d0d;
    --white: #ffffff;
    --grey: #cccccc;
}

/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------
   GLOBAL HEIGHT FIX (for footer)
-------------------------------------------------- */
html, body {
    height: 100%;
}

/* --------------------------------------------------
   GLOBAL BACKGROUND (FULL SITE)
-------------------------------------------------- */
body {
    font-family: Arial, sans-serif;
    background-color: #000; /* fallback */
    background-image: url("images/SRBG.png");
    background-repeat: no-repeat;
    background-position: center 150px; /* shifts image down */
    background-attachment: fixed;
    background-size: cover;
    color: var(--white);
    padding-bottom: 100px; /* space for footer + mini-player */
    position: relative;
}

/* Subtle dark overlay for readability */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.header {
    background: linear-gradient(135deg, var(--pink), var(--pink-light));
    padding: 10px 20px;
    text-align: center;
}

.header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.header .tagline {
    margin-top: 8px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.nav {
    background: #111;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px 0;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: 0.2s;
}

.nav a:hover {
    color: var(--pink-light);
}

/* --------------------------------------------------
   MAIN CONTENT WRAPPER
-------------------------------------------------- */
.main {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --------------------------------------------------
   PLAYER (FULL PAGE)
-------------------------------------------------- */
.player-block {
    text-align: center;
}

#track-title {
    font-size: 1.8rem;
    margin: 10px 0;
    transition: opacity 0.3s ease;
}

#track-artist {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#artwork {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin: 25px 0;
    border: 3px solid var(--pink);
    transition: opacity 0.3s ease, box-shadow 0.4s ease;
}

.artwork-playing {
    box-shadow: 0 0 25px var(--pink);
}

.listen-btn {
    padding: 12px 26px;
    background: var(--pink);
    border: none;
    border-radius: 6px;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.listen-btn:hover {
    background: var(--pink-light);
    transform: scale(1.05);
}

/* --------------------------------------------------
   ON AIR INDICATOR
-------------------------------------------------- */
.on-air {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.on-air-dot {
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------
   SCHEDULE PAGE
-------------------------------------------------- */
.day-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px;
}

.day-selector button {
    background: #222;
    border: 1px solid var(--pink);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.day-selector button:hover {
    background: var(--pink);
}

.show-card {
    background: #151515;
    border-left: 4px solid var(--pink);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.show-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

.show-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 5px;
}

.show-dj {
    font-size: 1rem;
    margin-top: 3px;
    opacity: 0.9;
}

.show-desc {
    margin-top: 8px;
    opacity: 0.8;
}

/* --------------------------------------------------
   GRID LAYOUTS (DJs, Shows, News)
-------------------------------------------------- */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: #151515;
    border-radius: 8px;
    padding: 15px;
}

.card h3 {
    margin-bottom: 8px;
}

/* --------------------------------------------------
   DJ CARDS
-------------------------------------------------- */
.dj-card {
    text-align: center;
}

.dj-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 2px solid var(--pink);
}

.dj-bio {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 10px 0;
}

.dj-shows {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 8px;
}

/* --------------------------------------------------
   FOOTER (FIXED TO BOTTOM)
-------------------------------------------------- */
.footer {
    background: #111;
    color: var(--grey);
    text-align: center;
    padding: 15px 10px;
    font-size: 0.85rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.footer a {
    color: var(--pink-light);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}

/* --------------------------------------------------
   STICKY MINI PLAYER
-------------------------------------------------- */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    border-top: 2px solid var(--pink);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    z-index: 9999;
}

.mini-play-btn {
    background: var(--pink);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 15px;
    transition: 0.2s;
}

.mini-play-btn:hover {
    background: var(--pink-light);
}

.mini-track {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#mini-title {
    font-size: 1rem;
    font-weight: bold;
}

#mini-artist {
    font-size: 0.85rem;
    opacity: 0.8;
}
/* --------------------------------------------------
   CHAT LAYOUT – PREMIUM BROADCAST UI
-------------------------------------------------- */

.chat-layout {
    position: relative;
    min-height: calc(100vh - 140px);
    display: flex;
}

/* Left glass chat panel */
.chat-panel {
    position: relative;
    width: 140%; /* updated */
    min-height: calc(100vh - 110px); /* updated */
    display: flex;
    align-items: stretch;
    z-index: 2;
}

.chat-panel-inner {
    position: relative;
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 20px;
    padding: 14px 14px 60px; /* updated */
    width: 100%;
    border-radius: 18px;
    background: rgba(10, 10, 15, 0.35);
    border: 1px solid rgba(255, 0, 128, 0.5);
    box-shadow: 0 0 35px rgba(255, 0, 128, 0.35);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Right side spacer */
.chat-bg-spacer {
    flex: 1;
}

/* NOW PLAYING BAR */
.now-playing-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(5, 5, 10, 0.7);
    border: 1px solid rgba(255, 0, 128, 0.6);
    box-shadow: 0 0 18px rgba(255, 0, 128, 0.4);
}

.np-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ff0080;
    opacity: 0.9;
}

.np-track {
    text-align: right;
    max-width: 70%;
}

#np-title {
    font-size: 0.9rem;
    font-weight: 600;
}

#np-artist {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Chat header row */
.chat-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.chat-subtitle {
    opacity: 0.8;
    font-size: 0.85rem;
    margin-top: 2px;
}

.online-count {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* Messages area */
.chat-messages {
    flex: 1;
    margin-top: 8px;
    padding-right: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 128, 0.5);
    border-radius: 3px;
}

/* Message bubbles */
.chat-message {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.chat-message.self {
    background: rgba(255, 0, 128, 0.18);
    border-color: rgba(255, 0, 128, 0.7);
    margin-left: 20px;
}

.chat-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(255, 0, 128, 0.35);
    border-color: rgba(255, 0, 128, 0.6);
}

.chat-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}

.chat-header strong {
    font-size: 0.85rem;
}

.chat-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.chat-text {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Badges */
.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: #ff0080;
    color: #fff;
}

/* Typing indicator */
.typing-indicator {
    height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.typing-indicator.visible {
    opacity: 1;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 0, 128, 0.9);
    box-shadow: 0 0 8px rgba(255, 0, 128, 0.8);
    animation: typingPulse 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-3px); opacity: 1; }
}

/* Input row – floating glass bar */
.glass-input {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(5, 5, 10, 0.85);
    border: 1px solid rgba(255, 0, 128, 0.7);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-input input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.glass-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send-btn {
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ff0080;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.chat-send-btn:hover {
    background: #ff33a0;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(255, 0, 128, 0.7);
}

/* Responsive */
@media (max-width: 900px) {
    .chat-panel {
        width: 100%;
    }
    .chat-panel-inner {
        margin-right: 0;
    }
    .chat-bg-spacer {
        display: none;
    }
}

/* --------------------------------------------------
   CONTACT PAGE
-------------------------------------------------- */

.main h2 {
    margin-bottom: 35px; /* space between title and form */
    text-align: center;
}

.contact-intro {
    opacity: 0.8;
    margin-bottom: 25px;
    text-align: center;
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.2);
}

.contact-card label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1rem;
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: 2px solid var(--pink);
}

/* SEND BUTTON (replaces Listen Live button) */
.send-btn {
    background: var(--pink);
    color: white;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
}

.send-btn:hover {
    background: var(--pink-light);
}

/* CONTACT INFO BELOW FORM */
.contact-info {
    margin-top: 60px;
    text-align: center;
    opacity: 0.9;
    font-size: 1.3rem; /* bigger as requested */
    line-height: 1.6;
}

/* --------------------------------------------------
   MIXCLOUD LISTEN BACK
-------------------------------------------------- */

.catchup-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255,0,128,0.25);
}

.catchup-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------
   MIXCLOUD SHOW TILES
-------------------------------------------------- */

#mixcloud-grid .card {
    background: #151515;
    border-radius: 8px;
    padding: 0;
    text-align: center;
    transition: 0.2s;
}

#mixcloud-grid .card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(255,0,128,0.3);
}

#mixcloud-grid img {
    width: 100%;
    border-radius: 8px 8px 0 0;
    border-bottom: 3px solid var(--pink);
}

#mixcloud-grid h3 {
    font-size: 1rem;
    padding: 12px;
    opacity: 0.9;
}

/* --------------------------------------------------
   FIX CHAT PAGE WIDTH + HEIGHT LIMITS
-------------------------------------------------- */

.chat-layout {
    max-width: none !important;   /* removes the 1000px limit */
    width: 100% !important;        /* allows full-width layout */
    margin: 0 !important;          /* removes the 30px top margin */
    padding: 0 !important;         /* removes side padding */
    display: flex !important;
}

/* FIX CHAT HEIGHT — REMOVE DOUBLE MIN-HEIGHT */
.chat-layout {
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* FINAL FIX — CORRECT CHAT PANEL HEIGHT */
.chat-panel {
    min-height: calc(100vh - 310px) !important;

}

/* MOVE CHAT PANEL AWAY FROM LEFT EDGE */
.chat-panel {
    margin-left: 20px !important;
}

/* Position username modal centered BELOW the chat panel */
.username-modal {
    position: absolute !important;
    top: calc(100vh - 250px + 90px) !important; /* places it just under the chat panel */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100%;
    height: auto !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    background: none !important; /* remove dark overlay */
    pointer-events: auto !important;
}

/* Keep the modal box looking the same */
.username-modal-content {
    margin-top: 0 !important;
}


