/* Index page specific styles: hero, quick panels, and browse layout */

.index-main-wrap {
  padding: 32px 32px 80px;
}

body.index-page::after {
  display: none;
}

.fav-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff5555 !important;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 68, 68, 0.06);
  transition: all 0.15s;
  text-decoration: none !important;
}

.fav-nav-btn:hover {
  background: rgba(255, 68, 68, 0.13) !important;
  border-color: rgba(255, 68, 68, 0.55) !important;
}

.fav-nav-count {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  background: rgba(255, 68, 68, 0.18);
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 16px;
  text-align: center;
  display: none;
}

.fav-nav-count.has-favs {
  display: inline-block;
}

.hero-shell {
  position: relative;
  margin: 22px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 240px at 8% 0%, rgba(246, 194, 91, 0.14), transparent 65%),
    radial-gradient(620px 220px at 88% 12%, rgba(108, 215, 255, 0.12), transparent 64%),
    linear-gradient(140deg, rgba(25, 25, 37, 0.94), rgba(30, 30, 43, 0.9));
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 194, 91, 0.42), transparent);
  pointer-events: none;
}

.hero-inner {
  padding: 34px 30px 26px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(246, 194, 91, 0.32);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3d08a;
  background: rgba(246, 194, 91, 0.08);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.8vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  max-width: 18ch;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-sub {
  color: var(--text-mid);
  font-size: 0.9rem;
  max-width: 66ch;
  margin-bottom: 18px;
}

.hero-search-wrap {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.hero-search-input {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: rgba(11, 11, 18, 0.72);
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.hero-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(246, 194, 91, 0.13);
}

.hero-search-btn {
  border: 1px solid rgba(246, 194, 91, 0.55);
  background: linear-gradient(135deg, var(--accent), #f2cf89);
  color: #151317;
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s;
  white-space: nowrap;
}

.hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(246, 194, 91, 0.24);
}

.hero-clear-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-mid);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.14s;
}

.hero-clear-btn:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.hero-live-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.73rem;
  font-family: var(--font-mono);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-mid);
  padding: 6px 11px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.14s;
}

.hero-chip:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255, 255, 255, 0.04);
}

.hero-chip.active {
  color: #151317;
  border-color: var(--accent);
  background: var(--accent);
  font-weight: 600;
}

.quick-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.quick-sections.hidden {
  display: none;
}

.quick-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.quick-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.quick-panel-title {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.quick-panel-link {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
}

.quick-panel-link:hover {
  opacity: 1;
}

.quick-panel-clear {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.quick-panel-clear:hover {
  color: var(--text);
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  text-decoration: none;
  transition: background 0.12s;
}

.quick-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.quick-item-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.quick-item-icon.fav {
  color: #ff5555;
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.quick-item-icon.play {
  color: var(--accent);
  background: rgba(200, 241, 53, 0.06);
  border: 1px solid rgba(200, 241, 53, 0.2);
}

.quick-item-info {
  flex: 1;
  min-width: 0;
}

.quick-item-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-item-meta {
  font-size: 0.64rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 1px;
}

.quick-item-copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}

.quick-item-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quick-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quick-empty-icon {
  font-size: 1.4rem;
  margin-bottom: 5px;
  opacity: 0.3;
  display: block;
}

.browse-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar-section-spaced {
  margin-bottom: 16px;
}

.contribute-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface);
}

.contribute-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contribute-text {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}

.w-full {
  width: 100%;
}

.btn-center {
  justify-content: center;
}

.btn-smallish {
  font-size: 0.82rem;
}

.sort-wrap {
  display: flex;
  gap: 4px;
  align-items: center;
}

.filter-group-right {
  margin-left: auto;
}

.sort-dir-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s;
}

.sort-dir-btn:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.view-mode-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}

.view-mode-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.15s;
}

.view-mode-btn:hover,
.view-mode-btn.active {
  border-color: var(--border-hi);
  color: var(--text);
}

.total-count {
  min-width: 80px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.song-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  position: relative;
}

.song-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.song-card-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface);
  display: block;
  position: relative;
}

.song-card-art-wrap {
  position: relative;
}

.song-card-art-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.song-card-art-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  font-size: 2.2rem;
  opacity: 0.25;
}

.song-card-play-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #0c0c0c;
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.song-card-play-btn:hover {
  transform: scale(1.1);
}

.song-card-play-btn.playing {
  background: #fff;
}

.song-card-body {
  padding: 10px 12px 12px;
}

.song-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.song-card-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.song-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.song-card-cat {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(200, 241, 53, 0.08);
  color: var(--accent);
  border: 1px solid rgba(200, 241, 53, 0.18);
}

.song-card-ids {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.song-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.song-card-copy {
  flex: 1;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.12s;
}

.song-card-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.song-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  transition: all 0.12s;
}

.song-card-link:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.song-card-progress {
  height: 2px;
  background: var(--border);
  margin: 0 12px 10px;
  border-radius: 1px;
  overflow: hidden;
  display: none;
}

.song-card-progress.active {
  display: block;
}

.song-card-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.5s linear;
}

/* List-view player redesign */
body.index-page .sound-item.playing {
  border-color: rgba(246, 194, 91, 0.45);
  box-shadow: 0 0 0 1px rgba(246, 194, 91, 0.12) inset;
}

body.index-page .sound-item .player-wrap {
  min-width: 290px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(246, 194, 91, 0.22);
  background:
    radial-gradient(180px 90px at 0% 0%, rgba(246, 194, 91, 0.1), transparent 65%),
    linear-gradient(140deg, rgba(21, 21, 32, 0.96), rgba(26, 26, 38, 0.96));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 8px;
}

body.index-page .sound-item .player-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}

body.index-page .sound-item .player-controls .btn {
  height: 32px;
  padding: 0 10px;
  font-size: 0.72rem;
  border-radius: 9px;
}

body.index-page .sound-item .player-controls .btn-primary {
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 120px;
}

body.index-page .sound-item .player-progress-wrap {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  margin-top: 0 !important;
}

body.index-page .sound-item .player-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1b74a, #f7d892);
  box-shadow: 0 0 10px rgba(246, 194, 91, 0.35);
  transition: width 0.12s linear;
}

body.index-page .sound-item .player-time {
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: #d0c8dd;
}

body.index-page .sound-item .vol-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

body.index-page .sound-item .vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px !important;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

body.index-page .sound-item .vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid rgba(20, 20, 20, 0.45);
  cursor: pointer;
}

body.index-page .sound-item .vol-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid rgba(20, 20, 20, 0.45);
  cursor: pointer;
}

body.index-page .sound-item .vol-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, var(--card) 25%, var(--surface) 50%, var(--card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
}

.pagination-controls {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-logo {
  margin-bottom: 14px;
  display: inline-flex;
}

.footer-blurb {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }

  .index-main-wrap {
    padding: 24px 16px 72px;
  }
}

@media (max-width: 760px) {
  .hero-inner {
    padding: 24px 18px 20px;
  }

  .hero-search-row {
    grid-template-columns: 1fr;
  }

  .hero-search-btn,
  .hero-clear-btn {
    width: 100%;
  }
}

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

  body.index-page .sound-item .player-wrap {
    min-width: 100%;
    width: 100%;
  }

  body.index-page .sound-item .player-controls {
    grid-template-columns: 1fr;
  }

  body.index-page .sound-item .player-controls .btn {
    width: 100%;
  }
}
