:root {
  color-scheme: light;
  --background: #f3f5f0;
  --surface: #ffffff;
  --text: #1f2523;
  --muted: #66736d;
  --border: #d9dfd8;
  --primary: #0d766e;
  --primary-hover: #095f59;
  --secondary-hover: #eef2ef;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(31, 37, 35, 0.12);
}

* {
  box-sizing: border-box;
}

.cover-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.cover-content {
  width: min(720px, 100%);
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cover-logo {
  width: min(420px, 88vw);
  height: auto;
  display: block;
}

.cover-enter-button {
  min-width: 180px;
  min-height: 48px;
  font-size: 17px;
}

.devotional-card {
  width: min(620px, 100%);
  display: grid;
  gap: 10px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.devotional-card h1 {
  font-size: 15px;
  white-space: normal;
}

.devotional-text {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.devotional-reference {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.cover-screen.is-hidden,
.auth-screen.is-hidden,
.app.is-hidden {
  display: none;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: auto;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #00d084 0%, #79e6bb 50%, #e8fff5 100%);
  color: var(--text);
}

.app {
  min-width: 1488px;
  min-height: 100vh;
  display: grid;
  align-items: start;
  align-content: start;
  row-gap: 4px;
  justify-items: center;
  padding: 14px;
}

.app-devotional {
  width: 1460px;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  color: #173d36;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-layout {
  width: 1460px;
  display: grid;
  grid-template-columns: 260px minmax(0, 580px) minmax(0, 580px);
  align-items: start;
  gap: 16px;
}

.main-column {
  display: grid;
  gap: 14px;
}

.panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 170px;
  max-width: 46vw;
  height: auto;
  flex: 0 0 auto;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: 30px;
  white-space: nowrap;
}

h2 {
  font-size: 21px;
}

.clock-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.clear-form-button {
  min-height: 28px;
  border-color: var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.clear-form-button:hover {
  background: var(--secondary-hover);
  color: var(--text);
}

.clock {
  min-width: 138px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: right;
}

.clock span {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.clock small {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 8px;
}

.time-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.time-fields > div {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(13, 118, 110, 0.18);
  border-color: var(--primary);
}

.button-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-row {
  margin-top: 10px;
}

.form .button-row {
  flex-wrap: nowrap;
  gap: 7px;
}

.form .button-row button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}

button {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.compact-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.primary {
  background: var(--primary);
  color: white;
}

.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.secondary {
  background: white;
  border-color: var(--border);
  color: var(--text);
}

.secondary:hover:not(:disabled) {
  background: var(--secondary-hover);
}

.status {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.saved-heading,
.suggestions-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bulk-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: -6px 0 14px;
}

.bulk-action-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.bulk-lock-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.bulk-lock-button.is-locked {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.bulk-lock-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.select-all-control {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.select-all-control input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--primary);
}

.danger-text {
  color: var(--danger);
}

.section-kicker {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}


.local-files-panel {
  max-height: 620px;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
}

.local-files-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.file-input {
  display: none;
}

.local-picker-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
}

.folder-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 82px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 12px;
  color: var(--text);
  cursor: pointer;
}

.folder-launcher:hover {
  border-color: var(--primary);
  background: #eefbf6;
}

.folder-icon {
  position: relative;
  width: 52px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 4px 5px 5px 5px;
  background: #e4b743;
  box-shadow: inset 0 -6px 0 rgba(151, 105, 20, 0.16);
}

.folder-icon::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 4px;
  width: 24px;
  height: 10px;
  border-radius: 4px 4px 0 0;
  background: #f2c85b;
}

.folder-launcher-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.folder-launcher-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.folder-launcher-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.local-file-selected {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.local-file-selected.is-hidden {
  display: none;
}

.local-file-name {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}

.local-file-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.local-files-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 6px;
}

.local-files-list::-webkit-scrollbar {
  width: 10px;
}

.local-files-list::-webkit-scrollbar-track {
  background: var(--secondary-hover);
  border-radius: 999px;
}

.local-files-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.local-file-button {
  min-height: auto;
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.local-file-button:hover,
.local-file-button.is-selected {
  border-color: var(--primary);
  background: #eefbf6;
}

.local-file-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.suggestions-list,
.saved-list {
  display: grid;
  gap: 12px;
}

.suggestions-panel {
  max-height: 620px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.suggestions-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.suggestions-list::-webkit-scrollbar {
  width: 10px;
}

.suggestions-list::-webkit-scrollbar-track {
  background: var(--secondary-hover);
  border-radius: 999px;
}

.suggestions-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.suggestions-panel .youtube-card {
  align-items: stretch;
  min-height: 112px;
}

.suggestions-panel .youtube-thumb {
  height: 100%;
  aspect-ratio: auto;
}

.suggestions-panel .youtube-info {
  align-content: start;
  padding: 12px 12px 12px 0;
}

.suggestions-panel .youtube-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.saved-add-area,
.link-preview {
  display: grid;
  gap: 8px;
}

.saved-add-area {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfb;
  margin-bottom: 16px;
  padding: 14px;
}

.saved-add-area.is-hidden,
.link-preview.is-hidden {
  display: none;
}

.compact-row {
  margin-top: 0;
}

.link-preview {
  margin-top: 2px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.youtube-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: #ffffff;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.youtube-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(31, 37, 35, 0.1);
  transform: translateY(-1px);
}

.youtube-card.large {
  grid-template-columns: 160px minmax(0, 1fr);
}

.youtube-card.is-lockable .youtube-info {
  padding-right: 44px;
}

.saved-item-row,
.suggestion-item-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.suggestion-select-placeholder {
  width: 18px;
  min-height: 18px;
}

.saved-select-checkbox {
  justify-self: start;
  align-self: center;
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.saved-select-checkbox:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lock-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.lock-button:hover {
  background: var(--secondary-hover);
}

.lock-button.is-locked {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.lock-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.youtube-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 42px;
  height: 30px;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  background: #ff0033;
}

.play-badge::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.youtube-info {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px 10px 0;
}

.youtube-title {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.youtube-link {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action-button {
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--secondary-hover);
  color: var(--text);
  font-size: 13px;
}

.card-action-button.danger {
  color: var(--danger);
}

.scheduled-panel.is-hidden {
  display: none;
}

.scheduled-time {
  margin: -6px 0 14px;
  color: var(--muted);
}

.app-footer {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(13, 118, 110, .25);
  color: rgba(31, 37, 35, .76);
  font-size: 13px; padding: 20px 12px 4px;
}
.footer-main,.footer-bottom{display:flex;justify-content:space-between;gap:16px;align-items:center}.footer-main strong{color:var(--primary);font-size:16px}.footer-main span{font-size:10px;letter-spacing:.08em;font-weight:700}.app-footer a{color:var(--primary);font-weight:700;text-decoration:none}.footer-bottom{border-top:1px solid var(--border);margin-top:14px;padding-top:12px;font-size:12px}.footer-bottom nav{display:flex;gap:14px}
.auth-screen{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,470px);background:linear-gradient(135deg,#073d3a,#0d766e 55%,#22c55e);color:#fff}.auth-hero{padding:clamp(32px,8vw,120px);display:grid;align-content:center;gap:16px;max-width:780px}.auth-hero .cover-logo{width:min(340px,80%);filter:brightness(0) invert(1)}.auth-hero h1{font-size:clamp(34px,4vw,58px);white-space:normal}.auth-hero>p:not(.section-kicker){font-size:18px;line-height:1.6;max-width:560px}.auth-hero .section-kicker{color:#a7f3d0}.auth-card{background:#fff;color:var(--text);padding:clamp(28px,5vw,64px);display:grid;align-content:center;gap:20px;min-height:100vh;box-shadow:-20px 0 50px rgba(0,0,0,.12)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--border)}.auth-tab{border:0;background:none;padding:12px;color:var(--muted);font-weight:700}.auth-tab.active{color:var(--primary);border-bottom:2px solid var(--primary)}.auth-form{display:none;gap:13px}.auth-form.active{display:grid}.auth-form label,.settings-form label{display:grid;gap:6px;color:var(--text);font-weight:700;font-size:14px}.auth-form input,.settings-form input{min-height:44px}.auth-message{min-height:18px;margin:0;color:var(--muted);font-size:13px;line-height:1.4}.auth-message.error{color:var(--danger)}.auth-message.success{color:#087443}.password-help{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.text-button{width:max-content;min-height:30px;border:0;background:none;padding:0;color:var(--primary);font-weight:700}.auth-hero .devotional-card{color:var(--text);margin-top:18px}.profile-trigger{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--text);font-size:12px;font-weight:700;cursor:pointer}.profile-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;background-size:cover;background-position:center}.profile-avatar.has-image{font-size:0}.settings-panel{position:fixed;top:0;right:0;z-index:20;width:min(440px,100vw);height:100vh;overflow:auto;background:#fff;box-shadow:-12px 0 42px rgba(0,0,0,.2);padding:24px;transform:translateX(105%);transition:transform .2s ease}.settings-panel.is-open{transform:translateX(0)}.settings-backdrop{display:none;position:fixed;inset:0;z-index:19;background:rgba(7,27,25,.48)}.settings-backdrop.is-open{display:block}.settings-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.icon-button{border:0;background:none;font-size:30px;line-height:1;color:var(--muted)}.settings-form{display:grid;gap:13px;margin:16px 0}.color-row{display:grid;grid-template-columns:46px 1fr;gap:8px}.color-row input[type=color]{padding:3px;min-height:44px}.color-presets{display:flex;gap:8px}.color-presets button{width:28px;min-height:28px;border-radius:50%;padding:0;background:var(--swatch);border:2px solid #fff;box-shadow:0 0 0 1px var(--border)}.cover-preview{height:94px;border:1px dashed var(--border);border-radius:8px;background:#f4f7f5 center/cover}.cover-preview.has-image{border-style:solid}.settings-details{border-top:1px solid var(--border);padding:15px 0}.settings-details summary{cursor:pointer;font-weight:700;color:var(--primary)}
@media(max-width:760px){.auth-screen{grid-template-columns:1fr}.auth-hero{padding:42px 28px}.auth-card{min-height:0;padding:32px 28px}.app{min-width:0}.app-layout,.app-devotional{width:100%;min-width:0}.app-layout{grid-template-columns:1fr}.local-files-panel,.suggestions-panel{display:none}.footer-main,.footer-bottom{align-items:flex-start;flex-direction:column}.profile-trigger span:last-child{display:none}}
.auth-hero .cover-logo { filter: none; }

/* Paleta oficial do Open Music: azul elétrico, violeta e magenta. */
:root { color-scheme: light; --background:#f6f7ff; --surface:#ffffff; --text:#171b34; --muted:#626982; --border:#dce0f3; --primary:#315cff; --primary-hover:#2449d8; --secondary-hover:#eef0ff; --accent:#c52be8; --shadow:0 18px 40px rgba(38,51,135,.14); }
body { background:linear-gradient(135deg,#eaf0ff 0%,#f7edff 55%,#e8faff 100%); }
.auth-screen { background:linear-gradient(125deg,#151d53 0%,#315cff 48%,#c52be8 100%); }
.auth-hero .section-kicker { color:#e5d7ff; }.auth-hero .devotional-card { background:rgba(255,255,255,.94); }.app-footer { border-color:rgba(49,92,255,.24); }.footer-main strong,.app-footer a { color:var(--primary); }
.theme-toggle { width:max-content;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;padding:8px 12px;background:var(--surface);color:var(--text);font:700 12px Arial,sans-serif;cursor:pointer;box-shadow:0 4px 12px rgba(29,36,92,.08); }.auth-card>.theme-toggle { justify-self:end;margin-bottom:-4px; }.settings-theme-toggle { margin:0 0 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { color-scheme:dark; --background:#0d1025; --surface:#171b34; --text:#f2f4ff; --muted:#b5bddb; --border:#2b3157; --primary:#7090ff; --primary-hover:#9dacff; --secondary-hover:#252b51; --shadow:0 18px 40px rgba(0,0,0,.35); } :root:not([data-theme]) body { background:linear-gradient(135deg,#0d1025,#15163a 55%,#25103a); } :root:not([data-theme]) .auth-card,:root:not([data-theme]) .settings-panel { background:#171b34; } :root:not([data-theme]) input { background:#11152d;color:#f2f4ff;border-color:#353b64; } :root:not([data-theme]) .devotional-card { background:#20264a; } }
:root[data-theme="dark"] { color-scheme:dark; --background:#0d1025; --surface:#171b34; --text:#f2f4ff; --muted:#b5bddb; --border:#2b3157; --primary:#7090ff; --primary-hover:#9dacff; --secondary-hover:#252b51; --shadow:0 18px 40px rgba(0,0,0,.35); }
:root[data-theme="dark"] body { background:linear-gradient(135deg,#0d1025,#15163a 55%,#25103a); }:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .settings-panel { background:#171b34; }:root[data-theme="dark"] input { background:#11152d;color:#f2f4ff;border-color:#353b64; }:root[data-theme="dark"] .devotional-card { background:#20264a; }:root[data-theme="light"] { color-scheme:light; }
}

@media (max-width: 0px) {
  .app {
    padding: 16px;
  }

  .panel {
    padding: 22px;
  }

  .title-row {
    display: grid;
  }

  .brand-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand-logo {
    width: min(260px, 100%);
    max-width: 100%;
  }

  .clock-stack {
    justify-items: stretch;
  }

  .clock {
    width: 100%;
    text-align: left;
  }

  .clear-form-button {
    width: 100%;
  }

  h1 {
    font-size: 28px;
  }

  button {
    width: 100%;
  }

  .form .button-row {
    flex-wrap: wrap;
  }

  .time-fields {
    grid-template-columns: 1fr;
  }

  .saved-heading,
  .suggestions-heading {
    display: grid;
  }

  .bulk-actions {
    justify-content: stretch;
  }

  .bulk-action-controls {
    width: 100%;
  }

  .saved-item-row,
.suggestion-item-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .youtube-card,
  .youtube-card.large {
    grid-template-columns: 1fr;
  }

  .youtube-info {
    padding: 0 12px 12px;
  }
}













.logout-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(31, 37, 35, 0.12);
}

.logout-button:hover:not(:disabled) {
  color: var(--text);
}
.local-file-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.local-file-card.is-selected {
  border-color: var(--primary);
  background: #eefbf6;
}

.local-file-card .local-file-button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 2px;
}

.local-file-card .local-file-button:hover {
  background: transparent;
}

.local-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.local-file-actions .card-action-button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}
.local-media-thumb {
  display: grid;
  place-items: center;
  background: #18201d;
}

.local-media-art {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.local-media-cover {
  position: relative;
  z-index: 2;
  width: 70%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #56635d, #202723 62%);
  color: #d7f4e7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.local-media-vinyl {
  position: absolute;
  right: 0;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #131614 0 3px, #2c332f 4px 5px, #0d0f0e 6px 8px);
}

.local-media-thumb.video .local-media-cover {
  background: linear-gradient(135deg, #35586e, #1a2931 62%);
  color: #c4e9ff;
}
.local-saved-list:empty, .local-suggestions-list:empty { display: none; }

#local-saved-list:not(:empty),
#local-suggestions-list:not(:empty) {
  margin-bottom: 12px;
}

#local-saved-list .youtube-card,
#local-suggestions-list .youtube-card {
  margin-bottom: 0;
}

/* Mantém texto e fundo legíveis nos botões secundários em qualquer tema. */
.secondary {
  background: var(--surface);
  color: var(--text);
}

/* Rodapé institucional no padrão ATConnector, adaptado à paleta Open Music. */
.app-footer{margin-top:18px;color:var(--muted);border-top:0;padding:0}.app-footer-shell{display:grid;gap:12px;padding:16px 0 4px;border-top:1px solid var(--border)}.app-footer-main{display:flex;align-items:center;justify-content:space-between;gap:16px}.app-footer-brand{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0}.app-footer-logo{color:var(--text);font-size:1.02rem;font-weight:800;line-height:1}.app-footer-kicker{color:var(--text);font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.app-footer-brand p{flex-basis:100%;margin:0;color:var(--muted);font-size:.78rem;line-height:1.45}.app-footer-actions{display:flex;justify-content:flex-end}.status-badge{display:inline-flex;align-items:center;min-height:26px;gap:7px;padding:6px 9px;border:1px solid rgba(52,211,153,.35);border-radius:999px;background:rgba(52,211,153,.1);color:var(--text);font-size:.72rem;font-weight:700;line-height:1;white-space:nowrap}.status-badge-dot{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.18)}.app-footer-nav{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}.app-footer-nav a{position:relative;display:inline-flex;align-items:center;color:var(--muted);font-size:.76rem;font-weight:700;text-decoration:none}.app-footer-nav a:hover,.app-footer-nav a:focus-visible{color:var(--primary)}.app-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:10px;border-top:1px solid var(--border);color:var(--muted);font-size:.74rem;line-height:1.5}.app-footer-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px 14px;white-space:nowrap}@media(max-width:760px){.app-footer-main,.app-footer-bottom{align-items:flex-start;flex-direction:column}.app-footer-meta{justify-content:flex-start;white-space:normal}}

/* Controles de conta sempre disponíveis na coluna de arquivos. */
.sidebar-account-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--border)}.sidebar-account-controls .profile-trigger{min-width:0;text-align:left}.theme-toggle{width:36px;min-height:36px;padding:0;border-radius:50%;justify-content:center;font-size:16px}.auth-card>.theme-toggle{justify-self:end}.sidebar-account-controls .theme-toggle{font-size:16px}

/* Cartões de conteúdo obedecem ao tema; não podem manter fundo branco no modo escuro. */
.folder-launcher,.local-file-selected,.youtube-card,.local-file-card{background:var(--surface);color:var(--text)}.folder-launcher:hover{background:var(--secondary-hover)}.youtube-title,.youtube-link,.youtube-info,.local-file-card strong,.local-file-card small{color:var(--text)}.youtube-link,.local-file-card small{color:var(--muted)}

/* O rodapé recebe uma superfície sólida para preservar contraste sobre o gradiente da página. */
.app-footer{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:0 16px;box-shadow:0 10px 26px rgba(11,18,63,.12)}.app-footer-shell{border-top:0}.app-footer-logo,.app-footer-kicker,.app-footer-brand p,.app-footer-bottom,.app-footer-meta{color:var(--text)}.app-footer-brand p,.app-footer-bottom,.app-footer-meta{color:var(--muted)}.app-footer-nav a{color:var(--text)}.app-footer-nav a:hover,.app-footer-nav a:focus-visible{color:var(--primary)}
.cover-preview{background:var(--secondary-hover)}

/* A capa é o destaque pessoal no topo; a marca fica no rodapé institucional. */
.user-cover-header{width:390px;max-width:calc(100% - 160px);height:116px;border:1px dashed var(--border);border-radius:10px;background:var(--secondary-hover) center/cover no-repeat}.user-cover-header.has-image{border-style:solid}.app-footer-product{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.app-footer-mark{width:34px;height:34px;object-fit:contain}.app-footer-brand .app-footer-product+.app-footer-kicker{margin-left:0}@media(max-width:760px){.user-cover-header{width:100%;max-width:none;height:128px}.app-footer-mark{width:30px;height:30px}}
.app-top-brand{width:1460px;display:flex;align-items:center;justify-content:center;gap:15px;padding:10px 8px 2px;color:var(--text)}.app-top-brand img{width:68px;height:68px;object-fit:contain}.app-top-brand strong{font-size:30px;letter-spacing:.01em}@media(max-width:760px){.app-top-brand{width:100%;min-width:0;padding-top:6px}.app-top-brand img{width:52px;height:52px}.app-top-brand strong{font-size:24px}}

/* Mantém relógio intacto e reserva toda a largura restante para a capa. */
.title-row{display:grid;grid-template-columns:minmax(0,1fr) 160px;align-items:start}.brand-header{display:block;min-width:0}.user-cover-header{width:100%;max-width:none;height:140px}.clock-stack{width:160px;justify-items:end}.clock{width:160px;min-width:160px}.clock span{font-size:26px;white-space:nowrap}.clock small{white-space:nowrap}
.user-cover-header.has-image{cursor:zoom-in}.user-cover-header[aria-disabled="true"]{cursor:default}.user-cover-header:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.cover-lightbox{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);margin:auto;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--card);color:var(--text);box-shadow:0 22px 80px rgba(0,0,0,.45)}.cover-lightbox::backdrop{background:rgba(4,8,25,.78);backdrop-filter:blur(4px)}.cover-lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.cover-lightbox-head h2{margin:0;font-size:18px}.cover-lightbox img{display:block;width:100%;max-height:calc(100vh - 120px);object-fit:contain;border-radius:10px;background:var(--secondary-hover)}
