:root {
  --bg: #fdfdfd;
  --text: #1d1d1d;
  --gold: #cc9946;
  --line: rgba(29, 29, 29, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

.sp-page {
  min-height: 100vh;
  padding: 20px;
}

.sp-shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-header {
  height: 80px;
  padding: 12px;
  border: 1px solid rgba(29, 29, 29, 0.1);
  border-radius: 16px;
  background: rgba(29, 29, 29, 0.02);
  display: grid;
  grid-template-columns: 161px 636px 313px 147px;
  grid-template-areas: 'brand nav search profile';
  column-gap: 40px;
  align-items: center;
  overflow: hidden;
}

.sp-brand {
  grid-area: brand;
  height: 56px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sp-brand-icon {
  width: 24px;
  height: 24px;
}

.sp-brand-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.96px;
  line-height: 1;
}

.sp-nav {
  grid-area: nav;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-nav-item {
  height: 52px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(29, 29, 29, 0.5);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  border-radius: 16px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.sp-nav-item.is-current {
  width: 120px;
  height: 44px;
  background: #fff;
  color: rgba(29, 29, 29, 0.7);
}

.sp-nav-current-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sp-nav-dot {
  width: 10px;
  height: 10px;
}

.sp-nav-badge {
  height: 26px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  line-height: 10px;
  white-space: nowrap;
  background: linear-gradient(154.742deg, rgba(255, 255, 255, 0.1) 10.927%, rgba(255, 255, 255, 0.03) 55.697%);
}

.sp-search {
  grid-area: search;
  width: 313px;
  height: 56px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(29, 29, 29, 0.03);
}

.sp-search-icon {
  width: 24px;
  height: 24px;
}

.sp-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(29, 29, 29, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.sp-search input::placeholder {
  color: rgba(29, 29, 29, 0.7);
}

.sp-profile {
  grid-area: profile;
  height: 56px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(29, 29, 29, 0.03);
}

.sp-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.sp-profile-name {
  color: rgba(29, 29, 29, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.sp-main {
  min-height: 862px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-hero-wrap {
  width: 961px;
  height: 400px;
  display: grid;
  grid-template-columns: 400px 549px;
  gap: 12px;
  align-items: center;
}

.sp-cover {
  width: 400px;
  height: 400px;
  margin: 0;
  border: 1px solid #c7aaa5;
  border-radius: 16px;
  overflow: hidden;
}

.sp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-info {
  width: 549px;
  height: 400px;
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.sp-btn {
  height: 44px;
  padding: 14px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.sp-btn img {
  width: 16px;
  height: 16px;
}

.sp-btn span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.28px;
}

.sp-btn-back,
.sp-btn-outline {
  color: var(--text);
  border: 1px solid rgba(29, 29, 29, 0.25);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(22px);
}

.sp-btn-back {
  width: 98px;
}

.sp-meta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sp-meta span {
  color: rgba(29, 29, 29, 0.5);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.sp-meta-dot {
  width: 6px;
  height: 6px;
}

.sp-title {
  margin: 0;
  color: var(--text);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.28px;
}

.sp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-action-form {
  margin: 0;
  display: inline-flex;
}

.sp-btn-start {
  width: 117px;
  color: #fff;
  background: rgba(204, 153, 70, 0.75);
  backdrop-filter: blur(22px);
}

.sp-btn-start span {
  font-size: 16px;
  letter-spacing: -0.32px;
}

.sp-btn-follow {
  width: 92px;
  color: #fff;
  background: rgba(231, 14, 66, 0.75);
  backdrop-filter: blur(22px);
}

.sp-btn-follow.is-following {
  background: rgba(204, 153, 70, 0.82);
}

.sp-btn.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.sp-btn.is-success {
  border-color: rgba(204, 153, 70, 0.45);
  color: var(--gold);
}

.sp-tracks {
  position: relative;
  height: 450px;
  border: 1px solid #fff;
  border-radius: 16px;
  overflow: hidden;
  padding: 1px;
}

.sp-tracks-glow {
  position: absolute;
  left: 320px;
  top: -272px;
  width: 304px;
  height: 304px;
  border-radius: 16px;
  filter: blur(67.5px);
}

.sp-tracks-inner {
  width: 100%;
  height: 448px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(167.442deg, rgba(255, 255, 255, 0.81) 4.053%, #fdfdfd 79.497%);
}

.sp-tracks-head {
  padding: 24px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.sp-tracks-head h2 {
  margin: 0;
  color: rgba(29, 29, 29, 0.7);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.sp-cols-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-cols-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.sp-cols {
  display: grid;
  grid-template-columns: 32px 320px 110px 96px 48px 48px;
  gap: 12px;
}

.sp-cols span {
  color: rgba(29, 29, 29, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.sp-row {
  position: relative;
  display: grid;
  grid-template-columns: 32px 320px 110px 1fr 48px 48px;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 8px 12px 8px 24px;
  border-bottom: 1px solid var(--line);
}

.sp-row > * {
  position: relative;
  z-index: 2;
}

.sp-num {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.sp-song {
  width: 320px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sp-song img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.sp-song span {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.sp-song-strong {
  font-weight: 700;
}

.sp-artist {
  color: rgba(29, 29, 29, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.sp-plays {
  color: rgba(29, 29, 29, 0.5);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.sp-row-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(29, 29, 29, 0.06);
  display: grid;
  place-items: center;
}

.sp-row-btn img {
  width: 16px;
  height: 16px;
}

.sp-settings-ico {
  width: 20px;
  height: 20px;
}

.sp-row-btn.is-dim {
  background: rgba(29, 29, 29, 0.1);
}

.sp-row.is-active {
  border-bottom-color: var(--gold);
  overflow: hidden;
}

.sp-active-shade {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 376px;
  height: 36.5px;
  background: url('assets/figma/senetci-49-2198/active-row-shade.svg') no-repeat center/100% 100%;
  z-index: 0;
}

.sp-active-line-strong {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 774px;
  height: 2px;
  background: var(--gold);
  z-index: 1;
}

.sp-active-line-soft {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 370px;
  height: 2px;
  background: linear-gradient(270deg, #cc9946 0%, #9a6714 100%);
  z-index: 2;
}

.sp-active-line-vector {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 376px;
  height: 2px;
  background: url('assets/figma/senetci-49-2198/active-row-line.svg') no-repeat center/100% 100%;
  z-index: 3;
}

.sp-row.is-active .sp-row-btn.is-playing {
  background: var(--gold);
}

.sp-row.is-active .sp-row-btn.is-playing img {
  width: 24px;
  height: 24px;
}

@media (max-width: 1460px) {
  .sp-page {
    padding: 16px;
  }

  .sp-header {
    grid-template-columns: 161px minmax(0, 1fr) 280px 147px;
    grid-template-areas: 'brand nav search profile';
    column-gap: 16px;
  }

  .sp-nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sp-nav::-webkit-scrollbar {
    display: none;
  }

  .sp-search {
    width: 280px;
  }

  .sp-hero-wrap {
    width: 100%;
    grid-template-columns: 400px minmax(0, 1fr);
  }

  .sp-info {
    width: 100%;
  }
}

@media (max-width: 1240px) {
  .sp-header {
    height: auto;
    grid-template-columns: 161px minmax(0, 1fr) 147px;
    grid-template-areas:
      'brand search profile'
      'nav nav nav';
    row-gap: 12px;
  }

  .sp-search {
    width: 100%;
  }

  .sp-profile {
    justify-self: end;
  }

  .sp-nav {
    width: 100%;
  }

  .sp-main {
    min-height: 0;
  }

  .sp-hero-wrap {
    height: auto;
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .sp-cover {
    width: 360px;
    height: 360px;
  }

  .sp-info {
    min-height: 360px;
    padding: 16px 24px;
  }

  .sp-title {
    font-size: 56px;
  }

  .sp-tracks {
    height: auto;
  }

  .sp-tracks-inner {
    height: auto;
  }
}

@media (max-width: 1024px) {
  .sp-page {
    padding: 12px;
  }

  .sp-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      'brand'
      'search'
      'profile'
      'nav';
    gap: 10px;
  }

  .sp-brand {
    padding: 8px 0;
  }

  .sp-search,
  .sp-profile {
    width: 100%;
    justify-content: flex-start;
  }

  .sp-hero-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sp-cover {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .sp-info {
    min-height: 0;
    padding: 4px 0;
  }

  .sp-title {
    font-size: 48px;
  }

  .sp-actions {
    flex-wrap: wrap;
  }

  .sp-tracks {
    padding: 0;
    overflow-x: auto;
  }

  .sp-tracks-inner {
    min-width: 980px;
  }
}

@media (max-width: 768px) {
  .sp-brand-title {
    font-size: 28px;
  }

  .sp-nav-item {
    font-size: 14px;
  }

  .sp-search input {
    font-size: 16px;
  }

  .sp-title {
    font-size: 40px;
  }

  .sp-actions {
    gap: 8px;
  }

  .sp-btn {
    padding: 12px 18px;
  }

  .sp-tracks-head {
    padding: 20px 16px 10px;
  }

  .sp-row {
    padding-left: 16px;
    padding-right: 8px;
  }
}

@media (max-width: 560px) {
  .sp-page {
    padding: 10px;
  }

  .sp-brand-title {
    font-size: 24px;
  }

  .sp-title {
    font-size: 34px;
  }

  .sp-tracks-inner {
    min-width: 860px;
  }
}
