:root {
    --primary: #ff0048;
    --accent: #ffffff;
    --bg: #050509;
    --text: #f5f5f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1a021a 0, #000 60%);
    color: var(--text);
    min-height: 100vh;
}

/* APP LAYOUT */

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.7), #000 70%),
      var(--bg);
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0.7), #000 80%),
      var(--bg-image);
    background-size: cover;
    background-position: center;
}

.app-header {
    text-align: center;
    padding: 1.2rem 1rem 0.5rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.6);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.live-pill .dot {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 .6rem rgba(255,0,72,0.9);
}

.app-title {
    margin-top: .7rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.glow {
    text-shadow: 0 0 10px rgba(255,255,255,0.6),
                 0 0 30px rgba(255,0,72,0.9);
}

.app-main {
    flex: 1;
    padding: 1rem;
    padding-bottom: 4.5rem; /* leave room for nav */
}

/* TABS */

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(0,0,0,0.9);
    border-top: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #aaa;
    padding: .7rem .4rem;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tab-btn.active {
    color: var(--accent);
    border-top: 2px solid var(--primary);
}

/* PLAYER VISUALS */

.np-art-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0.5rem auto 0;
}

.np-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary);
    box-shadow: 0 0 25px rgba(255,0,72,0.9);
    position: relative;
    z-index: 2;
}

.vinyl-ring {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 8px solid rgba(0,0,0,0.9);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
    z-index: 1;
}

.spin-slow {
    animation: spin 18s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.np-info {
    text-align: center;
    margin-top: 1rem;
}

.np-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    opacity: .7;
}

.np-title {
    margin-top: .2rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.np-dj {
    margin-top: .1rem;
    font-size: .8rem;
    opacity: .8;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.3rem;
}

.btn-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    font-size: 1.6rem;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, #ff7aa4, #ff0048);
    box-shadow: 0 0 20px rgba(255,0,72,0.9);
}

.volume-wrap input[type=range] {
    width: 160px;
}

/* TikTok live button above player */

.tiktok-live-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 0.4rem;
    margin-top: 0.1rem;
}

.tiktok-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: #ffffff;
    background: radial-gradient(circle at 30% 30%, #ff7aa4, #ff0048);
    box-shadow: 0 0 12px rgba(255,0,72,0.7);
}

.tiktok-pill-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #00f2ea; /* TikTok accent */
    box-shadow: 0 0 8px rgba(0,242,234,0.9);
}

/* LISTENER STATS */

.listeners {
    display: flex;
    justify-content: space-between;
    margin: 1.1rem 0 .6rem;
    font-size: .78rem;
    opacity: .85;
}

/* HISTORY WIDGET */

.history-widget {
    margin-top: .4rem;
    background: rgba(0,0,0,0.55);
    border-radius: 14px;
    padding: .8rem .9rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.history-widget h2 {
    font-size: .9rem;
    margin-bottom: .4rem;
}

.history-widget ul {
    list-style: none;
    font-size: .78rem;
}

.history-widget li + li {
    margin-top: .2rem;
}

/* SOCIALS */

.socials {
    display: flex;
    justify-content: center;
    gap: .7rem;
    margin-top: 1.1rem;
}

.socials.center {
    margin-top: 1.7rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    text-decoration: none;
    color: var(--accent);
    background: rgba(0,0,0,0.7);
}

/* ABOUT – RECORD SPINNER */

.record-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.record-spin {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, #222 0, #000 55%, #111 100%);
    border: 5px solid #000;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 26s linear infinite;
}

.record-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.record-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .9rem;
    line-height: 1.5;
}

/* CARDS – SCHEDULE & EVENTS */

.card-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin-top: .7rem;
}

.card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.08);
}

.card-img {
    height: 130px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: .7rem .9rem .9rem;
}

.card-body h3 {
    font-size: 1rem;
    margin-bottom: .2rem;
}

.card-meta {
    font-size: .75rem;
    opacity: .8;
    margin-bottom: .3rem;
}

.card-tags {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    margin-bottom: .25rem;
}

.card-body p {
    font-size: .8rem;
    line-height: 1.4;
}

/* BUTTONS */

.btn-outline {
    margin-top: .45rem;
    padding: .4rem .7rem;
    font-size: .78rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--accent);
    background: transparent;
}

/* SETTINGS */

.settings-group {
    margin-bottom: 1.2rem;
    background: rgba(0,0,0,0.65);
    border-radius: 12px;
    padding: .8rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.settings-group h3 {
    font-size: .9rem;
    margin-bottom: .35rem;
}

.settings-group label {
    font-size: .8rem;
}

.settings-group input[type=number],
.settings-group input[type=time] {
    margin-left: .3rem;
    background: #111;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--accent);
    padding: .25rem .35rem;
    border-radius: 6px;
    font-size: .8rem;
}

.tiny {
    font-size: .7rem;
    opacity: .8;
    margin-top: .3rem;
}

/* SPLASH SCREEN */

.splash {
    position: fixed;
    inset: 0;
    background: #050509;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity .6s ease;
}

.splash.hide {
    opacity: 0;
    pointer-events: none;
}

.splash-inner {
    text-align: center;
}

.splash-record {
    width: 190px;
    height: 190px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: radial-gradient(circle, #222 0, #000 55%, #111 100%);
    box-shadow: 0 0 45px rgba(255,0,72,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-record img {
    width: 82%;
    height: 82%;
    border-radius: 50%;
    object-fit: cover;
}

.splash-title {
    font-size: 1.4rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.splash-title .rew {
    color: #fff;
}

.splash-title .uk {
    color: #ff0048;
}

.splash-dots {
    margin-top: .4rem;
}

.splash-dots span {
    display: inline-block;
    width: .4rem;
    height: .4rem;
    margin: 0 .12rem;
    border-radius: 50%;
    background: #ff0048;
    opacity: .3;
    animation: splash-dots 1.1s infinite;
}

.splash-dots span:nth-child(2) { animation-delay: .2s; }
.splash-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes splash-dots {
    0%   { opacity: .3; transform: translateY(0); }
    40%  { opacity: 1;  transform: translateY(-3px); }
    100% { opacity: .3; transform: translateY(0); }
}

/* REQUEST FAB + MODAL */

.request-fab {
    position: fixed;
    right: 1rem;
    bottom: 4.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 30% 30%, #ff7aa4, #ff0048);
    box-shadow: 0 0 16px rgba(255,0,72,0.9);
    color: #fff;
    font-size: 1.4rem;
    z-index: 30;
}

.request-modal.hidden {
    display: none;
}

.request-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.request-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.request-modal-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 420px;
    background: #050509;
    border-radius: 18px;
    padding: 1rem 1.1rem 1.3rem;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
}

.request-modal-dialog h2 {
    font-size: 1rem;
    margin-bottom: .5rem;
}

.request-modal-dialog label {
    display: block;
    font-size: .8rem;
    margin-top: .45rem;
}

.request-modal-dialog input,
.request-modal-dialog textarea {
    width: 100%;
    margin-top: .22rem;
    background: #111;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    padding: .3rem .4rem;
    font-size: .82rem;
}

.request-close {
    position: absolute;
    top: .55rem;
    right: .75rem;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 1rem;
}

/* RESPONSIVE */

@media (min-width: 768px) {
    .app-main {
        max-width: 420px;
        margin: 0 auto;
    }
}
