/**
 * Unity89 FM Commercial Player — Dark branded theme
 * Layout: banner (logo + text + badge) on top, controls on bottom
 */

/* ── Outer wrap ── */
.unity89-player-wrap {
    margin: 0;
    padding: 0;
}

/* ── Main player container ── */
.unity89-commercial-player {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 100% at 20% 50%, rgba(88, 40, 180, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 120% at 80% 80%, rgba(60, 20, 140, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(100, 50, 200, 0.15) 0%, transparent 50%),
        linear-gradient(160deg, #1c0e3a 0%, #110a2a 35%, #0c0820 65%, #0e0926 100%);
    border-radius: 14px;
    color: #e0dce8;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(80, 40, 160, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Subtle purple glow on top edge */
.unity89-commercial-player::before {
    content: '';
    position: absolute;
    top: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(140, 80, 240, 0.5), transparent);
    z-index: 2;
}

/* Ambient purple glow from bottom */
.unity89-commercial-player::after {
    content: '';
    position: absolute;
    bottom: -30%; left: 10%; right: 10%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(100, 50, 200, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}


/* ═══════════════ BANNER — logo + text + duration ═══════════════ */
.unity89-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px 12px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Logo — clickable */
a.unity89-logo-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 0.15s ease;
    border-radius: 12px;
}
a.unity89-logo-col:hover {
    transform: scale(1.06);
}
a.unity89-logo-col:hover .unity89-logo {
    box-shadow: 0 4px 16px rgba(128, 90, 213, 0.45);
}

.unity89-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.15s ease;
}

/* Fallback logo */
.unity89-logo-fallback {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6b46c1, #805ad5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    gap: 1px;
    overflow: hidden;
}
.unity89-logo-fallback span:first-child {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1;
    background: linear-gradient(90deg, #f87171, #fbbf24, #34d399, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.unity89-logo-fallback span:last-child {
    font-size: 7px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Banner text — two lines */
.unity89-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.unity89-banner-title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.35;
}
.unity89-banner-title strong {
    color: #fff;
    font-weight: 700;
}

.unity89-banner-sub {
    font-size: 11px;
    color: rgba(196, 181, 253, 0.7);
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Duration badge */
.unity89-duration {
    font-size: 11px;
    font-weight: 600;
    color: rgba(224, 220, 232, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255, 255, 255, 0.06);
}


/* ═══════════════ CONTROLS — play + progress + time + volume ═══════════════ */
.unity89-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 12px;
    position: relative;
    z-index: 1;
}

/* Play / Pause button */
.unity89-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 10px rgba(128, 90, 213, 0.4);
    padding: 0;
}
.unity89-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(128, 90, 213, 0.55);
}
.unity89-play-btn:active {
    transform: scale(0.95);
}
.unity89-play-btn svg {
    display: block;
}

/* Progress bar wrapper */
.unity89-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Progress bar track */
.unity89-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: visible;
    cursor: pointer;
    position: relative;
}
.unity89-progress-bar:hover {
    height: 5px;
}

/* Progress fill */
.unity89-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #805ad5, #b794f4);
    border-radius: 2px;
    transition: width 0.1s linear;
    position: absolute;
    top: 0;
    left: 0;
}

/* Scrubber thumb */
.unity89-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.unity89-progress-bar:hover .unity89-progress-thumb,
.unity89-commercial-player.playing .unity89-progress-thumb {
    opacity: 1;
}

/* Time display */
.unity89-time {
    font-size: 12px;
    color: rgba(224, 220, 232, 0.55);
    font-variant-numeric: tabular-nums;
    min-width: 34px;
    text-align: right;
    flex-shrink: 0;
    margin-left: 2px;
}

/* ═══════════════ Volume Controls ═══════════════ */
.unity89-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 4px;
}

.unity89-vol-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgba(224, 220, 232, 0.6);
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: color 0.15s;
}
.unity89-vol-btn:hover {
    color: #c4b5fd;
}

/* Volume slider */
.unity89-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.unity89-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #c4b5fd;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}
.unity89-vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.unity89-vol-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #c4b5fd;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.unity89-vol-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.12);
    height: 4px;
    border-radius: 2px;
}

/* Muted state */
.unity89-commercial-player.muted .unity89-vol-wave {
    display: none;
}
.unity89-commercial-player.muted .unity89-vol-btn {
    color: rgba(224, 220, 232, 0.3);
}

/* ═══════════════ Loading State ═══════════════ */
.unity89-player-loading {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a1040, #0d0b2e);
    border-radius: 14px;
    text-align: center;
}
.unity89-loading-text {
    font-size: 12.5px;
    color: rgba(224, 220, 232, 0.5);
}
.unity89-loading-text .fa-spinner {
    margin-right: 6px;
}

/* ═══════════════ Hidden State ═══════════════ */
.unity89-player-wrap.unity89-hidden {
    display: none !important;
}

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 480px) {
    .unity89-banner {
        padding: 12px 14px 10px;
        gap: 10px;
    }
    .unity89-logo {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    .unity89-logo-fallback {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 8px;
    }
    .unity89-banner-title {
        font-size: 12px;
    }
    .unity89-banner-sub {
        font-size: 10px;
    }
    .unity89-player-controls {
        padding: 8px 14px 10px;
    }
    .unity89-play-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    .unity89-volume {
        display: none;
    }
}

/* ═══════════════ Override EventON row defaults ═══════════════ */
.evocard_box.unity89commercial {
    padding: 12px 16px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.evocard_box.unity89commercial .evcal_evdata_row {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}
.evo_metarow_unity89commercial {
    border: none !important;
    padding: 12px 16px !important;
    background: transparent !important;
}
.evo_metarow_unity89commercial .evcal_evdata_icons {
    display: none !important;
}
.evo_metarow_unity89commercial .evcal_evdata_cell {
    padding: 0 !important;
}
