﻿/* =========================================================================
   Radio Outta Time — CSS complet (player + playlist)
   Portée : UNIQUEMENT #radio-outta-time
   -------------------------------------------------------------------------
   Variables locales raccordées aux tokens du blog
   =======================================================================*/
#radio-outta-time {
    --rot-bg: var(--color-panel-strong, #0b1018);
    --rot-bg-2: var(--color-bg-elevated, #121924);
    --rot-elev: var(--color-panel-soft, rgba(255, 255, 255, 0.03));
    --rot-fg: var(--color-text, #ece9df);
    --rot-fg-dim: var(--color-text-muted, #b8b4a8);
    --rot-accent: var(--color-accent, #d4af37);
    --rot-danger: #ff6b6b;
    --rot-ok: #66ffb7;
    --rot-link: var(--color-link, var(--rot-accent));
    --rot-border: var(--color-border, rgba(255, 248, 230, 0.12));
    --rot-border-soft: var(--color-border-soft, rgba(255, 248, 230, 0.06));
    --rot-border-strong: var(--color-border-strong, rgba(212, 175, 55, 0.28));
    --rot-surface: var(--surface-panel-bg, var(--rot-bg));
    --rot-shadow: var(--shadow-soft, 0 20px 48px rgba(0, 0, 0, 0.28));
    --rot-shadow-deep: var(--shadow-deep, 0 36px 100px rgba(0, 0, 0, 0.44));
    --rot-radius: var(--radius-lg, 0.875rem);
    --rot-radius-sm: var(--radius-md, 0.5rem);
    --rot-gap: var(--space-sm, 0.75rem);
    --rot-gap-lg: var(--space-md, 1rem);
    --rot-gap-xl: var(--space-lg, 1.5rem);

    --rot-progress-bg: linear-gradient(180deg, rgba(255, 248, 230, 0.1), rgba(255, 248, 230, 0.035));
    --rot-progress-fill:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, #fff4bb 18%, var(--rot-accent) 52%, var(--color-accent-alt, #e3933e) 100%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    --rot-handle: var(--color-text, #ece9df);

    --rot-disc-shadow: var(--shadow-soft, 0 20px 48px rgba(0, 0, 0, 0.28));
    --rot-font: var(--font-family-base, Roboto, sans-serif);
    --rot-font-ui: var(--font-family-ui, Orbitron, sans-serif);
    --rot-font-alt: var(--font-family-alt, "Roboto Condensed", sans-serif);
    --rot-font-icons: var(--font-family-icons, "Material Symbols Outlined");
    --rot-icon-xs: clamp(1.35rem, 1.12rem + 0.55vw, 1.8rem);
    --rot-icon-sm: clamp(1.7rem, 1.38rem + 0.78vw, 2.25rem);
    --rot-icon-md: clamp(2rem, 1.56rem + 1.15vw, 2.75rem);
    --rot-icon-lg: clamp(2.7rem, 2rem + 2vw, 4.25rem);
    --rot-icon-xl: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);

    color: var(--rot-fg);
    font-family: var(--rot-font);
}

#radio-outta-time .material-symbols-outlined {
    font-family: var(--rot-font-icons);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

#radio-outta-time,
#radio-outta-time * {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

#radio-outta-time img {
    pointer-events: none;
    -webkit-user-drag: none;
}



/* Root container modes */
#radio-outta-time.modal,
#radio-outta-time.mini {
    position: fixed;
    z-index: 9999;
    box-shadow: var(--rot-shadow-deep);
}

#radio-outta-time.modal {
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    width: min(980px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    background: var(--rot-surface);
    border: 1px solid var(--rot-border);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

#radio-outta-time.mini {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(480px, calc(100vw - 24px));
    max-height: calc(100dvh - 32px);
    background: var(--rot-surface);
    border: 1px solid var(--rot-border);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

#radio-outta-time.is-hidden {
    display: none !important;
}

#radio-outta-time.modal #rotToModal {
    display: none;
}

#radio-outta-time.mini #rotToMini {
    display: none;
}

#radio-outta-time.modal {
    opacity: 0;
    transform: translate(-50%, 0%);
    animation: rot-pop 160ms ease-out forwards;
}

#radio-outta-time.mini {
    opacity: 0;
    transform: translate(0%, 50%);
    animation: rot-min 160ms ease-out forwards;
}

@keyframes rot-pop {
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes rot-min {
    to {
        opacity: 1;
        transform: translate(0%, 0%);
    }
}

/* Overlay */
#rot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 9, 0.82);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 9998;
}

#rot-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.rot-lock {
    overflow: hidden;
}



/* =========================================================================
   Barre de contrôle
   =======================================================================*/
#radio-outta-time .barre {
    display: grid;
    align-items: center;
    gap: var(--space-sm, 0.75rem) var(--rot-gap);
    padding: var(--rot-gap-lg);
    border-bottom: 1px solid var(--rot-border-soft);
}

#radio-outta-time.modal .barre {
    grid-template-columns: 200px auto 200px;
    grid-template-areas:
        "frame    left   btns"
        "frame    left   right"
        "frame    progress right";
    grid-template-rows: auto 1fr auto;
}

#radio-outta-time.mini .barre {
    grid-template-columns: auto;
    grid-template-areas:
        "btns"
        "center"
        "left"
        "progress";
    grid-template-rows: auto;
}

/* --- Zone iframe video --- */
#radio-outta-time.modal #frame-player {
    grid-area: frame;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #000;
}

@media (max-width: 740px) {
    #radio-outta-time.modal .barre {
        grid-template-columns: auto 200px;
        grid-template-areas:
            "left   btns"
            "left   right"
            "progress right";
        grid-template-rows: auto 1fr auto;
    }

    #radio-outta-time.modal #frame-player {
        display: none;
    }
}

#radio-outta-time.mini #frame-player {
    display: none;
}


/* --- Zones des commandes --- */
#radio-outta-time .bar-left {
    grid-area: left;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    align-self: center;
}

#radio-outta-time.modal .bar-center {
    display: none;
}

#radio-outta-time.mini .bar-center {
    grid-area: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

#radio-outta-time.modal .bar-right {
    grid-area: right;
    display: grid;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
    background: var(--rot-elev);
    padding: var(--space-md, 1rem);
    border: 1px solid var(--rot-border);
    height: 100%;
    align-self: stretch;
    grid-template-areas:
        "mute   mute  "
        "volume volume"
        "repeat random";
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto;
}

@media (max-width: 540px) {
    #radio-outta-time.modal .barre {
        grid-template-columns: auto;
        grid-template-areas:
            "btns"
            "left"
            "progress";
        grid-template-rows: auto;
    }

    #radio-outta-time.modal .bar-right {
        display: none;
    }
}

#radio-outta-time.mini .bar-right {
    display: none;
}

/* --- Boutons modaux flottants --- */
#radio-outta-time .bar-btns {
    grid-area: btns;
    justify-self: end;
    align-self: start;
    display: flex;
    gap: var(--space-lg, 1.5rem);
    padding: 0;
}

#radio-outta-time.mini .bar-btns {
    margin-left: auto;
}

/* La rangée Progress = [temps courant] [barre] [durée totale] */
#radio-outta-time .progress-row {
    grid-area: progress;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 10px;
    align-self: end;
}

/* Styles des temps */
#radio-outta-time #video-time-current,
#radio-outta-time #video-time-total {
    font-variant-numeric: tabular-nums;
    font-size: var(--font-size-xs, 0.78rem);
    color: var(--rot-fg-dim);
    text-align: center;
}

#radio-outta-time .bar-center {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--rot-gap);
}

/* boutons icônes */
#radio-outta-time .material-symbols-outlined {
    user-select: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    width: 1em;
    transition: transform .12s ease, color .12s ease, opacity .12s ease;
    color: var(--rot-fg);
}

#radio-outta-time .material-symbols-outlined:hover {
    transform: translateY(-1px);
}

#radio-outta-time .material-symbols-outlined:active {
    transform: translateY(0);
    opacity: 0.85;
}

#radio-outta-time .material-symbols-outlined.active {
    color: var(--rot-accent);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
}

#radio-outta-time.modal #playPauseBtn {
    font-size: var(--rot-icon-xl);
}

#radio-outta-time.mini #playPauseBtn {
    font-size: var(--rot-icon-lg);
}

#radio-outta-time.modal #previousVideo,
#radio-outta-time.modal #nextVideo {
    font-size: var(--rot-icon-lg);
}

#radio-outta-time.mini #previousVideo,
#radio-outta-time.mini #nextVideo {
    font-size: var(--rot-icon-md);
}



#radio-outta-time #muteButton {
    grid-area: mute;
    font-size: var(--rot-icon-md);
}

/* Mute state (via JS: volume_off vs volume_up) */
#radio-outta-time #muteButton[aria-pressed="true"] {
    color: var(--rot-danger);
}

/* Volume slider */
#radio-outta-time #volume-slider {
    grid-area: volume;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 248, 230, 0.08) 1px, transparent 1px) 0 50% / 14px 100%,
        var(--rot-progress-bg);
    border: 1px solid rgba(255, 248, 230, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -6px 14px rgba(0, 0, 0, 0.28),
        0 0 10px rgba(212, 175, 55, 0.08);
    outline: none;
    cursor: pointer;
}

#radio-outta-time #volume-slider:hover,
#radio-outta-time #volume-slider:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -6px 14px rgba(0, 0, 0, 0.28),
        0 0 16px rgba(212, 175, 55, 0.18);
}

#radio-outta-time #repeatButton {
    grid-area: repeat;
    font-size: var(--rot-icon-md);
}

#radio-outta-time #randomButton {
    grid-area: random;
    font-size: var(--rot-icon-md);
}




#radio-outta-time #volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0 12%, #fff4bd 28%, var(--rot-accent) 62%, #7b5912 100%);
    border: 1px solid rgba(255, 248, 230, 0.72);
    box-shadow:
        0 0 0 0.2rem rgba(212, 175, 55, 0.08),
        0 0 14px rgba(212, 175, 55, 0.66),
        0 0 26px rgba(227, 147, 62, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.44);
}

#radio-outta-time #volume-slider::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0 12%, #fff4bd 28%, var(--rot-accent) 62%, #7b5912 100%);
    border: 1px solid rgba(255, 248, 230, 0.72);
    box-shadow:
        0 0 0 0.2rem rgba(212, 175, 55, 0.08),
        0 0 14px rgba(212, 175, 55, 0.66),
        0 0 26px rgba(227, 147, 62, 0.28),
        0 2px 8px rgba(0, 0, 0, 0.44);
}

#radio-outta-time #volume-slider::-moz-range-track {
    height: 0.5rem;
    border-radius: 999px;
    background: var(--rot-progress-bg);
    border: 1px solid rgba(255, 248, 230, 0.08);
}

#radio-outta-time #volume-slider::-moz-range-progress {
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff4bb 0%, var(--rot-accent) 64%, var(--color-accent-alt, #e3933e) 100%);
    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.34),
        0 0 24px rgba(227, 147, 62, 0.22);
}

/* Infos centre */
#radio-outta-time #video-image {
    width: 52px;
    height: 52px;
    overflow: hidden;
    background: var(--rot-bg-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--rot-disc-shadow);
}

#radio-outta-time #video-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#radio-outta-time .video-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#radio-outta-time #video-author {
    color: var(--rot-fg-dim);
    font-size: var(--font-size-sm, 0.92rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#radio-outta-time .video-title-date {
    display: flex;
    gap: 10px;
    align-items: baseline;
    min-width: 0;
}

#radio-outta-time #video-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#radio-outta-time #video-date {
    color: var(--rot-fg-dim);
    font-size: var(--font-size-xs, 0.78rem);
}

#radio-outta-time .rot-toast {
    position: fixed;
    left: 50%;
    top: 76px;
    z-index: 10050;
    transform: translate(-50%, 6px);
    max-width: min(420px, calc(100% - 32px));
    padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
    border: 1px solid var(--rot-border-strong);
    background: var(--surface-tooltip-bg, rgba(8, 11, 17, 0.96));
    color: var(--rot-fg);
    box-shadow: var(--rot-shadow);
    font-size: var(--font-size-sm, 0.92rem);
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

#radio-outta-time .rot-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    display: block;
}

#radio-outta-time .rot-info-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 9;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow: auto;
    margin: 0;
    padding: var(--space-lg, 1.5rem);
    border: 1px solid var(--rot-border);
    background: var(--surface-tooltip-bg, rgba(8, 11, 17, 0.96));
    color: var(--rot-fg);
    box-shadow: var(--rot-shadow);
    backdrop-filter: blur(8px);
}

#radio-outta-time:not(.modal) .rot-info-panel,
#radio-outta-time.mini #rotInfo {
    display: none;
}

#radio-outta-time .rot-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm, 0.75rem);
    margin-bottom: var(--space-sm, 0.75rem);
}

#radio-outta-time .rot-info-title {
    font-family: var(--rot-font-ui);
    font-size: var(--font-size-xs, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#radio-outta-time .rot-info-subtitle {
    font-family: var(--rot-font-ui);
    font-size: var(--font-size-xs, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#radio-outta-time .rot-info-close {
    border: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    color: var(--rot-fg-dim);
    cursor: pointer;
    font-size: var(--rot-icon-xs);
    line-height: 1;
}

#radio-outta-time .rot-info-close:hover {
    color: var(--rot-danger);
}

#radio-outta-time .rot-info-rows {
    display: grid;
    gap: var(--space-xs, 0.5rem);
}

#radio-outta-time .rot-info-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--space-sm, 0.75rem);
    align-items: baseline;
}

#radio-outta-time .rot-info-label {
    color: var(--rot-fg-dim);
    font-family: var(--rot-font-ui);
    font-size: var(--font-size-xs, 0.78rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#radio-outta-time .rot-info-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: var(--font-size-sm, 0.92rem);
}

#radio-outta-time .rot-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs, 0.5rem);
    margin-top: var(--space-sm, 0.75rem);
}

#radio-outta-time .rot-info-link {
    color: var(--rot-link);
    text-decoration: none;
    font-size: var(--font-size-sm, 0.92rem);
    border: 1px solid currentColor;
    padding: var(--space-2xs, 0.25rem) var(--space-sm, 0.75rem);
    display: inline-flex;
    align-items: center;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#radio-outta-time .rot-info-link:hover {
    background-color: var(--color-accent-shadow, #c0932c);
    border-color: var(--color-accent-shadow, #c0932c);
    color: var(--color-button-text, #0b1118);
    text-decoration: none;
}

#radio-outta-time .rot-info-section {
    margin-top: var(--space-md, 1rem);
    padding-top: var(--space-md, 1rem);
    border-top: 1px solid var(--rot-border-soft);
}

#radio-outta-time .rot-shortcut-rows {
    display: grid;
    gap: var(--space-xs, 0.5rem);
    margin-top: var(--space-sm, 0.75rem);
}

#radio-outta-time .rot-shortcut-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: var(--space-sm, 0.75rem);
    align-items: center;
}

#radio-outta-time .rot-shortcut-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

#radio-outta-time .rot-shortcut-keys kbd {
    min-width: 1.75rem;
    padding: 0.16rem 0.42rem;
    border: 1px solid var(--rot-border);
    background: rgba(255, 248, 230, 0.04);
    color: var(--rot-fg);
    font-family: var(--rot-font-ui);
    font-size: var(--font-size-xs, 0.78rem);
    line-height: 1.35;
    text-align: center;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

#radio-outta-time .rot-shortcut-action {
    color: var(--rot-fg-dim);
    font-size: var(--font-size-sm, 0.92rem);
}

#radio-outta-time .rot-info-empty {
    margin: 0;
    color: var(--rot-fg-dim);
    font-size: var(--font-size-sm, 0.92rem);
}

/* Progress bar */
#radio-outta-time #progress-bar-container {
    position: relative;
    height: 0.72rem;
    border-radius: 999px;
    cursor: pointer;
    isolation: isolate;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.08));
}

#radio-outta-time #progress-bar-container .background-bar {
    position: absolute;
    inset: 0;
    background: var(--rot-progress-bg);
    border-radius: inherit;
    overflow: hidden;
    border: 1px solid rgba(255, 248, 230, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -8px 18px rgba(0, 0, 0, 0.35);
}

#radio-outta-time #progress-bar-container .background-bar::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(255, 248, 230, 0.08) 1px, transparent 1px) 0 50% / 18px 100%,
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 58%);
    opacity: 0.7;
    pointer-events: none;
}

#radio-outta-time #progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--rot-progress-fill);
    border-radius: inherit;
    box-shadow:
        0 0 16px rgba(212, 175, 55, 0.35),
        0 0 34px rgba(227, 147, 62, 0.22);
    overflow: visible;
}

#radio-outta-time #progress-bar::before {
    content: "";
    position: absolute;
    inset: 1px 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 48%);
    opacity: 0.72;
    pointer-events: none;
}

#radio-outta-time #progress-bar::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.18rem;
    width: 0.42rem;
    height: 1.15rem;
    transform: translateY(-50%);
    background: #fff5c2;
    box-shadow:
        0 0 10px #fff1a8,
        0 0 24px rgba(212, 175, 55, 0.8),
        0 0 44px rgba(227, 147, 62, 0.42);
    opacity: 0.95;
}

#radio-outta-time #slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.12rem;
    height: 1.12rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0 12%, #fff4bd 28%, var(--rot-accent) 62%, #7b5912 100%);
    border: 1px solid rgba(255, 248, 230, 0.72);
    box-shadow:
        0 0 0 0.25rem rgba(212, 175, 55, 0.08),
        0 0 18px rgba(212, 175, 55, 0.72),
        0 0 34px rgba(227, 147, 62, 0.34),
        0 2px 8px rgba(0, 0, 0, 0.5);
    transition: box-shadow .12s ease, transform .12s ease, width .12s ease, height .12s ease;
}

#radio-outta-time #progress-bar-container:hover #slider-handle {
    box-shadow:
        0 0 0 0.42rem rgba(212, 175, 55, 0.12),
        0 0 22px rgba(212, 175, 55, 0.9),
        0 0 42px rgba(227, 147, 62, 0.46),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

#radio-outta-time.is-scrubbing #slider-handle {
    width: 1.35rem;
    height: 1.35rem;
    transform: translate(-50%, -50%) scale(1.03);
}

/* loader (buffering) */
#radio-outta-time .rotate-icon {
    animation: rot-spin 1s linear infinite;
}

#radio-outta-time .material-symbols-outlined.rotate-icon:hover {
    transform: none;
}


@keyframes rot-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================================
   Playlist
   =======================================================================*/
#radio-outta-time #rot-playlist {
    max-height: min(50dvh, 520px);
    overflow: auto;
    padding: var(--rot-gap-lg);
    display: grid;
    gap: var(--rot-gap);
    background: rgba(8, 11, 17, 0.72);
    border-top: 1px solid var(--rot-border-soft);
}

#radio-outta-time.mini #rot-playlist {
    display: none;
}

#radio-outta-time .post-outer-container {
    border: 1px solid var(--rot-border);
    background: var(--rot-elev);
    padding: var(--space-sm, 0.75rem);
    margin: 0;
    display: grid;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease, transform .12s ease;
}

#radio-outta-time .post-outer-container:hover {
    border-color: var(--rot-border-strong);
    background: var(--color-button-secondary-hover, rgba(255, 248, 230, 0.08));
}

#radio-outta-time .post-outer {
    display: block;
}

#radio-outta-time .post {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-sm, 0.75rem);
    align-items: start;
    min-width: 0;
}

/* vignette + overlay .imgcurrent (play/pause) */
#radio-outta-time .snippet-thumbnail.disc {
    position: relative;
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: var(--rot-bg-2);
    box-shadow: var(--rot-disc-shadow);
}

#radio-outta-time .snippet-thumbnail.disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#radio-outta-time .imgcurrent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rot-fg);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

#radio-outta-time .imgcurrent::after {
    content: "play_circle";
    font-family: var(--rot-font-icons);
    font-weight: normal;
    font-style: normal;
    font-size: var(--rot-icon-lg);
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

#radio-outta-time .post-outer-container.post-play .imgcurrent::after {
    content: "pause_circle";
}

#radio-outta-time .post-outer-container.post-pause .imgcurrent::after {
    content: "play_circle";
}

/* titres + meta */
#radio-outta-time .snippet-titles {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#radio-outta-time .post-title.entry-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--rot-fg);
}

#radio-outta-time .post-title.entry-title a {
    color: var(--rot-fg);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

#radio-outta-time .post-title.entry-title a:hover {
    color: var(--rot-link);
    border-bottom-color: rgba(212, 175, 55, 0.48);
}

#radio-outta-time .author-song {
    margin: 0;
    font-size: var(--font-size-xs, 0.78rem);
    color: var(--rot-fg-dim);
}

#radio-outta-time .snippet-titles p {
    margin: 2px 0 0 0;
    font-size: var(--font-size-xs, 0.78rem);
    color: var(--rot-fg-dim);
}

#radio-outta-time .snippet-titles p a {
    color: var(--rot-link);
    text-decoration: none;
}

#radio-outta-time .snippet-titles p a:hover {
    text-decoration: underline;
}

/* toggle on/off */
#radio-outta-time .toggle-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 248, 230, 0.12), rgba(255, 248, 230, 0.02) 58%, transparent 70%),
        rgba(8, 11, 17, 0.5);
    /*border: 1px solid rgba(255, 248, 230, 0.1);*/
    color: var(--rot-ok);
    /*box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(102, 255, 183, 0.05),
        0 0 16px rgba(102, 255, 183, 0.16);*/
    transition: transform .12s ease, color .12s ease, opacity .12s ease, border-color .12s ease, box-shadow .12s ease;
    cursor: pointer;
    font-size: 0;
}

#radio-outta-time .toggle-button::before {
    content: "power_settings_new";
    font-family: var(--rot-font-icons);
    font-size: var(--rot-icon-sm);
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 48;
    line-height: 1;
}

#radio-outta-time .toggle-button::after {
    content: "";
    position: absolute;
    inset: -0.28rem;
    border-radius: inherit;
    background: radial-gradient(circle, currentColor 0 18%, transparent 62%);
    opacity: 0.12;
    pointer-events: none;
}

#radio-outta-time .toggle-button.toggle-off {
    color: var(--rot-danger);
    opacity: 0.78;
    /*border-color: rgba(255, 107, 107, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 107, 107, 0.04),
        0 0 10px rgba(255, 107, 107, 0.1);*/
}

#radio-outta-time .toggle-button:hover {
    transform: translateY(-1px) scale(1.04);
    /*border-color: currentColor;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 0.18rem color-mix(in srgb, currentColor 12%, transparent),
        0 0 22px color-mix(in srgb, currentColor 28%, transparent);*/
}

#radio-outta-time .toggle-button:active {
    transform: translateY(0) scale(0.98);
}

/* état courant */
#radio-outta-time .post-outer-container.highlight {
    outline: 2px solid rgba(212, 175, 55, 0.24);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.18), var(--shadow-glow, 0 0 42px rgba(212, 175, 55, 0.1));
    transform: translateY(-1px);
}

/* =========================================================================
   Boutons d’affichage (modale / mini / fermer)
   =======================================================================*/
#radio-outta-time .bar-btns .material-symbols-outlined {
    opacity: 0.85;
    font-size: var(--rot-icon-xs);
}

#radio-outta-time #rotClose:hover {
    color: var(--rot-danger);
}

/* =========================================================================
   Ripple (clic feedback sur éléments .ripple / .imgcurrent)
   =======================================================================*/
#radio-outta-time .ripple {
    position: relative;
    overflow: hidden;
}

#radio-outta-time .ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120px 120px at var(--r-x, 50%) var(--r-y, 50%), rgba(255, 255, 255, 0.22), transparent 40%);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

#radio-outta-time .ripple:active::after {
    animation: ripple-k 500ms ease-out;
}

@keyframes ripple-k {
    0% {
        transform: scale(0);
        opacity: .35;
    }

    80% {
        transform: scale(1);
        opacity: .15;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* =========================================================================
   Responsive
   =======================================================================*/
@media (max-width: 740px) {
    #radio-outta-time .barre {
        grid-template-columns: 1fr;
        gap: 0 10px;
    }

    #radio-outta-time .bar-left {
        gap: var(--space-sm, 0.75rem);
    }

    #radio-outta-time .bar-center {
        grid-template-columns: auto 1fr;
    }

    #radio-outta-time #volume-slider {
        width: 100px;
    }

    #radio-outta-time.modal {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    #radio-outta-time .bar-btns {
        gap: var(--space-md, 1rem);
    }

    #radio-outta-time #rot-playlist {
        max-height: min(52dvh, 420px);
    }

    #radio-outta-time .author-song + div {
        display: none;
    }
}

@media (max-width: 420px) {
    #radio-outta-time .barre {
        padding: var(--space-sm, 0.75rem);
    }

    #radio-outta-time #video-image {
        width: 44px;
        height: 44px;
    }

    #radio-outta-time #playPauseBtn {
        font-size: var(--rot-icon-lg);
    }

    #radio-outta-time .progress-row {
        grid-template-columns: 46px 1fr 46px;
        gap: var(--space-xs, 0.5rem);
    }

    #radio-outta-time .post {
        grid-template-columns: 54px minmax(0, 1fr) auto;
    }

    #radio-outta-time .snippet-thumbnail.disc {
        width: 54px;
        height: 54px;
    }

    #radio-outta-time .toggle-button {
        width: 1.85rem;
        height: 1.85rem;
    }

    #radio-outta-time .toggle-button::before {
        font-size: var(--rot-icon-xs);
    }
}

/* =========================================================================
   Liens généraux dans le scope
   =======================================================================*/
#radio-outta-time a {
    color: var(--rot-link);
}

#radio-outta-time a:hover {
    text-decoration: underline;
}
