:root {
  --mp3-bg: #0f1419;
  --mp3-bg-soft: #171d24;
  --mp3-surface: #ffffff;
  --mp3-surface-muted: #f4f6f8;
  --mp3-text: #1a2332;
  --mp3-text-muted: #5c6b7a;
  --mp3-primary: #e85d04;
  --mp3-primary-dark: #c44900;
  --mp3-accent: #009688;
  --mp3-border: rgba(15, 20, 25, 0.08);
  --mp3-radius: 16px;
  --mp3-radius-sm: 10px;
  --mp3-shadow: 0 12px 40px rgba(15, 20, 25, 0.12);
  --mp3-header-h: 64px;
}

body.mp3-modern {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--mp3-text);
  background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 240px, #f4f6f8 100%);
  overflow-x: hidden;
  overflow-y: auto !important;
  height: auto !important;
}

body.mp3-modern .hbox.stretch {
  display: block;
  height: auto !important;
}

body.mp3-modern .hbox.stretch > aside,
body.mp3-modern .hbox.stretch > section {
  display: block;
  width: 100%;
  height: auto !important;
  float: none;
}

@media (min-width: 768px) {
  body.mp3-modern .hbox.stretch {
    display: table;
    table-layout: fixed;
    width: 100%;
  }

  body.mp3-modern .hbox.stretch > aside {
    display: table-cell;
    width: 220px;
    vertical-align: top;
  }

  body.mp3-modern .hbox.stretch > section#content {
    display: table-cell;
    vertical-align: top;
  }
}

body.mp3-modern .vbox > section {
  position: relative !important;
}

body.mp3-modern .scrollable {
  overflow: visible !important;
}

body.mp3-modern .navbar-fixed-top.header-md + .hbox.stretch {
  padding-top: 60px;
}

body.mp3-modern .header.header-md {
  background: rgba(15, 20, 25, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

body.mp3-modern .navbar-brand img {
  height: 36px;
  width: auto;
}

body.mp3-modern .navbar-brand span,
body.mp3-modern .nav-user > li > a {
  color: #fff !important;
  font-weight: 600;
}

body.mp3-modern #nav.aside {
  background: linear-gradient(180deg, #121820, #0d1218) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.mp3-modern #nav .nav-primary .nav > li > a {
  border-radius: 12px;
  margin: 4px 10px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.2s ease, transform 0.2s ease;
}

body.mp3-modern #nav .nav-primary .nav > li > a:hover,
body.mp3-modern #nav .nav-primary .nav > li > a:focus {
  background: rgba(232, 93, 4, 0.18);
  color: #fff;
  transform: translateX(2px);
}

body.mp3-modern #nav .hidden-nav-xs.text-muted {
  color: rgba(255, 255, 255, 0.45) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

body.mp3-modern #content {
  background: transparent;
}

body.mp3-modern .wrapper-lg {
  padding-top: 24px;
}

.mp3-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--mp3-radius) + 4px);
  padding: 36px 32px;
  margin-bottom: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(232, 93, 4, 0.35), transparent 42%),
    linear-gradient(135deg, #121820 0%, #1f2937 55%, #0f766e 100%);
  box-shadow: var(--mp3-shadow);
}

.mp3-hero__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mp3-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}

.mp3-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.mp3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mp3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mp3-btn:hover {
  transform: translateY(-1px);
}

.mp3-btn--primary {
  background: var(--mp3-primary);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.28);
}

.mp3-btn--primary:hover {
  background: var(--mp3-primary-dark);
  color: #fff !important;
}

.mp3-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mp3-panel {
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius);
  box-shadow: var(--mp3-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.mp3-panel h2,
.mp3-panel h3 {
  margin-top: 0;
  font-weight: 700;
  color: var(--mp3-text);
}

.mp3-panel p,
.mp3-panel li {
  color: var(--mp3-text-muted);
  line-height: 1.7;
}

.mp3-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
}

.mp3-section-title h2,
.mp3-section-title h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.mp3-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.mp3-category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  border-radius: var(--mp3-radius);
  text-decoration: none !important;
  color: var(--mp3-text) !important;
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp3-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 20, 25, 0.12);
}

.mp3-category-card__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  color: #fff;
}

.mp3-category-card__label {
  font-weight: 700;
  line-height: 1.35;
}

.mp3-category-card--amber .mp3-category-card__icon { background: #f59e0b; }
.mp3-category-card--green .mp3-category-card__icon { background: #10b981; }
.mp3-category-card--blue .mp3-category-card__icon { background: #3b82f6; }
.mp3-category-card--violet .mp3-category-card__icon { background: #8b5cf6; }
.mp3-category-card--rose .mp3-category-card__icon { background: #ec4899; }
.mp3-category-card--teal .mp3-category-card__icon { background: #14b8a6; }
.mp3-category-card--gold .mp3-category-card__icon { background: #d97706; }

.mp3-artist-card {
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.mp3-artist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 20, 25, 0.12);
}

.mp3-artist-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.mp3-artist-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp3-artist-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 20, 25, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.mp3-artist-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 25, 0.28);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mp3-artist-card:hover .mp3-artist-card__overlay {
  opacity: 1;
}

.mp3-artist-card__body {
  padding: 14px;
}

.mp3-artist-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.mp3-artist-card__title a {
  color: var(--mp3-text) !important;
}

.mp3-artist-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-track-list {
  display: grid;
  gap: 12px;
}

.mp3-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
}

.mp3-track-item__meta {
  min-width: 0;
}

.mp3-track-item__title {
  display: block;
  font-weight: 700;
  color: var(--mp3-text);
  text-decoration: none !important;
}

.mp3-track-item__subtitle {
  display: block;
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-track-item__action {
  flex-shrink: 0;
  color: var(--mp3-primary) !important;
  font-weight: 600;
  text-decoration: none !important;
}

body.mp3-modern #sidebar.aside-md {
  background: transparent !important;
  box-shadow: none;
}

body.mp3-modern #sidebar .list-group-item {
  background: var(--mp3-surface);
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius-sm);
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(15, 20, 25, 0.05);
}

body.mp3-modern .footer.bg-success {
  background: #101820 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
}

body.mp3-modern .footer.bg-success p,
body.mp3-modern .footer.bg-success a {
  color: rgba(255, 255, 255, 0.82) !important;
}

.mp3-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top right, rgba(232, 93, 4, 0.18), transparent 35%),
    linear-gradient(180deg, #eef2f6, #f8fafc);
}

.mp3-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--mp3-surface);
  border-radius: calc(var(--mp3-radius) + 4px);
  box-shadow: var(--mp3-shadow);
  padding: 32px;
  border: 1px solid var(--mp3-border);
}

.mp3-auth-card--wide {
  max-width: 720px;
}

.mp3-auth-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mp3-auth-grid .mp3-panel {
  height: 100%;
  margin-bottom: 0;
}

.mp3-legal-content h3,
.mp3-legal-content h4,
.mp3-legal-content h5 {
  margin-top: 24px;
}

.mp3-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.mp3-auth-card .form-control {
  border-radius: 12px;
  border-color: var(--mp3-border);
  min-height: 46px;
}

.mp3-audio-shell {
  background: var(--mp3-surface-muted);
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius);
  padding: 16px;
}

.mp3-audio-shell audio {
  width: 100%;
}

.mp3-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.mp3-search-form .form-group {
  flex: 1;
  min-width: 220px;
  margin-bottom: 0;
}

.mp3-search-result {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--mp3-border);
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface);
  margin-bottom: 12px;
}

.mp3-search-result__media {
  flex-shrink: 0;
}

.mp3-search-result__media img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--mp3-radius-sm);
}

.mp3-search-result__body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.mp3-search-result__body h3 a {
  color: var(--mp3-text) !important;
}

.mp3-search-result__meta {
  font-size: 13px;
  color: var(--mp3-text-muted);
}

.mp3-empty-state {
  padding: 28px 16px;
  text-align: center;
  color: var(--mp3-text-muted);
  border: 1px dashed var(--mp3-border);
  border-radius: var(--mp3-radius-sm);
  background: var(--mp3-surface-muted);
}

@media (max-width: 767px) {
  .mp3-hero {
    padding: 28px 22px;
  }

  .mp3-hero__actions {
    flex-direction: column;
  }

  .mp3-btn {
    width: 100%;
  }
}
