:root {
  --bg-base: #070a10;
  --bg-mid: #0d1118;
  --bg-card: rgba(28, 33, 42, 0.88);
  --bg-card-strong: rgba(22, 27, 35, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(94, 149, 255, 0.5);
  --text-main: #edf1ff;
  --text-body: #a8b1c3;
  --text-muted: #6f788b;
  --accent: #3d8bff;
  --accent-soft: rgba(61, 139, 255, 0.2);
  --accent-alt: #22cf8d;
  --radius-xl: 16px;
  --radius-lg: 14px;
  --radius-md: 11px;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1100px 720px at 10% 0%, rgba(61, 139, 255, 0.14), transparent 58%),
    radial-gradient(900px 700px at 92% 12%, rgba(104, 123, 255, 0.09), transparent 62%),
    linear-gradient(180deg, #0b0f16 0%, var(--bg-mid) 48%, var(--bg-base) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.6rem 0.9rem 1.2rem;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 88%);
  opacity: 0.2;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.desktop-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.center-column,
.left-column,
.right-column {
  animation: rise-in 0.65s ease both;
}

.left-column {
  animation-delay: 0.07s;
}

.right-column {
  animation-delay: 0.14s;
}

.header-section {
  text-align: center;
  padding-top: 0.2rem;
}

.main-title {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 0.62rem;
}

.subtitle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: var(--text-body);
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  white-space: nowrap;
}

.terminal-prompt {
  color: var(--accent);
  font-weight: 600;
}

.typing-text {
  min-width: 0;
  display: inline;
  text-align: left;
}

.cursor {
  color: var(--accent);
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.avatar-section {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.avatar-wrapper {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(
    140deg,
    rgba(110, 166, 255, 0.96),
    rgba(152, 99, 255, 0.32) 52%,
    rgba(34, 207, 141, 0.38)
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s ease;
}

.avatar-wrapper:hover {
  transform: translateY(-2px) scale(1.012);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(8, 11, 16, 0.9);
}

.status-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin-top: 1.15rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 0.88rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.tag:hover {
  color: var(--text-main);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.tag-icon {
  font-size: 0.84rem;
  line-height: 1;
}

.social-grid {
  width: min(520px, 100%);
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.02rem;
}

.social-card {
  position: relative;
  min-height: 102px;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 1rem 0.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-strong));
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.social-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 64%,
    transparent 100%
  );
  transform: translateX(-145%);
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.22s ease;
  pointer-events: none;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.social-card:hover::after {
  transform: translateX(145%);
  opacity: 1;
}

.social-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.34));
  transition: transform 0.24s ease, filter 0.24s ease;
}

.social-card[aria-label="GitHub"] .social-icon {
  filter: brightness(0) invert(0.95) drop-shadow(0 2px 7px rgba(0, 0, 0, 0.34));
}

.social-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.24s ease;
}

.social-card:hover .social-icon {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 6px 12px rgba(39, 115, 224, 0.32));
}

.social-card[aria-label="GitHub"]:hover .social-icon {
  filter: brightness(0) invert(0.98) drop-shadow(0 6px 12px rgba(39, 115, 224, 0.32));
}

.social-card:hover .social-label {
  color: #dbe5ff;
}

.panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(31, 36, 46, 0.88), rgba(24, 28, 36, 0.82));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.86rem 1rem 0.68rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(61, 139, 255, 0.9);
}

.playing-indicator {
  background: var(--accent-alt);
  box-shadow: 0 0 10px rgba(34, 207, 141, 0.9);
}

.telegram-indicator {
  background: var(--accent);
}

.pulse {
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.panel-title {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-corner {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.panel-content {
  padding: 1rem;
  color: var(--text-body);
}

.info-panels {
  display: flex;
  flex-direction: column;
  gap: 1.04rem;
}

.status-text {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.58;
}

.playing-content {
  display: grid;
  grid-template-columns: 1fr 68px;
  gap: 0.74rem;
  align-items: center;
}

.track-data {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.track-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.track-title {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(83, 94, 114, 0.5);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e71e8, #5ca1ff);
  transition: width 0.25s linear;
}

.album-art-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  justify-self: end;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  transform-origin: center right;
  background: #0a0d14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.album-art-wrapper::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 64%,
    transparent 100%
  );
  transform: translateX(-145%);
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.22s ease;
  pointer-events: none;
}

.album-art-wrapper:hover {
  transform: translateY(-1px) scale(1.2);
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.album-art-wrapper:hover::after {
  transform: translateX(145%);
  opacity: 1;
}

.album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.album-art-wrapper:hover .album-art {
  transform: scale(1.04);
}

.art-overlay {
  display: none;
}

.telegram-panel {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.telegram-content {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 400px;
  padding: 0.8rem;
}

.telegram-content > * {
  width: 100%;
}

.telegram-content iframe {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px;
  border: none !important;
  background: #fff;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.telegram-fallback {
  width: 100%;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fallback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.telegram-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #3d8bff, #2b6fe0);
}

.telegram-icon-wrapper svg {
  width: 34px;
  height: 34px;
}

.fallback-content h3 {
  color: var(--text-main);
  font-size: 1.08rem;
  font-weight: 600;
}

.fallback-content p {
  color: var(--text-body);
  font-size: 0.86rem;
}

.tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0.62rem 1.22rem;
  background: linear-gradient(145deg, #4f95ff, #337dea);
  color: white;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(42, 108, 213, 0.35);
}

.cyber-footer {
  text-align: center;
  margin-top: 0.45rem;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin-bottom: 0.85rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-icon {
  color: var(--accent);
  font-size: 0.66rem;
  padding: 0 0.3rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) and (max-width: 1119px) {
  .page {
    padding: 2rem 1.1rem 1.35rem;
  }

  .desktop-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "center center"
      "left right";
    gap: 1.3rem;
    align-items: start;
  }

  .center-column {
    grid-area: center;
  }

  .left-column {
    grid-area: left;
  }

  .right-column {
    grid-area: right;
  }

  .telegram-panel {
    min-height: 470px;
  }
}

@media (min-width: 1120px) {
  .page {
    padding: 2.7rem 1.55rem 1.45rem;
  }

  .desktop-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(340px, 430px) minmax(360px, 460px);
    grid-template-areas: "left center right";
    gap: 2.7rem;
    align-items: start;
  }

  .left-column {
    grid-area: left;
    padding-top: 7.85rem;
  }

  .center-column {
    grid-area: center;
  }

  .right-column {
    grid-area: right;
  }

  .telegram-panel {
    min-height: 720px;
  }

  .telegram-content {
    min-height: 640px;
  }
}

@media (max-width: 759px) {
  .page {
    padding-top: 1.25rem;
    padding-bottom: 1.1rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    min-height: 94px;
  }

  .panel {
    border-radius: 13px;
  }

  .telegram-panel {
    min-height: 430px;
  }

  .telegram-content {
    min-height: 340px;
    padding: 0.65rem;
  }
}
