@import url("theme.css");

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top right, rgba(154, 72, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(35, 198, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #09111f 0%, #070a16 46%, #070813 100%),
    url(../img/bg2.jpeg) no-repeat center center fixed;
  background-size: cover;
  color: #e8eaf6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 35%);
  pointer-events: none;
}

.search-container {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.list-header {
  position: relative;
  padding-top: 0.5rem;
}

footer {
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 2rem 1rem 1rem;
  margin: 0 auto;
}

footer p {
  margin: 0.75rem 0 0;
}

footer a:not(.nav-home-link):not(.nav-site-link) {
  color: #cab7ff;
  text-decoration: none;
}

footer a:not(.nav-home-link):not(.nav-site-link):hover {
  text-decoration: underline;
}

.search-reset {
  display: block;
  text-decoration: none;
  color: inherit;
}

.search-reset:hover {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 640px) {
  .list-header h1 {
    padding-top: 2.4rem;
  }
}

h1 {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.search {
  display: block;
  width: min(700px, calc(100% - 2rem));
  margin: 0 auto 1.5rem;
  padding: 1rem 1.2rem;
  font-size: 1.05rem;
  background: rgba(10, 14, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  color: #f5f7ff;
  backdrop-filter: blur(14px);
  outline: none;
}

.search:focus {
  border-color: rgba(144, 85, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(144, 85, 255, 0.12);
}

.list-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  background: rgba(12, 18, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  max-width: 960px;
  width: min(95%, 960px);
  margin: 0 auto 1.5rem;
  padding: 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.list-grid-item:hover {
  transform: translateY(-6px);
  border-color: rgba(144, 85, 255, 0.4);
}

.list-grid-item a {
  text-decoration: none;
  color: inherit;
}

.list-grid-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: stretch;
}

.list-stagefile {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.song-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.35rem 0.35rem 0.35rem 0;
  min-width: 0;
}

.song-genre {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.song-meta-label {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: #9de8ff;
  background: rgba(35, 198, 255, 0.12);
  border: 1px solid rgba(35, 198, 255, 0.28);
}

.song-meta-value {
  color: rgba(190, 220, 255, 0.88);
  font-weight: 500;
}

.song-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #f8f6ff;
  text-shadow: 0 0 18px rgba(154, 72, 255, 0.22);
  position: relative;
  padding-bottom: 0.45rem;
}

.song-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 220px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(154, 72, 255, 0.95), rgba(35, 198, 255, 0.75), transparent);
}

.song-artist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.song-artist {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  color: #d9cfff;
  padding-bottom: 0.18rem;
}

.song-artist::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 183, 255, 0.85), rgba(201, 183, 255, 0.15));
}

.song-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.22rem 0.65rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff6d8;
  background: linear-gradient(135deg, rgba(255, 191, 0, 0.28), rgba(255, 120, 60, 0.22));
  border: 1px solid rgba(255, 200, 90, 0.38);
  box-shadow: 0 0 16px rgba(255, 170, 40, 0.16);
}

.song-subtitle {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(180, 188, 220, 0.82);
  font-style: italic;
  padding-left: 0.55rem;
  border-left: 2px solid rgba(144, 85, 255, 0.45);
}

.song-info p {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .list-grid-main {
    grid-template-columns: 1fr;
  }

  .list-stagefile {
    min-height: 180px;
  }

  .song-info {
    padding: 0.2rem 0.1rem 0;
  }
}

.list-grid-auto {
  display: block;
  margin-top: 1rem;
  text-decoration: none;
}

.auto-play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8f4ff;
  cursor: pointer;
  background: linear-gradient(180deg, #6b4bb8 0%, #453080 38%, #2e1f5c 68%, #241848 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 -3px 0 rgba(0, 0, 0, 0.38) inset,
    0 8px 0 #140c2e,
    0 11px 20px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(144, 85, 255, 0.28);
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auto-play-btn::before {
  content: "";
  position: absolute;
  inset: 4px 8px auto;
  height: 40%;
  border-radius: 12px 12px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.auto-play-btn::after {
  content: "";
  position: absolute;
  inset: auto 10px 5px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(1px);
  pointer-events: none;
}

.list-grid-auto:hover .auto-play-btn {
  filter: brightness(1.1);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.36) inset,
    0 -3px 0 rgba(0, 0, 0, 0.38) inset,
    0 11px 0 #140c2e,
    0 14px 26px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(154, 72, 255, 0.45);
}

.list-grid-auto:active .auto-play-btn {
  filter: brightness(0.98);
  transform: translateY(5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.28) inset,
    0 2px 0 #140c2e,
    0 4px 12px rgba(0, 0, 0, 0.38),
    0 0 16px rgba(144, 85, 255, 0.18);
}

.length {
  width: min(700px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border-radius: 20px;
  background: rgba(8, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 1rem;
  color: #e7e7ff;
}

input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
  display: none;
}
