/* RESET SIMPLE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #000000 100%);
    color: #e5e7eb;
}

/* HEADER / NAV */

header {
    background: rgba(2, 6, 23, 0.9);
    border-bottom: 1px solid #111827;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #22c55e;
    box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

.logo-text-main {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 14px;
}

.logo-text-sub {
    font-size: 11px;
    color: #9ca3af;
}

.nav-links {
    display: flex;
    gap: 14px;
    font-size: 13px;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

/* LAYOUT GLOBAL */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.layout > section {
    flex: 2;
}

.layout > aside {
    flex: 1;
}

/* HERO + PLAYER */

.hero-card {
    position: relative;
    background: radial-gradient(circle at top left, #1f2937 0, #020617 60%, #000000 100%);
    border-radius: 18px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(55, 65, 81, 0.7);
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    overflow: hidden;
}

.decor-circle {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34,197,94,0.25), transparent 60%);
    right: -80px;
    top: -120px;
    pointer-events: none;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(220,38,38,0.15);
    color: #fecaca;
    font-size: 11px;
    border: 1px solid rgba(248,113,113,0.6);
}

.dot-live {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(248,113,113,0.9);
}

.hero-title {
    margin: 10px 0 4px;
    font-size: 26px;
}

.hero-subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    color: #d1d5db;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* PLAYER */

.player-card {
    background: rgba(15,23,42,0.9);
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid #1f2937;
    margin-top: 10px;
}

.main-player {
    background: rgba(15,23,42,0.95);   /* fond sombre comme le reste */
    border-color: #22c55e;             /* bordure verte */
    box-shadow: 0 16px 40px rgba(16,185,129,0.35);
    color: #e5e7eb;
}

.main-player .player-header {
    color: #e5e7eb;
}

.main-player .player-sub {
    color: #bbf7d0;
}


.player-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}

.player-title {
    font-weight: 600;
}

.player-sub {
    font-size: 11px;
    color: #9ca3af;
}

audio {
    width: 100%;
    margin-top: 4px;
}

.volume-controls {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.volume-controls button {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    background: rgba(15,23,42,0.9);
    color: inherit;
}

.main-player .volume-controls button {
    background: rgba(6,95,70,0.9);
    color: #dcfce7;
}

.volume-controls button:hover {
    opacity: 0.9;
}

.volume-controls input[type="range"] {
    flex: 1;
}

.player-note {
    margin: 8px 0 0;
    font-size: 11px;
    opacity: 0.85;
}

.now-info {
    font-size: 12px;
    color: #e5e7eb;
    line-height: 1.6;
}

/* ASIDE : GRILLE, YOUTUBE, A PROPOS */

.card {
    background: rgba(15,23,42,0.95);
    border-radius: 14px;
    padding: 12px 12px 14px;
    border: 1px solid #1f2937;
    box-shadow: 0 18px 40px rgba(0,0,0,0.6);
    margin-bottom: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtext {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #1f2937;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    color: #9ca3af;
}

.schedule-program {
    text-align: right;
}

.tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(34,197,94,0.1);
    color: #bbf7d0;
    margin-left: 4px;
}

.about-text {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.6;
}

/* YOUTUBE */

.youtube-card {
    margin-top: 10px;
}

.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1f2937;
    background: #000;
}

.youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* FOOTER */

footer {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    padding: 14px 0 18px;
    border-top: 1px solid #111827;
    background: #020617;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .hero-card {
        margin-bottom: 14px;
    }
}

/* Affichage complet du titre en cours */
.now-info {
    white-space: normal;      /* autorise le retour à la ligne */
}

#np-title {
    display: inline;          /* reste dans la phrase */
    white-space: normal;      /* ne force pas sur une seule ligne */
    overflow: visible;        /* ne cache pas le texte */
    text-overflow: clip;      /* pas de "..." automatique */
}


/* =========================
   Boutons ADMIN compacts
   ========================= */

.radio-panel .btn-small{
  padding: 8px 12px !important;
  border-radius: 12px !important;
  gap: 10px !important;
  min-height: 54px;
}

.radio-panel .btn-small .radio-ico{
  width: 38px;
  height: 38px;
  font-size: 16px;
  border-radius: 10px;
}

.radio-panel .btn-small .radio-txt strong{
  font-size: 14px;
  line-height: 1.1;
}

.radio-panel .btn-small .radio-txt small{
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.8;
}

#news-container ul {
  max-height: 260px;
  overflow: auto;
  padding-right: 6px;
}

#news-container a {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== INFOS (RSS) : lisibilité ===== */
#news-card .player-title {
  font-size: 22px !important;
}

#news-container {
  font-size: 20px !important;
  line-height: 1.6 !important;
  color: #fff !important;
}

/* liens */
#news-container a,
#news-container a:visited {
  color: #fff !important;
  text-decoration: underline;
}

/* option: items un peu espacés si tu as des <div> ou <p> injectés */
#news-container > * {
  margin-bottom: 10px;
}

