/* All layout changes are limited to the home page after successful enhancement. */
.lcdjHomeSpace .lcdjDiscover-layout { grid-template-columns:minmax(0,1fr); gap:28px; padding-top:32px; }
.lcdjHomeSpace .lcdjDiscover-side[hidden],.lcdjHomeSpace-dialog [hidden],.lcdjHomeSpace-oldAccount { display:none!important; }
.lcdjHomeSpace .lcdjDiscover-side { min-width:0; display:block; position:static; }
.lcdjHomeSpace .lcdjHomeSpace-genres { margin:30px 0 0; padding:0 0 16px; border-bottom:1px solid var(--line); }
.lcdjHomeSpace .lcdjHomeSpace-genres>span { display:none; }
.lcdjHomeSpace .lcdjHomeSpace-genres h2 { font-size:16px; margin:0 0 12px; }
.lcdjHomeSpace .lcdjHomeSpace-genres>div { display:flex; flex-wrap:nowrap; gap:8px; overflow-x:auto; padding:2px 0 10px; scrollbar-width:thin; scrollbar-color:#344354 transparent; }
.lcdjHomeSpace .lcdjHomeSpace-genres a { flex:0 0 auto; font-size:12px!important; padding:10px 14px!important; min-height:40px; border-radius:8px; }
.lcdjHomeSpace .lcdjHomeSpace-label { margin-top:30px; padding:24px!important; border:1px solid var(--line)!important; border-radius:14px; }
.lcdjHomeSpace .lcdjHomeSpace-label h2 { max-width:none; font-size:25px; }
.lcdjHomeSpace .lcdjHomeSpace-label p { max-width:700px; }
.lcdjHomeSpace #lcdj-trends { scroll-margin-top:120px; }
@media(min-width:1280px) {
  .lcdjHomeSpace .lcdjDiscover-layout { grid-template-columns:minmax(0,1fr) clamp(260px,20vw,300px); }
  .lcdjHomeSpace .lcdjDiscover-side { padding-left:22px; border-left:1px solid var(--line); }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends { margin:0; padding:0; border:0; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends>header { display:block; margin-bottom:18px; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends h2 { font-size:24px; line-height:1.15; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends>header>a { display:inline-flex; margin-top:13px; font-size:11px; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends ol { display:block; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends li { grid-template-columns:17px 44px minmax(0,1fr); gap:9px; padding:16px 0; align-items:start; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends li>b { padding-top:14px; }
  .lcdjHomeSpace .lcdjDiscover-side .lcdjDiscover-trendCover { width:44px; height:44px; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends strong { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.35; font-size:12px; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends li>div small { font-size:10px; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends li>em { display:flex; gap:4px; align-items:baseline; grid-column:3; font-size:10px; margin-top:-3px; color:#9aa8b9; text-align:left; }
  .lcdjHomeSpace .lcdjDiscover-side #lcdj-trends li>em small { font-size:8px; margin:0; }
}
/* Header actions reuse the existing account content without changing permissions. */
.lcdjHomeSpace-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.lcdjHomeSpace-actions button { min-height:38px; padding:0 12px!important; border:1px solid rgba(255,255,255,.18)!important; border-radius:9px!important; background:#111923!important; color:#ecf3f9!important; font:750 11px/1.2 Inter,system-ui,sans-serif!important; white-space:nowrap; cursor:pointer; }
.lcdjHomeSpace-actions .lcdjHomeSpace-publishButton { color:#abf7fa!important; background:rgba(0,237,244,.08)!important; border-color:rgba(0,237,244,.25)!important; }
.lcdjHomeSpace-actions button:hover { background:#1c2a36!important; }
.lcdjHomeSpace-hasAccount #site-header .header-inner { gap:12px; }
.lcdjHomeSpace-hasAccount #site-header .site-navigation { min-width:0; flex:1 1 auto; }
.lcdjHomeSpace-hasAccount #site-header .site-navigation>.menu { gap:12px!important; flex-wrap:nowrap; }
.lcdjHomeSpace-hasAccount #site-header .site-navigation>.menu>li>a { padding-left:12px!important; padding-right:12px!important; }
/* Native modal gives Escape, focus trapping and an inert background. */
.lcdjHomeSpace-panelOpen { overflow:hidden!important; }
.lcdjHomeSpace-dialog { position:fixed; inset:0 0 0 auto; box-sizing:border-box; margin:0; width:min(420px,100%); height:100%; height:100dvh; max-width:100%; max-height:none; padding:24px; border:0; border-left:1px solid rgba(255,255,255,.12); border-radius:0; background:#0d141e; color:#edf2f8; overflow-y:auto; overscroll-behavior:contain; box-shadow:-20px 0 80px rgba(0,0,0,.4); }
.lcdjHomeSpace-dialog::backdrop { background:rgba(2,6,12,.72); backdrop-filter:blur(3px); }
.lcdjHomeSpace-dialog:not([open]) { display:none!important; }
.lcdjHomeSpace-panelHead { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.lcdjHomeSpace-dialog .lcdjHomeSpace-panelHead h2 { margin:0; font-size:24px; }
.lcdjHomeSpace-dialog .lcdjHomeSpace-close { display:grid; place-items:center; width:44px; height:44px; padding:0!important; border:1px solid #344252!important; border-radius:10px; background:transparent!important; color:#dce8f3!important; font-size:26px; cursor:pointer; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboard { display:block!important; position:static!important; width:auto; padding:0; margin:0; border:0; background:none; box-shadow:none; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardHead { padding-bottom:20px; margin-bottom:16px; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardHead strong { font-size:16px; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardHead small { font-size:12px; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardNav { display:grid!important; grid-template-columns:minmax(0,1fr)!important; overflow:visible; gap:6px; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardNav>a,.lcdjHomeSpace-dialog .lcdjDiscover-dashboardGroup>summary { width:auto!important; min-height:48px; font-size:14px; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardGroup>div { position:static!important; width:auto!important; margin:4px 8px 10px 42px!important; padding:0 0 0 12px!important; border:0!important; border-left:1px solid #344252!important; border-radius:0; background:none; box-shadow:none; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardGroup>div a { font-size:13px; min-height:44px; color:#a6b4c5; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardStatus { display:flex!important; max-width:none; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardStatus em { max-width:130px; font-size:11px; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardFooter { position:static!important; width:auto!important; grid-template-columns:1fr 1fr; }
.lcdjHomeSpace-dialog .lcdjDiscover-dashboardFooter a { min-height:44px; font-size:12px; }
.lcdjHomeSpace-extra { display:flex; flex-wrap:wrap; gap:4px 18px; margin-top:18px; border-top:1px solid #24303d; padding-top:12px; }
.lcdjHomeSpace-extra a { display:inline-flex; align-items:center; min-height:44px; color:#9daec1; font-size:12px; }
.lcdjHomeSpace-publishView>p { font-size:14px; color:#a6b4c5; margin:0 0 24px; }
.lcdjHomeSpace-publishView nav { display:grid; gap:12px; }
.lcdjHomeSpace-publishView nav a { padding:18px; border:1px solid #2c3b4d; border-radius:12px; background:#111d29; }
.lcdjHomeSpace-publishView nav strong,.lcdjHomeSpace-publishView nav span { display:block; }
.lcdjHomeSpace-publishView nav strong { color:#eaf7ff; font-size:17px; }
.lcdjHomeSpace-publishView nav span { margin-top:5px; color:#9daec1; font-size:13px; }
.lcdjHomeSpace-publishView nav a:hover { border-color:#82c8cd; }
.lcdjHomeSpace-dialog .lcdjHomeSpace-back { background:transparent!important; color:#aee4e9!important; border:0!important; font-size:13px; margin-top:24px; padding:12px 0!important; cursor:pointer; }
.lcdjHomeSpace-actions button:focus-visible,.lcdjHomeSpace-dialog :is(a,button,summary):focus-visible,.lcdjHomeSpace-genres :is(a,div):focus-visible { outline:2px solid #9ff2f5!important; outline-offset:4px; }
@media(min-width:768px) and (max-width:1279px) {
  body.lcdjHomeSpace-hasAccount #site-header { height:auto!important; min-height:108px; }
  body.lcdjHomeSpace-hasAccount #site-header .header-inner { display:grid!important; grid-template-columns:auto 1fr auto; width:100%!important; max-width:none!important; gap:8px!important; padding:8px 0!important; }
  body.lcdjHomeSpace-hasAccount #site-header .site-branding { grid-column:1; grid-row:1; }
  body.lcdjHomeSpace-hasAccount #site-header .lcdjHomeSpace-actions { grid-column:3; grid-row:1; }
  body.lcdjHomeSpace-hasAccount #site-header .site-navigation { grid-column:1/-1; grid-row:2; width:100%; margin:0!important; }
  body.lcdjHomeSpace-hasAccount #site-header .site-navigation>.menu { width:100%; justify-content:space-between!important; }
}
@media(max-width:767px) {
  .lcdjHomeSpace-actions { gap:5px; margin-left:auto; }
  .lcdjHomeSpace-actions button { padding:0 9px!important; min-height:36px; font-size:10px!important; }
  body.lcdjHomeSpace-hasAccount #site-header .header-inner { width:calc(100% - 24px)!important; max-width:none!important; padding:0!important; gap:8px!important; }
  body.lcdjHomeSpace-hasAccount #site-header .site-navigation-toggle-holder { padding:0!important; width:40px!important; height:40px!important; flex:0 0 40px!important; }
  body.lcdjHomeSpace-hasAccount #site-header .site-navigation-toggle { padding:0!important; margin:0!important; width:40px!important; height:40px!important; }
  body.lcdjHomeSpace-hasAccount #site-header .lcdjHomeSpace-actions { margin-left:auto!important; }
  .lcdjHomeSpace .lcdjHomeSpace-genres { margin-top:24px; }
  .lcdjHomeSpace .lcdjDiscover-layout { padding-top:24px; }
  .lcdjHomeSpace-dialog { padding:18px; }
}
@media(max-width:360px) {
  .lcdjHomeSpace-actions button { padding:0 6px!important; }
  body.lcdjHomeSpace-hasAccount #site-header .site-branding { width:84px!important; min-width:0!important; }
  body.lcdjHomeSpace-hasAccount #site-header .lcdjHeaderLogoMark { width:84px!important; max-width:84px!important; }
  body.lcdjHomeSpace-hasAccount #site-header .site-title { min-width:0!important; width:84px!important; }
}
