/* GigHub Bands 13.29 — prateleira e caixa realista de CDs */
.gh-cd-repertoire {
  --cd-wood-1:#3b2115;
  --cd-wood-2:#674027;
  --cd-cabinet:#121415;
}

.gh-cd-repertoire .repertoire-groups,
.gh-cd-repertoire .repertoire-set-cards {
  position:relative;
}

.gh-cd-repertoire .repertoire-set-group,
.gh-cd-repertoire .modern-set-card {
  position:relative;
  overflow:visible!important;
  border:2px solid #090a0a!important;
  border-radius:6px!important;
  background:
    linear-gradient(90deg,#050606,#252728 3%,#111314 8%,#191b1c 93%,#050606)!important;
  box-shadow:inset 0 0 0 1px #ffffff12,inset 5px 0 8px #000,inset -5px 0 8px #000,0 13px 22px #0007!important;
}

.gh-cd-repertoire .repertoire-set-group { margin-bottom:32px!important; }
.gh-cd-repertoire .modern-set-card { padding:12px!important; color:#f9f2e7!important; }

.gh-cd-repertoire .repertoire-set-group::after,
.gh-cd-repertoire .modern-set-card::after {
  content:"";
  position:absolute;
  z-index:-1;
  left:-7px;
  right:-7px;
  bottom:-16px;
  height:17px;
  border-top:2px solid #a56c40;
  border-radius:2px;
  background:linear-gradient(180deg,#845231 0 18%,#56321d 20% 52%,#28150d 54%);
  box-shadow:inset 0 2px 2px #efb77b55,inset 0 -3px 3px #120907,0 8px 10px #0008;
}

.gh-cd-repertoire .repertoire-set-group>summary {
  min-height:64px!important;
  margin:8px!important;
  padding:11px 12px!important;
  border:1px solid #ffffff22!important;
  border-radius:4px!important;
  background:
    linear-gradient(112deg,var(--gh-box-a,#6d2f32),color-mix(in srgb,var(--gh-box-b,#24171b) 58%,#111) 56%,#0e1011)!important;
  color:#fff5e8!important;
  box-shadow:inset 0 1px #ffffff2d,inset 0 -1px #000,0 4px 8px #0009!important;
}

.gh-cd-repertoire .repertoire-set-group>summary strong,
.gh-cd-repertoire .modern-set-card h3 { color:#fff5e8!important; font-family:Georgia,serif; }
.gh-cd-repertoire .repertoire-set-group>summary span,
.gh-cd-repertoire .modern-set-card p,
.gh-cd-repertoire .set-card-kicker { color:#d5c2af!important; }
.gh-cd-repertoire .set-group-body { padding:0 9px 10px!important; background:transparent!important; }

.gh-cd-entry { display:grid;gap:2px;min-width:0; }
.gh-cd-spine {
  min-height:59px;
  margin:2px 0!important;
  position:relative;
  display:grid!important;
  grid-template-columns:14px 5px minmax(0,1fr) auto!important;
  gap:0!important;
  align-items:stretch!important;
  overflow:hidden;
  border:1px solid #d6dfe0a3!important;
  border-radius:2px 6px 6px 2px!important;
  background:
    linear-gradient(90deg,#ecffff46,transparent 5%,transparent 94%,#edffff55 97%,#4d57585e),
    linear-gradient(180deg,#fff 0 1px,#ffffff39 2px,transparent 9px,transparent calc(100% - 7px),#000b calc(100% - 1px)),
    linear-gradient(90deg,var(--cd-deep),var(--cd-color) 25%,#111 94%)!important;
  box-shadow:inset 0 1px #fff,inset 0 -1px #000,inset 4px 0 6px #fff3,0 3px 4px #000c!important;
  color:#fff4e4!important;
  transform:translateX(0) scale(.988);
  transform-origin:left center;
  transition:transform .34s cubic-bezier(.18,.8,.2,1),filter .24s ease,box-shadow .34s ease!important;
}

.gh-cd-spine::before {
  content:"";
  position:absolute;
  z-index:7;
  top:3px;
  left:20px;
  right:9px;
  height:3px;
  border-radius:50%;
  background:linear-gradient(90deg,transparent,#ffffffc7 20%,#ffffff1b 64%,transparent);
}

.gh-cd-spine::after {
  content:"";
  position:absolute;
  z-index:6;
  inset:0;
  pointer-events:none;
  background:linear-gradient(108deg,transparent 0 24%,#ffffff28 24.5%,transparent 27%),linear-gradient(94deg,transparent 0 71%,#ffffff18 71.3%,transparent 72%),linear-gradient(90deg,#fff4,transparent 3%,transparent 95%,#fff3);
  mix-blend-mode:screen;
}

.gh-cd-spine:hover,
.gh-cd-spine:focus-within,
.gh-cd-spine.is-cd-selected {
  z-index:12;
  filter:brightness(1.08) saturate(1.04);
  transform:translateX(min(18px,4vw)) scale(1.018);
  box-shadow:inset 0 1px #fff,inset 0 -1px #000,inset 5px 0 8px #fff4,-9px 8px 18px #000c,0 0 0 1px color-mix(in srgb,var(--cd-semantic) 64%,white 15%)!important;
}

.gh-cd-hinge {
  position:relative;
  z-index:5;
  border-right:1px solid #0009;
  background:linear-gradient(90deg,#efffff52,#505a5b50 43%,#e8ffff4e 52%,#161a1b91);
}
.gh-cd-hinge::before,.gh-cd-hinge::after {
  content:"";position:absolute;left:3px;right:3px;height:9px;border:1px solid #d6e0e066;border-radius:1px;background:#1118;box-shadow:inset 0 1px #fff4;
}
.gh-cd-hinge::before{top:4px}.gh-cd-hinge::after{bottom:4px}

.gh-cd-type-strip { position:relative;z-index:5;background:var(--cd-semantic);box-shadow:inset 1px 0 #ffffff62,inset -1px 0 #0008,0 0 8px color-mix(in srgb,var(--cd-semantic) 58%,transparent); }
.gh-cd-medley .gh-cd-type-strip { background:repeating-linear-gradient(180deg,var(--cd-semantic) 0 8px,var(--cd-color) 8px 16px,var(--cd-deep) 16px 24px); }

.gh-cd-copy { min-width:0;position:relative;z-index:5;padding:8px 8px 7px 10px;display:grid;align-content:center;gap:4px;text-shadow:0 1px 2px #000; }
.gh-cd-title-line { display:flex;align-items:center;gap:6px;min-width:0; }
.gh-cd-title { min-width:0;overflow:hidden;color:#fff7e8!important;font-family:Georgia,serif;font-size:14px!important;font-weight:750!important;line-height:1.15!important;text-overflow:ellipsis;white-space:nowrap; }
.gh-cd-subtitle { overflow:hidden;color:#e2d7c8!important;font-family:"Courier New",monospace;font-size:9px!important;font-weight:700;letter-spacing:.035em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap; }
.gh-cd-study { display:flex;align-items:center;gap:4px;min-height:0; }
.gh-cd-study .song-study-badge { min-height:19px!important;padding:2px 6px!important;border:1px solid #ffffff35!important;border-radius:5px!important;background:#05060791!important;color:#fff!important;font-size:8px!important;font-weight:800!important;line-height:1!important;box-shadow:none!important; }

.gh-cd-medley-tray { margin:0 9px 4px 20px;overflow:hidden;border:1px solid #b9c5c66b;border-top:0;border-radius:0 0 5px 5px;background:linear-gradient(180deg,#16191b,#080909);color:#f5eee4;box-shadow:inset 0 0 12px #000,0 3px 5px #0008; }
.gh-cd-medley-tray>summary { min-height:34px;padding:6px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;color:#f1ddc4;font:800 10px/1.2 "Courier New",monospace;letter-spacing:.04em;text-transform:uppercase; }
.gh-cd-medley-tray>summary small { min-width:22px;padding:3px 5px;border:1px solid #ffffff2b;border-radius:999px;background:var(--cd-semantic);color:#fff;text-align:center; }
.gh-cd-medley-tray .medley-link-list { margin:0!important;padding:4px 7px 8px!important;display:grid!important;gap:3px!important;border:0!important;background:transparent!important; }
.gh-cd-medley-tray .medley-link-row { min-height:38px!important;padding:4px 6px!important;border:1px solid #ffffff1e!important;border-radius:4px!important;background:linear-gradient(90deg,var(--cd-deep),#121416)!important;color:#fff!important; }
.gh-cd-medley-tray .medley-link-row strong,.gh-cd-medley-tray .medley-link-row small { color:#fff!important; }
.gh-cd-medley-tray .media-icon-button { width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:4px!important;border:1px solid #ffffff2b!important;border-radius:8px!important;background:#050505b8!important; }
.gh-cd-medley-tray .media-icon-button img { width:20px!important;height:20px!important;object-fit:contain!important; }

.gh-cd-type-badge { flex:0 0 auto;display:inline-flex;align-items:center;gap:3px;padding:2px 5px;border:1px solid color-mix(in srgb,var(--cd-semantic) 75%,white);border-radius:3px;background:color-mix(in srgb,var(--cd-semantic) 28%,#080808);color:#fff;font:900 7px/1 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;box-shadow:inset 0 1px #ffffff24,0 0 6px color-mix(in srgb,var(--cd-semantic) 45%,transparent); }

.gh-cd-actions { min-width:112px;position:relative;z-index:8;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;padding:0 7px 0 4px!important;border:0!important;border-left:1px solid #ffffff25!important;background:linear-gradient(90deg,transparent,#0008)!important; }
.gh-cd-actions .gh-cd-number { color:#fff0dc;font:900 12px/1 "Courier New",monospace; }
.gh-cd-actions button { width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:5px!important;border:1px solid #ffffff28!important;border-radius:10px!important;background:#080808a8!important;color:#fff!important;box-shadow:0 1px 3px #000b!important; }
.gh-cd-actions .media-icon-button img { width:20px!important;height:20px!important;object-fit:contain!important; }
.gh-cd-actions .song-more-btn svg { width:17px!important;height:17px!important; }
.gh-cd-actions .song-notice-button>span { position:absolute;right:-3px;top:-4px; }

.gh-cd-drag { align-self:center;margin-left:2px!important;color:#eee!important;opacity:.72; }
.gh-cd-spine:not(.has-drag) { grid-template-columns:14px 5px minmax(0,1fr) auto!important; }
.gh-cd-spine.has-drag { grid-template-columns:14px 5px 30px minmax(0,1fr) auto!important; }
.gh-cd-spine.has-drag .gh-cd-copy { padding-left:5px; }

.gh-cd-set-preview { display:grid;gap:2px;padding:8px;border:1px solid #ffffff1d;border-radius:4px;background:#080909;box-shadow:inset 0 0 12px #000; }
.gh-cd-set-preview span { min-height:24px!important;padding:4px 7px!important;display:grid!important;grid-template-columns:25px minmax(0,1fr)!important;align-items:center;border:1px solid #d9e1e25f;border-radius:2px;background:linear-gradient(90deg,var(--cd-preview,#4c5861),#151718)!important;color:#fff!important;box-shadow:inset 0 1px #ffffff52,inset 0 -1px #000!important; }
.gh-cd-set-preview span b { color:#f4d9bc!important;font-family:"Courier New",monospace; }
.gh-cd-set-preview span em { color:#fff!important;font-family:Georgia,serif; }
.gh-cd-repertoire .set-card-stats>span { background:#0d0f10!important;border-color:#ffffff1c!important; }
.gh-cd-repertoire .set-card-stats small { color:#cbbcac!important; }
.gh-cd-repertoire .set-card-stats strong { color:#fff!important; }

.band-palette-card { display:grid;gap:14px; }
.band-palette-card header { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }
.band-palette-card h3 { margin:3px 0 4px; }
.band-palette-card p { margin:0;color:var(--muted);font-size:12px; }
.band-palette-grid { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px; }
.band-palette-swatch { position:relative;min-width:0;display:grid;gap:5px;justify-items:center; }
.band-palette-swatch input[type=color] { width:100%;height:48px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--surface);cursor:pointer; }
.band-palette-swatch button { width:26px;height:26px;padding:0;border-radius:50%;background:var(--surface-3);color:var(--muted); }
.band-palette-presets { display:flex;flex-wrap:wrap;gap:7px; }
.band-palette-presets button { min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:800; }
.band-palette-preview { display:flex;min-height:44px;overflow:hidden;border:1px solid var(--line);border-radius:13px; }
.band-palette-preview i { flex:1;min-width:0; }
.band-palette-readonly { display:flex;gap:5px; }
.band-palette-readonly i { width:34px;height:34px;border-radius:10px;border:1px solid #ffffff55;box-shadow:inset 0 1px #fff5; }

/* ===== 13.29 — caixa de CD realista (capa → abre → encarte + CD liso) ===== */
body.gh-cd-modal-open { overflow:hidden!important; }
.gh-cd-viewer { --cd-t:1.34s;position:fixed;z-index:12000;inset:0;display:grid;place-items:center;overflow:hidden;padding:calc(env(safe-area-inset-top) + 58px) 12px calc(env(safe-area-inset-bottom) + 22px);opacity:0;pointer-events:none;transition:opacity .22s ease; }
.gh-cd-viewer.is-open { opacity:1;pointer-events:auto; }
.gh-cd-viewer.is-closing { opacity:0;pointer-events:none;transition-duration:.18s; }
.gh-cd-viewer-backdrop { position:absolute;inset:0;background:radial-gradient(ellipse 85% 65% at 50% 42%,#2b3238f0,#090b0df8 72%); }
.gh-cd-dialog { --cd-dx:-25%;--cd-dy:0%;position:relative;width:min(94vw,880px,calc((100vh - 130px)*2));width:min(94vw,880px,calc((100dvh - 130px)*2));perspective:1800px;perspective-origin:50% 38%;transition:transform .2s ease; }
.gh-cd-viewer.is-closing .gh-cd-dialog { transform:scale(.95); }
.gh-cd-close,.gh-song-page-close { display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border:1px solid #ffffff70!important;border-radius:50%!important;background:#11171de8!important;color:#fff!important;font:800 23px/1 Arial,sans-serif!important;box-shadow:0 5px 15px #0008!important; }
.gh-cd-close { position:absolute;z-index:30;right:-4px;top:-46px; }
.gh-song-page-close { position:fixed;z-index:9000;right:max(12px,env(safe-area-inset-right));top:calc(env(safe-area-inset-top) + 58px); }

.gh-cd-stage { position:relative;width:100%;aspect-ratio:2/1;transform-style:preserve-3d; }
.gh-cd-stage::before { content:"";position:absolute;left:4%;right:4%;bottom:-8%;height:13%;background:radial-gradient(ellipse at 50% 30%,#000c,#0000 68%);transform:translateZ(-2px);pointer-events:none; }
.gh-jewel-case { position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr; }
.gh-cd-insert,.gh-cd-tray { position:relative;min-width:0;min-height:0; }

/* Encarte (booklet) */
.gh-cd-paper { background:
  linear-gradient(105deg,#fff0 0 70%,#ffffff8c 77%,#fff0 84%),
  radial-gradient(120% 80% at 18% 0%,#ffffffb8,#fff0 62%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
  #f3efe6;
  box-shadow:inset 0 0 0 1px #ffffffe6,inset 0 0 28px #5f503c24; }
.gh-cd-insert { container-type:size;color:#262320;font-family:var(--gh-font,system-ui,sans-serif);border-radius:7px 0 0 7px;overflow:hidden; }
.gh-cd-insert::after { content:"";position:absolute;inset:6px 18px 6px 6px;border:1px solid #5a52482b;pointer-events:none; }
.gh-cd-clear-hinge { position:absolute;z-index:6;right:0;top:0;bottom:0;width:12px;border-left:1px solid #9fb4b66b;background:linear-gradient(90deg,#fbffff66,#8ca2a437 45%,#f6ffff59),repeating-linear-gradient(180deg,#0000 0 17px,#7d939570 17px 18px,#0000 18px 34px);box-shadow:inset 1px 0 #fffa,-3px 0 6px #2d3a3c24; }
.gh-cd-sheet { box-sizing:border-box;position:relative;z-index:2;height:100%;display:flex;flex-direction:column;gap:12px;padding:16px 28px 16px 16px;padding:6cqw calc(6cqw + 14px) 5cqw 6cqw;gap:3.4cqh; }
.gh-cd-head-top { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2cqh; }
.gh-cd-kind { padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--cd-color) 17%,#fff);color:color-mix(in srgb,var(--cd-color) 52%,#1b1814);font:800 10px/1.3 var(--gh-font,system-ui),sans-serif;font-size:clamp(10px,3cqw,12px);letter-spacing:.12em;text-transform:uppercase; }
.gh-cd-edit { min-height:32px;padding:0 11px;border:1px solid #3c383233;border-radius:999px;background:#ffffffb3;color:#3a3630;font:700 12px/1 var(--gh-font,system-ui),sans-serif;cursor:pointer;transition:transform .15s ease,background .2s ease; }
.gh-cd-edit:active { transform:scale(.96); }
.gh-cd-head h2 { margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#1e1b18;font:800 22px/1.05 Georgia,"Times New Roman",serif;font-size:clamp(18px,8.2cqw,34px);letter-spacing:-.012em;text-wrap:balance; }
.gh-cd-head p { margin:5px 0 0;overflow:hidden;color:#6a635b;font-size:13px;font-size:clamp(12px,4cqw,15px);text-overflow:ellipsis;white-space:nowrap; }
.gh-cd-meta { margin:0;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.5fr);border-block:1px solid #2b272122; }
.gh-cd-meta div { min-width:0;padding:7px 8px; }
.gh-cd-meta div+div { border-left:1px solid #2b27211c; }
.gh-cd-meta div:first-child { padding-left:0; }
.gh-cd-meta dt { color:#8a8279;font:800 10px/1 var(--gh-font,system-ui),sans-serif;letter-spacing:.1em;text-transform:uppercase; }
.gh-cd-meta dd { margin:4px 0 0;overflow:hidden;color:#1f1c19;font:750 15px/1.1 var(--gh-font,system-ui),sans-serif;font-size:clamp(13px,4.6cqw,17px);text-overflow:ellipsis;white-space:nowrap; }
.gh-cd-description { margin:0;padding-left:10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;border-left:2px solid var(--cd-color);color:#5a534b;font-size:12px;font-size:clamp(12px,3.7cqw,14px);line-height:1.4; }
@container (max-height:379px) { .gh-cd-description { display:none; } .gh-cd-sheet { gap:2.6cqh; } }
.gh-cd-dock { display:grid;gap:8px; }
.gh-cd-dock.study { margin-top:auto; }
.gh-cd-dock.study { grid-template-columns:repeat(3,minmax(0,1fr)); }
.gh-cd-dock.listen { display:flex; }
.gh-cd-dock.listen .gh-cd-btn { flex:1;min-width:0; }
.gh-cd-btn { appearance:none;min-height:40px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #2b272126;border-radius:10px;background:#ffffffd1;color:#2a2622;font:750 12px/1 var(--gh-font,system-ui),sans-serif;font-size:clamp(12px,3.6cqw,14px);cursor:pointer;box-shadow:inset 0 1px #fff,0 2px 5px #2b272118;transition:transform .15s ease,box-shadow .2s ease,background .2s ease; }
.gh-cd-btn i { font-style:normal;font-size:1.15em;line-height:1; }
.gh-cd-btn img,.gh-cd-btn svg { width:18px;height:18px;object-fit:contain; }
.gh-cd-btn:active { transform:scale(.97); }
@media(hover:hover){ .gh-cd-btn:hover,.gh-cd-edit:hover { background:#fff;box-shadow:inset 0 1px #fff,0 5px 12px #2b27212b; } }
.gh-cd-btn.youtube { border-color:#6f150d;background:linear-gradient(180deg,#c43a2c,#8c1b12);color:#fff; }
.gh-cd-btn.spotify { border-color:#0b4d25;background:linear-gradient(180deg,#169a48,#0f6a31);color:#fff; }

/* Bandeja + CD liso */
.gh-cd-tray { overflow:hidden;border-radius:0 7px 7px 0;background:radial-gradient(ellipse at 28% 18%,#2d373c,#13181b 46%,#090c0e);box-shadow:inset 0 0 0 1px #cfe8ec42,inset 0 0 0 5px #0007,inset 0 0 0 6px #ffffff12; }
.gh-cd-tray::before { content:"";position:absolute;inset:0;background:linear-gradient(90deg,#ffffff1c 0 1%,#0000 1.4% 98.6%,#ffffff12 99%),repeating-linear-gradient(0deg,#ffffff06 0 2px,#0000 2px 9px),linear-gradient(115deg,#fff0 0 36%,#ffffff12 40%,#fff0 46%); }
.gh-cd-tray::after { content:"";position:absolute;left:50%;top:50%;width:94%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,#0000 0 62%,#00000040 100%);box-shadow:inset 0 0 0 1px #ffffff14,inset 0 0 20px #000b; }
.gh-cd-disc-wrap { position:absolute;z-index:3;left:50%;top:50%;width:88%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;box-shadow:0 0 0 1px #000b,0 3px 7px #000d,0 14px 26px #000c; }
.gh-cd-disc { position:absolute;inset:0;border-radius:50%;transform:rotate(200deg);
  -webkit-mask:radial-gradient(circle,#0000 0 7%,#000 7.3%);mask:radial-gradient(circle,#0000 0 7%,#000 7.3%);
  background:
    radial-gradient(circle,#0000 0 15.4%,#0000004d 15.8% 16.4%,#ffffff38 16.8% 17.6%,#0000 18%),
    radial-gradient(circle,#0000 0 7.6%,#ffffff47 8% 15.2%,#0000 15.6%),
    repeating-radial-gradient(circle,#0000 0 .7%,#00000009 .7% .95%),
    conic-gradient(from 0deg,#d9e0e3,#a9b3b9 7%,#f4f7f8 13%,#9aa6ad 21%,#e6ebed 29%,#b3bdc3 37%,#fafcfc 45%,#9fa9b0 54%,#e2e8ea 62%,#aeb8be 71%,#f6f9f9 79%,#a2adb4 88%,#d9e0e3); }
.gh-cd-disc-sheen { position:absolute;inset:0;border-radius:50%;pointer-events:none;box-shadow:inset 0 0 0 1.5px #ffffffb8,inset 0 0 0 3px #00000026;
  -webkit-mask:radial-gradient(circle,#0000 0 7.2%,#000 7.6%);mask:radial-gradient(circle,#0000 0 7.2%,#000 7.6%);
  background:
    linear-gradient(114deg,#fff0 0 27%,#ffffff7a 36%,#fff0 45%),
    conic-gradient(from 210deg,#0000 0 6%,#6fd2ff3d 10%,#ff8fe03a 14%,#ffe27a33 18%,#0000 24% 56%,#8affc33a 60%,#b89bff3d 64%,#0000 70%); }
.gh-cd-hub { position:absolute;z-index:5;left:50%;top:50%;width:13.5%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:radial-gradient(circle,#050708 0 36%,#0000 37%),repeating-conic-gradient(#a3b4b9 0 11deg,#232b2e 11deg 22deg);box-shadow:0 0 0 1px #000d,inset 0 0 6px #000,0 0 0 2px #ffffff24; }

/* Capa (frente da caixa) */
.gh-cd-door { position:absolute;z-index:6;left:50%;top:0;width:50%;height:100%;transform-origin:0 50%;transform:translateZ(2px);transform-style:preserve-3d;pointer-events:none; }
.gh-cd-face { position:absolute;inset:0;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden; }
.gh-cd-door-back { transform:rotateY(180deg);border-radius:7px 0 0 7px; }
.gh-cd-shade { position:absolute;inset:0;z-index:9;background:#000;opacity:0;pointer-events:none; }
.gh-cd-cover { border-radius:4px 7px 7px 4px;background:#07090b;box-shadow:0 0 0 1px #d7eef1b3,0 0 0 2px #0006; }
.gh-cd-art-box { position:absolute;inset:2.2% 2.2% 2.2% 8.4%;overflow:hidden;background:#0a0c0e;box-shadow:0 0 0 1px #000a; }
.gh-cd-art-box img { display:block;width:100%;height:100%;object-fit:cover; }
.gh-cd-art-type { height:100%;padding:9%;display:flex;flex-direction:column;justify-content:space-between;color:#fff;font-family:Georgia,"Times New Roman",serif;background:radial-gradient(circle at 70% 24%,color-mix(in srgb,var(--cd-accent) 55%,transparent),transparent 58%),linear-gradient(150deg,var(--cd-color),var(--cd-deep) 82%); }
.gh-cd-art-type span { font:800 11px/1.2 var(--gh-font,system-ui),sans-serif;letter-spacing:.2em;text-transform:uppercase;opacity:.85; }
.gh-cd-art-type { overflow:hidden; }
.gh-cd-art-type strong { display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:clamp(18px,3.6vw,34px);line-height:1.05;text-shadow:0 3px 12px #0009; }
.gh-cd-cover::before { content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:
  linear-gradient(90deg,#ffffff5e 0 .6%,#ffffff22 1.4% 3.2%,#0000005c 3.5% 4%,#ffffff1c 4.4% 7.2%,#00000073 7.6% 8.2%,#ffffff30 8.6% 9.4%,#0000 10%),
  linear-gradient(118deg,#fff0 0 22%,#ffffff40 24% 30%,#fff0 31% 46%,#ffffff1c 47.5% 53%,#fff0 54%),
  linear-gradient(180deg,#ffffff3d,#fff0 11% 84%,#0000004a); }
.gh-cd-cover::after { content:"";position:absolute;inset:0;z-index:4;pointer-events:none;background:
  linear-gradient(#000a,#000a) 1.6% 8%/4.6% 9% no-repeat,
  linear-gradient(#000a,#000a) 1.6% 83%/4.6% 9% no-repeat;
  box-shadow:inset 0 0 0 1.4px #ffffff40,inset 0 0 0 2.6px #0000004d; }

/* Animação de abertura: sai da prateleira → vira de frente → capa abre pela dobradiça */
.gh-cd-viewer.is-open:not(.is-settled) .gh-cd-stage { animation:ghCdStage var(--cd-t) both; }
.gh-cd-viewer.is-open:not(.is-settled) .gh-cd-door { animation:ghCdDoor var(--cd-t) both; }
.gh-cd-viewer.is-open:not(.is-settled) .gh-cd-shade { animation:ghCdShade var(--cd-t) linear both; }
.gh-cd-viewer.is-open:not(.is-settled) .gh-cd-insert { animation:ghCdInsert var(--cd-t) both; }
.gh-cd-viewer.is-open:not(.is-settled) .gh-cd-sheet { animation:ghCdSheet var(--cd-t) linear both; }
.gh-cd-viewer.is-open:not(.is-settled) .gh-cd-tray { animation:ghCdTray var(--cd-t) both; }
.gh-cd-viewer.is-open:not(.is-settled) .gh-cd-disc { animation:ghCdSpin var(--cd-t) both; }
.gh-cd-viewer.is-settled .gh-cd-door { display:none; }
@keyframes ghCdStage {
  0% { transform:translate3d(calc(var(--cd-from-x,0px) + var(--cd-dx)),calc(var(--cd-from-y,60px) + var(--cd-dy)),0) scale(.2) rotateY(-82deg);animation-timing-function:cubic-bezier(.2,.85,.25,1); }
  33% { transform:translate3d(var(--cd-dx),var(--cd-dy),0) scale(1) rotateY(-14deg);animation-timing-function:ease-in-out; }
  45% { transform:translate3d(var(--cd-dx),var(--cd-dy),0) scale(1.012) rotateY(-9deg);animation-timing-function:cubic-bezier(.45,.05,.2,1); }
  100% { transform:translate3d(0,0,0) scale(1) rotateY(0deg); }
}
@keyframes ghCdDoor {
  0%,45% { transform:translateZ(2px) rotateY(0deg);visibility:visible;animation-timing-function:cubic-bezier(.42,.04,.22,1); }
  94% { transform:translateZ(2px) rotateY(-180deg);visibility:visible;animation-timing-function:step-end; }
  100% { transform:translateZ(2px) rotateY(-180deg);visibility:hidden; }
}
@keyframes ghCdShade { 0%,45% { opacity:0; } 60% { opacity:.55; } 94% { opacity:.04; } 100% { opacity:0; } }
@keyframes ghCdInsert { 0%,90% { opacity:0; } 91%,100% { opacity:1; } }
@keyframes ghCdSheet { 0%,95% { opacity:0; } 100% { opacity:1; } }
@keyframes ghCdTray { 0%,43% { opacity:0; } 50%,100% { opacity:1; } }
@keyframes ghCdSpin { 0%,44% { transform:rotate(-50deg);animation-timing-function:cubic-bezier(.15,.7,.2,1); } 100% { transform:rotate(200deg); } }
@keyframes ghCdDoorV {
  0%,45% { transform:translateZ(2px) rotateX(0deg);visibility:visible;animation-timing-function:cubic-bezier(.42,.04,.22,1); }
  94% { transform:translateZ(2px) rotateX(180deg);visibility:visible;animation-timing-function:step-end; }
  100% { transform:translateZ(2px) rotateX(180deg);visibility:hidden; }
}

/* Mobile: caixa vertical (encarte em cima, CD embaixo, capa abre pela borda superior) */
@media(max-width:620px) {
  .gh-cd-dialog { --cd-dx:0%;--cd-dy:-25%;width:min(88vw,430px,calc((100vh - 150px)/2));width:min(88vw,430px,calc((100dvh - 150px)/2)); }
  .gh-cd-stage { aspect-ratio:1/2; }
  .gh-jewel-case { grid-template-columns:1fr;grid-template-rows:1fr 1fr; }
  .gh-cd-insert { border-radius:7px 7px 0 0; }
  .gh-cd-insert::after { inset:6px 6px 18px 6px; }
  .gh-cd-tray { border-radius:0 0 7px 7px; }
  .gh-cd-door { left:0;top:50%;width:100%;height:50%;transform-origin:50% 0; }
  .gh-cd-door-back { transform:rotateX(180deg);border-radius:7px 7px 0 0; }
  .gh-cd-viewer.is-open:not(.is-settled) .gh-cd-door { animation-name:ghCdDoorV; }
  .gh-cd-clear-hinge { top:auto;left:0;right:0;bottom:0;width:auto;height:12px;border-left:0;border-top:1px solid #9fb4b66b;background:linear-gradient(180deg,#fbffff66,#8ca2a437 45%,#f6ffff59),repeating-linear-gradient(90deg,#0000 0 17px,#7d939570 17px 18px,#0000 18px 34px); }
  .gh-cd-sheet { padding:16px 16px 30px;padding:5cqw 6cqw calc(5cqw + 14px); }
}
@media(prefers-reduced-motion:reduce) {
  .gh-cd-door { display:none; }
  .gh-cd-viewer .gh-cd-stage,.gh-cd-viewer .gh-cd-insert,.gh-cd-viewer .gh-cd-sheet,.gh-cd-viewer .gh-cd-tray,.gh-cd-viewer .gh-cd-disc { animation:none!important; }
}

@media(max-width:620px){
  .gh-cd-repertoire .content { width:min(100% - 12px,var(--content)); }
  .gh-cd-spine,.gh-cd-spine.has-drag { grid-template-columns:12px 4px minmax(0,1fr) auto!important;min-height:61px;padding:0!important; }
  .gh-cd-spine.has-drag .gh-cd-drag { display:none!important; }
  .gh-cd-copy { padding-left:8px!important; }
  .gh-cd-study .song-study-badge { font-size:0!important;width:25px!important;min-width:25px!important;height:22px!important;padding:2px!important; }
  .gh-cd-study .song-study-badge::first-letter { font-size:12px; }
  .gh-cd-medley-tray { margin-left:14px;margin-right:5px; }
  .gh-cd-actions { min-width:101px!important;padding-right:4px!important;gap:2px!important; }
  .gh-cd-actions button { width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:5px!important; }
  .gh-cd-actions .media-icon-button img { width:18px!important;height:18px!important; }
  .gh-cd-actions .song-notice-button { display:none!important; }
  .gh-cd-title { font-size:13px!important; }
  .gh-cd-type-badge { max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
  .band-palette-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media(max-width:360px){
  .gh-cd-actions { min-width:71px!important; }
  .gh-cd-actions .gh-cd-number { display:none; }
  .gh-cd-subtitle { max-width:145px; }
}

@media(prefers-reduced-motion:reduce){
  .gh-cd-spine { transition:filter .15s ease!important; }
  .gh-cd-spine:hover,.gh-cd-spine:focus-within,.gh-cd-spine.is-cd-selected { transform:translateX(5px); }
}

html[data-theme="dark"] .band-palette-card { background:var(--surface-2);color:var(--ink); }

/* 13.39 — linguagem cromática fixa de coleção: box neutro, CDs por tipo */
.gh-cd-repertoire .repertoire-set-group>summary {
  border-color:#8c887f66!important;
  background:
    linear-gradient(108deg,#ffffff13 0 12%,transparent 28% 68%,#ffffff09 78%,transparent 92%),
    repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 4px),
    linear-gradient(100deg,#171817 0%,#343431 48%,#20211f 78%,#111211 100%)!important;
  box-shadow:inset 0 1px #ffffff27,inset 0 -1px #000,0 4px 8px #0009!important;
}
.gh-cd-repertoire .repertoire-set-group>summary::before {
  content:"BOX SET";align-self:center;padding:3px 5px;border:1px solid #9f998d55;border-radius:2px;background:#0c0d0ca8;color:#bdb6a9;font:800 7px/1 "Courier New",monospace;letter-spacing:.1em;
}
.gh-cd-repertoire .repertoire-set-group>summary{grid-template-columns:auto minmax(0,1fr) auto!important}
.gh-cd-repertoire .repertoire-set-group>summary strong,.gh-cd-repertoire .modern-set-card h3{color:#f1eadc!important;text-shadow:0 1px 2px #000}
.gh-cd-repertoire .repertoire-set-group>summary span,.gh-cd-repertoire .modern-set-card p,.gh-cd-repertoire .set-card-kicker{color:#c3bdb1!important}
.gh-cd-repertoire .modern-set-card .set-card-head{padding:10px;border:1px solid #8c887f55;border-radius:3px;background:linear-gradient(104deg,#181918,#343431 52%,#151615);box-shadow:inset 0 1px #ffffff1b,0 3px 7px #0008}

.gh-cd-spine{color:#f1eadc!important}
.gh-cd-title{color:#f5eee1!important;text-shadow:0 1px 2px #000,0 0 1px #000!important}
.gh-cd-subtitle{color:#c9c2b5!important;text-shadow:0 1px 2px #000!important}
.gh-cd-cover{--cd-color:#171a1b;--cd-deep:#070809;--cd-semantic:#697174;--cd-accent:#aeb5b5}
.gh-cd-original{--cd-color:#54282d;--cd-deep:#231114;--cd-semantic:#a76f77;--cd-accent:#d0a5aa}
.gh-cd-medley{--cd-color:#55472f;--cd-deep:#241d13;--cd-semantic:#a18a58;--cd-accent:#d3c090}
.gh-cd-type-badge{border-color:color-mix(in srgb,var(--cd-accent) 68%,#fff 10%);background:color-mix(in srgb,var(--cd-semantic) 25%,#090a09);color:#f5eee1;box-shadow:none}
.gh-cd-actions .gh-cd-number{color:#d7d0c3}
.gh-cd-actions .gh-cd-number.is-encore{min-width:25px;color:#f1d58d;font-size:9px;letter-spacing:.07em}
.gh-cd-encore{box-shadow:inset 0 1px #fff,inset 0 -1px #000,inset 4px 0 6px #fff3,inset 0 0 0 1px #d8b65a99,0 3px 4px #000c!important}
.gh-cd-encore-badge{flex:0 0 auto;display:inline-flex;align-items:center;min-height:18px;padding:2px 5px;border:1px dashed #d8b65a;border-radius:3px;background:#16130da8;color:#f1d58d;font:900 7px/1 Arial,sans-serif;letter-spacing:.07em;white-space:nowrap}
.gh-cd-encore-entry .gh-cd-type-strip::after{content:"";position:absolute;inset:3px 1px;border-top:2px solid #d8b65a;border-bottom:2px solid #d8b65a;opacity:.9}
@media(max-width:430px){.gh-cd-repertoire .repertoire-set-group>summary::before{display:none}.gh-cd-repertoire .repertoire-set-group>summary{grid-template-columns:minmax(0,1fr) auto!important}.gh-cd-encore-badge{font-size:6px;padding-inline:4px}.gh-cd-title-line{gap:4px}}


/* ===== 13.29 — prateleira de madeira, fitas com movimento natural e tipografia legível ===== */
.gh-cd-repertoire .repertoire-set-group,
.gh-cd-repertoire .modern-set-card {
  border:7px solid transparent!important;
  border-radius:5px!important;
  background:
    radial-gradient(130% 55% at 50% 0%,#ffce9621,#0000 62%) padding-box,
    linear-gradient(90deg,#000000bb,#0000 7%,#0000 93%,#000000bb) padding-box,
    repeating-linear-gradient(90deg,#ffffff07 0 1px,#0000 1px 6px,#0000001a 6px 7px) padding-box,
    linear-gradient(180deg,#261a12,#18110d 45%,#0f0a08) padding-box,
    linear-gradient(90deg,#3a2314,#5f3a21 18%,#44291a 38%,#6a4125 60%,#3b2415 82%,#58361f) border-box!important;
  box-shadow:inset 0 0 0 1px #0009,inset 0 12px 20px -8px #000,0 1px 0 #ffffff14,0 20px 28px -12px #000d!important;
}
.gh-cd-repertoire .repertoire-set-group { margin-bottom:46px!important; }
.gh-cd-repertoire .repertoire-set-group::after,
.gh-cd-repertoire .modern-set-card::after {
  left:-13px;right:-13px;bottom:-31px;height:24px;border:0;border-radius:3px 3px 7px 7px;
  background:
    linear-gradient(180deg,#ffdcae33 0 1px,#0000 2px),
    repeating-linear-gradient(90deg,#00000016 0 2px,#0000 2px 9px,#ffffff0b 9px 10px),
    linear-gradient(180deg,#b97d48 0 14%,#8c5731 15% 52%,#573419 53% 88%,#2b1809 89%);
  box-shadow:inset 0 1px 1px #ffe3ba70,inset 0 -3px 4px #0009,0 14px 18px -4px #000c,0 3px 0 #1b0f07;
}
.gh-cd-repertoire .modern-set-card { margin-bottom:6px; }

.gh-cd-entry { position:relative; }
.gh-cd-entry:hover,.gh-cd-entry:focus-within { z-index:4; }
.gh-cd-spine {
  min-height:64px;
  transform-origin:left center;
  transform:perspective(900px) translateX(0) rotateY(0deg) scale(.988);
  transition:transform .55s cubic-bezier(.2,1.2,.3,1),box-shadow .4s ease,filter .3s ease!important;
}
@media(hover:hover) {
  .gh-cd-spine:hover { transform:perspective(900px) translateX(min(20px,4vw)) rotateY(-5deg) scale(1.02); }
}
.gh-cd-spine:focus-within,
.gh-cd-spine.is-cd-selected { transform:perspective(900px) translateX(min(20px,4vw)) rotateY(-5deg) scale(1.02); }
@media(hover:none) {
  .gh-cd-spine:hover:not(.is-cd-selected):not(:focus-within) { transform:perspective(900px) translateX(0) rotateY(0deg) scale(.988);filter:none; }
}
.gh-cd-spine:active { transform:perspective(900px) translateX(8px) rotateY(-2deg) scale(1);transition-duration:.12s!important; }
.gh-cd-spine.is-cd-opening { transform:perspective(900px) translateX(min(34px,7vw)) rotateY(-9deg) scale(1.035);filter:brightness(1.14);transition-duration:.3s!important; }
.gh-cd-spine:focus-visible { outline:2px solid #fff;outline-offset:2px; }
.gh-cd-subtitle { font-size:11px!important;letter-spacing:.03em; }
.gh-cd-type-badge { font-size:10px; }
.gh-cd-study .song-study-badge { font-size:10.5px!important;min-height:22px!important; }
.gh-cd-actions .gh-cd-number { font-size:13px; }

/* "Escolhendo CDs": ao rolar, a fita do centro vem para frente e as das bordas recuam */
@supports (animation-timeline:view()) {
  @media(prefers-reduced-motion:no-preference) {
    html.gh-cd-browse .gh-cd-entry { transform-origin:left center;animation:ghCdBrowse linear both;animation-timeline:view();animation-range:cover 0% cover 100%; }
  }
}
@keyframes ghCdBrowse {
  0%   { opacity:.45;transform:perspective(800px) translateX(-10px) rotateY(16deg) scale(.95); }
  28%  { opacity:1;transform:perspective(800px) translateX(-1px) rotateY(3deg) scale(.995); }
  50%  { opacity:1;transform:perspective(800px) translateX(7px) rotateY(0deg) scale(1.01); }
  72%  { opacity:1;transform:perspective(800px) translateX(-1px) rotateY(-3deg) scale(.995); }
  100% { opacity:.45;transform:perspective(800px) translateX(-10px) rotateY(-16deg) scale(.95); }
}
@media(prefers-reduced-motion:reduce) {
  .gh-cd-spine:focus-within,.gh-cd-spine.is-cd-selected,.gh-cd-spine.is-cd-opening { transform:translateX(5px); }
}

/* 13.32 — a fita se projeta sem ultrapassar a moldura da prateleira. */
.gh-cd-entry,.gh-cd-spine { min-width:0;max-width:100%;box-sizing:border-box; }
@media(hover:hover) {
  .gh-cd-spine:hover { transform:perspective(900px) translateX(12px) rotateY(-4deg) scaleX(.96) scaleY(1.012); }
}
.gh-cd-spine:focus-within,
.gh-cd-spine.is-cd-selected { transform:perspective(900px) translateX(12px) rotateY(-4deg) scaleX(.96) scaleY(1.012); }
.gh-cd-spine:active { transform:perspective(900px) translateX(8px) rotateY(-2deg) scaleX(.975); }
.gh-cd-spine.is-cd-opening { transform:perspective(900px) translateX(18px) rotateY(-7deg) scaleX(.94) scaleY(1.018); }
@media(max-width:430px) {
  .gh-cd-spine:hover,.gh-cd-spine:focus-within,.gh-cd-spine.is-cd-selected { transform:perspective(700px) translateX(8px) rotateY(-3deg) scaleX(.965) scaleY(1.01); }
  .gh-cd-spine.is-cd-opening { transform:perspective(700px) translateX(12px) rotateY(-5deg) scaleX(.945) scaleY(1.012); }
}
@media(prefers-reduced-motion:reduce) {
  .gh-cd-spine:hover,.gh-cd-spine:focus-within,.gh-cd-spine.is-cd-selected,.gh-cd-spine.is-cd-opening { transform:translateX(4px) scaleX(.985); }
}

.band-palette-status { width:max-content;max-width:100%;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface-3);color:var(--muted);font-size:11px;font-weight:800; }
.band-palette-card.is-automatic .band-palette-status { color:var(--gh-primary,var(--accent));border-color:color-mix(in srgb,var(--gh-primary,var(--accent)) 30%,var(--line)); }

/* 13.36.1 — fitas fluidas sem manter dezenas de camadas pesadas no Android */
.gh-cd-spine {
  backface-visibility:hidden;
  -webkit-font-smoothing:antialiased;
}
.gh-cd-spine.is-cd-selected,
.gh-cd-spine.is-cd-opening {
  will-change:transform;
}
@media(hover:none),(pointer:coarse) {
  html.gh-cd-browse .gh-cd-entry { animation:none!important;transform:none!important;opacity:1!important; }
  .gh-cd-spine {
    transition:transform .24s cubic-bezier(.2,.82,.24,1),box-shadow .2s ease!important;
    filter:none!important;
    will-change:auto;
  }
  .gh-cd-spine:hover:not(.is-cd-selected):not(.is-cd-opening),
  .gh-cd-spine:focus-within:not(.is-cd-selected):not(.is-cd-opening) {
    transform:perspective(700px) translate3d(0,0,0) rotateY(0deg) scaleX(.985);
  }
  .gh-cd-spine:active {
    transform:perspective(700px) translate3d(4px,0,0) rotateY(-1deg) scaleX(.98);
  }
  .gh-cd-spine.is-cd-selected {
    transform:perspective(700px) translate3d(8px,0,0) rotateY(-3deg) scaleX(.965) scaleY(1.01);
    will-change:transform;
  }
  .gh-cd-spine.is-cd-opening {
    transform:perspective(700px) translate3d(12px,0,0) rotateY(-5deg) scaleX(.945) scaleY(1.012);
    will-change:transform;
  }
}
