:root {
  --bg: #100c08;

  --wood-dark: #28170e;
  --wood: #432819;

  --panel: #17120e;
  --panel-soft: #211a13;

  --paper: #dac99f;
  --paper-dark: #bca97d;

  --cream: #e7d8b5;
  --cream-dark: #b7a789;

  --amber: #dd9837;
  --amber-light: #f0b65e;

  --red: #e05242;

  --line: rgba(231, 216, 181, .18);

  --player-height: clamp(128px, 18dvh, 172px);
  --header-height: clamp(76px, 9.5dvh, 100px);
}


/* ==========================================================
   RESET
   ========================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;

  margin: 0;

  overflow: hidden;
}

body {
  color: var(--cream);

  background:
    repeating-linear-gradient(
      0deg,
      #100c08 0,
      #100c08 2px,
      #140f0a 2px,
      #140f0a 4px
    );

  font-family:
    Georgia,
    "Times New Roman",
    serif;
}

button,
input {
  font: inherit;
}


/* ==========================================================
   GRAIN
   ========================================================== */

.grain {
  position: fixed;

  inset: 0;

  z-index: 9999;

  pointer-events: none;

  opacity: .045;

  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.045) 0,
      rgba(255,255,255,.045) 1px,
      transparent 1px,
      transparent 3px
    );
}


/* ==========================================================
   APP LAYOUT
   ========================================================== */

.app-shell {
  width: 100vw;
  height: 100dvh;

  display: grid;

  grid-template-rows:
    var(--header-height)
    minmax(0, 1fr)
    var(--player-height);

  overflow: hidden;
}


/* ==========================================================
   HEADER
   ========================================================== */

.radio-header {
  min-width: 0;

  padding:
    0
    clamp(20px, 3vw, 52px);

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom:
    3px solid #090604;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.015) 0,
      rgba(255,255,255,.015) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(
      90deg,
      #2d1a10,
      #4b2c1a,
      #28170e
    );
}


.header-brand {
  min-width: 0;

  display: flex;

  align-items: center;

  gap:
    clamp(12px, 1.3vw, 20px);
}


.brand-mark {
  width:
    clamp(54px, 4.2vw, 74px);

  height:
    clamp(54px, 4.2vw, 74px);

  flex:
    0 0 auto;

  display: grid;

  place-items: center;

  border:
    1px solid #9f7951;

  background:
    #15100c;

  color:
    var(--amber-light);

  font-size:
    clamp(21px, 1.55vw, 29px);

  font-weight:
    bold;
}


.header-brand strong {
  display: block;

  max-width:
    65vw;

  overflow: hidden;

  color:
    #f1dfbc;

  font-size:
    clamp(30px, 2.5vw, 46px);

  line-height:
    .92;

  white-space:
    nowrap;

  text-overflow:
    ellipsis;
}


.header-brand small {
  display: block;

  margin-top:
    7px;

  color:
    #a08e72;

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(10px, .72vw, 13px);
}


.header-actions {
  display: flex;

  align-items: center;

  gap:
    clamp(12px, 1.5vw, 22px);
}


.live-status {
  display: flex;

  align-items: center;

  gap:
    8px;

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(10px, .78vw, 14px);
}


.live-dot {
  width:
    10px;

  height:
    10px;

  border-radius:
    50%;

  background:
    var(--red);

  box-shadow:
    0 0 10px rgba(224,82,66,.9);
}


.live-status strong {
  color:
    #ff725f;

  letter-spacing:
    1px;
}


.lang {
  width:
    clamp(44px, 3.4vw, 58px);

  height:
    clamp(35px, 4vh, 44px);

  border:
    1px solid #88765d;

  background:
    #17120e;

  color:
    var(--cream);

  cursor:
    pointer;
}


/* ==========================================================
   MAIN CONTENT
   ========================================================== */

.content-area {
  min-height: 0;

  padding:
    clamp(12px, 1.35vw, 22px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.7fr)
    minmax(340px, .78fr);

  gap:
    clamp(12px, 1.4vw, 22px);

  overflow: hidden;
}


/* ==========================================================
   LEFT INFORMATION PANEL
   ========================================================== */

.information-panel {
  min-height: 0;

  border:
    1px solid #6f604b;

  background:
    linear-gradient(
      180deg,
      #201812,
      #17110d
    );

  box-shadow:
    inset 0 0 0 1px #080604;

  overflow: hidden;
}


.information-scroll {
  height: 100%;

  padding:
    clamp(20px, 2.1vw, 34px);

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width:
    thin;

  scrollbar-color:
    #8e6332
    #18120e;
}


.information-scroll::-webkit-scrollbar {
  width: 8px;
}


.information-scroll::-webkit-scrollbar-track {
  background:
    #18120e;
}


.information-scroll::-webkit-scrollbar-thumb {
  background:
    #8e6332;
}


.info-section {
  max-width:
    1120px;

  margin:
    0 auto;
}


/* ==========================================================
   SECTION HEADINGS
   ========================================================== */

.section-heading {
  display: flex;

  align-items: baseline;

  gap:
    12px;

  margin-bottom:
    clamp(15px, 1.5vw, 23px);

  padding-bottom:
    10px;

  border-bottom:
    1px solid #5a4d3c;
}


.section-number {
  color:
    var(--amber);

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(10px, .78vw, 13px);
}


.section-heading h2 {
  margin:
    0;

  color:
    var(--amber-light);

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(18px, 1.35vw, 25px);

  letter-spacing:
    2px;
}


.section-heading small {
  display:
    block;

  margin-top:
    3px;

  color:
    #817460;

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(9px, .58vw, 11px);
}


/* ==========================================================
   SONG INFORMATION
   ========================================================== */

.song-info-layout {
  display: grid;

  grid-template-columns:
    clamp(165px, 17vw, 260px)
    minmax(0, 1fr);

  gap:
    clamp(20px, 2.2vw, 36px);

  align-items:
    start;
}


.info-cover {
  width:
    100%;

  aspect-ratio:
    1;

  object-fit:
    cover;

  border:
    7px solid #0b0806;

  outline:
    1px solid #71624e;

  box-shadow:
    8px 8px 0 rgba(0,0,0,.25);
}


.song-research h3,
.artist-research h3 {
  margin:
    0 0 12px;

  color:
    #ebdab6;

  font-size:
    clamp(25px, 2.1vw, 38px);

  line-height:
    1.05;
}


.research-text {
  margin:
    0;

  color:
    #cfc2a8;

  font-size:
    clamp(16px, 1.12vw, 20px);

  line-height:
    1.62;
}


/* ==========================================================
   DIVIDER
   ========================================================== */

.paper-divider {
  height:
    1px;

  margin:
    clamp(26px, 3vw, 48px)
    0;

  background:
    #5a4c39;
}


/* ==========================================================
   ARTIST INFORMATION
   ========================================================== */

.artist-info-layout {
  display: grid;

  grid-template-columns:
    clamp(180px, 18vw, 280px)
    minmax(0, 1fr);

  gap:
    clamp(20px, 2.2vw, 36px);

  align-items:
    start;
}


.artist-photo img {
  width:
    100%;

  max-height:
    340px;

  object-fit:
    cover;

  border:
    7px solid #d8c7a1;

  box-shadow:
    7px 7px 0 rgba(0,0,0,.26);

  filter:
    sepia(.12)
    saturate(.85);
}


/* ==========================================================
   CREDITS
   ========================================================== */

.credits {
  margin-top:
    22px;

  display:
    grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    9px
    24px;
}


.credit {
  padding:
    7px 0;

  display:
    grid;

  grid-template-columns:
    120px
    minmax(0, 1fr);

  gap:
    10px;

  border-bottom:
    1px dotted #5a4d3b;
}


.credit span {
  color:
    #857761;

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(10px, .68vw, 12px);
}


.credit strong {
  color:
    #d8c9aa;

  font-size:
    clamp(12px, .84vw, 15px);
}


/* ==========================================================
   SOURCES
   ========================================================== */

.sources {
  margin-top:
    18px;

  padding-top:
    12px;

  border-top:
    1px solid #4e4233;
}


.sources:empty {
  display:
    none;
}


.sources-label {
  display:
    block;

  margin-bottom:
    8px;

  color:
    #8c7d65;

  font-family:
    "Courier New",
    monospace;

  font-size:
    10px;

  letter-spacing:
    1px;

  text-transform:
    uppercase;
}


.source-list {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    7px;
}


.source-link {
  max-width:
    100%;

  padding:
    5px 8px;

  overflow:
    hidden;

  border:
    1px solid #5d4f3c;

  background:
    #15100c;

  color:
    #d6b77d;

  font-family:
    "Courier New",
    monospace;

  font-size:
    10px;

  text-decoration:
    none;

  white-space:
    nowrap;

  text-overflow:
    ellipsis;
}


.source-link:hover {
  color:
    #ffd28d;

  border-color:
    #9b7342;
}


/* ==========================================================
   RECENT PANEL
   ========================================================== */

.recent-panel {
  min-height:
    0;

  display:
    grid;

  grid-template-rows:
    auto
    minmax(0, 1fr);

  border:
    1px solid #7d6a4f;

  color:
    #211b13;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 27px,
      rgba(50,40,25,.07) 28px
    ),
    linear-gradient(
      90deg,
      #d4c39a,
      #e4d5b2
    );

  overflow:
    hidden;
}


.recent-header {
  padding:
    clamp(16px, 1.6vw, 24px);

  display:
    flex;

  align-items:
    flex-end;

  justify-content:
    space-between;

  gap:
    14px;

  border-bottom:
    3px double #665941;
}


.recent-header > div {
  display:
    flex;

  align-items:
    baseline;

  gap:
    9px;
}


.recent-header h2 {
  margin:
    0;

  font-size:
    clamp(24px, 1.8vw, 32px);
}


.recent-header small {
  color:
    #786c55;

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(8px, .55vw, 10px);

  text-align:
    right;
}


/* ==========================================================
   RECENT SCROLL
   ========================================================== */

.recent-scroll {
  min-height:
    0;

  padding:
    9px;

  overflow-y:
    auto;

  overflow-x:
    hidden;

  scrollbar-width:
    thin;

  scrollbar-color:
    #8d6b3d
    #c7b589;
}


.recent-scroll::-webkit-scrollbar {
  width:
    9px;
}


.recent-scroll::-webkit-scrollbar-track {
  background:
    #c7b589;
}


.recent-scroll::-webkit-scrollbar-thumb {
  background:
    #8d6b3d;
}


/* ==========================================================
   RECENT TRACK ITEM
   ========================================================== */

.recent-item {
  min-height:
    clamp(100px, 10.5vh, 124px);

  padding:
    10px;

  display:
    grid;

  grid-template-columns:
    clamp(78px, 6.4vw, 100px)
    minmax(0, 1fr);

  grid-template-rows:
    auto
    auto
    auto;

  column-gap:
    14px;

  align-content:
    center;

  border-bottom:
    1px solid rgba(48,39,28,.25);
}


.recent-item img {
  width:
    clamp(78px, 6.4vw, 100px);

  height:
    clamp(78px, 6.4vw, 100px);

  grid-row:
    1 / span 3;

  object-fit:
    cover;

  border:
    1px solid #594c38;

  background:
    #20180e;
}


.recent-item .r-title {
  margin:
    3px 0 0;

  color:
    #21190f;

  font-size:
    clamp(16px, 1.1vw, 20px);

  font-weight:
    bold;

  line-height:
    1.15;

  white-space:
    normal;

  overflow-wrap:
    anywhere;
}


.recent-item .r-artist {
  margin:
    5px 0 0;

  color:
    #71654f;

  font-size:
    clamp(13px, .86vw, 16px);

  line-height:
    1.2;

  white-space:
    normal;

  overflow-wrap:
    anywhere;
}


.recent-item .r-meta {
  margin:
    5px 0 0;

  color:
    #8a7a5f;

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(9px, .63vw, 11px);

  line-height:
    1.2;
}


/* ==========================================================
   BOTTOM PLAYER
   ========================================================== */

.player-bar {
  min-height:
    0;

  padding:
    clamp(11px, 1vw, 17px)
    clamp(18px, 2.6vw, 45px);

  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(390px, .78fr);

  gap:
    clamp(20px, 3vw, 55px);

  align-items:
    center;

  border-top:
    3px solid #090604;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.015) 0,
      rgba(255,255,255,.015) 2px,
      transparent 2px,
      transparent 6px
    ),
    linear-gradient(
      90deg,
      #3e2517,
      #24160f
    );

  box-shadow:
    0 -10px 35px rgba(0,0,0,.34);
}


/* ==========================================================
   PLAYER TRACK DETAILS
   ========================================================== */

.player-track {
  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    clamp(84px, 7vw, 118px)
    minmax(0, 1fr);

  gap:
    clamp(14px, 1.4vw, 23px);

  align-items:
    center;
}


.player-cover {
  width:
    clamp(84px, 7vw, 118px);

  height:
    clamp(84px, 7vw, 118px);

  object-fit:
    cover;

  border:
    4px solid #100b07;

  outline:
    1px solid #847159;
}


.playing-label {
  display:
    block;

  margin-bottom:
    3px;

  color:
    var(--amber);

  font-family:
    "Courier New",
    monospace;

  font-size:
    clamp(8px, .58vw, 10px);

  letter-spacing:
    2px;
}


.player-meta {
  min-width:
    0;
}


.player-meta h1 {
  margin:
    0;

  max-width:
    100%;

  overflow:
    hidden;

  color:
    #eadbbd;

  font-size:
    clamp(24px, 2.05vw, 35px);

  line-height:
    1.02;

  white-space:
    nowrap;

  text-overflow:
    ellipsis;
}


.player-meta h2 {
  margin:
    5px 0 1px;

  max-width:
    100%;

  overflow:
    hidden;

  color:
    var(--amber-light);

  font-size:
    clamp(16px, 1.15vw, 20px);

  font-weight:
    normal;

  white-space:
    nowrap;

  text-overflow:
    ellipsis;
}


.player-meta p {
  margin:
    4px 0 0;

  color:
    #9f917a;

  font-size:
    clamp(11px, .76vw, 14px);
}


/* ==========================================================
   CHIPS
   ========================================================== */

.chips {
  margin-top:
    6px;

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    5px;
}


.chip {
  padding:
    3px 6px;

  border:
    1px solid #6a5842;

  color:
    #b9a98d;

  font-family:
    "Courier New",
    monospace;

  font-size:
    8px;
}


/* ==========================================================
   PLAYER CONTROLS
   ========================================================== */

.player-controls {
  min-width:
    0;
}


.progress-row {
  display:
    grid;

  grid-template-columns:
    42px
    minmax(0, 1fr)
    42px;

  gap:
    9px;

  align-items:
    center;

  color:
    #8e816c;

  font-family:
    "Courier New",
    monospace;

  font-size:
    10px;
}


.progress {
  height:
    4px;

  overflow:
    hidden;

  background:
    #5a4935;
}


.progress span {
  display:
    block;

  width:
    0;

  height:
    100%;

  background:
    var(--amber);

  transition:
    width .35s linear;
}


.controls-row {
  margin-top:
    13px;

  display:
    flex;

  align-items:
    center;

  gap:
    16px;
}


.play-btn {
  width:
    54px;

  height:
    54px;

  flex:
    0 0 auto;

  display:
    grid;

  place-items:
    center;

  border:
    2px solid #0a0705;

  background:
    linear-gradient(
      #dda34c,
      #986020
    );

  color:
    #16100a;

  cursor:
    pointer;

  font-size:
    18px;
}


.play-btn:hover {
  background:
    linear-gradient(
      #efb763,
      #aa6f28
    );
}


.volume-wrap {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  color:
    #a3957d;

  font-family:
    "Courier New",
    monospace;

  font-size:
    10px;
}


.volume-wrap input {
  width:
    clamp(95px, 9vw, 155px);

  accent-color:
    var(--amber);
}


.status {
  min-width:
    0;

  overflow:
    hidden;

  color:
    #8d806b;

  font-size:
    clamp(10px, .68vw, 12px);

  white-space:
    nowrap;

  text-overflow:
    ellipsis;
}


/* ==========================================================
   SHORT DESKTOPS / LAPTOPS
   ========================================================== */

@media (min-width: 761px) and (max-height: 780px) {

  :root {
    --player-height:
      128px;

    --header-height:
      76px;
  }


  .content-area {
    padding:
      9px;

    gap:
      9px;
  }


  .information-scroll {
    padding:
      16px;
  }


  .song-info-layout {
    grid-template-columns:
      140px
      minmax(0, 1fr);

    gap:
      18px;
  }


  .artist-info-layout {
    grid-template-columns:
      150px
      minmax(0, 1fr);

    gap:
      18px;
  }


  .research-text {
    font-size:
      14px;

    line-height:
      1.48;
  }


  .paper-divider {
    margin:
      20px 0;
  }


  .recent-item {
    min-height:
      88px;

    grid-template-columns:
      66px
      minmax(0, 1fr);
  }


  .recent-item img {
    width:
      66px;

    height:
      66px;
  }


  .player-cover {
    width:
      88px;

    height:
      88px;
  }


  .player-meta h1 {
    font-size:
      clamp(21px, 1.8vw, 30px);
  }

}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) and (min-width: 761px) {

  .content-area {
    grid-template-columns:
      minmax(0, 1.45fr)
      minmax(300px, .85fr);
  }


  .song-info-layout {
    grid-template-columns:
      150px
      minmax(0, 1fr);
  }


  .artist-info-layout {
    grid-template-columns:
      160px
      minmax(0, 1fr);
  }


  .credits {
    grid-template-columns:
      1fr;
  }


  .player-bar {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(310px, .75fr);
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

  :root {
    --header-height:
      64px;

    --player-height:
      154px;
  }


  .radio-header {
    padding:
      0
      12px;
  }


  .brand-mark {
    width:
      41px;

    height:
      41px;

    font-size:
      15px;
  }


  .header-brand {
    gap:
      9px;
  }


  .header-brand strong {
    max-width:
      48vw;

    font-size:
      clamp(20px, 6vw, 26px);
  }


  .header-brand small {
    display:
      none;
  }


  .header-actions {
    gap:
      8px;
  }


  .live-status {
    font-size:
      10px;
  }


  .live-status span:last-child {
    display:
      none;
  }


  .lang {
    width:
      39px;

    height:
      34px;
  }


  /* ========================================================
     MOBILE CONTENT
     ======================================================== */

  .content-area {
    padding:
      7px;

    grid-template-columns:
      1fr;

    grid-template-rows:
      minmax(0, 1.15fr)
      minmax(0, .85fr);

    gap:
      7px;
  }


  .information-scroll {
    padding:
      13px;
  }


  .section-heading {
    margin-bottom:
      12px;

    padding-bottom:
      7px;
  }


  .section-heading h2 {
    font-size:
      16px;
  }


  .section-heading small {
    font-size:
      8px;
  }


  .section-number {
    font-size:
      9px;
  }


  .song-info-layout,
  .artist-info-layout {
    grid-template-columns:
      88px
      minmax(0, 1fr);

    gap:
      12px;
  }


  .song-research h3,
  .artist-research h3 {
    font-size:
      20px;

    margin-bottom:
      8px;
  }


  .research-text {
    font-size:
      14px;

    line-height:
      1.48;
  }


  .artist-photo img {
    max-height:
      145px;

    border-width:
      4px;
  }


  .info-cover {
    border-width:
      4px;
  }


  .credits {
    margin-top:
      13px;

    grid-template-columns:
      1fr;

    gap:
      4px;
  }


  .credit {
    grid-template-columns:
      90px
      minmax(0, 1fr);

    padding:
      4px 0;
  }


  .credit span {
    font-size:
      9px;
  }


  .credit strong {
    font-size:
      11px;
  }


  .sources {
    margin-top:
      12px;

    padding-top:
      9px;
  }


  .source-link {
    font-size:
      9px;
  }


  .paper-divider {
    margin:
      19px 0;
  }


  /* ========================================================
     MOBILE RECENT
     ======================================================== */

  .recent-header {
    padding:
      9px 11px;
  }


  .recent-header h2 {
    font-size:
      19px;
  }


  .recent-header small {
    font-size:
      7px;
  }


  .recent-scroll {
    padding:
      5px;
  }


  .recent-item {
    min-height:
      74px;

    padding:
      7px;

    grid-template-columns:
      56px
      minmax(0, 1fr);

    column-gap:
      10px;
  }


  .recent-item img {
    width:
      56px;

    height:
      56px;
  }


  .recent-item .r-title {
    font-size:
      13px;
  }


  .recent-item .r-artist {
    font-size:
      11px;
  }


  .recent-item .r-meta {
    font-size:
      8px;
  }


  /* ========================================================
     MOBILE PLAYER
     ======================================================== */

  .player-bar {
    padding:
      9px
      12px;

    grid-template-columns:
      1fr;

    grid-template-rows:
      auto
      auto;

    gap:
      8px;
  }


  .player-track {
    grid-template-columns:
      62px
      minmax(0, 1fr);

    gap:
      11px;
  }


  .player-cover {
    width:
      62px;

    height:
      62px;
  }


  .playing-label {
    font-size:
      7px;
  }


  .player-meta h1 {
    font-size:
      18px;
  }


  .player-meta h2 {
    font-size:
      13px;
  }


  .player-meta p {
    font-size:
      10px;
  }


  .chips {
    display:
      none;
  }


  .progress-row {
    grid-template-columns:
      34px
      minmax(0,1fr)
      34px;

    font-size:
      8px;
  }


  .controls-row {
    margin-top:
      6px;

    gap:
      9px;
  }


  .play-btn {
    width:
      39px;

    height:
      39px;

    font-size:
      14px;
  }


  .volume-wrap {
    flex:
      1;
  }


  .volume-wrap input {
    width:
      100%;
  }


  .status {
    display:
      none;
  }

}


/* ==========================================================
   VERY SMALL PHONES
   ========================================================== */

@media (max-width: 430px) {

  :root {
    --header-height:
      58px;

    --player-height:
      146px;
  }


  .brand-mark {
    width:
      36px;

    height:
      36px;
  }


  .header-brand strong {
    font-size:
      18px;
  }


  .live-status strong {
    font-size:
      9px;
  }


  .song-info-layout,
  .artist-info-layout {
    grid-template-columns:
      76px
      minmax(0, 1fr);
  }


  .song-research h3,
  .artist-research h3 {
    font-size:
      17px;
  }


  .research-text {
    font-size:
      13px;
  }


  .recent-item {
    grid-template-columns:
      49px
      minmax(0, 1fr);
  }


  .recent-item img {
    width:
      49px;

    height:
      49px;
  }


  .player-meta h1 {
    font-size:
      16px;
  }


  .player-meta h2 {
    font-size:
      12px;
  }

}