:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --bg-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.bg-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    animation: move 20s infinite alternate;
}

@keyframes move {
    from { transform: translate(-20%, -20%); }
    to { transform: translate(20%, 20%); }
}

/* Container Stack - Dynamic */
.content-stack {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 10px 60px 10px;
    transition: all 0.5s ease;
}

@media (min-width: 1024px) {
    .content-stack {
        max-width: 1100px;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        padding-top: 60px;
    }

    .info-card {
        flex: 1;
        min-width: 450px;
    }

    .column-left {
        flex: 1;
        min-width: 450px;
        display: flex;
        flex-direction: column;
    }
}

/* Dashboard Elements */
.persona-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.persona-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 16px;
    text-align: center;
    transition: background 0.3s ease;
    cursor: pointer;
}

.persona-item:hover { background: rgba(255,255,255,0.06); }
.persona-item.active { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }

.persona-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 6px;
}

.persona-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.persona-time {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}

.live-badge {
    background: #ff4757;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
    animation: pulse 1s infinite;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.keywords span {
    font-size: 0.7rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Player Card */
.player-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.art-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 40px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.art-img-wrapper {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Rotating Text Aura */
.rotating-aura {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: rotateAura 20s linear infinite;
    z-index: 1;
    pointer-events: none;
    transform-origin: center center;
}

@keyframes rotateAura {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.aura-text {
    fill: var(--text-main);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    opacity: 0.8;
    text-shadow: 0 0 10px var(--primary-glow);
}

.meta-container { margin-bottom: 32px; }
.meta-container h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.meta-container p { color: var(--primary); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.8rem; }

.controls { margin-bottom: 32px; display: flex; justify-content: center; align-items: center; }
.play-btn {
    width: 80px !important; height: 80px !important; border-radius: 50% !important; background: var(--primary) !important; color: white !important;
    border: none; cursor: pointer; display: flex !important; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px var(--primary-glow); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.play-btn:hover { transform: scale(1.1); box-shadow: 0 15px 35px var(--primary-glow); }
.play-btn svg { width: 40px; height: 40px; fill: currentColor; }

.volume-container { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.03); padding: 12px 20px; border-radius: 100px; border: 1px solid var(--glass-border); }
.volume-slider { flex: 1; -webkit-appearance: none; height: 4px; border-radius: 2px; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: white; cursor: pointer; border: 2px solid var(--primary); transition: transform 0.2s; }

.visualizer { display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; opacity: 0.3; margin-top: 24px; transition: opacity 0.5s; }
.vis-bar { width: 4px; height: 10px; background: var(--primary); border-radius: 2px; animation: wave 1s infinite ease-in-out; }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 35px; } }

.info-card { background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 32px; padding: 40px; text-align: center; }
.info-card h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; }
.info-card p { color: var(--text-dim); line-height: 1.6; margin-bottom: 32px; }

.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.seo-box { background: rgba(255, 255, 255, 0.03); padding: 20px; border-radius: 20px; border: 1px solid var(--glass-border); text-align: left; }
.seo-box h4 { font-size: 0.85rem; margin-bottom: 10px; color: white; display: flex; align-items: center; gap: 8px; }
.seo-box p { font-size: 0.75rem; margin-bottom: 0; }

.loading-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); border-radius: 50%; z-index: 10; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(99, 102, 241, 0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .art-container { width: 250px; height: 250px; margin-bottom: 24px; }
    .art-img-wrapper { width: 200px; height: 200px; }
    .aura-text { font-size: 7px; letter-spacing: 2px; }
    .player-card, .info-card { padding: 20px; min-width: 100%; }
}

.share-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.share-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.share-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877F2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.3);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.news-portal {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    text-align: left;
}
.news-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.news-pill { background: #ff4757; color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: bold; }
.news-item { padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.news-title { color: #f1f2f6; text-decoration: none; display: block; }
.news-title h3 { font-size: 0.95rem; font-weight: 500; margin: 0; }
.news-meta { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); display: flex; gap: 10px; margin-top: 5px; }
.news-summary { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); line-height: 1.5; margin-top: 8px; }

.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
    padding: 12px 20px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mini-player.show { transform: translateY(0); }
.mini-info { display: flex; align-items: center; gap: 12px; }
.mini-art { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.mini-meta { display: flex; flex-direction: column; }
.mini-title { font-weight: 700; font-size: 0.9rem; color: white; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mini-artist { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.mini-play-btn { background: var(--primary); border: none; width: 40px; height: 40px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mini-play-btn svg { width: 22px; height: 22px; fill: currentColor; }

.messenger-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1877F2;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.messenger-fab:hover { transform: scale(1.05); }
.messenger-fab svg { width: 20px; height: 20px; fill: currentColor; }

.live-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 999;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.live-toast.show { transform: translateX(0); }
.live-toast-img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--primary); }
.live-toast-text b { font-size: 0.75rem; color: #ff4757; text-transform: uppercase; }
.live-toast-text p { font-size: 0.85rem; color: white; margin-top: 2px; }

.dj-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dj-modal.show { opacity: 1; }
.dj-modal-card {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 32px;
    max-width: 450px;
    width: 100%;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.dj-modal.show .dj-modal-card { transform: translateY(0); }
.close-dj { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.dj-modal-img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--primary); margin-bottom: 20px; }
.dj-modal-title { font-size: 1.8rem; margin-bottom: 5px; }
.dj-modal-time { color: var(--primary); font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 15px; }
.dj-modal-bio { color: var(--text-dim); line-height: 1.6; font-size: 0.95rem; }

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 20px 30px;
    border-radius: 20px;
    z-index: 11000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transform: translateY(150%);
    transition: transform 0.5s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
    .cookie-banner {
        top: 20px;
        bottom: unset;
        transform: translateY(-150%);
    }
    .cookie-banner.show { transform: translateY(0); }
}

.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 0.85rem; color: white; flex: 1; }
.cookie-btn { background: var(--primary); color: white; border: none; padding: 10px 25px; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* Footer & Compliance Section - Modernized */
.footer-compliance {
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
}

/* Info Modal (SPA Navigation) */
.info-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10006;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-modal.show { display: flex; opacity: 1; }

.info-modal-card {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 28px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.info-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.info-modal-close:hover { opacity: 1; }
/* --- RESPONSIVE POLISH (v11.0) --- */
@media (max-width: 380px) {
    .player-card { padding: 20px 15px; }
    .station-header h1 { font-size: 1.8rem !important; }
    .art-container { width: 220px; height: 220px; }
    .art-img-wrapper { width: 170px; height: 170px; }
    .meta-container h2 { font-size: 1.2rem; }
    .share-container { gap: 8px; margin-top: 16px; }
    .share-btn { padding: 10px 5px; font-size: 0.75rem; }
    .play-btn { width: 65px !important; height: 65px !important; }
    .play-btn svg { width: 30px; height: 30px; }
}

/* Z-Index Hierarchy Layering */
.cookie-banner { z-index: 10005; }
.mini-player { z-index: 10006; }
.live-toast { z-index: 10007; }
.messenger-fab { z-index: 10008; }
.dj-modal, .info-modal { z-index: 10009; }
.close-dj, .info-modal-close { z-index: 10010; }

.info-modal-body {
    text-align: left;
    color: var(--text-dim);
    line-height: 1.8;
}

.info-modal-body h1, .info-modal-body h2 { color: white; margin-top: 30px; margin-bottom: 15px; }
.info-modal-body b { color: var(--primary); }

/* =============================================
   RECONNECT TOAST (Tap to Resume - v1.0)
   ============================================= */
.reconnect-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2), 0 20px 40px rgba(0,0,0,0.5);
    padding: 14px 22px;
    border-radius: 100px;
    z-index: 10010;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.reconnect-toast.show {
    transform: translateX(-50%) translateY(0);
}

.reconnect-toast:active {
    transform: translateX(-50%) scale(0.95);
}

.reconnect-toast-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: reconnect-pulse 1.5s infinite;
}

.reconnect-toast-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

@keyframes reconnect-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.reconnect-toast-text {
    display: flex;
    flex-direction: column;
}

.reconnect-toast-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.reconnect-toast-sub {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}
