.glass-card {
    background: rgba(17, 17, 27, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}
.glass-panel {
    background: rgba(14, 14, 22, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.btn-aura {
    background: linear-gradient(110deg, #6366f1 0%, #8b5cf6 45%, #ec4899 55%, #8b5cf6 65%, #6366f1 100%);
    background-size: 200% 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.45);
}

:root {
  color-scheme: dark;
  --surface: #0d0d16;
  --ink: #f8fafc;
  --muted: #a5a8bc;
  --purple: #c4a5ff;
  --cyan: #a5f3fc;
  --line: rgba(255, 255, 255, .10);
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #07070c;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; margin: 0; }
a { color: var(--purple); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: #6d36ae; color: #fff; }
h1, h2, p { margin: 0; }
small { display: block; color: var(--muted); }
.mesh-bg {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 12%, #211846 0%, transparent 43%),
    radial-gradient(ellipse at 92% 13%, #132534 0%, transparent 34%),
    radial-gradient(ellipse at 66% 100%, #251431 0%, transparent 46%),
    #07070c;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-align: left; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ab6ff6;
  border-radius: 15px;
  background: linear-gradient(140deg, #241653, #150e23 65%, #122b34);
  color: #d0a0ff;
  box-shadow: 0 5px 21px #6e3ad04a;
  flex: 0 0 auto;
}
.brand strong { display: block; font-size: 1.48rem; font-weight: 800; letter-spacing: -.06em; line-height: 1.08; }
.brand small { margin-top: .28rem; color: var(--cyan); font-size: .59rem; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 41px; padding: .65rem .95rem; border-radius: 11px; font-size: .85rem; font-weight: 650; color: white; }
.btn-aura { border: 1px solid #af8dff52; background-color: #7c3aed; }
.btn-aura:hover { filter: brightness(1.13); }
.btn-outline { border: 1px solid var(--line); background: #ffffff08; color: var(--ink); }
.btn-outline:hover, .btn-outline.selected { background: #8b5cf626; border-color: #a877f969; }
.btn-small { min-height: 34px; padding: .45rem .65rem; font-size: .77rem; }
.btn-full { width: 100%; }
.caution { color: #fdb8cd; }
.notice { border: 1px solid #8b5cf656; background: #8b5cf619; padding: .85rem 1rem; border-radius: 12px; color: #e5d9ff; font-size: .88rem; line-height: 1.5; margin-bottom: 1rem; overflow-wrap: anywhere; }
.notice.danger { border-color: #fb71856b; background: #fb718513; color: #ffd3db; }
.muted { color: var(--muted); }

.auth-screen { min-height: 100svh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-shell { position: relative; width: min(100%, 445px); }
.aura-glow { position: absolute; z-index: -1; inset: -3px; border-radius: 2rem; pointer-events: none; background: linear-gradient(115deg, #6366f1, #9333ea, #22d3ee); opacity: .25; filter: blur(28px); }
.auth-card { padding: clamp(1.35rem, 5vw, 2rem); border-radius: 1.75rem; }
.auth-header { text-align: center; margin: .25rem 0 1.15rem; }
.auth-header p { color: var(--muted); font-size: .82rem; margin-top: .75rem; }
.equalizer { display: flex; align-items: center; justify-content: center; gap: 4px; height: 24px; margin-top: .6rem; }
.equalizer i { width: 3px; height: 8px; border-radius: 6px; background: linear-gradient(#c084fc, #22d3ee); }
.equalizer i:nth-child(3n) { height: 19px; }
.equalizer i:nth-child(2n) { height: 13px; }
.equalizer i:nth-child(5) { height: 24px; }
.auth-tabs { display: flex; background: #ffffff08; border: 1px solid var(--line); padding: 4px; margin-bottom: 1.1rem; border-radius: 13px; }
.auth-tabs a { flex: 1; text-align: center; padding: .65rem .45rem; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .83rem; }
.auth-tabs a.on { color: white; background: #8148cc4a; box-shadow: inset 0 0 0 1px #a774ee47; }
.auth-title { font-size: 1.17rem; margin-bottom: 1.1rem; letter-spacing: -.02em; }
.auth-form { display: grid; gap: .7rem; }
.auth-form .btn { min-height: 46px; margin-top: .35rem; }
.auth-note { margin-top: 1rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.input-group { position: relative; }
.input-group input, .form-panel input:not([type="radio"]), .copy-row input {
  width: 100%;
  min-width: 0;
  border-radius: 11px;
  border: 1px solid var(--line);
  padding: .75rem;
  color: var(--ink);
  background: #ffffff07;
}
.input-group input { height: 53px; padding: 1.15rem .85rem .25rem; }
.input-group input:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px #8b5cf633; }
.input-group label { position: absolute; top: 50%; left: .85rem; transform: translateY(-50%); font-size: .88rem; color: var(--muted); transition: top .15s, font-size .15s; pointer-events: none; }
.input-group input:is(:focus, :not(:placeholder-shown)) + label { top: .78rem; color: var(--purple); font-size: .67rem; }
.with-toggle input { padding-right: 4.65rem; }
.text-action { border: 0; background: transparent; color: var(--purple); }
.password-toggle { position: absolute; top: 50%; right: .7rem; transform: translateY(-50%); padding: .4rem; font-size: .74rem; }

.dashboard { min-height: 100svh; display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.sidebar { grid-row: 1 / 3; grid-column: 1; position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 1.25rem .95rem; gap: 1.8rem; border-width: 0 1px 0 0; z-index: 3; overflow: auto; }
.sidebar > .brand { margin-left: .2rem; }
.sidebar nav { display: grid; gap: .28rem; }
.nav-label { margin: 0 .6rem .32rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: .7rem; border: 1px solid transparent; border-radius: 11px; padding: .65rem .6rem; color: #c4c4d6; font-size: .85rem; }
.nav-link:hover, .nav-link.on { background: #8b5cf62c; border-color: #b092f246; color: white; }
.nav-icon { width: 1rem; color: var(--purple); font-size: 1rem; text-align: center; }
.logout-form { margin-top: auto; border-top: 1px solid var(--line); padding-top: 1rem; }
.logout-form button { width: 100%; }
.topbar { position: sticky; top: 0; grid-column: 2; grid-row: 1; z-index: 2; padding: .65rem clamp(1rem, 3vw, 2rem); display: flex; align-items: center; gap: .75rem; border-width: 0 0 1px 0; }
.crumb { color: #e5d9ff; font-size: .83rem; font-weight: 700; }
.profile { margin-left: auto; display: flex; gap: .55rem; align-items: center; padding: .25rem .58rem .25rem .28rem; background: #ffffff07; border: 1px solid var(--line); border-radius: 999px; max-width: min(56vw, 250px); }
.profile > span:last-child { min-width: 0; }
.profile strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.profile small { color: var(--purple); font-size: .63rem; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: linear-gradient(130deg, #4f46e5, #aa39bf); }
.mobile-menu { display: none; }
.dashboard-main { grid-column: 2; grid-row: 2; width: 100%; max-width: 1410px; justify-self: center; padding: clamp(1rem, 3vw, 2rem); min-width: 0; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 230px; padding: clamp(1.15rem, 3.5vw, 2.4rem); border-radius: 1.4rem; background: radial-gradient(ellipse at 93% 9%, #195b6b72, transparent 47%), linear-gradient(115deg, #231547, #341b4f 60%, #3f1f45); }
.hero h1 { font-size: clamp(1.7rem, 5vw, 3rem); letter-spacing: -.05em; line-height: 1.07; overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: #dcc7ff; }
.eyebrow { color: var(--cyan); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: .66rem; margin-bottom: .7rem; }
.hero p:not(.eyebrow) { color: #e0d6ef; font-size: .9rem; margin-top: .75rem; line-height: 1.5; }
.hero .btn { margin-top: 1.25rem; }
.record-tile { display: grid; place-items: center; flex: 0 0 143px; aspect-ratio: 1; background: linear-gradient(145deg, #42276e, #121020 64%, #123c49); border: 2px solid #a877ef; border-radius: 21px; box-shadow: 0 14px 32px #15072f99; }
.record { width: 69%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #e0bdffaa; background: radial-gradient(circle, #c3ecff 0 3%, #6628c4 4% 15%, #a88bee 16% 18%, transparent 19%), repeating-radial-gradient(circle, #27203b 0 4px, #51446a 5px, #27203b 6px 9px); }
.shelf-grid, .metric-grid { display: grid; gap: 1rem; margin-top: 1.4rem; }
.shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shelf { scroll-margin-top: 88px; }
.shelf h2, .form-panel h2 { font-size: 1.09rem; margin-bottom: .7rem; }
.empty { display: grid; align-content: center; justify-items: center; gap: .55rem; min-height: 142px; color: var(--muted); font-size: .83rem; text-align: center; padding: 1rem; border-radius: 1rem; }
.empty span { font-size: 1.65rem; color: var(--purple); }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { display: grid; gap: .5rem; justify-items: start; padding: 1rem; border-radius: 1rem; color: var(--ink); }
.metric:hover { border-color: #ad7cff77; }
.metric strong { font-size: 2rem; letter-spacing: -.07em; }
.section-heading { margin-bottom: 1.2rem; }
.section-heading h1 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); letter-spacing: -.04em; }
.section-heading p { margin-top: .45rem; color: var(--muted); line-height: 1.45; font-size: .88rem; }
.filters, .inline-actions, .copy-row, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.filters { margin-bottom: .85rem; }
.copy-row { flex-wrap: nowrap; margin: .45rem 0; max-width: 685px; }
.copy-status { color: var(--cyan); font-size: .78rem; }
.table-wrap { border-radius: .95rem; overflow: auto; }
.table-empty { padding: 1.25rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .83rem; }
th, td { padding: .8rem; }
th { background: #ffffff08; color: #d6cbec; font-size: .75rem; }
td { border-top: 1px solid var(--line); min-width: 100px; }
td:first-child { overflow-wrap: anywhere; }
td small { margin-top: .18rem; }
.pagination { margin-top: .8rem; color: var(--muted); font-size: .83rem; }
.pill { display: inline-block; font-size: .68rem; font-weight: 700; padding: .25rem .5rem; border-radius: 999px; background: #8657cb26; color: #e0caff; }
.pill.pendiente { background: #e4a12f27; color: #ffd896; }
.pill.aprobado { background: #2bc99326; color: #a4f9d2; }
.pill.suspendido, .pill.rechazado { background: #ed547c22; color: #ffc0d1; }
.form-panel { border-radius: 1rem; padding: clamp(1rem, 2.5vw, 1.4rem); margin-bottom: 1rem; }
.form-panel label { font-size: .82rem; color: #e6def2; }
.form-panel input:not([type="radio"]) { margin-top: .35rem; height: 41px; }
.invite-form { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(100px, 1fr) minmax(100px, 1fr) auto; align-items: end; gap: .75rem; }
.settings { max-width: 610px; }
.settings fieldset { border: 0; margin: 0; padding: 0; }
.settings legend { font-size: 1rem; font-weight: 700; margin-bottom: .55rem; }
.mode-card { display: flex; align-items: center; gap: .65rem; padding: .65rem; margin-bottom: .4rem; background: #ffffff07; border: 1px solid var(--line); border-radius: .7rem; cursor: pointer; }
.mode-card:has(input:checked) { background: #8b5cf621; border-color: #b48af07d; }
.mode-card input { accent-color: #a777fa; }
.mode-card small { margin-top: .25rem; line-height: 1.35; }
.settings p { margin: .8rem 0; font-size: .8rem; }
@media (max-width: 1020px) {
  .invite-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .dashboard-main, .topbar { grid-column: 1; }
  .mobile-menu { display: inline-flex; min-height: 33px; padding: .28rem .53rem; }
  .sidebar { display: none; position: fixed; left: 0; top: 57px; bottom: 0; height: auto; width: min(83vw, 260px); background: #121121; box-shadow: 12px 16px 38px #0009; }
  .sidebar.menu-open { display: flex; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-tile { flex-basis: 102px; }
}
@media (max-width: 430px) {
  .hero { min-height: 185px; gap: .6rem; }
  .record-tile { display: none; }
  .shelf-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Movimiento del diseño AuraSound suministrado para el acceso y el estudio. */
.mesh-bg { overflow: hidden; pointer-events: none; }
.aura-orb {
  position: absolute;
  width: clamp(15rem, 48vw, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .26;
  animation: aura-blob 12s ease-in-out infinite alternate;
}
.aura-orb:nth-child(1) { background: #7c3aed; top: -21%; left: -9%; }
.aura-orb:nth-child(2) { background: #4f46e5; right: -12%; top: 24%; animation-delay: -2s; }
.aura-orb:nth-child(3) { background: #db2777; bottom: -28%; left: 22%; animation-delay: -4s; }
.aura-orb:nth-child(4) { background: #06b6d4; top: 22%; right: 25%; width: clamp(11rem, 28vw, 23rem); animation-delay: -6s; opacity: .14; }
@keyframes aura-blob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -60px) scale(1.15); }
  66% { transform: translate(-30px, 30px) scale(.9); }
  100% { transform: translate(15px, -15px) scale(1.05); }
}
.auth-form { animation: aura-form-in .35s cubic-bezier(.16, 1, .3, 1) both; }
.dashboard-main { animation: aura-view-in .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes aura-form-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aura-view-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.equalizer i { transform-origin: center bottom; animation: aura-equalizer 1.15s ease-in-out infinite alternate; }
.equalizer i:nth-child(2n) { animation-delay: -.43s; }
.equalizer i:nth-child(3n) { animation-delay: -.72s; }
.equalizer i:nth-child(5n) { animation-delay: -.18s; }
@keyframes aura-equalizer { from { transform: scaleY(.32); } to { transform: scaleY(1); } }
.record-tile { animation: aura-float 6s ease-in-out infinite; }
.record { position: relative; animation: aura-spin 12s linear infinite; }
.record::after { content: ""; position: absolute; width: 40%; height: 1px; top: 48%; left: 7%; background: linear-gradient(90deg, transparent, #bea3fe8c, transparent); transform: rotate(-28deg); }
@keyframes aura-float { 50% { transform: translateY(-8px); } }
@keyframes aura-spin { to { transform: rotate(360deg); } }
.btn-aura:hover { background-position: 100% 0; }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
.aura-fields { display: grid; gap: .8rem; }
.aura-fields label { display: block; min-width: 0; }
.aura-fields select {
  display: block; width: 100%; margin-top: .35rem; height: 41px; padding: .55rem .75rem;
  border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); font: inherit;
}
.source-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-fields small { grid-column: 1 / -1; }
.source-root { overflow-wrap: anywhere; margin: .65rem 0; }
.source-settings { margin-top: .8rem; }
.source-settings summary { cursor: pointer; font-size: .86rem; color: var(--purple); }
.source-settings form { margin-top: .8rem; max-width: 440px; }
.source-settings .check-field { display: flex; align-items: center; gap: .5rem; }
.form-panel .source-settings input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #a777fa; }
.source-select-folder { margin-top: .5rem; }
.folder-grid { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.folder-grid button { max-width: 100%; overflow-wrap: anywhere; }
.sync-status { margin: .55rem 0; font-size: .8rem; }
@media (max-width: 650px) {
  .source-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .aura-orb, .auth-form, .dashboard-main, .equalizer i, .record-tile, .record { animation: none; }
}

.source-overlay[hidden], .source-progress[hidden], .source-progress [hidden] { display: none !important; }
.source-overlay {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem;
  background: rgba(9, 13, 26, .62); backdrop-filter: blur(4px);
}
.source-overlay-card {
  display: flex; gap: .85rem; align-items: center; padding: 1.2rem 1.5rem; border-radius: 16px;
}
.source-overlay-card p { margin: 0; }
.source-spinner {
  flex: 0 0 1.35rem; width: 1.35rem; height: 1.35rem; border: 2px solid rgba(181, 155, 255, .24);
  border-top-color: #a977ff; border-right-color: #9ee7f3; border-radius: 50%; animation: aura-spin .75s linear infinite;
}
.source-progress { margin-top: 1rem; padding: .9rem 1rem; background: rgba(117, 91, 188, .11); border: 1px solid var(--line); border-radius: 12px; }
.source-progress-head, .source-progress-values { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.source-progress-values { gap: .5rem 1.15rem; padding: .6rem 0; font-size: .85rem; }
.source-progress-values strong { color: var(--purple); }
.source-progress p { margin: .3rem 0; font-size: .84rem; overflow-wrap: anywhere; }
.source-progress p:empty { display: none; }
.source-progress a { margin-top: .55rem; }
.source-delete { margin-top: 1rem; }
.source-delete summary { cursor: pointer; color: #ff9eb8; font-size: .87rem; }
.source-delete p { margin: .6rem 0; }
.source-fields label.source-check, label.source-check { display: flex; align-items: center; gap: .5rem; }
.form-panel .source-check input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #a777fa; }
.source-preview-heading { margin-top: 1rem; }
.source-preview { padding-inline-start: 1.3rem; }
.source-preview li { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .source-spinner { animation: none; }
}

.profile-link { color: inherit; text-decoration: none; }
img.avatar { object-fit: cover; }
.table-profile, .album-heading { display: flex; align-items: center; gap: .75rem; }
.profile-panel { max-width: 680px; margin-bottom: 1rem; }
.profile-photo { margin-bottom: 1rem; }
.profile-photo .avatar { width: 76px; height: 76px; font-size: 1.5rem; }
.profile-panel form, .profile-panel fieldset { display: grid; gap: .85rem; }
.profile-panel .btn { justify-self: start; }
.profile-panel fieldset { border: 1px solid rgba(255,255,255,.12); border-radius: .65rem; padding: .85rem; min-width: 0; }
.profile-panel legend { padding: 0 .35rem; }
.profile-panel .confirm-delete { display: flex; align-items: center; gap: .5rem; margin-top: .85rem; }
.profile-panel .confirm-delete input { width: auto; margin: 0; }
.profile-panel textarea { width: 100%; resize: vertical; color: inherit; font: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: .65rem; padding: .7rem; }
.catalog-shelf { margin-top: 1.5rem; }
.album-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
.album-card { display: grid; align-content: start; gap: .3rem; color: inherit; padding: .65rem; text-decoration: none; overflow-wrap: anywhere; }
.album-card:hover { border-color: #a482fd; }
.album-card small { color: var(--muted, #aaa7bb); }
.album-cover { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: .6rem; overflow: hidden; font-size: 1.8rem; background: linear-gradient(135deg, #292353, #1e293e); }
.album-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.album-heading .album-cover { width: 76px; flex-shrink: 0; }
.audio-player { position: sticky; top: 3.9rem; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; padding: .65rem .9rem; margin: .75rem 0; background: #171626; }
.audio-player[hidden] { display: none; }
.audio-label { display: grid; flex: 1 1 210px; min-width: 0; overflow-wrap: anywhere; }
.audio-label span { color: var(--muted, #aaa7bb); font-size: .83rem; }
.audio-player audio { flex: 1 1 270px; max-width: 100%; height: 42px; color-scheme: dark; }
.report-detail { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 42ch; }

.brand span:last-child { min-width: 0; overflow-wrap: anywhere; }
img.brand-custom { object-fit: contain; }
.marca-preview { max-width: 110px; max-height: 76px; object-fit: contain; }
.studio { --player-height: 86px; --studio-sidebar: 235px; }
.studio .topbar { min-width: 0; }
.studio-main { padding-bottom: calc(var(--player-height) + 2rem); }
.studio-icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; vertical-align: middle; }
.studio-search { position: relative; flex: 1 1 38rem; max-width: 38rem; min-width: 0; display: flex; align-items: center; color: #a7b2c7; }
.studio-search .studio-icon { position: absolute; left: .8rem; pointer-events: none; }
.studio-search input { padding: .65rem .8rem .65rem 2.4rem; margin: 0; width: 100%; }
.studio-shuffle { flex: 0 0 auto; margin-left: auto; background: #0d2833; border: 1px solid #1c5867; border-radius: 999px; color: #77e2f0; padding: .37rem .65rem; font-size: .75rem; font-weight: 700; cursor: pointer; }
.studio-shuffle .studio-icon { width: .92rem; height: .92rem; }
.studio .profile { margin-left: 0; }
.studio-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.studio-filters a { padding: .43rem .85rem; border: 1px solid #ffffff21; background: #ffffff08; color: #d9dbe8; text-decoration: none; border-radius: 999px; font-size: .83rem; font-weight: 700; }
.studio-filters a:hover,.studio-filters a.on { color: white; background: #8c35df; border-color: #ae65f0; box-shadow: 0 4px 0 #7c2bc14d; }
.studio-hero { position: relative; border-radius: 1.6rem; overflow: hidden; padding: clamp(1.15rem, 3.4vw, 2.3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; background: radial-gradient(ellipse at 95% 25%, #26707855, transparent 60%), linear-gradient(112deg,#262050,#351845 58%,#3a1b35); animation: studio-in .42s ease both; }
.studio-hero h1 { font-size: clamp(1.65rem, 4.2vw, 3rem); line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; margin-bottom: .55rem; }
.studio-hero p { color: #cdd3e5; }
.studio-hero .eyebrow { color: #a0eff6; }
.studio-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.studio-hero-actions .btn { display: inline-flex; align-items: center; gap: .45rem; }
.studio-hero-art { flex: 0 0 clamp(86px, 18vw, 158px); border: 3px solid #9074fd; animation: studio-float 5s ease-in-out infinite; box-shadow: 0 0 28px #712ecc66; background: radial-gradient(ellipse at 15% 10%, #0b5965, #121225 67%); }
.studio-hero-art .studio-icon { width: 45%; height: 45%; animation: studio-disc 12s linear infinite; }
.studio-heading { margin-top: 1.8rem; margin-bottom: .9rem; }
.studio-heading h2 { font-size: clamp(1.15rem,2.2vw,1.52rem); margin: 0; letter-spacing: -.02em; }
.studio-heading a { color: #d6a9ff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.studio-heading a:hover,.studio-album a:hover,.track-album:hover { text-decoration: underline; }
.studio-albums { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.studio-cover { position: relative; aspect-ratio: 1; border-radius: .75rem; display: grid; place-items: center; overflow: hidden; background: linear-gradient(133deg,#5438cb,#a13bc2 63%,#c13e8c); color: #f2defe; }
.studio-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.studio-cover img[hidden] { display: none; }
.studio-album { display: grid; grid-template-columns: 65px minmax(0,1fr) auto; align-items: center; gap: .85rem; padding: .95rem; border-radius: 1rem; transition: border-color .22s ease,transform .22s ease,background-color .22s ease; animation: studio-in .42s ease both; }
.studio-album:nth-child(even) .studio-cover { background: linear-gradient(130deg,#1299ac,#07875f); }
.studio-album:hover { transform: translateY(-2px); border-color: #9468d091; background-color: #1e162b; }
.studio-album-name,.track-text,.studio-player-meta>div:last-child { min-width: 0; }
.studio-album-name a { display: block; font-weight: 750; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.studio-album-name small,.track-text small,.studio-player-meta small { display: block; color: #a4adc3; font-size: .77rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.studio-album-name small:last-child { margin-top: .23rem; }
.studio-round,.studio-plain { display: inline-grid; place-items: center; background: transparent; color: #cbd1e3; border: 0; border-radius: .55rem; padding: 0; cursor: pointer; width: 34px; height: 34px; text-decoration: none; flex-shrink: 0; }
.studio-plain:hover,.studio-plain:focus-visible { background: #ffffff1c; color: #fff; }
.studio-plain[aria-pressed="true"] { color: #77e2f0; }
.studio-round { border-radius: 50%; background: linear-gradient(135deg,#963be1,#6028b0); color: white; width: 38px; height: 38px; transition: transform .2s ease,box-shadow .2s ease; }
.studio-round:hover { transform: scale(1.08); box-shadow: 0 0 18px #9952ed7d; }
.album-heading .studio-cover { width: 74px; flex-shrink: 0; }
.studio-tracks { border-radius: 1rem; overflow: hidden; }
.studio-track { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) auto auto; align-items: center; gap: .45rem; padding: .4rem .65rem; border-bottom: 1px solid #ffffff0e; }
.studio-track:last-child { border-bottom: 0; }
.studio-track:hover,.studio-track.is-current { background: #8a68c41a; }
.studio-track-main { display: grid; grid-template-columns: 24px 41px minmax(0,1fr); align-items: center; gap: .6rem; min-width: 0; text-align: left; color: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; }
.studio-track-main strong,.studio-player-meta strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .86rem; }
.studio-track.is-current strong { color: #a0eff6; }
.track-index { display: flex; align-items: end; justify-content: center; gap: 2px; min-height: 17px; color: #a4a8bf; font-size: .7rem; }
.track-index .studio-icon,.track-index i { display: none; }
.studio-track-main:hover .track-index span,.studio-track.is-playing .track-index span,.studio-track.is-playing .track-index .studio-icon { display: none; }
.studio-track-main:hover .track-index .studio-icon { display: inline; color: #fff; }
.studio-track.is-playing .track-index i,.studio-player.is-playing .mini-eq i { display: block; width: 2px; height: 14px; background: #72dfea; transform-origin: bottom; animation: studio-eq .65s ease-in-out infinite alternate; }
.studio-track.is-playing .track-index i:nth-of-type(2),.mini-eq i:nth-child(even) { animation-delay: -.23s; background: #af75fa; }
.studio-track.is-playing .track-index i:nth-of-type(3),.mini-eq i:nth-child(3) { animation-delay: -.46s; background: #ee70ce; }
.track-album { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #c9b6e0; font-size: .8rem; text-decoration: none; }
.studio-player { z-index: 10; position: fixed; inset: auto 0 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,1.35fr) minmax(0,1fr); align-items: center; gap: .65rem; padding: .55rem clamp(.75rem,2vw,1.65rem) calc(.5rem + env(safe-area-inset-bottom)); background: #101019ed; border-top: 1px solid #ffffff20; backdrop-filter: blur(20px); }
.studio-player-meta { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: .6rem; align-items: center; }
.studio-player-cover .studio-icon { animation: studio-disc 8s linear infinite paused; }
.studio-player.is-playing .studio-player-cover .studio-icon { animation-play-state: running; }
.studio-player-center,.studio-controls { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.studio-player-center { flex-direction: column; gap: .2rem; min-width: 0; }
.studio-main-play { background: linear-gradient(120deg,#6055e9,#9742d6,#d45aa7); }
.studio-main-play .studio-icon:nth-child(2),.studio-player.is-playing .studio-main-play .studio-icon:first-child { display: none; }
.studio-player.is-playing .studio-main-play .studio-icon:nth-child(2) { display: block; }
.studio-timeline { width: 100%; display: flex; align-items: center; gap: .45rem; color: #a4adc3; font: .72rem monospace; }
.studio-timeline input,.studio-volume { height: 16px; padding: 0; margin: 0; accent-color: #a675fa; background: transparent; }
.studio-timeline input { min-width: 0; flex: 1; }
.studio-player-right { display: flex; align-items: center; justify-content: flex-end; gap: .22rem; }
.mini-eq { display: flex; align-items: end; gap: 2px; width: 18px; }
.studio-volume { width: min(7vw,84px); }
.studio-status { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); max-width: 90vw; padding: .45rem .7rem; border-radius: .7rem; background: #211933; color: #fff; font-size: .8rem; }
.studio-queue { position: absolute; bottom: calc(100% + 1px); right: 0; width: min(95vw,350px); max-height: min(65vh,535px); overflow: auto; padding: 1rem; border-radius: .8rem .8rem 0 0; background: #151321; }
.studio-queue h2 { font-size: 1rem; }
.studio-queue ol { margin: 0; padding-left: 1.35rem; }
.studio-queue li button { color: #ddd6f1; padding: .35rem; border: 0; background: transparent; cursor: pointer; text-align: left; }
.studio-queue li button[aria-current="true"] { color: #a0eff6; }
@keyframes studio-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes studio-float { 50% { transform: translateY(-6px); } }
@keyframes studio-disc { to { transform: rotate(360deg); } }
@keyframes studio-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@media (max-width: 900px) {
  .studio-album { grid-template-columns: 48px minmax(0,1fr) auto; gap: .55rem; padding: .72rem; }
}
@media (max-width: 680px) {
  .studio { --player-height: 119px; }
  .studio .profile { padding: .18rem; }
  .studio .profile > span:last-child:not(.avatar) { display: none; }
  .studio .topbar { gap: .32rem; padding-inline: .5rem; }
  .studio-search input { font-size: .8rem; }
  .studio-shuffle span { display: none; }
  .studio-albums { gap: .6rem; grid-template-columns: 1fr; }
  .studio-hero { align-items: flex-start; }
  .studio-hero-art { flex-basis: 70px; }
  .studio-track { grid-template-columns: minmax(0,1fr) auto auto; }
  .track-album { display: none; }
  .studio-player { grid-template-columns: minmax(0,1fr) auto; gap: .32rem; }
  .studio-player-meta { grid-template-columns: 37px minmax(0,1fr); grid-column: 1; }
  .studio-player-center { grid-column: 1/-1; grid-row: 2; }
  .studio-player-right { grid-column: 2; grid-row: 1; }
  .studio-volume,.studio-mute,.mini-eq { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-hero,.studio-hero-art,.studio-hero-art .studio-icon,.studio-album,.studio-player.is-playing .studio-player-cover .studio-icon,
  .studio-player.is-playing .mini-eq i,.studio-track.is-playing .track-index i { animation: none; }
}
.studio .logout-form { margin-bottom: var(--player-height); }
.studio-controls .repeat-track { position: relative; }
.studio-controls .repeat-track::after { content: "1"; position: absolute; right: 3px; bottom: 0; font-size: .6rem; font-weight: 700; }
.studio .sidebar { overflow-y: auto; }

.aura-member { --player-height: 86px; }
.aura-member .dashboard-main { padding-bottom: calc(var(--player-height) + 2rem); }
.aura-member .logout-form { margin-bottom: var(--player-height); }
.aura-member .sidebar { overflow-y: auto; }
.nav-count { margin-left: auto; font-size: .72rem; padding: .12rem .42rem; border-radius: 1rem; background: #a97dd629; color: #e5cdff; }
.nav-heart { color: #f083bd; }
.nav-queue { text-align: left; width: 100%; background: transparent; cursor: pointer; }
.nav-queue .nav-icon { color: #74dce7; }
.featured-albums .studio-albums { grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); }
.featured-albums .studio-album { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .8rem; }
.featured-albums .studio-album .studio-cover { width: 100%; }
.featured-albums .studio-album > .studio-round { position: absolute; right: 1.5rem; top: 1.5rem; box-shadow: 0 4px 18px #0008; }
.studio-anchors { margin-bottom: 1rem; }
.studio-track { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) repeat(3,auto); }
.studio-player-meta { grid-template-columns: 45px minmax(0,1fr) auto; }
.studio-player-meta > div { min-width: 0; }
.studio-plain[data-studio-favorite][aria-pressed="true"] { color: #f487c2; }
.studio-plain[data-studio-favorite][aria-pressed="true"] path { fill: currentColor; }
.studio-plain[data-studio-favorite]:disabled { opacity: .32; cursor: default; }
.genre-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.genre-form select { min-width: 110px; width: auto; }
@media (max-width: 680px) {
  .aura-member { --player-height: 119px; }
  .featured-albums .studio-albums { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-albums .studio-album > .studio-round { top: 1.1rem; right: 1.1rem; }
  .studio-track { grid-template-columns: minmax(0,1fr) repeat(3,auto); gap: .15rem; }
  .studio-track .studio-plain { width: 30px; }
  .studio-player-meta { grid-template-columns: 37px minmax(0,1fr) auto; }
}

.studio-player-meta { grid-template-columns: 45px minmax(0,1fr) repeat(2,auto); }
.studio-report-dialog { color: var(--ink); background: #191526; padding: 1.15rem; border-radius: .9rem; width: min(92vw, 470px); margin: auto; }
.studio-report-dialog::backdrop { background: #080711b5; }
.studio-report-dialog h2 { font-size: 1.15rem; margin: 0; }
.studio-report-dialog form { display: grid; gap: .85rem; margin-top: .8rem; }
.studio-report-dialog label { display: grid; gap: .3rem; }
.studio-report-dialog textarea { min-height: 6.5rem; width: 100%; color: inherit; background: #100e19; border: 1px solid #ffffff26; border-radius: .55rem; padding: .65rem; resize: vertical; }
.studio-report-dialog [data-report-status]:empty { display: none; }
.studio-report-dialog [type="submit"] { justify-self: start; }
@media (max-width: 680px) {
  .studio-player-meta { grid-template-columns: 37px minmax(0,1fr) repeat(2,auto); }
  .studio-player-meta .studio-plain { width: 30px; }
}

.studio-player-meta { grid-template-columns: 45px minmax(0,1fr) repeat(3,auto); }
.studio-lyrics-button[hidden], .studio-lyrics [hidden], .studio-lyrics[hidden] { display: none !important; }
.studio-lyrics-button[aria-expanded="true"] { color: #f487c2; background: #a331ac29; }
.studio-lyrics { position: fixed; z-index: 9; inset: 0 0 var(--player-height,86px); overflow: hidden; display: flex; flex-direction: column; color: #faf6ff; isolation: isolate; background: radial-gradient(ellipse at 70% 93%,#2e4160b3,transparent 48%),radial-gradient(ellipse at 4% 10%,#4f367f,transparent 56%),linear-gradient(140deg,#17132d,#251439 63%,#3c1a32); animation: lyrics-open .32s ease-out both; }
.studio-lyrics::before { content: ""; position: absolute; z-index: -1; inset: 18% -14% -28% 35%; background: radial-gradient(ellipse,#5b598c50,transparent 55%); animation: lyrics-aura 9s ease-in-out infinite alternate; pointer-events: none; }
.lyrics-header { width: 100%; max-width: 1260px; margin: 0 auto; padding: clamp(.85rem,2vw,1.6rem) clamp(1rem,3vw,2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; border-bottom: 1px solid #ffffff17; }
.lyrics-identity,.lyrics-controls,.lyrics-song,.lyrics-guide > div,.lyrics-guide > div > span { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.lyrics-identity { flex: 1 1 335px; }
.lyrics-credits { min-width: 0; }
.lyrics-song h2 { min-width: 0; color: white; margin: 0; font-size: clamp(1rem,2vw,1.3rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyrics-credits p { margin: .16rem 0 0; color: #d5c8e5; font-size: .81rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyrics-badge { display: inline-flex; align-items: center; gap: .2rem; text-transform: uppercase; padding: .18rem .52rem; border-radius: .85rem; font-size: .62rem; font-weight: 800; color: #fbc9f0; border: 1px solid #f184d774; background: #e05ccd3a; box-shadow: 0 0 14px #f274d15b; }
.lyrics-badge svg,.lyrics-sync svg { width: .85rem; height: .85rem; color: #67e5f4; }
.lyrics-square,.lyrics-insignia { display: inline-grid; place-items: center; border-radius: .78rem; flex: 0 0 auto; width: 2.7rem; height: 2.7rem; color: white; background: #ffffff17; border: 1px solid #ffffff12; }
.lyrics-square { cursor: pointer; }
.lyrics-square:hover { background: #ffffff2d; }
.lyrics-square[data-lyrics-fullscreen] { width: 2.25rem; height: 2.25rem; }
.lyrics-square[data-lyrics-fullscreen] svg:nth-child(2),.lyrics-square[data-lyrics-fullscreen][aria-pressed="true"] svg:first-child { display: none; }
.lyrics-square[data-lyrics-fullscreen][aria-pressed="true"] svg:nth-child(2) { display: inline; }
.lyrics-insignia { width: 3rem; height: 3rem; background: linear-gradient(135deg,#6863fc,#a531e9 68%,#f156ae); border-color: #ffffff35; box-shadow: 0 6px 22px #a449d253; }
.lyrics-controls { gap: .5rem; flex-wrap: wrap; }
.lyrics-controls button { font-size: .75rem; font-weight: 700; }
.lyrics-sync { display: inline-flex; align-items: center; gap: .36rem; border: 1px solid #e78bca62; border-radius: .8rem; color: #f2c3e7; background: #cc57b62d; padding: .56rem .68rem; cursor: pointer; }
.lyrics-sync[aria-pressed="true"] { box-shadow: 0 0 18px #e36bc84e; }
.lyrics-sizes { display: flex; gap: .15rem; padding: .22rem; border-radius: .8rem; background: #110b1fc7; border: 1px solid #ffffff1a; }
.lyrics-sizes button { color: #c4b7d6; background: transparent; border: 0; padding: .4rem .57rem; border-radius: .6rem; cursor: pointer; }
.lyrics-sizes button[aria-pressed="true"] { background: #8c32e4; color: #fff; }
.lyrics-guide { width: min(100%,1150px); margin: .75rem auto 0; padding: 0 clamp(1.1rem,4.5vw,3.2rem); }
.lyrics-guide > div { justify-content: space-between; color: #73e8fa; font-size: .76rem; font-weight: 700; }
.lyrics-guide time,.lyric-stamp { font-family: ui-monospace,monospace; font-size: .71rem; color: #dfccf4; white-space: nowrap; }
.lyrics-guide i { flex: 0 0 .52rem; height: .52rem; border-radius: 50%; background: #e149b6; box-shadow: 0 0 0 .24rem #c24ebd34; animation: lyrics-pulse 1.8s infinite; }
.lyrics-guide progress { width: 100%; height: .36rem; display: block; margin-top: .53rem; overflow: hidden; border: 0; border-radius: .5rem; background: #ffffff25; appearance: none; }
.lyrics-guide progress::-webkit-progress-bar { background: #ffffff19; }
.lyrics-guide progress::-webkit-progress-value { background: linear-gradient(90deg,#5de2ee,#b277fa,#ed6cc8); }
.lyrics-guide progress::-moz-progress-bar { background: linear-gradient(90deg,#5de2ee,#b277fa,#ed6cc8); }
.lyrics-verses { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; width: min(100%,1150px); margin: .3rem auto 0; padding: clamp(1rem,4vw,3rem) clamp(1rem,5vw,3.5rem) 22vh; scrollbar-color: #814dcc95 transparent; }
.lyric-line { display: grid; grid-template-columns: 3rem minmax(0,1fr); align-items: baseline; gap: .68rem; width: 100%; border: 0; background: transparent; text-align: start; color: #ded2eb91; padding: .55rem .8rem; margin: 0 0 .95rem; border-radius: .9rem; font: inherit; transition: color .3s, background .3s, transform .35s, text-shadow .3s; }
button.lyric-line { cursor: pointer; }
button.lyric-line:hover { background: #ffffff11; color: #f8eaff; }
.lyric-line .lyric-words { overflow-wrap: anywhere; white-space: pre-line; font-size: clamp(1.43rem,3.35vw,2.3rem); letter-spacing: -.037em; line-height: 1.16; font-weight: 800; }
.lyric-stamp { color: #ba9bd7a5; }
.lyric-line.is-current { transform: scale(1.015); background: #ea9bec14; color: white; text-shadow: 0 0 17px #58a6ee80; }
.lyric-line.is-current .lyric-stamp { color: #dfc6f4; }
.lyric-line.is-read { color: #aaa0bd78; }
.lyric-line.is-plain { display: block; color: #f0e1fa; }
.studio-lyrics[data-size="normal"] .lyric-words { font-size: clamp(1.1rem,2.1vw,1.7rem); }
.studio-lyrics[data-size="stage"] .lyric-words { font-size: clamp(1.8rem,5.4vw,3.7rem); }
@keyframes lyrics-open { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lyrics-aura { to { transform: translate(-10%,-8%) scale(1.22); } }
@keyframes lyrics-pulse { 50% { opacity: .5; box-shadow: 0 0 0 .37rem #c24ebd19; } }
@media (max-width: 680px) {
  .studio-player-meta { grid-template-columns: 37px minmax(0,1fr) repeat(3,auto); }
  .lyrics-header { padding: .62rem .8rem; }
  .lyrics-controls { gap: .32rem; }
  .lyrics-identity { flex-basis: 100%; }
  .lyrics-insignia { width: 2.45rem; height: 2.45rem; }
  .lyrics-square { width: 2.3rem; height: 2.3rem; }
  .lyric-line { grid-template-columns: 2.25rem minmax(0,1fr); gap: .32rem; padding: .5rem; margin-bottom: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-lyrics,.studio-lyrics::before,.lyrics-guide i { animation: none; }
  .lyric-line { transition: none; }
}

[data-studio-swipe] { touch-action: pan-y pinch-zoom; }
@media (pointer: coarse) {
  [data-studio-swipe] { user-select: none; }
}
