@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #080d17;
  --panel: #121d30;
  --line: #2b3a52;
  --muted: #91a0b8;
  --lime: #b7f36b;
  --cyan: #00c2ff;
  --text: #f5f7fb;
  --danger: #ff9da8;
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      ellipse at 70% 0,
      #1a2a43,
      transparent 38%
    ),
    var(--bg);
  color: var(--text);
  font: 15px 'DM Sans', sans-serif;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* HEADER */

header {
  height: 78px;
  padding: 0 max(calc((100vw - 1120px) / 2), 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff12;
  background: #080d17ed;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.brand {
  font: 700 23px 'Space Grotesk', sans-serif;
  color: var(--lime);
  text-decoration: none;
  flex-shrink: 0;
}

.brand span {
  display: block;
  color: #8b9ab2;
  font: 700 8px 'DM Sans', sans-serif;
  letter-spacing: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

nav button {
  background: transparent;
  color: #aab6c9;
  border: 1px solid transparent;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

nav button:hover {
  color: white;
}

nav button.on {
  color: var(--lime);
  border-color: #b7f36b55;
  background: #b7f36b12;
}

/* MAIN */

main {
  max-width: 1120px;
  margin: auto;
  padding: 55px 24px 80px;
}

.hero {
  padding: 10px 0 45px;
}

.hero > small,
section > small,
#admin > small {
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 10px;
}

.hero h1,
#admin h1 {
  font: 700 clamp(46px, 7vw, 76px) / 1.05
    'Space Grotesk', sans-serif;
  letter-spacing: -4px;
  margin: 18px 0;
}

.hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
}

/* PLAYER */

.player {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  padding: 18px;
  margin-top: 35px;
  background: linear-gradient(
    110deg,
    #1a2a40,
    #101a2b
  );
  border: 1px solid #35445c;
  border-radius: 20px;
  box-shadow: 0 18px 45px #00000020;
}

.disc {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    #b7f36b,
    #2d846d
  );
  display: grid;
  place-items: center;
  color: #102019;
  font: 700 20px 'Space Grotesk', sans-serif;
}

.track {
  flex: 1;
  min-width: 0;
}

.track small {
  color: var(--lime);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.track h2 {
  margin: 3px 0;
  font: 700 22px 'Space Grotesk', sans-serif;
  overflow-wrap: anywhere;
}

.track p {
  font-size: 12px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.player button,
form button {
  border: 0;
  background: var(--lime);
  color: #101827;
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.player button:hover,
form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.player button {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  border-radius: 50%;
  font-size: 20px;
  padding: 0;
}

.volume {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #8795ad;
  font-size: 10px;
  margin: 12px 5px;
}

.volume input {
  accent-color: var(--lime);
  width: 100px;
  padding: 0;
}

/* SECTIONS */

.section {
  margin-top: 48px;
}

.section h2,
.lists h2 {
  font: 700 28px 'Space Grotesk', sans-serif;
  margin: 7px 0 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(220px, 1fr)
  );
  gap: 12px;
}

/* RADIO STATIONS */

.station {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  background: #121d30;
  border-radius: 14px;
  padding: 15px;
  color: var(--text);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.station:hover {
  border-color: #61718a;
  transform: translateY(-2px);
}

.station.selected {
  border-color: var(--lime);
  background: #17263a;
  box-shadow: 0 0 0 1px #b7f36b20;
}

/* RADIO LOGO */

.station-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 194, 255, 0.12);
  border: 1px solid #ffffff0a;
}

.station-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: var(--cyan);
}

/* RADIO TEXT */

.station-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.station-info b,
.station-info small {
  display: block;
}

.station-info b {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.station-info small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-play {
  flex: 0 0 auto;
  color: var(--lime);
  font-size: 14px;
}

/* LINKS */

.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.siteLink {
  border: 1px solid var(--line);
  background: #121d30;
  border-radius: 14px;
  padding: 15px;
  color: #fff;
  text-decoration: none;
  min-width: 180px;
  transition: 0.2s ease;
}

.siteLink:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* SEO CONTENT */

.seo-content {
  color: #b7c3d6;
  line-height: 1.8;
}

.seo-content h2 {
  color: var(--text);
  font-size: 23px;
  margin-top: 30px;
}

.seo-content p {
  max-width: 850px;
}

.seo-content strong {
  color: var(--lime);
}

/* HIDDEN */

.hidden {
  display: none !important;
}

/* ADMIN PANELS */

.panel {
  background: linear-gradient(
    145deg,
    #17253a,
    #101827
  );
  border: 1px solid #33445e;
  border-radius: 18px;
  padding: 23px;
  margin: 20px 0;
}

.panel h2 {
  font: 700 20px 'Space Grotesk', sans-serif;
  margin: 0 0 18px;
}

/* FORMS */

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #9eacc2;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #394962;
  border-radius: 9px;
  background: #0a1321;
  color: white;
  font: 14px 'DM Sans', sans-serif;
  transition: border-color 0.2s ease;
}

input:hover,
select:hover {
  border-color: #61718a;
}

input:focus,
select:focus {
  border-color: var(--lime);
  outline: none;
}

input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
}

input[type="range"]:focus {
  outline: none;
}

/* LOGIN */

#login {
  max-width: 420px;
  margin: 35px auto;
}

#login h2 {
  text-align: center;
}

/* ADMIN LAYOUT */

.forms,
.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.lists {
  margin-top: 35px;
}

.lists > div {
  min-width: 0;
}

/* ADMIN ENTRIES */

.entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  background: #121d30;
  border-radius: 14px;
  padding: 15px;
  margin: 8px 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.entry > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry button {
  background: transparent;
  border: 1px solid #52617a;
  color: #fff;
  border-radius: 7px;
  padding: 6px 9px;
  margin-left: 4px;
  cursor: pointer;
  transition: 0.2s ease;
}

.entry button:hover {
  border-color: var(--lime);
}

.entry button.del {
  color: var(--danger);
  border-color: #ff9da833;
}

.entry button.del:hover {
  background: #ff9da812;
}

/* LOGOUT */

.secondary {
  background: transparent;
  color: #c7d1e1;
  border: 1px solid #53627a;
  padding: 10px 16px;
  border-radius: 9px;
  margin-top: 20px;
  cursor: pointer;
  transition: 0.2s ease;
}

.secondary:hover {
  border-color: var(--lime);
  color: white;
}

/* FOOTER */

footer {
  border-top: 1px solid #ffffff12;
  text-align: center;
  padding: 25px;
  color: #73819a;
  font-size: 10px;
  letter-spacing: 1px;
}

/* TOAST */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 18px;
  background: #263650;
  border: 1px solid #61718a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 90vw;
  z-index: 999;
  box-shadow: 0 12px 40px #00000055;
}

.toast span {
  overflow-wrap: anywhere;
}

.toast button {
  background: none;
  border: 0;
  color: white;
  font-size: 20px;
  cursor: pointer;
  flex: 0 0 auto;
}

/* RESPONSIVE */

@media (max-width: 700px) {
  header {
    padding: 0 14px;
    height: 70px;
  }

  main {
    padding: 35px 16px;
  }

  .hero h1,
  #admin h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .forms,
  .lists {
    grid-template-columns: 1fr;
  }

  .player {
    gap: 12px;
    padding: 13px;
  }

  .disc {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }

  .track h2 {
    font-size: 18px;
  }

  .player button {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .station {
    padding: 12px;
  }

  .station-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .entry {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry > span:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .entry button {
    margin-left: 0;
  }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
  .brand {
    font-size: 20px;
  }

  nav button {
    padding: 9px 10px;
    font-size: 12px;
  }

  .hero h1,
  #admin h1 {
    font-size: 40px;
    letter-spacing: -1.5px;
  }

  .player {
    gap: 9px;
  }

  .disc {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 16px;
  }

  .track h2 {
    font-size: 16px;
  }

  .track p {
    font-size: 11px;
  }

  .player button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 16px;
  }

  .volume input {
    width: 85px;
  }
  
  /* HEADER FIX — bara Asculta / Autentificare */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

/* Spațiu pentru headerul fix */
main {
  padding-top: 110px;
  padding-bottom: 180px;
}

/* PLAYER FIX — rămâne vizibil jos */
.player {
  position: fixed !important;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  margin: 0;
  z-index: 999;
  box-shadow: 0 18px 45px #000000aa;
}

/* Player pe telefon */
@media (max-width: 700px) {
  main {
    padding-top: 95px;
    padding-bottom: 170px;
  }

  .player {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
  }
}
  
}
