/* ============================================================
   Anti Stream — Front-end Player Styles  v3.5.3
   Author: Abdulrahman Alili | antiradio.net
   ============================================================ */

:root {
    --aura-track-bg:      rgba(255, 255, 255, 0.10);
    --aura-accent-glass:  rgba(255, 255, 255, 0.20);
    --aura-font:          'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Container ── */
.aura-player-container {
    width: 100% !important;
    height: 150px !important;
    background: #000 !important;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    z-index: 10;
}

/* ── Blurred artwork backdrop ── */
.aura-bg-layer {
    position: absolute;
    inset: -12px;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.35);
    transition: background-image 1.5s ease-in-out;
    z-index: 1;
}

/* ── Inner layout ── */
.aura-player-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Art zone — play button lives here, so it never shifts ── */
.aura-art-zone {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
}

.aura-album-art-wrap {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

/* ── Icon Play / Pause button ── */
.aura-play-pause {
    position: absolute;
    top: 50%;
    left: calc(var(--aura-padding, 40px) + var(--aura-art-size, 110px) / 2);
    transform: translate(-50%, -50%);
    z-index: 30;
    width: 70px !important;
    height: 70px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.aura-play-pause:active {
    transform: translate(-50%, -50%) scale(0.88);
    background: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
}

/* ── Text button group (hidden on desktop by default) ── */
.aura-text-btn-group {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 14px;
    position: relative;
    /* Fixed width = one button's width — no layout shift when swapping Play/Pause */
    min-width: 90px;
    height: 34px;
}

.aura-text-play,
.aura-text-pause {
    font-family: var(--aura-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 6px 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.15s;
    white-space: nowrap;
    /* Both buttons always occupy space — no layout shift on toggle */
    flex-shrink: 0;
}

/* Play shown by default; Pause shown when playing — use opacity+pointer-events so both always occupy identical space */
.aura-text-play,
.aura-text-pause {
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.15s;
}
.aura-text-play                                   { opacity: 1; pointer-events: auto; position: relative; }
.aura-text-pause                                  { opacity: 0; pointer-events: none; position: absolute; }
.aura-text-btn-group.is-playing .aura-text-play   { opacity: 0; pointer-events: none; }
.aura-text-btn-group.is-playing .aura-text-pause  { opacity: 1; pointer-events: auto; }

/* ── Mobile-only play button (inside meta-info, normal document flow) ── */
.aura-mobile-btn {
    display: none; /* hidden on desktop */
}

/* Icon SVG swap — driven by is-playing on the container */
.aura-player-container .aura-pause-icon { display: none; }
.aura-player-container.is-playing .aura-play-icon  { display: none !important; }
.aura-player-container.is-playing .aura-pause-icon { display: block !important; }

.aura-text-play:hover,
.aura-text-pause:hover {
    background: rgba(255, 255, 255, 0.30);
    transform: scale(1.04);
}

/* ── Metadata fade transition ── */
.aura-artist-name,
.aura-track-title {
    transition: opacity 0.4s ease;
}
.aura-artist-name.aura-fading,
.aura-track-title.aura-fading { opacity: 0; }

/* ── Metadata text ── */
.aura-meta-info {
    flex-grow: 1;
    margin-left: 22px;
    min-width: 0;
}
.aura-artist-name {
    font-family: var(--aura-font);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aura-track-title {
    font-family: var(--aura-font);
    color: rgba(255, 255, 255, 0.60);
    font-size: 15px;
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Platform search links ── */
.aura-search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.aura-search-link {
    font-family: var(--aura-font);
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .2s;
}
.aura-search-link:hover { color: #fff; }
.aura-brand-icon { width: 14px; height: 14px; object-fit: contain; }

/* ── Volume ── */
.aura-volume-wrapper { margin-left: auto; flex-shrink: 0; }
.aura-volume-container { display: flex; align-items: center; gap: 8px; }
.aura-vol-icon { font-size: 13px; color: rgba(255, 255, 255, 0.50); }

.aura-volume-slider {
    -webkit-appearance: none;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    background: var(--aura-track-bg);
}
.aura-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.30);
}
.aura-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ============================================================
   MOBILE — critical structural rules
   ============================================================ */

/* Tablet */
@media (max-width: 768px) {
    .aura-player-container { height: auto !important; min-height: 80px !important; }
    .aura-player-inner     { flex-wrap: nowrap; align-items: center; gap: 12px; }
    .aura-icon-btn         { display: none !important; }
    .aura-text-btn-group   { display: flex !important; flex-shrink: 0; position: static; transform: none; margin-left: 0; }
    .aura-volume-slider    { width: 100% !important; }
    .aura-search-link      { font-size: 11px; }
    .aura-mobile-text-btns .aura-meta-info { flex: 1 1 0; min-width: 0; margin-left: 8px; }
    .aura-mobile-text-btns .aura-volume-wrapper { display: none !important; }
}

/* Phone */
@media (max-width: 480px) {
    .aura-icon-btn       { display: none !important; }
    .aura-text-btn-group { display: flex !important; flex-shrink: 0; position: static; transform: none; margin-left: 0; }
    .aura-meta-info      { margin-left: 4px; }
}

/* ============================================================
   PLAY BUTTON STYLES — 10 variants
   ============================================================ */

.aura-btn-style-1 .aura-play-pause {
    background: rgba(255,255,255,0.20) !important;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
}
.aura-btn-style-2 .aura-play-pause {
    background: #fff !important;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.aura-btn-style-2 .aura-play-pause svg path { fill: #111; }
.aura-btn-style-3 .aura-play-pause {
    background: rgba(0,0,0,0.55) !important;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.aura-btn-style-4 .aura-play-pause {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.85);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.aura-btn-style-5 .aura-play-pause {
    background: rgba(255,255,255,0.95) !important;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.20),
                0 0 20px rgba(255,255,255,0.50),
                0 0 40px rgba(255,255,255,0.15);
}
.aura-btn-style-5 .aura-play-pause svg path { fill: #111; }
.aura-btn-style-6 .aura-play-pause {
    background: #6c47ff !important;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(108,71,255,0.55);
}
.aura-btn-style-7 .aura-play-pause {
    background: #2563eb !important;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(37,99,235,0.55);
}
.aura-btn-style-8 .aura-play-pause {
    background: rgba(244,114,182,0.80) !important;
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(244,114,182,0.40);
}
.aura-btn-style-9 .aura-play-pause {
    background: linear-gradient(135deg, #f5c842, #c8921a) !important;
    border: 1px solid rgba(255,220,100,0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 18px rgba(200,146,26,0.50);
}
.aura-btn-style-10 .aura-play-pause {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.40);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 46px !important;
    height: 46px !important;
}
.aura-btn-style-10 .aura-play-pause svg { width: 22px; height: 22px; }

/* ── Fake Listener Count ─────────────────────────────────────────────────── */
.aura-listeners {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--aura-font, sans-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    margin-top: 8px;
}
.aura-listeners-icon { font-size: 13px; line-height: 1; }
.aura-listeners-count {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    transition: color .3s;
}
.aura-listeners-label { color: rgba(255, 255, 255, 0.40); }


@media (max-width: 768px) {
    .aura-meta-top {
        align-items: flex-start;
    }
}
