/* ===========================
   GLOBAL THEME — JAMAICAN EDITION
   =========================== */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #050505;
    color: #fdda24;
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

/* ===========================
   PAGE WRAPPER
   =========================== */ 
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER — JAMAICAN GLOW (FIXED)
   =========================== */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

.site-logo {
    max-width: 200px;
    height: auto;
}

/* ===========================
   NAVIGATION — REGGAE VIBES
   =========================== */
nav {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 20px 0;
    background: #0b0b0b;
    border-bottom: 3px solid #009b3a;
    box-shadow: 0 0 15px #009b3a;
}

nav a {
    color: #fdda24;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px #009b3a;
    transition: 0.25s ease;
}

nav a:hover {
    color: #da291c;
    text-shadow: 0 0 15px #da291c;
    transform: translateY(-2px);
}

/* ===========================
   SECTIONS — CLEAN + CENTERED
   =========================== */
section {
    max-width: 900px;
    margin: 10px auto;
    padding: 0 25px;
}

@media (min-width: 900px) {
    section {
        padding: 0 10px;
    }
}

/* Page Titles (H1) */
.page-title {
    text-align: center;
    font-size: 36px;
    margin: 20px 0 30px;
    color: #fdda24;
    text-shadow: 0 0 12px #fdda24, 0 0 15px #009b3a;
}

/* Section Titles (H2) */
section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #fdda24;
    text-shadow: 0 0 12px #fdda24, 0 0 15px #009b3a;
}

/* ===========================
   SECTION DIVIDER — RASTA STRIPE
   =========================== */
.section-divider {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #009b3a, #fdda24, #da291c);
    box-shadow: 0 0 20px #009b3a, 0 0 20px #da291c;
    margin: 10px 0;
}

/* ===========================
   FLEX ROW (PLAYER + CHAT)
   =========================== */
.flex-row {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: nowrap;
}

/* ===========================
   PLAYER + CHAT WIDTH
   =========================== */
.player-box,
.chat-box {
    width: 460px;
    max-width: 100%;
}

/* ===========================
   CHAT BOX
   =========================== */
.chat-box {
    background: #0d0d0d;
    padding: 15px;
    border-radius: 14px;
    border: 2px solid #009b3a;
    box-shadow: 0 0 18px #009b3a;
}

/* ===========================
   PLAYER BOX
   =========================== */
.player-box {
    background: #0d0d0d;
    padding: 15px;
    border-radius: 14px;
    border: 2px solid #da291c;
    box-shadow: 0 0 18px #da291c;
    text-align: center;
}

/* ===========================
   CHAT EMBED
   =========================== */
.minnit-chat-sembed {
    display: block !important;
}

/* ===========================
   INFIN8RADIO — POLISHED
   =========================== */
#infin8-console {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    font-family: system-ui, sans-serif;
}

.console-wrapper {
    width: 100%;
    max-width: 450px;
    background: rgba(10,10,10,0.95);
    border-radius: 14px;
    border: 2px solid #009b3a;
    box-shadow: 0 0 25px #009b3a;
    padding: 12px;
    color: #eee;
}

/* HEADER */
.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #004d00;
    background: linear-gradient(90deg, #000, #004d00);
    border-radius: 10px 10px 0 0;
}

.console-title {
    font-size: 16px;
    font-weight: 700;
    color: #fdda24;
}

/* FLAGS */
.flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    margin-right: 3px;
}

.flag-jm { background-image: url('https://flagcdn.com/w20/jm.png'); }
.flag-mx { background-image: url('https://flagcdn.com/w20/mx.png'); }
.flag-us { background-image: url('https://flagcdn.com/w20/us.png'); }

/* LIVE INDICATOR */
.live-indicator {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #da291c;
    box-shadow: 0 0 8px rgba(218,41,28,0.7);
}

.live-ok { background: #009b3a !important; }
.live-warn { background: #fdda24 !important; }

/* ===========================
   CONTROLS — iOS FIX
   =========================== */
.controls-row {
    display: flex;
    align-items: center;
    height: 42px;
    gap: 10px;
    margin-top: 12px;
}

.btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: none;
    background: #fdda24;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    background: #ffe55c;
}

/* ===========================
   EQUALIZER — FIXED + ALIGNED
   =========================== */
.equalizer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 42px;
    margin-top: 0;
    -webkit-transform: translateZ(0);
}

.eq-bar {
    width: 6px;
    background: #f4d400;
    border-radius: 3px;
    height: 6px;
    animation: eqBounce 0.6s infinite ease-in-out;
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.3s; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes eqBounce {
    0%   { height: 6px; }
    50%  { height: 32px; }
    100% { height: 6px; }
}

.eq-paused .eq-bar {
    animation-play-state: paused;
    height: 6px !important;
}

/* ===========================
   VOLUME — iOS slider fix
   =========================== */
.volume-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-row input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
}

.volume-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fdda24;
    border-radius: 50%;
}

/* ===========================
   DIAGNOSTICS
   =========================== */
.diag-toggle {
    margin-top: 12px;
    cursor: pointer;
    color: #fdda24;
    font-size: 13px;
    text-align: center;
}

.diagnostics {
    margin-top: 8px;
    padding: 10px;
    background: #0d0d0d;
    border: 1px solid #222;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.diagnostics.open {
    max-height: 260px;
}

/* ===========================
   FOOTER
   =========================== */
.console-footer {
    margin-top: 16px;
    padding: 10px 12px;
    background: linear-gradient(90deg, #009b3a, #000);
    border-top: 2px solid #004d00;
    font-size: 12px;
    color: #fdda24;
    display: flex;
    justify-content: space-between;
    border-radius: 0 0 10px 10px;
}

/* ===========================
   RSS BUTTON
   =========================== */
.rss-wrapper {
    text-align: center;
    margin-top: 18px;
}

.rss-button {
    display: inline-block;
    background-color: #da291c;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s ease-in-out;
}

.rss-button:hover {
    background-color: #b51f1f;
    transform: scale(1.05);
}

/* ===========================
   MOBILE FIX — ANDROID SAFE
   =========================== */
@media (max-width: 768px) {

    nav.desktop-nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

    nav a {
        font-size: 17px;
    }

    .flex-row {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        gap: 25px;
    }

    .player-box,
    .chat-box {
        width: 100%;
        max-width: 500px;
    }
}

/* ===========================
   SERVICES PAGE — JAMAICAN THEME
   =========================== */
.dropdown-btn {
    width: 100%;
    background: #0b0b0b;
    color: #fdda24;
    padding: 14px;
    text-align: left;
    border: 2px solid #009b3a;
    outline: none;
    font-size: 20px;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: 0.25s ease;
    text-shadow: 0 0 8px #009b3a;
}

.dropdown-btn:hover {
    background: #111;
    box-shadow: 0 0 12px #009b3a;
    transform: translateY(-2px);
}

.arrow {
    transition: transform 0.3s ease;
    color: #fdda24;
}

.arrow.rotate {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    background: #0d0d0d;
    padding: 18px 22px;
    color: #eee;
    border-left: 5px solid #009b3a;
    border-radius: 0 0 8px 8px;
    margin-top: 5px;
    box-shadow: 0 0 18px #009b3a;
}

.dropdown-content p {
    margin: 12px 0;
    line-height: 1.6;
    color: #fdda24;
}

.dropdown-content hr {
    border: none;
    height: 4px;
    background: linear-gradient(90deg, #009b3a, #fdda24, #da291c);
    box-shadow: 0 0 12px #009b3a;
    margin: 18px 0;
}

/* ===========================
   EVENT PAGE — JAMAICAN THEME
   =========================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin: 25px auto;
    padding-bottom: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #009b3a;
    box-shadow: 0 0 18px #009b3a;
    transition: 0.25s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px #da291c;
}

.event-submit-btn {
    display: inline-block;
    background-color: #da291c;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.2s ease-in-out;
    text-shadow: 0 0 8px #000;
}

.event-submit-btn:hover {
    background-color: #b51f1f;
    transform: scale(1.05);
}

.event-wrapper {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 25px;
}

/* ===========================
   TABLET FIX — iPad spacing (FINAL FIX)
   =========================== */
@media (max-width: 1200px) and (min-width: 601px) {

    /* HEADER */
    header {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* DESKTOP NAV */
    nav.desktop-nav {
        padding-left: 24px;
        padding-right: 24px;
        gap: 28px;
    }

    /* FOOTER */
    footer {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* FOOTER NAV */
    footer nav {
        display: flex;
        justify-content: center;
        gap: 24px;
        padding-left: 12px;
        padding-right: 12px;
        flex-wrap: wrap;
    }

    footer nav a {
        font-size: 18px;
        text-shadow: 0 0 8px #009b3a;
    }
}


/* ===========================
   UNIVERSAL MOBILE FIXES
   =========================== */
@media (max-width: 600px) {

    .page-wrapper {
        padding: 0 12px;
    }

    nav a {
        font-size: clamp(14px, 4vw, 18px);
    }

    .page-title,
    section h2 {
        font-size: clamp(22px, 6vw, 32px);
    }

    .dropdown-btn {
        font-size: clamp(16px, 5vw, 20px);
        padding: 12px;
    }

    .dropdown-content {
        padding: 14px 16px;
        font-size: clamp(14px, 4vw, 17px);
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .site-logo {
        max-width: 160px;
    }

    header {
        padding: 10px 0;
    }
}

/* ===========================
   HAMBURGER MENU — MOBILE FIX
   =========================== */
.hamburger {
    display: none;
    font-size: 32px;
    color: #fdda24;
    text-shadow: 0 0 10px #009b3a;
    cursor: pointer;
    padding: 12px 20px;
    background: #0b0b0b;
    border-bottom: 3px solid #009b3a;
    box-shadow: 0 0 15px #009b3a;
}

#mobile-nav {
    display: none;
    flex-direction: column;
    background: #0b0b0b;
    border-bottom: 3px solid #009b3a;
    box-shadow: 0 0 15px #009b3a;
    padding: 10px 0;
}

#mobile-nav a {
    color: #fdda24;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 18px;
    text-shadow: 0 0 8px #009b3a;
}

#mobile-nav a:hover {
    background: #111;
    color: #da291c;
    text-shadow: 0 0 12px #da291c;
}

@media (max-width: 600px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    #mobile-nav { display: none; }
}
