/* ===== alina reva — RED, wide & creative ===== */

:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --line: rgba(255, 255, 255, 0.55);
  --line-hover: rgba(255, 255, 255, 0.95);
  --btn-hover: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: #a10f0b; /* запасной цвет */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding: 56px 24px 40px;
  position: relative;
  overflow-x: hidden;
}

/* ---- вертикальный красный градиент: светлее вверху → темнее внизу ---- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #c31501 0%, #790015 100%);
}

/* ---- парящие размытые пятна ---- */
.blob {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.55;
}
.blob-1 {
  width: 440px;
  height: 440px;
  top: -130px;
  left: -110px;
  background: radial-gradient(circle, rgba(255, 90, 50, 0.5), transparent 70%);
  animation: float1 19s ease-in-out infinite;
}
.blob-2 {
  width: 520px;
  height: 520px;
  bottom: -180px;
  right: -150px;
  background: radial-gradient(circle, rgba(120, 0, 21, 0.6), transparent 70%);
  animation: float2 23s ease-in-out infinite;
}
@keyframes float1 {
  50% {
    transform: translate(70px, 46px) scale(1.08);
  }
}
@keyframes float2 {
  50% {
    transform: translate(-56px, -44px) scale(1.06);
  }
}

/* ---- layout: single centered column, wider on desktop ---- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---- profile ---- */
.avatar {
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(145deg, #7a1a12, #3f0d09);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.tagline {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 34px;
}
.social {
  color: #fff;
  opacity: 0.92;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.social:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.08);
}
.social svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ---- link buttons (stacked, full-width) ---- */
.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--line);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}
.link:hover {
  background: var(--btn-hover);
  border-color: var(--line-hover);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.link:active {
  transform: translateY(0);
}
.link .ic {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #fff;
}
.link .ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.link .label {
  flex: 1;
  text-align: center;
  padding-right: 14px;
}
.link .arrow {
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.link:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Telegram — личное: как остальные, но особый ховер (белая заливка + красный
   текст только при наведении) */
.link-featured:hover {
  background: #fff;
  border-color: #fff;
  color: #b3121f;
}
.link-featured:hover .ic,
.link-featured:hover .arrow {
  color: #b3121f;
}

/* ---- expandable "other platforms" ---- */
.more {
  display: contents;
}
.more-btn {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.more-btn .chevron {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.more-btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* сам список: плавно раскрывается (grid 0fr → 1fr, один внутренний блок) */
.more-list {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.32s ease;
}
.more-list.open {
  grid-template-rows: 1fr;
}
.more-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.sub-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}
.sub-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}
.sub-link .arrow {
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.sub-link:hover .arrow {
  opacity: 1;
}

/* ---- photo gallery ---- */
/* мобайл: одна колонка (фото друг под другом) */
.gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.photo {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: center / 30px no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='0.5' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.6'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.photo:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo:hover img {
  transform: scale(1.06);
}

/* мобайл: фото-карусель — листаются свайпом вбок (не кликабельны) */
@media (max-width: 719px) {
  .gallery {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* прячем полосу прокрутки (Firefox) */
    /* чтобы крайние карточки не липли к краям экрана */
    padding: 2px 4px 6px;
    margin-left: -4px;
    margin-right: -4px;
  }
  .gallery::-webkit-scrollbar {
    display: none; /* прячем полосу прокрутки (Safari/Chrome) */
  }
  .photo {
    cursor: default;
    flex: 0 0 82%; /* карточка почти во всю ширину, следующая чуть выглядывает */
    scroll-snap-align: center;
  }
}

/* ---- lightbox (фото поверх страницы, только десктоп) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(10, 2, 3, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
  animation: lbfade 0.2s ease both;
}
@keyframes lbfade {
  from {
    opacity: 0;
  }
}
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ---- bottom music platform mini-icons ---- */
.music-icons {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.micon {
  color: #fff;
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.micon:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.12);
}
.micon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ---- footer ---- */
.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

/* ===== ДЕСКТОП: та же вертикаль, но шире и крупнее ===== */
@media (min-width: 720px) {
  body {
    padding: 72px 24px 52px;
  }
  .wrap {
    max-width: 720px;
  }
  .avatar {
    width: 140px;
    height: 140px;
    font-size: 42px;
  }
  .name {
    font-size: 40px;
  }
  .tagline {
    font-size: 17px;
  }
  .link {
    padding: 20px 26px;
    font-size: 16px;
  }
  /* десктоп: три фото в ряд */
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

/* уважаем настройку "меньше движения" */
@media (prefers-reduced-motion: reduce) {
  .bg,
  .blob,
  .wrap {
    animation: none;
  }
}
