:root {
  --auth-bg-1: #050b18;
  --auth-bg-2: #0a1630;
  --auth-card: rgba(9, 17, 34, 0.74);
  --auth-border: rgba(255, 255, 255, 0.12);
  --auth-text: #f4f8ff;
  --auth-muted: rgba(227, 236, 255, 0.74);
  --auth-primary: #4a7aff;
  --auth-secondary: #c043e5;
  --auth-cyan: #50dfdb;
  --auth-radius-lg: 22px;
  --auth-radius-md: 14px;
  --auth-shadow: 0 20px 55px rgba(3, 8, 20, 0.55);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--auth-text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(80, 223, 219, 0.12), transparent 65%),
    radial-gradient(1000px 600px at 90% 20%, rgba(192, 67, 229, 0.16), transparent 70%),
    linear-gradient(145deg, var(--auth-bg-1), var(--auth-bg-2));
  background-attachment: fixed;
  background-size: 140% 140%;
  animation: ambientGradient 18s ease-in-out infinite;
  overflow-x: hidden;
  font-family: "Bahnschrift", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}

body::before {
  width: 38vw;
  height: 38vw;
  left: -10vw;
  top: 8vh;
  background: radial-gradient(circle at center, rgba(80, 223, 219, 0.22), transparent 68%);
  animation: floatGlowOne 14s ease-in-out infinite;
}

body::after {
  width: 42vw;
  height: 42vw;
  right: -14vw;
  top: 22vh;
  background: radial-gradient(circle at center, rgba(192, 67, 229, 0.24), transparent 70%);
  animation: floatGlowTwo 16s ease-in-out infinite;
}

.main-content {
  width: min(1240px, 90vw);
  margin: 0 auto;
  padding: 84px 0;
  flex: 1;
}

@media screen and (max-width: 800px) {
  /* Reduce top/bottom padding on mobile to match footer spacing */
  .main-content {
    padding: 20px 0 !important;
  }
}

@media (min-width: 981px) {
  .main-content {
    width: 90vw;
    max-width: none;
  }
}

.white-link {
  color: #fff;
  text-decoration: none;
}

.white-link:hover {
  text-decoration: underline;
}

.son-info {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  margin-bottom: 22px;
  border-radius: var(--auth-radius-lg);
  border: 1px solid var(--auth-border);
  background: linear-gradient(145deg, rgba(9, 17, 34, 0.9), rgba(9, 17, 34, 0.62));
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.son-info:hover {
  transform: translateY(-3px);
  border-color: rgba(80, 223, 219, 0.34);
  box-shadow: 0 26px 62px rgba(3, 8, 20, 0.62);
}

.son-info img {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 28px rgba(1, 5, 12, 0.48);
}

.son-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.infos-block {
  display: grid;
  gap: 14px;
}

.album-title-stars-block {
  display: grid;
  gap: 9px;
}

.album-name {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(98deg, #ffffff 10%, #cde1ff 55%, #8cb3ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.album-stars {
  display: inline-flex;
  gap: 6px;
}

.star {
  width: 17px;
  height: 17px;
  display: inline-block;
  clip-path: polygon(
    50% 2%,
    61% 35%,
    96% 35%,
    68% 56%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 56%,
    4% 35%,
    39% 35%
  );
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.star.full {
  background: radial-gradient(circle at 30% 28%, #fff7d1 0%, #ffe082 26%, #ffc107 58%, #ff8f00 100%);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45);
  filter: saturate(1.12);
}

.star.half {
  background: linear-gradient(
    90deg,
    #ffd54f 0%,
    #ffb300 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.35), 0 1px 5px rgba(0, 0, 0, 0.4);
}

.star.empty {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(162, 176, 201, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.singalb-count {
  margin: 0;
  color: var(--auth-muted);
  font-weight: 600;
}

.singalb-count span {
  color: #fff;
  font-weight: 700;
}

.artist-description {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--auth-muted);
  line-height: 1.7;
  padding: 14px;
  text-align: justify;
  text-justify: inter-word;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
}

.carousel-search,
.carousel-filter {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(7, 14, 28, 0.9);
  color: #fff;
  padding: 11px 12px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-search::placeholder {
  color: rgba(227, 236, 255, 0.55);
}

.carousel-search:focus,
.carousel-filter:focus {
  outline: none;
  border-color: rgba(80, 223, 219, 0.9);
  box-shadow: 0 0 0 3px rgba(80, 223, 219, 0.2);
}

.carousel-search {
  flex: 1;
}

.carousel-filter {
  min-width: 280px;
}

.carousel {
  position: relative;
  border-radius: var(--auth-radius-lg);
  border: 1px solid var(--auth-border);
  background: linear-gradient(145deg, rgba(9, 17, 34, 0.88), rgba(9, 17, 34, 0.6));
  box-shadow: var(--auth-shadow);
  padding: 16px 58px;
  margin-bottom: 16px;
  overflow: hidden;
}

.carousel::before {
  content: "";
  position: absolute;
  inset: -120% 35% auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at center, rgba(80, 223, 219, 0.15), transparent 68%);
  pointer-events: none;
}

.carousel__track-container {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.35s ease;
}

.carousel__slide {
  min-width: 174px;
  max-width: 174px;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.24s ease;
}

.carousel__slide:hover {
  transform: translateY(-4px);
}

.carousel__slide p {
  margin: 10px 0 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-wrap: balance;
}

.carousel__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 24px rgba(1, 5, 12, 0.4);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.carousel__slide:hover .carousel__image {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(80, 223, 219, 0.36);
}

.carousel__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.carousel__button:hover {
  transform: translateY(-50%) scale(1.06);
  border-color: rgba(80, 223, 219, 0.46);
  background: linear-gradient(145deg, rgba(80, 223, 219, 0.26), rgba(74, 122, 255, 0.26));
}

.carousel__button--left {
  left: 12px;
}

.carousel__button--right {
  right: 12px;
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
    animation: none;
  }

  body::before,
  body::after,
  .carousel::before {
    display: none;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    padding: 78px 12px 12px;
  }

  .son-info,
  .carousel,
  .carousel-controls {
    width: 90%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .son-info {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 16px;
  }

  .son-info:hover,
  .carousel__slide:hover,
  .carousel__slide:hover .carousel__image {
    transform: none;
  }

  .son-info img {
    height: 236px;
    border-radius: 13px;
    object-fit: contain;
    object-position: center top;
    background: rgba(7, 14, 28, 0.75);
  }

  .album-name {
    font-size: clamp(1.26rem, 5.2vw, 1.74rem);
  }

  .artist-description {
    padding: 12px;
    line-height: 1.55;
    font-size: 0.94rem;
    border-radius: 12px;
    text-align: justify;
    text-justify: inter-word;
  }

  .carousel-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px auto 8px;
  }

  .carousel-search,
  .carousel-filter {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .carousel {
    padding: 10px 44px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .carousel__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    z-index: 3;
  }

  .carousel__button--left {
    left: 8px;
  }

  .carousel__button--right {
    right: 8px;
  }

  .carousel__track-container {
    overflow: hidden;
    padding-bottom: 2px;
  }

  .carousel__track {
    width: auto;
    gap: 10px;
  }

  .carousel__slide {
    min-width: 130px;
    max-width: 130px;
  }

  .carousel__slide p {
    margin-top: 7px;
    font-size: 0.8rem;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  .main-content {
    padding: 72px 8px 10px;
  }

  .son-info,
  .carousel,
  .carousel-controls {
    width: 90%;
    max-width: 90%;
  }

  .son-info {
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .son-info img {
    height: 196px;
  }

  .album-stars {
    gap: 5px;
  }

  .star {
    width: 14px;
    height: 14px;
  }

  .singalb-count {
    font-size: 0.9rem;
  }

  .artist-description {
    font-size: 0.9rem;
    padding: 11px;
  }

  .carousel__slide {
    min-width: 118px;
    max-width: 118px;
  }
}

@media (max-width: 420px) {
  .main-content {
    padding: 70px 6px 9px;
  }

  .son-info,
  .carousel,
  .carousel-controls {
    width: 90%;
    max-width: 90%;
  }

  .son-info {
    padding: 10px;
    border-radius: 12px;
  }

  .son-info img {
    height: 170px;
  }

  .album-name {
    font-size: 1.08rem;
  }

  .artist-description {
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 10px;
  }

  .carousel-search,
  .carousel-filter {
    font-size: 0.84rem;
    padding: 9px 10px;
  }

  .carousel {
    padding: 8px 40px;
  }

  .carousel__button {
    width: 28px;
    height: 28px;
  }

  .carousel__slide {
    min-width: 106px;
    max-width: 106px;
  }

  .carousel__slide p {
    font-size: 0.72rem;
    margin-top: 6px;
  }
}

@media (max-width: 360px) {
  .main-content {
    padding: 68px 5px 8px;
  }

  .son-info {
    padding: 9px;
  }

  .carousel,
  .carousel-controls {
    width: 90%;
    max-width: 90%;
  }

  .son-info img {
    height: 154px;
  }

  .carousel__slide {
    min-width: 100px;
    max-width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes ambientGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatGlowOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(6vw, 4vh, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes floatGlowTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate3d(-7vw, -5vh, 0) scale(1.1);
    opacity: 1;
  }
}
