/* Fonts */

@font-face {
  font-family: "Anybody";
  src: url("../assets/fonts/Anybody-Black.woff2") format("woff2");
  font-weight: 900; /* Black */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; /* Regular */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; /* SemiBold */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Black.woff2") format("woff2");
  font-weight: 900; /* Black */
  font-style: normal;
  font-display: swap;
}

/* ========== Base ========== */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: transparent;
  overflow: hidden; /* важно: body НЕ скроллится */
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #fff;
  /*
  background-image: url("../assets/img/bg-red.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; */
}

/* Background */
.page--home {
  position: relative;
  z-index: 1;

  height: 100dvh;            /* фиксируем экран */
  overflow-y: auto;          /* скролл тут */
  -webkit-overflow-scrolling: touch; /* плавная инерция */
}

.topbar {
  position: relative;
  z-index: 20;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1; /* важно */
  overflow: hidden;
  pointer-events: none; /* чтобы клики проходили по сайту */
}

.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.bg__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 250ms ease;
}

/* когда видео готово — прячем картинку */
.bg.is-playing .bg__poster {
  opacity: 0;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08); /* можно 0.12–0.28 подобрать */
  pointer-events: none;
}


/* ========== Topbar ========== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav__link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 900;     /* Inter Regular */
  font-size: 14px;      /* from you */
  letter-spacing: 0.06em;
  transition: opacity 0.3s ease; /* ← добавили */
}

.nav__link:hover {
  opacity: 0.6; /* ← hover-состояние */
}

.social {
  display: flex;
  gap: 24px;
}

.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  color: rgba(255,255,255,0.9);
  transition: color 0.25s ease; /* только цвет */
}

.social__link:hover {
  opacity: 0.6;
}

.social__link svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  display: block;               /* важно */
}

/* ========== Hero ========== */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 88px);
  min-height: calc(100dvh - 88px);

  padding-bottom: 510px;
}

.hero__center {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  gap: 18px; /* расстояние между строками и кнопкой */

  transform: translateY(-90px); /* поднимаем блок вверх */
}

/* Center: new single */
.hero__label {
  font-family: "Inter", sans-serif;
  font-weight: 600;      /* Inter Black */
  font-size: 20px;       /* from you */
  letter-spacing: 0.06em;/* 8% */
  opacity: 0.98;
  margin: 0;
  line-height: 0.2;
}

.hero__title {
  font-family: "Inter", sans-serif;
  font-weight: 900;      /* Inter Black */
  font-size: 28px;       /* from you */
  letter-spacing: 0.08em;/* 8% */
  opacity: 0.98;
  margin: 0;
  line-height: 1.3;
}

/* ========== Play button ========== */
.play {
  position: relative;
  width: 110px;
  height: 110px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
}

/* Простое "дыхание" */
@keyframes play-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.play__svg {
  width: 110px;
  height: 110px;
  display: block;

  transform-origin: center;
  will-change: transform, opacity;

  animation: play-breathe 3s ease-in-out infinite;
}

/* Hover — то же дыхание, но быстрее + лёгкая подсветка */
.play:hover .play__svg {
  animation-duration: 1.6s;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
}

/* Уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  .play__svg {
    animation: none;
  }
}

/* Artist text */
.artist {
  position: absolute;
  left: 48px;
  bottom: 0px;              /* единая высота */
  text-transform: uppercase;
  font-family: "Anybody", sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.artist__line1,
.artist__line2 {
  font-size: 105px;        /* from you */
  line-height: 79px;       /* from you */
}

.artist {
  transform-origin: left bottom;
  transition: transform 0.35s ease;
  will-change: transform;
}

.artist:hover {
  transform: scale(1.10);
}

/* Footer */
.copyright {
  position: absolute;
  right: 48px;
  bottom: 0px;              /* та же высота */
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.9;
  transform: translateY(-8px);
}

/* ========== Overlay (Music) ========== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.35s ease, visibility 0.35s ease;

  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay__bg {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.overlay.is-open .overlay__bg {
  opacity: 1;
}

.overlay__card {
  position: relative;
  width: min(1160px, calc(100% - 64px));
  margin: 160px auto;
  background: #fff;
  color: #111;
  padding: 34px 54px 54px;

  transform: translateY(10px);
  opacity: 0;

  transition: transform 0.35s ease, opacity 0.5s ease;

  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.overlay__title {
  margin: 0 0 18px;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -0.01em;
}

.overlay.is-open .overlay__card {
  transform: translateY(0);
  opacity: 1;
}

/* Music content */
.music__title {
  margin: 0 0 2px;
  font-family: "Inter", sans-serif;
  font-weight: 900;           /* Inter Black */
  font-size: 56px;            /* from you */
  letter-spacing: -0.01em;    /* -1% */
}

.music__platforms {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: -2px;
  margin-bottom: 32px;
}

.music__platform {
  color: #111;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 400;           /* Inter Regular */
  font-size: 16px;            /* from you */
  opacity: 0.85;
  line-height: 8px;
  transition: opacity 0.4s ease; /* ← добавили */
}

.music__platform:hover {
  opacity: 0.6; /* ← hover-состояние */
}

/* Releases grid */
.releases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin-top: 36px;
}

.release {
  min-width: 0;
}

.release__cover-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.release__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}

/* Лёгкое затемнение */
.release__cover-link:hover .release__cover {
  filter: brightness(0.85);
}

.release__name {
  margin-top: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;           /* Inter SemiBold */
  font-size: 14px;            /* from you */

  white-space: nowrap;      /* запрет переноса */
  overflow: hidden;         /* скрываем лишнее */
  text-overflow: ellipsis;  /* добавляем ... */
}

.release__meta {
  margin-top: 2px;
  font-family: "Inter", sans-serif;
  font-weight: 400;           /* Inter Regular */
  font-size: 14px;            /* from you */
  opacity: 0.7;
}

.release__btn {
  display: block;
  width: 100%;

  margin-top: 12px;
  padding: 14px 0 18px 0;
  
  border-radius: 12px;

  background: #f8213a;       /* красный */
  color: #fff;

  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.release__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ===== Upcoming release (ещё не вышел) ===== */

/* Бледная обложка для upcoming и presave */
.release--upcoming .release__cover,
.release--presave .release__cover {
  opacity: 0.4;
}

/* Отключаем клики только для upcoming */
.release--upcoming .release__cover-link {
  pointer-events: none;
  cursor: default;
}

/* Убираем hover затемнение для upcoming */
.release--upcoming .release__cover-link:hover .release__cover {
  filter: none;
}

/* Hover работает для presave */
.release--presave .release__cover-link:hover .release__cover {
  filter: brightness(0.65);
}

/* Обёртка для позиционирования бейджа */
.release__cover-link {
  position: relative;
}

/* Бейдж */
.release__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  padding: 10px 22px;
  border-radius: 999px;

  background: rgba(120,120,120,0.75);
  backdrop-filter: blur(4px);

  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;

  display: none;
}

/* Показываем бейдж для upcoming и presave */
.release--upcoming .release__badge,
.release--presave .release__badge {
  display: block;
}

/* Бейдж показываем только для upcoming */
.release__badge {
  display: none;
}

.release--upcoming .release__badge {
  display: block;
}


/* ========== Overlay (Сoncerts) ========== */
.concerts {
  margin-top: 10px;
}

.concerts__row {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.concerts__row > div:nth-child(2),
.concerts__row > div:nth-child(3) {
  text-align: center;
}

.concerts__row > div:nth-child(4) {
  text-align: right;
}

.concerts__head {
  padding-top: 0;
  opacity: 0.7;
  font-size: 14px;
}

.concerts__btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f8213a;
  color: #fff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.concerts__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}


/* ========== Overlay (Сontacts) ========== */
.contacts__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.9;
}

.contacts__link {
  display: inline-block;
  font-size: 16px;
  color: #1a66ff;
  text-decoration: underline;
}

.overlay__card--centered {
  margin: auto;
  top: 30%;
}


/* ========== Responsive ========== */
@media (max-width: 1080px) {
  .releases {
  grid-template-columns: repeat(3, 1fr);
  }
  
  .overlay__card {
  margin: 90px auto;
  }

  .overlay__card--centered {
  margin: auto;
  top: 30%;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 18px;

    padding-top: 24px;
  }

  .nav {
    justify-content: center;
  }

  .artist {
    left: 50%;
    bottom: calc(48px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    text-align: center;
  }

  .copyright {
    left: 50%;
    right: auto;
    bottom: calc(28px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav__link {
    font-size: 14px;
  }

  .artist__line1,
  .artist__line2 {
    font-size: 75px;
    line-height: 58px;
  }

  .artist {
    -webkit-tap-highlight-color: transparent;
  }

  .artist:hover,
  .artist:active,
  .artist:focus {
    transform: translateX(-50%);
  }

  .overlay__card { 
    margin: 60px auto; 
    width: calc(100% - 24px); 
    padding: 34px 24px 40px;
  }

  .overlay__card--centered {
    margin: auto;
    top: 30%;
  }

  .releases { 
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 16px;
  }

  .release__name {
    margin-top: 6px;
    font-size: 12px;            /* from you */
  }

  .release__meta {
    margin-top: 0px;
    font-size: 12px;            /* from you */
  }


  .concerts__row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 6px;
    align-items: center;
    padding: 18px 12px auto 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .concerts__row > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    white-space: nowrap;
  }

  .concerts__row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
  }

  .concerts__row > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
  }

  .concerts__row > div:nth-child(4) {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .concerts__btn {
    width: auto;
    font-size: 0;
    white-space: nowrap;
  }

  .concerts__btn::after {
    content: "Купить";
    font-size: 14px;
    font-weight: 600;
  }
}
