/* ==========================================================================
   #BASE RESET & GLOBAL STYLES
   ==========================================================================\ */
:root {
  --primary-color: #0073ff;
  --text-color: #f4f4f4;
  --bg-overlay: #0073ff07;
  --shadow-color: rgba(0, 0, 0, 0.7);
  --border-scale: 1.01;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

@font-face {
  font-family: 'Bruno Ace SC';
  src: url('/assets/fonts/BrunoAceSC-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fragment Mono';
  src: url('/assets/fonts/FragmentMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Radio Canada Big';
  src: url('/assets/fonts/RadioCanadaBig-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@supports (-webkit-touch-callout: none) {
  body {
    height: -webkit-fill-available;
  }
}

button, a {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-image: url('/assets/images/content/background.jpg');
  background-size: cover;
  background-position: center;
  background-color: #141215;
  animation: fadeIn 0.5s ease-in;
  font-family: 'Radio Canada Big', Arial, sans-serif;
}

.container {
  width: 90%;
  max-width: 500px;
  text-align: center;
  background: var(--bg-overlay);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 30px var(--shadow-color);
  border: 1px solid #f9f9f985;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(5px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rotateBorder {
  0%, 100% {
    transform: rotate(0deg) scale(var(--border-scale));
    background-position: 0% 50%;
  }
  100% {
    transform: rotate(360deg) scale(var(--border-scale));
    background-position: 0% 50%;
  }
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

h1, h2 {
  font-family: 'Bruno Ace SC', sans-serif;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: #f9f9f9;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
}

h1 {
  font-size: clamp(1.5rem, 6vw, 1.8rem);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

p {
  font-family: 'Fragment Mono', monospace;
  font-size: clamp(12px, 3.5vw, 16px);
  letter-spacing: -0.5px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

.rotating-border {
  will-change: transform;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, #2d3436, #E4EFF1, #F2F7F8);
  background-size: 200% 200%;
  z-index: 1;
  box-shadow: 0 0 15px rgb(0, 0, 0, 1);
  animation: rotateBorder 4s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.links {
  font-family: 'Radio Canada Big', sans-serif;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  background: #F9F9F9;
  color: #141215;
  padding: 16px;
  min-height: 50px;
  font-size: 18px;
  margin: 12px 0;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--shadow-color);
  background: var(--primary-color);
}

.link:active {
  transform: scale(0.98);
  background: var(--primary-color);
}

.latest-song-release {
  border-radius: 12px;
  width: 100%;
  margin: 6px 0;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-overlay);
  padding: 30px;
  box-shadow: 0 4px 30px var(--shadow-color);
  border: 1px solid #f2f7f86b;
  backdrop-filter: blur(5.5px);
  -webkit-backdrop-filter: blur(5px);
}

.latest-song-release h2 {
  font-family: 'Radio Canada Big', sans-serif;
  font-size: clamp(12px, 2.5vw, 16.75px);
  color: #f9f9f9;
  margin-bottom: 13px;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  font-weight: 400;
  gap: 0.6em;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

.latest-song-release h2 i {
  font-size: 1em;
  transform: translateY(0.45px);
}

@media (min-width: 768px) {
  .latest-song-release h2 i {
    transform: translateY(0.75px);
  }

  .avatar-wrapper {
    width: 120px;
    height: 120px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  :root {
    --border-scale: 0.94;
  }

  .link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
  }
}

.player-ui {
  width: 100%;
  margin: 6px 0;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

img:not([draggable="true"]),
.avatar,
.rotating-border,
.player-header {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
    letter-spacing: -0.7px;
    white-space: normal;
    word-break: keep-all;
  }

  p {
    font-size: 14px;
    letter-spacing: -0.3px;
    word-spacing: -2px;
  }
}