/* =========================================================================
 * suno-ia.css — Módulo "Suno (IA)" (JAMC IA v4) · mismo estilo que Video IA
 * Namespaced en .su- para no chocar con el resto del panel. Acento #06b6d4.
 * ========================================================================= */

.su-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    color: #e7ecf2;
    box-sizing: border-box;
}

.su-h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.su-sub { margin: 0 0 16px; color: #8b949e; font-size: 13px; }
.su-h2 { font-size: 17px; font-weight: 700; margin: 0; }
.su-sub2 { margin: 2px 0 0; color: #8b949e; font-size: 13px; }

.su-top {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.su-inputwrap {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 12px 12px 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.su-inputwrap:focus-within { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12); }

.su-title-input {
    width: 100%; border: 0; outline: 0; background: transparent;
    color: #fff; font-size: 15px; font-weight: 700; font-family: inherit;
    padding: 8px 6px; box-sizing: border-box; border-bottom: 1px solid #21262d;
    margin-bottom: 8px;
}
.su-title-input::placeholder { color: #5a6474; }

.su-textarea {
    width: 100%; min-height: 90px; resize: vertical;
    border: 0; outline: 0; background: transparent;
    color: #fff; font-size: 14px; line-height: 1.55; font-family: inherit;
    box-sizing: border-box; padding: 6px;
}
.su-textarea--style { min-height: 54px; }
.su-textarea::placeholder { color: #5a6474; }
.su-textarea.error { outline: 1px solid #f85149; border-radius: 6px; }
.su-textarea:disabled { opacity: 0.4; }

.su-inputbar { display: flex; align-items: center; padding: 8px 6px 6px; gap: 12px; }
.su-counter { margin-left: auto; color: #5a6474; font-size: 12px; }

.su-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c9d1d9; cursor: pointer; }
.su-toggle input { accent-color: #06b6d4; width: 15px; height: 15px; cursor: pointer; }

.su-panel {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 16px;
}
.su-label {
    display: block; color: #8b949e; font-size: 12px; font-weight: 700;
    letter-spacing: 0.4px; text-transform: uppercase; margin: 0 0 6px;
}

.su-select { position: relative; }
.su-select select {
    width: 100%; appearance: none;
    background: #161b22; color: #e7ecf2;
    border: 1px solid #30363d; border-radius: 10px;
    padding: 10px 30px 10px 12px; font-size: 13px; font-family: inherit; cursor: pointer;
}
.su-select select:focus { outline: 0; border-color: #06b6d4; }
.su-select::after {
    content: ""; position: absolute; right: 12px; top: 50%;
    width: 7px; height: 7px;
    border-right: 2px solid #7a8496; border-bottom: 2px solid #7a8496;
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.su-credits { margin: 14px 0 4px; color: #f2c94c; font-size: 13px; font-weight: 600; }
.su-credits-balance { font-size: 12px; color: #8b949e; margin-top: -6px; margin-bottom: 10px; }

.su-generate {
    width: 100%; margin-top: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #06b6d4; color: #04121a;
    border: 0; border-radius: 10px; padding: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: filter 0.15s, opacity 0.15s;
}
.su-generate:hover { filter: brightness(1.08); }
.su-generate:disabled { opacity: 0.65; cursor: default; filter: none; }

.su-actions { display: flex; gap: 8px; margin-top: 8px; }
.su-ghost {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: #161b22; color: #8b949e;
    border: 1px solid #30363d; border-radius: 10px;
    padding: 9px; font-size: 13px; cursor: pointer; font-family: inherit; transition: 0.15s;
}
.su-ghost:hover { border-color: #06b6d4; color: #c9d1d9; }
.su-ghost:disabled { opacity: 0.5; cursor: default; }

.su-spin {
    width: 15px; height: 15px;
    border: 2px solid rgba(4, 18, 26, 0.35); border-top-color: #04121a;
    border-radius: 50%; animation: su-spin 0.7s linear infinite;
}
@keyframes su-spin { to { transform: rotate(360deg); } }

.su-status-wrap { margin-top: 16px; }
.su-progress-track { height: 5px; background: #161b22; border-radius: 4px; overflow: hidden; }
.su-progress { height: 100%; width: 0; background: #06b6d4; transition: width 0.3s ease; }
.su-status { margin-top: 8px; font-size: 12px; color: #8b949e; }
.su-status.info { color: #58a6ff; }
.su-status.success { color: #3fb950; }
.su-status.warning { color: #d29922; }
.su-status.error { color: #f85149; }
.su-step { margin-top: 4px; font-size: 11px; color: #5a6474; }

.su-galleryhead {
    display: flex; align-items: center; justify-content: space-between;
    margin: 34px 0 16px;
}
.su-iconbtn {
    width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: 9px; background: #161b22; border: 1px solid #30363d;
    color: #aeb7c4; cursor: pointer; transition: 0.15s;
}
.su-iconbtn:hover { background: #1f2530; color: #fff; border-color: #06b6d4; }

.su-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.su-card { background: transparent; }
.su-thumbwrap {
    position: relative; aspect-ratio: 1 / 1;
    border-radius: 12px; overflow: hidden;
    background: #0c0f14; border: 1px solid #1e242e;
}
.su-thumb { width: 100%; height: 100%; object-fit: cover; display: block; background: #0c0f14; }
.su-play {
    position: absolute; inset: 0; margin: auto;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: rgba(10, 12, 16, 0.55); backdrop-filter: blur(2px);
    color: #fff; font-size: 22px; display: grid; place-items: center;
    cursor: pointer; transition: 0.15s;
}
.su-play:hover { background: rgba(10, 12, 16, 0.78); transform: scale(1.06); }
.su-card.playing .su-play { background: rgba(6, 182, 212, 0.75); }
.su-menu {
    position: absolute; top: 8px; right: 8px; z-index: 2;
}
.su-menu-btn {
    width: 30px; height: 30px; border-radius: 50%; border: 0;
    background: rgba(10, 12, 16, 0.55); backdrop-filter: blur(2px);
    color: #fff; display: grid; place-items: center; cursor: pointer; transition: 0.15s;
}
.su-menu-btn:hover { background: rgba(10, 12, 16, 0.78); }
.su-menu-dropdown {
    position: absolute; top: 36px; right: 0;
    background: #161b22; border: 1px solid #30363d; border-radius: 10px;
    min-width: 150px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.su-menu-item {
    width: 100%; display: flex; align-items: center; gap: 8px;
    background: transparent; border: 0; color: #e7ecf2;
    padding: 10px 12px; font-size: 13px; cursor: pointer; text-align: left; font-family: inherit;
}
.su-menu-item:hover { background: #1f2530; }

.su-badge {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(6, 8, 12, 0.82); color: #e7ecf2;
    font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px;
}
.su-title {
    font-size: 14px; font-weight: 600; margin: 10px 0 2px; color: #e7ecf2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.su-when { margin: 0; color: #8b949e; font-size: 12px; }

.su-pending .su-thumbwrap { display: grid; place-items: center; }
.su-shimmer {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, #12161d 30%, #1b2430 50%, #12161d 70%);
    background-size: 200% 100%; animation: su-sh 1.3s linear infinite;
}
@keyframes su-sh { to { background-position: -200% 0; } }
.su-genlabel { position: relative; z-index: 1; color: #cfe9f0; font-size: 13px; display: flex; gap: 6px; align-items: center; }

.su-empty {
    grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 48px 20px; color: #6b7482; text-align: center;
    border: 1px dashed #30363d; border-radius: 14px;
}
.su-empty i { font-size: 28px; color: #3a4454; }

@media (max-width: 900px) {
    .su-top { grid-template-columns: 1fr; }
    .su-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .su-grid { grid-template-columns: 1fr; }
}
