@font-face {
  font-family: 'PortoSync';
  src: url('yovo.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

/* ===== WHITE GLASS THEME ===== */

:root {
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-hover: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.38);
  --glass-border-hover: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
  --glass-blur: 24px;
  --text-main: #fff;
  --text-secondary: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
  font-family: 'PortoSync', sans-serif;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== BACKGROUND — PĂSTRAT ===== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("newbgmarch.png") no-repeat center center / cover;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  body::before {
    background: url("newbgmarch.png") no-repeat center center / cover;
  }
}

/* ===== RADIO PLAYER ===== */

.player {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  border-radius: 36px;

  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);

  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  color: var(--text-main);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.player:hover {
  border-color: var(--glass-border-hover);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ===== RADIO LOGO ===== */

#radioLogo {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

/* ===== LIVE INDICATOR ===== */

.live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 800;
  color: #fff;

  background: rgba(255, 255, 255, 0.13);
  border: 1px solid var(--glass-border);

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.live span {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== TRACK INFORMATION ===== */

.track {
  width: 100%;
  text-align: center;
  color: #fff;
  overflow-wrap: anywhere;
}

#title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

#artist {
  margin-top: 5px;
  font-size: 0.9rem;
  opacity: 1;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 1.4rem;
  color: #fff;

  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

button:hover {
  color: #fff;
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: scale(1.07);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

button:active {
  transform: scale(0.92);
}

button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ===== RANGE INPUTS ===== */

input[type="range"] {
  width: 90px;
  accent-color: #fff;
  cursor: pointer;
}

#volume {
  width: 120px;
  max-width: 100%;
}

/* ===== RADIO SWITCH ===== */

.radio-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 160px;
  overflow-y: auto;
  width: 100%;
  padding: 3px;
}

.radio-switch button {
  width: auto;
  height: auto;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.radio-switch button:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ===== FORMS ===== */

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: #fff;
}

input[type="file"] {
  max-width: 100%;
  color: #fff;
  font-size: 0.85rem;
}

input[type="file"]::file-selector-button {
  padding: 8px 12px;
  margin-right: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: 'PortoSync', sans-serif;
  cursor: pointer;
  transition: background 0.25s ease;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== SCROLLBAR ===== */

.radio-switch::-webkit-scrollbar {
  width: 6px;
}

.radio-switch::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.radio-switch::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 10px;
}

.radio-switch::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

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

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .player {
    padding: 24px 18px;
    gap: 16px;
    border-radius: 30px;
  }

  #radioLogo {
    width: 125px;
    border-radius: 24px;
  }

  .controls {
    gap: 12px;
  }

  button {
    width: 52px;
    height: 52px;
  }
}

/* ===== GLASS FALLBACK ===== */

@supports not ((backdrop-filter: blur(1px)) or
               (-webkit-backdrop-filter: blur(1px))) {
  .player {
    background: rgba(25, 25, 35, 0.78);
  }

  .live,
  button,
  .radio-switch button {
    background: rgba(35, 35, 45, 0.85);
  }
}