:root {
  --black: #121212;
  --lime: #b7ff3a;
  --lime-dark: #8edb2f;
  --lime-soft: #dfffb0;
  --orange: #ffb347;
  --orange-dark: #ff8b25;
  --orange-soft: #ffe0b8;
  --ink: #1f1f1f;
  --card: #f6f6f1;
  --paper: #f3efe8;
  --border: #d8d1c7;
  --shadow: rgba(0, 0, 0, 0.35);
  --accent: var(--lime);
  --accent-dark: var(--lime-dark);
  --accent-soft: var(--lime-soft);
  --bg-1: #2b2b2b;
  --bg-2: #0f0f0f;
  --bg-3: #180c0f;
  font-family: "PT Sans", "Montserrat", sans-serif;
}

body[data-theme="orange"] {
  --accent: var(--orange);
  --accent-dark: var(--orange-dark);
  --accent-soft: var(--orange-soft);
  --bg-1: #3a2714;
  --bg-2: #140c08;
  --bg-3: #2d1a10;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #0f0f0f;
  background: radial-gradient(circle at top, var(--bg-1) 0%, var(--bg-2) 35%, var(--bg-3) 100%);
  color: #222;
}

body.has-bg {
  background-color: #0f0f0f;
  background-image: linear-gradient(180deg, rgba(15, 15, 15, 0.7), rgba(15, 15, 15, 0.95)),
    url("fon.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.topbar {
  background: linear-gradient(180deg, #2a2a2a 0%, #101010 55%, #060606 100%);
  color: #f4f4f4;
  border-bottom: 3px solid #0d0d0d;
  box-shadow: inset 0 -2px 2px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.7);
}

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #f4f4f4;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo__img {
  width: 40px;
  height: 40px;
}

.topnav {
  display: flex;
  gap: 18px;
  flex: 1;
  align-items: center;
  font-weight: 500;
}

.topnav a {
  color: #d7d7d7;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
}

.topnav a.is-active,
.topnav a:hover {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compose {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 700;
  color: #1f1f1f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 rgba(63, 111, 16, 0.8);
  cursor: pointer;
}

.compose.is-playing {
  background: linear-gradient(180deg, #ffdd6a 0%, #e1a92d 100%);
  border-color: #c78f16;
}

.compose.compose--stop {
  background: linear-gradient(180deg, #ffb3b3 0%, #ff6b6b 100%);
  border-color: #d94a4a;
  color: #1f1f1f;
}

.handle {
  font-size: 13px;
  color: #bfbfbf;
}

.nav-action {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #f4f4f4;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.page {
  max-width: 1100px;
  margin: 24px auto 40px;
  display: block;
  gap: 20px;
  padding: 0 20px 30px;
}

.page::after {
  content: "";
  display: table;
  clear: both;
}

.content {
  float: left;
  width: 70%;
  width: calc(100% - 340px);
}

.sidebar {
  float: right;
  width: 320px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intro {
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.intro__body h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.intro__role {
  margin: 0 0 12px;
  font-weight: 600;
  color: #4a4a4a;
}

.intro__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #5f5f5f;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bio-card {
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.bio-card h2 {
  margin-top: 0;
  font-size: 16px;
}

.bio-card ul {
  margin: 10px 0 0;
  padding-left: 16px;
}

.bio-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.bio-tags span {
  background: var(--accent-soft);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #3b5113;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.profile {
  overflow: hidden;
}

.tiktok-card__frame {
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.tiktok-card__frame iframe {
  width: 100%;
  min-height: 100px;
  max-height: 100px;
  border: 0;
}

.profile__header {
  height: 72px;
  background: linear-gradient(135deg, #2d2d2d, #060606);
}

.profile__body {
  margin-top: -28px;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: #6d6d6d;
}

.stats strong {
  display: block;
  color: #1d1d1d;
  font-size: 16px;
}

.card h3 {
  margin-top: 0;
  font-size: 16px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e0dad0;
  font-size: 13px;
}

.card li:last-child {
  border-bottom: none;
}

.footer {
  font-size: 12px;
  color: #777;
  text-align: center;
}

.music {
  background: #ffffff;
}

.music__slot {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px dashed var(--accent-dark);
  background: #fff;
  color: #6b6b6b;
  font-size: 13px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

#ww_0d4b5d590ea40 {
  border-radius: 8px;
  overflow: hidden;
}

#listening {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-family: "Montserrat";
  text-align: left;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
}

#trackInfo {
  padding-left: 0;
}

#cover {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#trackName {
  font-weight: bold;
}

#artistName {
  color: #555;
}

#summer-widget {
  width: 100%;
}

#summer-widget .title {
  font-weight: bold;
  margin-bottom: 6px;
  text-align: center;
}

#summer-widget .time {
  font-size: 16px;
  text-align: center;
}

#summer-widget span {
  font-weight: bold;
  margin: 0 2px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 50;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 9, 0.7);
}

.modal__content {
  position: relative;
  max-width: 420px;
  width: 90%;
  margin: 80px auto 0;
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.modal__content h2 {
  margin-top: 0;
  font-size: 20px;
}

.modal__content p {
  margin-bottom: 18px;
  color: #4a4a4a;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal__btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 16px;
  background: #f3f3f3;
  font-weight: 600;
  cursor: pointer;
}

.modal__btn.is-primary {
  background: var(--accent);
  color: #1f1f1f;
  border-color: var(--accent-dark);
}

.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .page {
    display: block;
  }

  .content,
  .sidebar {
    float: none;
    width: 100%;
  }

  .sidebar {
    margin-top: 16px;
  }

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

  .topbar__inner {
    flex-wrap: wrap;
  }

  .topnav {
    flex-basis: 100%;
    flex-wrap: wrap;
  }

  .topbar__actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  body.has-bg {
    background-attachment: scroll;
  }

  .topbar__inner {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .topnav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    display: none;
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a,
  .topnav .nav-action {
    display: block;
    width: 100%;
    text-align: left;
  }

  .topbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .compose {
    width: 100%;
  }

  .handle {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
    justify-content: center;
  }

  .intro {
    padding: 16px;
  }

  .intro__body h1 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  #listening {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  #trackInfo {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .page {
    margin-top: 16px;
    padding: 0 14px 24px;
  }

  .intro,
  .card,
  .bio-card {
    border-radius: 12px;
  }

  .bio-card {
    padding: 14px;
  }

  .music__slot {
    padding: 12px;
  }
}

.buttons {
  display: flex;
  flex-wrap: wrap; 
  gap: 8px;
  align-items: center;
}

.buttons a {
  display: inline-flex;
}
