.box {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.box .group {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.box .rectangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
}

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.box .img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.box .jaune-radio-logo {
  width: auto;
  height: 40px;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #001657;
  display: flex;
  align-items: center;
  padding: 0 32px 0 12px;
  z-index: 5;
  gap: 32px;
}

.top-bar .nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  position: relative;
  flex: 0 0 auto;
}

.desktop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.08px;
  line-height: 23.2px;
  white-space: nowrap;
  transition: color 0.2s ease;
  cursor: pointer;
}

.desktop-nav-link:hover {
  color: #ffffff;
}

.desktop-nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.desktop-nav-link:hover .desktop-nav-icon {
  opacity: 1;
}

.burger {
  position: relative;
  width: 20px;
  height: 16px;
  background: transparent;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .burger {
    display: block;
  }
}

@media (min-width: 769px) {
  .burger {
    display: none;
  }
  .nav-menu-overlay {
    display: none;
  }
}

.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 2.5px;
  width: 100%;
  background: #ffffff;
  border-radius: 0;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 4px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 14px;
  left: 4px;
}

.nav-menu-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  opacity: 1;
  pointer-events: none;
  overflow: hidden;
  z-index: 7;
}

.nav-menu-overlay.open {
  pointer-events: auto;
  animation: menuUnroll 0.3s ease forwards;
}

.nav-menu-overlay.closing {
  pointer-events: none;
  animation: menuRoll 0.3s ease forwards;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #001657;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes menuUnroll {
  0% {
    max-height: 0;
  }
  100% {
    max-height: 300px;
  }
}

@keyframes menuRoll {
  0% {
    max-height: 300px;
  }
  100% {
    max-height: 0;
  }
}

.plus-button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
}

.plus {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.plus::before,
.plus::after {
  content: '';
  position: absolute;
  background: #ffffff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.plus::before {
  width: 18px;
  height: 2px;
}

.plus::after {
  width: 2px;
  height: 18px;
}


.box .div {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 351px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1;
}

.box .rectangle-2 {
  display: none;
}

.box .text-wrapper {
  position: absolute;
  bottom: 61px;
  left: 50%;
  transform: translateX(-50%);
  width: 305px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
  font-family: "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 25px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  z-index: 2;
}

.box .text-wrapper-content {
  display: inline-block;
  white-space: nowrap;
}

.box .text-wrapper-content.scrolling {
  animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(calc(-100% + 305px));
  }
  50% {
    transform: translateX(calc(-100% + 305px));
  }
  75% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

.box .text-wrapper-2 {
  position: absolute;
  bottom: 41px;
  left: 50%;
  transform: translateX(-50%);
  width: 305px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
  font-family: "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  z-index: 2;
}

.box .text-wrapper-2-content {
  display: inline-block;
  white-space: nowrap;
}

.box .text-wrapper-2-content.scrolling {
  animation: scroll-text-2 8s linear infinite;
}

@keyframes scroll-text-2 {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(calc(-100% + 305px));
  }
  50% {
    transform: translateX(calc(-100% + 305px));
  }
  75% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}


.suggestion-input-wrapper {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translate(-50%, -10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 6;
}

.suggestion-input-wrapper.open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.suggestion-form {
  --timing: 0.3s;
  --width-of-input: min(80vw, 320px);
  --height-of-input: 40px;
  --border-height: 2px;
  --input-bg: #1a1a1a;
  --border-color: #ffffff;
  --border-radius: 30px;
  --after-border-radius: 1px;
  position: relative;
  width: var(--width-of-input);
  max-width: 320px;
  height: var(--height-of-input);
  display: flex;
  align-items: center;
  padding-inline: 0.8em;
  border-radius: var(--border-radius);
  transition: border-radius 0.5s ease;
  background: var(--input-bg);
}

.suggestion-form button {
  border: none;
  background: none;
  color: #8b8ba7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-form::before {
  content: "";
  position: absolute;
  background: var(--border-color);
  transform: scaleX(0);
  transform-origin: center;
  width: 100%;
  height: var(--border-height);
  left: 0;
  bottom: 0;
  border-radius: 1px;
  transition: transform var(--timing) ease;
}

.suggestion-form:focus-within {
  border-radius: var(--after-border-radius);
}

.suggestion-form:focus-within::before {
  transform: scale(1);
}

.suggestion-form svg {
  width: 17px;
  margin-top: 3px;
}

.suggestion-input {
  font-size: 0.9rem;
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding-inline: 0.5em;
  padding-block: 0.7em;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: "SF Pro Display", "Arial", sans-serif;
}

.suggestion-input::placeholder {
  color: #8b8ba7;
}

.suggestion-form .reset {
  border: none;
  background: none;
  opacity: 0;
  visibility: hidden;
  color: #8b8ba7;
  cursor: pointer;
}

.suggestion-input:not(:placeholder-shown) ~ .reset {
  opacity: 1;
  visibility: visible;
}

.suggestion-results {
  margin-top: 12px;
  width: min(80vw, 320px);
  max-width: 320px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "SF Pro Display", "Arial", sans-serif;
  color: #ffffff;
}

.suggestion-result {
  background-color: #1a1a1a;
  border-radius: 4px;
  padding: 12px 14px;
  cursor: pointer;
  transition: backdrop-filter 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none;
  position: relative;
  backdrop-filter: blur(0px);
}

.suggestion-result::before {
  content: "";
  position: absolute;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: 0;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.suggestion-result:hover {
  backdrop-filter: blur(10px);
  background-color: rgba(26, 26, 26, 0.7);
}

.suggestion-result:hover::before {
  transform: scaleX(1);
}

.suggestion-result:focus-visible {
  outline: none;
  backdrop-filter: blur(10px);
  background-color: rgba(26, 26, 26, 0.7);
}

.suggestion-result:focus-visible::before {
  transform: scaleX(1);
}

.suggestion-result-action {
  align-self: flex-end;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  background: transparent;
  color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  font-family: "SF Pro Display", "Arial", sans-serif;
}

.suggestion-result-action:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.suggestion-result-action:active {
  background-color: rgba(255, 255, 255, 0.15);
}

.suggestion-result-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
}

.suggestion-result-title-content {
  display: inline-block;
  white-space: nowrap;
}

.suggestion-result-title-content.scrolling {
  animation: scroll-text-generic 8s linear infinite;
}

.suggestion-result-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.suggestion-result-meta span {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.suggestion-result-meta span .scrolling-text {
  display: inline-block;
  white-space: nowrap;
}

.suggestion-result-meta span .scrolling-text.scrolling {
  animation: scroll-text-generic 8s linear infinite;
}

.suggestion-message {
  font-size: 13px;
  color: #8b8ba7;
  text-align: center;
  padding: 12px 14px;
  font-family: "SF Pro Display", "Arial", sans-serif;
}

.suggestion-toast {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: #d6c6ff;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.suggestion-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.suggestion-toast.error {
  color: #ff8a8a;
}

@keyframes rotateShadow {
  0% {
    box-shadow: -2px -2px 8px 1px #aa00ff, 2px 2px 8px 1px #3700ff;
  }
  25% {
    box-shadow: -2px 2px 8px 1px #aa00ff, 2px -2px 8px 1px #3700ff;
  }
  50% {
    box-shadow: 2px 2px 8px 1px #aa00ff, -2px -2px 8px 1px #3700ff;
  }
  75% {
    box-shadow: 2px -2px 8px 1px #aa00ff, -2px 2px 8px 1px #3700ff;
  }
  100% {
    box-shadow: -2px -2px 8px 1px #aa00ff, 2px 2px 8px 1px #3700ff;
  }
}


.history-panel {
  position: absolute;
  bottom: 25px;
  left: 50%;
  width: 351px;
  padding: 32px 28px 24px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(25px);
  transform: translate(-50%, 40px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.history-panel.open {
  pointer-events: auto;
  animation: historySlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.history-panel.closing {
  pointer-events: none;
  animation: historySlideOut 0.3s ease forwards;
}

.history-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  font-family: "SF Pro Display", "Arial", sans-serif;
  color: #ffffff;
}

.history-header-handle {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.4);
}

.history-header-icon {
  width: 25px;
  height: 25px;
  object-fit: cover;
}

.history-header-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 260px;
  overflow: hidden;
}

.history-item {
  display: grid;
  grid-template-columns: 55px 110px 1fr;
  align-items: center;
  gap: 12px;
  font-family: "SF Pro Display", "Arial", sans-serif;
  font-size: 12px;
  color: #ffffff;
  position: relative;
  padding-bottom: 12px;
}

.history-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.history-item:last-child::after {
  display: none;
}

.history-item.history-empty {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-bottom: 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

.history-item.history-empty::after {
  display: none;
}

.history-time {
  color: rgba(255, 255, 255, 0.8);
}

.about-panel {
  position: absolute;
  bottom: 25px;
  left: 50%;
  width: 351px;
  height: 271px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 40px;
  box-shadow: 0px 4px 4px #00000080;
  backdrop-filter: blur(25px) brightness(100%);
  -webkit-backdrop-filter: blur(25px) brightness(100%);
  transform: translate(-50%, 40px);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.about-panel.open {
  pointer-events: auto;
  animation: historySlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.about-panel.closing {
  pointer-events: none;
  animation: historySlideOut 0.3s ease forwards;
}

.about-panel-header {
  position: absolute;
  top: 20px;
  left: 27px;
  width: 191px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  font-family: "SF Pro-Regular", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
}

.about-panel-header h2 {
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.about-panel-icon {
  width: 12px;
  height: 25px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-panel-divider {
  position: absolute;
  top: 5px;
  left: 158px;
  width: 36px;
  height: 5px;
  background-color: #999999;
  border-radius: 2.5px;
}

.about-panel-content {
  position: absolute;
  top: 57px;
  left: 25px;
  width: 301px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  font-family: "SF Pro-Regular", Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
  line-height: normal;
}

.about-panel-content p {
  margin: 0;
  text-align: left;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.about-panel-social {
  position: absolute;
  top: 171px;
  left: 25px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.about-social-link {
  position: relative;
  width: 75px;
  height: 75px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.about-social-link:hover {
  transform: scale(1.05);
}

.about-social-link:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 30px;
}

.about-social-link:active {
  transform: scale(0.95);
}

.about-social-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 75px;
  height: 75px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 30px;
  box-shadow: 0px 4px 4px #00000080;
  backdrop-filter: blur(25px) brightness(100%);
  -webkit-backdrop-filter: blur(25px) brightness(100%);
}

.about-social-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 48px;
  height: 48px;
  object-fit: cover;
  pointer-events: none;
}

.history-artist,
.history-track {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.history-artist-content,
.history-track-content {
  display: inline-block;
  white-space: nowrap;
}

.history-artist-content.scrolling,
.history-track-content.scrolling {
  animation: scroll-text-generic 8s linear infinite;
}

@keyframes scroll-text-generic {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(var(--scroll-distance, calc(-100% + 100%)));
  }
  50% {
    transform: translateX(var(--scroll-distance, calc(-100% + 100%)));
  }
  75% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}


@keyframes historySlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 50px);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -6px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes historySlideOut {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 40px);
  }
}

.box .header {
  position: static;
}

.box .nav-controls {
  position: static;
}

.box .player-section {
  position: static;
}

.play-pause-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 360px;
  height: 360px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: none;
}

.play-pause-button .img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
}

.play-pause-button:active .img,
.play-pause-button.pressed .img {
  transform: scale(0.9);
}

.play-button.slide-out {
  animation: zoomOut 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.pause-button.slide-out {
  animation: zoomOut 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.play-button.slide-in {
  animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.pause-button.slide-in {
  animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes zoomOut {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

@keyframes zoomIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.box .track-info {
  position: static;
}

.button-press {
  animation: buttonPress 0.15s ease-out forwards;
}

.button-release {
  animation: buttonRelease 0.2s ease-out forwards;
}

@keyframes buttonPress {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.85);
  }
}

@keyframes buttonRelease {
  0% {
    transform: scale(0.85);
  }
  100% {
    transform: scale(1);
  }
}


