/* ============================================================
   SUNO DOWNLOADER | PAGE-SPECIFIC STYLES
   ============================================================ */


.suno-downloader-heading {
  margin-bottom: 24px;
}

.suno-downloader-heading h1 {
  margin: 8px 0 10px;
}

.suno-downloader-heading p {
  max-width: 920px;
}


/* ============================================================
   SUNO DOWNLOADER | LOOKUP
   ============================================================ */


.suno-downloader-lookup-card {
  margin-bottom: 26px;
}

.suno-downloader-form {
  display: grid;
  gap: 12px;
}

.suno-downloader-label {
  display: block;
  font-size: clamp(12px, .9375vw, 36px);
  font-weight:500;
  letter-spacing: 0.08em;
}

.suno-downloader-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 15.625vw));
  gap: clamp(12px, .9375vw, 36px);
  align-items: stretch;
}

.suno-downloader-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(10px, .78125vw, 30px);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: clamp(16px, 1.40625vw, 54px);
  min-height: clamp(52px, 4.0625vw, 156px);
  padding: clamp(14px, 1.09375vw, 42px) clamp(16px, 1.25vw, 48px);
}

/* ============================================================
   SUNO DOWNLOADER | MATCHED URL ACTIONS
   Keep the canonical .pub / .view colors, radius and behavior.
   Only unify geometry within the existing downloader form row.
   Golden 1280: both buttons 200px wide and 52px high.
   ============================================================ */

.suno-downloader-input-row > .pub,
.suno-downloader-input-row > .view {
  box-sizing: border-box;
  width: 100%;
  height: clamp(52px, 4.0625vw, 156px);
  min-height: clamp(52px, 4.0625vw, 156px);
  padding: 0 clamp(12px, 1.171875vw, 45px);
  font-size: clamp(16px, 1.25vw, 48px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

/* ============================================================
   SUNO DOWNLOADER | MOBILE FORM LAYOUT
   Canonical .pub and .view buttons come from Labs-Interface.css.
   ============================================================ */

@media (max-width:819px){
  .suno-downloader-input-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .suno-downloader-input {
    font-size: 16px;
    min-height:52px;
  }
  .suno-downloader-label {
    font-size: 12px;
  }
}

.suno-downloader-input:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.suno-downloader-help,
.suno-downloader-note,
.suno-downloader-option-note {
  font-size: 13px;
  line-height: 1.55;
}

/* Engine status | 1280 golden geometry: 14px = 1.09375vw */
.suno-downloader-status {
  min-height: clamp(24px, 1.875vw, 72px);
  font-size: clamp(14px, 1.09375vw, 42px);
  line-height: 1.55;
  color: #ff7300;
}


/* ============================================================
   SUNO DOWNLOADER | SONG RESULT
   ============================================================ */


.suno-downloader-result[hidden] {
  display: none;
}

.suno-downloader-song-card {
  margin-bottom: 26px;
}

.suno-downloader-song-layout {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.suno-downloader-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.suno-downloader-song-copy h2 {
  margin-top: 0;
}

.suno-downloader-artist,
.suno-downloader-facts,
.suno-downloader-tags {
  margin: 8px 0 0;
}

.suno-downloader-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.suno-downloader-download-heading {
  margin-bottom: 12px;
}


/* ============================================================
   SUNO DOWNLOADER | DOWNLOAD OPTIONS
   ============================================================ */


.suno-downloader-download-grid {
  margin-bottom: 18px;
}

.suno-downloader-option-card .card-content {
  display: grid;
  gap: 12px;
}

.suno-downloader-option-card h3 {
  margin: 0;
}

.suno-downloader-option-card .button {
  width: 100%;
}

.suno-downloader-option-card[aria-disabled="true"] {
  opacity: 0.52;
}

.suno-downloader button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============================================================
   SUNO DOWNLOADER | PORTRAIT FORM ACTION ORDER
   Keep canonical .pub / .view appearance and the desktop layout.
   ============================================================ */
@media (orientation:portrait), (max-width:819px){
  .suno-downloader-input-row {
    grid-template-columns: minmax(0, 1fr);
    gap:calc(16 * var(--labs-portrait-u,1px));
  }
  .suno-downloader-input-row > .suno-downloader-input { order: 0;min-height:calc(52 * var(--labs-portrait-u,1px));font-size:calc(16 * var(--labs-portrait-u,1px));padding:calc(14 * var(--labs-portrait-u,1px)) calc(16 * var(--labs-portrait-u,1px)); }
  .suno-downloader-label{font-size:calc(12 * var(--labs-portrait-u,1px))}
  .suno-downloader-input-row > .pub { order: 1; }
  .suno-downloader-input-row > .view { order: 2; }
  .suno-downloader-input-row > .pub,
  .suno-downloader-input-row > .view {
    width: 100%;
    height:calc(52 * var(--labs-portrait-u,1px));
    min-height:calc(52 * var(--labs-portrait-u,1px));
    padding:0 calc(12 * var(--labs-portrait-u,1px));
    font-size:calc(16 * var(--labs-portrait-u,1px));
  }
}

/* ============================================================
   SUNO DOWNLOADER | TABLET PORTRAIT BOTTOM NAVIGATION
   Restore the existing LABS rail only on this page. The shared
   interface hides it in tablet portrait for other LABS pages.
   ============================================================ */
@media (orientation:portrait) and (min-width:820px){
  .rail { display: flex; }
  .rail > .dock-edge { display: grid; }
  .app { padding-bottom: calc(var(--ui-dock) + var(--ui-dock-offset) + 8px); }
  .panel { bottom: calc(var(--ui-dock) + var(--ui-dock-offset)); }
  .sleeve { bottom: calc(var(--ui-dock) + var(--ui-dock-offset)); }
}

/* ============================================================
   SUNO DOWNLOADER | STATUS MESSAGE EMPHASIS
   ============================================================ */
.suno-downloader-status .suno-status-white { color: #fff; }
.suno-downloader-status .suno-status-orange { color: #ff7300; }

/* ============================================================
   SUNO DOWNLOADER | SAVE TO CLOUD INTERACTION
   Preserve charcoal background and white text on hover, tap,
   active and keyboard focus; orange outline only.
   Scoped to this one link, leaving canonical .view untouched.
   ============================================================ */
#suno-downloader-cloud:hover,
#suno-downloader-cloud:active,
#suno-downloader-cloud:focus,
#suno-downloader-cloud:focus-visible {
  background: #121419;
  color: #fff;
  outline: 2px solid #ff7300;
  outline-offset: -2px;
}
