/* Mobile overrides for screens up to 900px */
@media (max-width: 900px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  body {
    font-size: 16px;
  }

  .app {
    height: auto;
    min-height: 100vh;
    padding: 0;
  }

  header {
    height: auto;
    padding: 10px 12px;
    flex-wrap: nowrap;
    gap: 10px;
    border-radius: 0;
  }

  .header-left,
  .header-right {
    gap: 8px;
  }

  .header-left {
    padding-top: 0;
  }

  .header-nav {
    display: none;
  }

  .header-btn {
    padding: 7px 12px;
    font-size: 0.85rem;
  }

  .body {
    flex-direction: column;
    margin-top: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  aside {
    order: 2;
    width: 100%;
    min-width: 0;
    border-right: none;
    border-top: 1px solid #1f1f1f;
    background: #0b0c10;
    padding: 10px 12px 12px;
  }

  .sidebar-top {
    gap: 10px;
  }

  .sidebar-search input {
    height: 36px;
    font-size: 0.85rem;
  }

  .tag-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tag {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .sidebar-links {
    display: none;
  }

  main {
    order: 1;
    padding: 10px 12px 18px;
  }

  .rml-hero {
    margin: 10px 0 12px;
    border-radius: 14px;
    min-height: 220px;
  }

  .rml-hero__content {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px 16px;
  }

  .rml-hero__title {
    font-size: 1.55rem;
  }

  .rml-hero__sub {
    font-size: 0.95rem;
  }

  .rml-hero__actions {
    gap: 10px;
  }

  .rml-hero__btn {
    flex: 1 1 48%;
    height: 40px;
  }

  .rml-hero__card {
    display: none;
  }

  .list-container {
    padding: 6px 0 0;
    gap: 0;
    max-height: none;
    overflow: visible;
  }

  .list-item {
    border: none;
    border-bottom: 1px solid #1f1f1f;
    border-radius: 0;
    padding: 14px 4px;
    background: transparent;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .track-info,
  .track-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .track-meta {
    gap: 2px;
  }

  .track-title {
    font-size: 0.98rem;
    font-weight: 600;
    width: 100%;
  }

  .track-tags {
    display: none;
  }

  .track-cover {
    width: 60px;
    height: 60px;
  }

  .track-waveform {
    display: none;
  }

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

  .track-action-btn {
    padding: 9px 12px;
    font-size: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
  }

  .track-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
  }
}

/* Small phones */
@media (max-width: 600px) {
  header {
    padding: 8px 10px;
  }

  .logo {
    height: 32px;
  }

  .rml-hero__title {
    font-size: 1.4rem;
  }

  .rml-hero__btn {
    flex: 1 1 100%;
  }

  .track-cover {
    width: 40px;
    height: 40px;
  }
}
