/*
Theme Name: Astra Radio 90 Hit v12
Theme URI: https://90hit.ro/
Description: Child theme Astra pentru Radio 90 Hit – dark mode, player audio sticky, layout modern & mobile-first.
Author: DJ Mike & A.I.
Author URI: https://90hit.ro/
Template: astra
Version: 12.0.2
Text Domain: astra-radio90hit-v12
*/

/* ------------------------- */
/* 1. Variabile & bază       */
/* ------------------------- */

:root {
    --r90-bg: #050509;
    --r90-bg-elevated: #11111a;
    --r90-bg-soft: #181826;
    --r90-border-subtle: rgba(255, 255, 255, 0.06);
    --r90-text: #f2f3f7;
    --r90-text-muted: #b0b4c3;
    --r90-accent: #1fb4ff;
    --r90-accent-soft: rgba(31, 180, 255, 0.15);
    --r90-danger: #ff3b6a;
    --r90-radius-lg: 18px;
    --r90-radius-pill: 999px;
    --r90-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);

    /* înălțime minimă player footer (include tickerul) */
    --r90-player-height: 96px;
}

/* Sistem font – fără webfonts, pentru performanță */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--r90-bg);
    color: var(--r90-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;

    /* spațiu pentru playerul fix din footer */
    padding-bottom: var(--r90-player-height);
}

/* Linkuri */
a {
    color: var(--r90-accent);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover,
a:focus-visible {
    color: #7fd8ff;
}

a:focus-visible {
    outline: 2px solid var(--r90-accent);
    outline-offset: 2px;
}

/* Astra override de bază pentru dark mode */
.site,
.ast-theme-bg,
.ast-container,
.ast-layout-boxed .site {
    background-color: var(--r90-bg) !important;
}

/* texte generice */
.entry-content,
.site-content,
.site-main {
    color: var(--r90-text);
}

/* Formulare & butoane generice în dark */
input,
select,
textarea {
    background-color: var(--r90-bg-soft);
    color: var(--r90-text);
    border: 1px solid var(--r90-border-subtle);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
}

button,
input[type="submit"],
.ast-button,
.button {
    background: linear-gradient(135deg, #1fb4ff, #0069df);
    color: #ffffff;
    border: none;
    border-radius: var(--r90-radius-pill);
    padding: 0.45rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

button:hover,
input[type="submit"]:hover,
.ast-button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    opacity: 0.96;
}

/* ------------------------- */
/* 2. Player footer          */
/* ------------------------- */

.r90-footer-player {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    min-height: var(--r90-player-height);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 0.3rem;

    padding: 0.4rem 0.7rem 0.45rem;
    background: radial-gradient(circle at top left, #1b2138 0, #050509 55%, #050509 100%);
    border-top: 1px solid var(--r90-border-subtle);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;

    color: var(--r90-text);
}

/* rândul principal: cover + info + buton */

.r90-player-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.r90-player-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}

.r90-player-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.r90-player-cover-wrap {
    flex: 0 0 auto;
}

.r90-player-cover {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    background-color: #151520;
    border: 1px solid var(--r90-border-subtle);
}

/* info piesă + show */

.r90-player-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.r90-player-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.05rem 0.65rem;
    border-radius: 999px;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background-color: var(--r90-accent-soft);
    color: var(--r90-accent);
    border: 1px solid rgba(31, 180, 255, 0.4);
}

.r90-player-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle, #4dff84 0, #03c75a 55%, #008f43 100%);
    box-shadow: 0 0 6px rgba(77, 255, 132, 0.9);
}

/* Artist / titlu */

.r90-player-artist {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r90-player-title {
    font-size: 0.78rem;
    color: var(--r90-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* meta stream (nr ascultători etc.) */

.r90-stream-meta {
    display: none; /* devine block pe ecrane mai mari */
    font-size: 0.7rem;
    color: var(--r90-text-muted);
}

/* buton play/pause */

.r90-player-cta-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: radial-gradient(circle at 25% 25%, #7fd8ff 0, #1fb4ff 40%, #0069df 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.85);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.r90-player-cta-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9);
}

.r90-player-cta-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.r90-player-cta-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.r90-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* stare playing */

.r90-footer-player.is-playing .r90-player-cover {
    box-shadow: 0 0 0 2px rgba(31, 180, 255, 0.6),
        0 0 24px rgba(31, 180, 255, 0.8);
}

/* ------------------------- */
/* 2.1 Ticker full-width     */
/* ------------------------- */

.r90-player-ticker-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 4px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 8, 20, 0.9);
    box-sizing: border-box;
    font-size: 1.1rem;
    color: var(--r90-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.r90-player-ticker-label {
    font-weight: 600;
    margin-right: 0.35rem;
    color: var(--r90-accent);
    flex: 0 0 auto;
}

/* textul în mișcare */

.r90-player-ticker-inner {
    display: inline-block;
    white-space: nowrap;
    flex: 1 1 auto;

    /* scroll lent – modifică durata pentru viteză */
    animation: r90-ticker-scroll 40s linear infinite;
    padding-left: 100%;
}

/* fade la margini (estetic) */

.r90-player-ticker-row::before,
.r90-player-ticker-row::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    pointer-events: none;
}

.r90-player-ticker-row::before {
    left: 0;
    background: linear-gradient(to right, rgba(5, 5, 9, 0.9), transparent);
}

.r90-player-ticker-row::after {
    right: 0;
    background: linear-gradient(to left, rgba(5, 5, 9, 0.9), transparent);
}

/* ANIMATIE SCROLL */

@keyframes r90-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* respectăm prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .r90-player-ticker-inner {
        animation: none;
        padding-left: 0;
    }
}

/* ------------------------- */
/* 3. Responsive             */
/* ------------------------- */

@media (min-width: 480px) {
    .r90-footer-player {
        padding-inline: 1.1rem;
    }

    .r90-player-cover {
        width: 56px;
        height: 56px;
    }

    .r90-player-artist {
        font-size: 0.88rem;
    }

    .r90-player-title {
        font-size: 0.84rem;
    }
}

@media (min-width: 768px) {
    .r90-footer-player {
        padding-inline: 1.5rem;
    }

    .r90-stream-meta {
        display: block;
    }
}

/* un pic mai relaxat pe ecrane foarte mici */
@media (max-width: 479px) {
    .r90-footer-player {
        padding-inline: 0.6rem;
    }

    .r90-player-main {
        gap: 0.5rem;
    }

    .r90-player-right {
        margin-left: auto;
    }

    /* și mai lent pe mobil */
    .r90-player-ticker-inner {
        animation-duration: 50s;
    }
}