:root {
    --bg: #0B1020;
    --bg-2: #141A31;
    --card: rgba(20, 26, 49, 0.86);
    --purple: #6C3BFF;
    --pink: #FF3D9A;
    --cyan: #22D3EE;
    --text: #FFFFFF;
    --muted: #B7BED8;
    --line: rgba(255,255,255,0.12);
    --shadow: 0 22px 60px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 18% 12%, rgba(108,59,255,0.2), transparent 28rem),
        radial-gradient(circle at 88% 22%, rgba(34,211,238,0.14), transparent 24rem),
        linear-gradient(180deg, #0B1020 0%, #10162b 52%, #0B1020 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--cyan);
}

.site-header, .panel-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: rgba(11, 16, 32, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    max-width: min(72vw, 34rem);
}
.brand.centered { justify-content: center; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink) 58%, var(--cyan));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 28px rgba(255, 61, 154, .28);
}
.brand-copy {
    display: grid;
    gap: .1rem;
    min-width: 0;
}
.brand-text {
    font-weight: 800;
    letter-spacing: 0;
    font-size: 1.08rem;
    line-height: 1.05;
}
.brand-tagline {
    margin: 0;
    color: var(--muted);
    font-size: clamp(.72rem, 2.4vw, .88rem);
    line-height: 1.25;
    text-align: right;
    overflow-wrap: anywhere;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.site-menu a {
    color: var(--muted);
    padding: .65rem .9rem;
    border-radius: .5rem;
}
.site-menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.simple-header {
    position: static;
}
.header-actions {
    display: grid;
    justify-items: end;
    gap: .25rem;
    min-width: 0;
    max-width: min(48vw, 28rem);
}
.plain-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
}
.menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: rgba(255,255,255,.05);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    background: #fff;
    margin: 5px auto;
}

main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
    min-height: calc(100vh - 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, .76fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(2.25rem, 7vw, 5.5rem) 0 2rem;
}
.eyebrow {
    margin: 0 0 .7rem;
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
}
h1, h2 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(2.45rem, 8vw, 5.75rem); max-width: 10ch; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
.hero-text {
    max-width: 66ch;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.12rem);
}

.player-card, .auth-card, .panel-card, .stat {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)), var(--card);
    border: 1px solid var(--line);
    border-radius: .5rem;
    box-shadow: var(--shadow);
}
.player-card { padding: 1.25rem; }
.player-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
}
.live-pill span {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 6px rgba(255,61,154,.13);
}
.player-state { color: var(--muted); font-size: .9rem; text-align: right; }
.now-playing {
    margin-top: 1rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: rgba(255,255,255,.045);
}
.now-playing span {
    display: block;
    color: var(--cyan);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}
.now-playing strong {
    display: block;
    margin-top: .2rem;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.player-controls {
    display: grid;
    grid-template-columns: minmax(9.75rem, auto) 2.75rem auto minmax(7rem, 1fr);
    align-items: center;
    gap: .65rem;
    margin-top: 1.25rem;
}
.player-toggle {
    gap: .55rem;
    white-space: nowrap;
}
.icon-btn {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    color: #fff;
    background: rgba(255,255,255,.07);
    cursor: pointer;
}
.icon-btn:hover, .btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.icon-btn.primary, .btn {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}
.icon-btn:disabled, .btn:disabled { opacity: .58; cursor: wait; transform: none; }
.volume-label { color: var(--muted); font-size: .9rem; }
.volume { accent-color: var(--cyan); min-height: 2rem; }
.player-message { margin: .9rem 0 0; color: var(--muted); min-height: 1.5rem; }

.whatsapp-strip {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 1rem;
    text-align: center;
}
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .75rem 1.2rem;
    border-radius: .5rem;
    background: rgba(34, 211, 238, .12);
    border: 1px solid rgba(34, 211, 238, .35);
    color: #fff;
    font-weight: 800;
}
.whatsapp-link:hover {
    background: rgba(34, 211, 238, .2);
}
.broadcast-platforms {
    margin: 1rem auto 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.55;
}
.broadcast-platforms p {
    margin: .25rem 0;
}
.broadcast-title {
    margin: .25rem 0;
    color: var(--muted);
    font-size: .96rem;
    font-weight: 400;
    line-height: 1.55;
}
.broadcast-platforms ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem .8rem;
    margin: .5rem 0;
    padding: 0;
    list-style: none;
}
.broadcast-platforms li {
    padding: .35rem .65rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: rgba(255,255,255,.045);
    color: #fff;
}
.support-note {
    margin: 1rem auto 0;
    max-width: 42rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    background: rgba(255,255,255,.04);
    color: var(--muted);
    line-height: 1.6;
}
.support-note p {
    margin: 0 0 .85rem;
}
.sponsor-box {
    display: grid;
    gap: .45rem;
    justify-items: center;
}
.sponsor-label {
    margin: 0;
    color: var(--cyan);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}
.sponsor-box strong {
    color: #fff;
    font-size: 1.22rem;
}
.sponsor-box dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .35rem .75rem;
    margin: .25rem 0 0;
    text-align: left;
}
.sponsor-box dt {
    color: #fff;
    font-weight: 800;
}
.sponsor-box dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.sponsor-box a {
    color: var(--cyan);
    font-weight: 800;
}

label { display: grid; gap: .45rem; color: #fff; font-weight: 700; }
label span { color: var(--muted); font-weight: 400; }
input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: rgba(7, 11, 24, .72);
    color: #fff;
    padding: .85rem .9rem;
}
textarea { resize: vertical; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .8rem 1rem;
    border-radius: .5rem;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}
.btn.ghost {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
}
.btn.small { min-height: 2.25rem; padding: .55rem .8rem; font-size: .9rem; }
.form-result, .alert { color: var(--muted); min-height: 1.4rem; }
.form-result.success { color: #9ff7d1; }
.form-result.error, .alert.error { color: #ffb8c8; }

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    padding: 1.5rem 1rem;
}
.site-footer p {
    margin: 0;
}
.designer-credit {
    margin-top: .35rem;
    color: rgba(255,255,255,.72);
    font-size: .95rem;
}

.auth-body { min-height: 100vh; display: grid; place-items: center; }
.auth-shell { width: min(420px, calc(100% - 2rem)); display: grid; gap: 1.1rem; }
.auth-card { display: grid; gap: 1rem; padding: 1.2rem; }
.auth-card h1 { font-size: 2rem; max-width: none; }

@media (max-width: 820px) {
    .menu-toggle { display: block; }
    .site-menu {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + .5rem);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: .7rem;
        background: #141A31;
        border: 1px solid var(--line);
        border-radius: .5rem;
    }
    .site-menu.open { display: flex; }
    .simple-header .site-menu {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    h1 { max-width: 11ch; }
}

@media (max-width: 520px) {
    main { width: min(100% - 1rem, 1120px); }
    .site-header, .panel-header { padding: .8rem; }
    .site-header { align-items: flex-start; }
    .brand { max-width: 48%; gap: .55rem; }
    .header-actions { max-width: 50%; }
    .brand-mark { width: 2.35rem; height: 2.35rem; font-size: .9rem; }
    .player-controls { grid-template-columns: minmax(0, 1fr) 2.55rem; }
    .volume-label, .volume { grid-column: 1 / -1; }
    .icon-btn { width: 2.55rem; height: 2.55rem; }
    .plain-menu {
        gap: .2rem;
        font-size: .88rem;
    }
    .plain-menu a {
        padding: .45rem .5rem;
    }
}
