/* INDICA Radio — floating music player */
.rmp {
    --rmp-bg: rgba(8, 14, 22, 0.92);
    --rmp-line: rgba(16, 224, 112, 0.22);
    --rmp-accent: #10E070;
    --rmp-accent-2: #8B5CF6;
    position: fixed !important;
    left: auto !important;
    right: 20px !important;
    bottom: 20px !important;
    top: auto !important;
    z-index: 2147483000 !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #f4f4f5;
    pointer-events: none;
    transform: none !important;
}
/* Login: sol alt (sidebar yok) */
html.rmp-is-login .rmp,
body.login-page .rmp,
.rmp.rmp-on-login {
    left: 18px !important;
    right: auto !important;
    bottom: 18px !important;
}
.rmp * { box-sizing: border-box; }
.rmp-fab,
.rmp-panel,
.rmp-panel button,
.rmp-panel input {
    pointer-events: auto;
}

.rmp-fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid var(--rmp-line);
    background: linear-gradient(145deg, rgba(16, 224, 112, 0.25), rgba(139, 92, 246, 0.3));
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    position: relative;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(16, 224, 112, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rmp-fab:hover { transform: scale(1.06); }
.rmp.is-open .rmp-fab { display: none; }
.rmp.is-playing .rmp-fab {
    animation: rmpPulse 2.2s ease-in-out infinite;
}
.rmp.is-off .rmp-fab {
    filter: grayscale(0.7);
    opacity: 0.75;
}
@keyframes rmpPulse {
    0%, 100% { box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 18px rgba(16,224,112,.2); }
    50% { box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 36px rgba(16,224,112,.55); }
}

.rmp-fab-rings {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(16, 224, 112, 0.35);
    animation: rmpRing 2.8s linear infinite;
    pointer-events: none;
}
@keyframes rmpRing {
    to { transform: rotate(360deg); }
}
.rmp-fab-eq {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: none;
    gap: 2px;
    align-items: flex-end;
    height: 14px;
    padding: 2px 4px;
    background: #0a1018;
    border-radius: 6px;
    border: 1px solid var(--rmp-line);
}
.rmp.is-playing .rmp-fab-eq { display: flex; }
.rmp-fab-eq i {
    display: block;
    width: 2px;
    background: var(--rmp-accent);
    border-radius: 2px;
    animation: rmpEq 0.7s ease-in-out infinite alternate;
}
.rmp-fab-eq i:nth-child(1) { height: 4px; animation-delay: 0s; }
.rmp-fab-eq i:nth-child(2) { height: 8px; animation-delay: 0.1s; }
.rmp-fab-eq i:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.rmp-fab-eq i:nth-child(4) { height: 10px; animation-delay: 0.15s; }
@keyframes rmpEq {
    from { transform: scaleY(0.45); }
    to { transform: scaleY(1); }
}

.rmp-panel {
    width: min(340px, calc(100vw - 28px));
    background: var(--rmp-bg);
    border: 1px solid var(--rmp-line);
    border-radius: 20px;
    padding: 14px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: rmpIn 0.25s ease;
}
@keyframes rmpIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.rmp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.rmp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rmp-brand strong {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--rmp-accent);
}
.rmp-brand small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}
.rmp-live {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 0 0 0 rgba(16, 224, 112, 0.4);
}
.rmp.is-playing .rmp-live {
    background: var(--rmp-accent);
    animation: rmpLive 1.4s ease infinite;
}
.rmp.is-off .rmp-live { background: #e35d6a; }
@keyframes rmpLive {
    0% { box-shadow: 0 0 0 0 rgba(16, 224, 112, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(16, 224, 112, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 224, 112, 0); }
}

.rmp-head-actions { display: flex; gap: 4px; }
.rmp-icon-btn,
.rmp-ctrl,
.rmp-text-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}
.rmp-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.rmp-icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.rmp.is-off #rmpTogglePower { color: #e35d6a; }

.rmp-viz {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(16, 224, 112, 0.06), rgba(139, 92, 246, 0.05));
    margin-bottom: 12px;
    display: block;
}

.rmp-now {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.rmp-cover {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--rmp-accent), var(--rmp-accent-2));
    font-size: 1.4rem;
    color: #04140c;
    box-shadow: 0 8px 20px rgba(16, 224, 112, 0.25);
}
.rmp.is-playing .rmp-cover {
    animation: rmpSpin 8s linear infinite;
}
@keyframes rmpSpin {
    to { transform: rotate(360deg); }
}
.rmp-title {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rmp-artist {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    margin-top: 2px;
}

.rmp-progress-wrap { margin-bottom: 10px; }
.rmp-seek,
.rmp-vol {
    width: 100%;
    accent-color: var(--rmp-accent);
    cursor: pointer;
}
.rmp-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.rmp-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.rmp-ctrl {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}
.rmp-ctrl:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.rmp-ctrl.rmp-play {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--rmp-accent), #0a9e4a);
    color: #04140c;
    font-size: 1.45rem;
    box-shadow: 0 8px 24px rgba(16, 224, 112, 0.35);
}
.rmp-ctrl.rmp-play:hover { filter: brightness(1.05); }
.rmp-ctrl[aria-pressed="true"] { color: var(--rmp-accent); }

.rmp-vol-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.rmp-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}
.rmp-text-btn {
    font-size: 0.72rem;
    color: var(--rmp-accent);
}
.rmp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 160px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.rmp-list.hidden { display: none; }
.rmp-list li {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
}
.rmp-list li:hover { background: rgba(16, 224, 112, 0.08); }
.rmp-list li.active {
    background: rgba(16, 224, 112, 0.14);
    color: var(--rmp-accent);
}
.rmp-list li .n { color: rgba(255, 255, 255, 0.35); font-size: 0.7rem; }
.rmp-list li .d { color: rgba(255, 255, 255, 0.35); font-size: 0.7rem; }

.rmp.is-off .rmp-panel { opacity: 0.85; }
.rmp.is-off .rmp-cover { animation: none; filter: grayscale(0.8); }

/* Soft-nav ilerleme çubuğu */
.rmp-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 2147483001;
    background: linear-gradient(90deg, #10E070, #8B5CF6);
    box-shadow: 0 0 12px rgba(16, 224, 112, 0.55);
    transition: width 0.25s ease, opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
}
.rmp-nav-progress.is-on { opacity: 1; }

@media (max-width: 991px) {
    .rmp {
        right: 14px !important;
        bottom: 18px !important;
        left: auto !important;
    }
    html.rmp-is-login .rmp,
    .rmp.rmp-on-login {
        left: 14px !important;
        right: auto !important;
        bottom: 18px !important;
    }
    .rmp-panel { width: min(320px, calc(100vw - 28px)); }
}
