:root{
  --paper:#e8e1d0;
  --white:#fdfbf7;
  --ink:#1c1a17;
  --red:#e2472e;
  --mustard:#d9a72c;
  --grey:#b7ada0;
  --grey-text:#948b7f;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}

body{
  background:var(--white);
  color:var(--ink);
  font-family:'PT Serif', Georgia, serif;
}

.wrap{
  max-width:480px;
  margin:0 auto;
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}

a{color:inherit;}
.mono{font-family:'IBM Plex Mono', monospace;}
.cond{font-family:'Barlow Condensed', sans-serif; font-weight:800; text-transform:uppercase;}

/* dashed rule */
.rule{
  height:8px;
  border-top:2px solid var(--ink);
  background-image:repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 11px);
  background-position:bottom;
  background-size:100% 3px;
  background-repeat:repeat-x;
}

/* ---------- header ---------- */
header{
  background:var(--paper);
  padding:18px 20px;
}
.logo{
  font-size:22px;
  letter-spacing:.5px;
}

/* ---------- player ---------- */
.player-section{
  position:relative;
  padding:20px 20px 22px;
}
.flag{
  position:absolute;
  top:0;
  left:0;
  width:0;
  height:0;
  border-style:solid;
  border-width:26px 26px 0 0;
  border-color:var(--mustard) transparent transparent transparent;
}
.live-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--red);
  animation:pulse 1.8s ease-in-out infinite;
  flex-shrink:0;
}
@keyframes pulse{
  0%,100%{transform:scale(1); opacity:1;}
  50%{transform:scale(1.5); opacity:.55;}
}
@media (prefers-reduced-motion: reduce){.live-dot{animation:none;}}
.live-label{
  font-size:13px;
  font-weight:700;
  letter-spacing:1.5px;
}

/* ---------- lecteur : cadre plat, angles droits ---------- */
.player-frame{
  border:2px solid var(--ink);
  display:flex;
  align-items:stretch;
}

/* pochette : carré net, motif hachures tant qu'il n'y a pas d'image */
.cover-wrap{
  flex-shrink:0;
  width:96px;
  aspect-ratio:1 / 1;
  background:repeating-linear-gradient(
    45deg,
    var(--paper) 0 6px,
    var(--white) 6px 12px
  );
  border-right:2px solid var(--ink);
  overflow:hidden;
}
#radio-art{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}
.cover-wrap.has-art{
  background:none;
}
.cover-wrap.has-art #radio-art{
  display:block;
}

.player-main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
}

.now-playing{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
#radio-artiste{
  font-weight:700;
  text-transform:uppercase;
  font-size:14px;
  letter-spacing:.06em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#radio-artiste:not(:empty)::before{
  content:"● ";
  color:var(--red);
}
#radio-titre{
  font-weight:600;
  font-size:12px;
  color:var(--grey-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.player-controls{
  display:flex;
  align-items:center;
  gap:12px;
}

#radio-playpause{
  flex-shrink:0;
  width:34px;
  height:34px;
  border-radius:50%;
  border:none;
  background:var(--red);
  color:var(--white);
  font-size:13px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.15s ease;
}
#radio-playpause:hover{transform:scale(1.08);}
#radio-playpause:focus-visible{outline:2px solid var(--ink); outline-offset:2px;}

#radio-volume{
  flex:1;
  accent-color:var(--red);
  cursor:pointer;
}

/* ---------- tagline ---------- */
.tagline{
  margin:24px 20px 0;
  font-size:16px;
  font-style:italic;
  line-height:1.7;
  color:#4a453d;
}
.tagline strong{font-style:normal; color:var(--ink);}

/* ---------- socials ---------- */
.socials{
  margin:26px 20px 0;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.socials a{
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
  text-decoration:none;
  background:var(--grey);
  color:var(--ink);
  padding:9px 14px;
  border-radius:16px;
}
.socials a:active{background:var(--red); color:var(--white);}

/* ---------- footer ---------- */
footer{
  margin-top:auto;
  padding:18px 20px 26px;
  background:var(--paper);
  font-size:11px;
  line-height:2;
  color:#5b554b;
}
footer .legal-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
footer a{text-decoration:none;}
footer a:active{color:var(--red);}
footer .cc{color:var(--grey-text);}

/* ---------- responsive ---------- */
@media (max-width: 360px){
  .cover-wrap{width:76px;}
  .player-main{padding:10px 12px;}
  #radio-playpause{width:30px; height:30px;}
}