/* R.S Films Group — Artist Overview Pro v23.4.1
   Scope: Artist portal Overview only. Visual/responsive patch; no functional behavior changed. */

:root{
  --rsf-ov-ink:#0d1f2a;
  --rsf-ov-muted:#697985;
  --rsf-ov-line:#dce5ea;
  --rsf-ov-soft:#f6f8fa;
  --rsf-ov-gold:#c9993e;
  --rsf-ov-gold-2:#e1b85e;
  --rsf-ov-green:#2b765d;
  --rsf-ov-shadow:0 8px 26px rgba(18,39,52,.065);
}

/* Desktop refinement */
.artist-portal .rsx-overview{
  width:100%!important;
  max-width:1480px!important;
  margin-inline:auto!important;
  gap:16px!important;
  padding:18px!important;
  border-color:#dfe7ec!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 98% -2%,rgba(201,153,62,.085),transparent 22%),
    linear-gradient(180deg,#fbfcfd 0%,#f6f8fa 100%)!important;
}

.artist-portal .rsx-overview .rsx-command-hero{
  min-height:132px!important;
  padding:25px 28px!important;
  border-radius:18px!important;
  box-shadow:0 8px 24px rgba(18,39,52,.055)!important;
}
.artist-portal .rsx-overview .rsx-command-hero h2{
  font-size:31px!important;
  line-height:1.08!important;
  letter-spacing:-.038em!important;
}
.artist-portal .rsx-overview .rsx-command-hero p{
  max-width:760px!important;
  color:#6a7a86!important;
  font-size:12.5px!important;
}
.artist-portal .rsx-overview .rsx-command-actions button{
  min-width:128px!important;
  height:42px!important;
  border-radius:10px!important;
  font-weight:750!important;
}

.artist-portal .rsx-overview .rsx-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.artist-portal .rsx-overview .rsx-kpis article{
  min-width:0!important;
  min-height:110px!important;
  padding:18px 19px 17px!important;
  border-radius:15px!important;
  box-shadow:var(--rsf-ov-shadow)!important;
}
.artist-portal .rsx-overview .rsx-kpis strong{
  font-variant-numeric:tabular-nums;
  letter-spacing:-.025em!important;
}

.artist-portal .rsx-overview .rsx-overview-main{
  grid-template-columns:minmax(0,2.35fr) minmax(300px,.8fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
.artist-portal .rsx-overview .rsx-performance,
.artist-portal .rsx-overview .rsx-catalog-health,
.artist-portal .rsx-overview .rsx-surface{
  min-width:0!important;
  border-radius:16px!important;
  box-shadow:var(--rsf-ov-shadow)!important;
}
.artist-portal .rsx-overview .rsx-performance-head{
  padding:20px 21px 16px!important;
}
.artist-portal .rsx-overview .rsx-performance-head h2{
  font-size:20px!important;
  letter-spacing:-.02em!important;
}
.artist-portal .rsx-overview .rsx-analytics-controls{
  padding:12px 16px!important;
}
.artist-portal .rsx-overview .rsx-summary-strip{
  padding:10px!important;
  gap:9px!important;
  border-bottom:1px solid #e7edf0!important;
}
.artist-portal .rsx-overview .rsx-summary-strip>div{
  min-width:0!important;
  min-height:77px!important;
  padding:13px 14px!important;
  border:1px solid #e3e9ed!important;
  border-radius:11px!important;
}
.artist-portal .rsx-overview .rsx-analytics-workspace{
  min-width:0!important;
  width:100%!important;
}
.artist-portal .rsx-overview .rsx-chart-card,
.artist-portal .rsx-overview .rsx-leaderboard{
  min-width:0!important;
}
.artist-portal .rsx-overview .rsx-chart-card{
  padding:21px 22px!important;
}
.artist-portal .rsx-overview .rsx-leaderboard{
  padding:21px 18px!important;
}
.artist-portal .rsx-overview .rsx-catalog-health{
  padding:19px!important;
}
.artist-portal .rsx-overview .rsx-pipeline>button{
  min-width:0!important;
  width:100%!important;
  min-height:60px!important;
  border-radius:11px!important;
}
.artist-portal .rsx-overview .rsx-pipeline>button>span,
.artist-portal .rsx-overview .rsx-pipeline>button small{
  min-width:0!important;
  overflow-wrap:anywhere!important;
}

/* Tablet: performance + release pipeline stack cleanly. */
@media(max-width:1280px){
  .artist-portal .rsx-overview .rsx-overview-main{
    grid-template-columns:1fr!important;
  }
  .artist-portal .rsx-overview .rsx-catalog-health{
    display:block!important;
  }
  .artist-portal .rsx-overview .rsx-pipeline{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
}

@media(max-width:1000px){
  .artist-portal .rsx-overview{
    padding:12px!important;
    gap:12px!important;
    border-radius:20px!important;
  }
  .artist-portal .rsx-overview .rsx-command-hero{
    min-height:0!important;
    padding:22px!important;
  }
  .artist-portal .rsx-overview .rsx-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  /* Fix high-specificity compact analytics rule that kept two columns on phones. */
  .artist-portal .rsx-overview .rsx-performance.is-compact .rsx-analytics-workspace,
  .artist-portal .rsx-overview .rsx-analytics-workspace{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
  }
  .artist-portal .rsx-overview .rsx-chart-card,
  .artist-portal .rsx-overview .rsx-leaderboard{
    width:100%!important;
    max-width:100%!important;
  }
  .artist-portal .rsx-overview .rsx-chart-card{
    border-right:0!important;
    border-bottom:1px solid #e5eaee!important;
  }
  .artist-portal .rsx-overview .rsx-leaderboard{
    border-left:0!important;
    border-top:0!important;
  }
}

/* Phone layout — dense, premium and readable. */
@media(max-width:640px){
  .artist-portal .dashboard{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .artist-portal .rsx-overview{
    gap:10px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .artist-portal .rsx-overview:before{display:none!important}

  .artist-portal .rsx-overview .rsx-command-hero{
    padding:18px!important;
    border-radius:16px!important;
    gap:16px!important;
  }
  .artist-portal .rsx-overview .rsx-command-hero h2{
    margin:7px 0 6px!important;
    font-size:25px!important;
    line-height:1.08!important;
  }
  .artist-portal .rsx-overview .rsx-command-hero p{
    font-size:11.5px!important;
    line-height:1.5!important;
  }
  .artist-portal .rsx-overview .rsx-command-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .artist-portal .rsx-overview .rsx-command-actions button{
    width:100%!important;
    min-width:0!important;
    height:42px!important;
    padding:0 12px!important;
  }
  .artist-portal .rsx-overview .rsx-command-actions button:first-child{
    grid-column:1/-1!important;
  }

  .artist-portal .rsx-overview .rsx-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .artist-portal .rsx-overview .rsx-kpis article{
    min-height:96px!important;
    padding:15px 14px 13px!important;
    border-radius:13px!important;
  }
  .artist-portal .rsx-overview .rsx-kpis span{
    font-size:7.7px!important;
    letter-spacing:1.1px!important;
  }
  .artist-portal .rsx-overview .rsx-kpis strong{
    margin:8px 0 6px!important;
    font-size:24px!important;
  }
  .artist-portal .rsx-overview .rsx-kpis small{
    font-size:9.4px!important;
    line-height:1.35!important;
  }

  .artist-portal .rsx-overview .rsx-performance,
  .artist-portal .rsx-overview .rsx-catalog-health,
  .artist-portal .rsx-overview .rsx-surface{
    width:100%!important;
    max-width:100%!important;
    border-radius:14px!important;
    overflow:hidden!important;
  }
  .artist-portal .rsx-overview .rsx-performance-head{
    min-height:0!important;
    padding:17px 16px 14px!important;
    display:block!important;
  }
  .artist-portal .rsx-overview .rsx-performance-head .rsx-live-pill{
    margin-top:8px!important;
  }
  .artist-portal .rsx-overview .rsx-performance-head h2{
    font-size:18px!important;
  }
  .artist-portal .rsx-overview .rsx-performance-head p{
    font-size:10.5px!important;
  }

  .artist-portal .rsx-overview .rsx-analytics-controls{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    padding:12px!important;
    gap:9px!important;
  }
  .artist-portal .rsx-overview .rsx-analytics-controls label,
  .artist-portal .rsx-overview .rsx-analytics-controls select,
  .artist-portal .rsx-overview .rsx-filter-button{
    width:100%!important;
    max-width:100%!important;
  }
  .artist-portal .rsx-overview .rsx-segments{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(72px,1fr))!important;
    overflow-x:auto!important;
    scrollbar-width:none;
  }
  .artist-portal .rsx-overview .rsx-segments::-webkit-scrollbar{display:none}
  .artist-portal .rsx-overview .rsx-segments button{
    min-width:72px!important;
    padding:0 8px!important;
  }

  .artist-portal .rsx-overview .rsx-summary-strip{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    padding:8px!important;
  }
  .artist-portal .rsx-overview .rsx-summary-strip>div{
    min-height:72px!important;
    padding:11px 12px!important;
    border-radius:10px!important;
  }
  .artist-portal .rsx-overview .rsx-summary-strip>div:nth-child(3){
    grid-column:1/-1!important;
  }
  .artist-portal .rsx-overview .rsx-summary-strip strong{
    font-size:19px!important;
  }

  .artist-portal .rsx-overview .rsx-performance.is-compact .rsx-analytics-workspace,
  .artist-portal .rsx-overview .rsx-analytics-workspace{
    display:block!important;
    min-height:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  .artist-portal .rsx-overview .rsx-chart-card{
    min-height:0!important;
    padding:17px 15px!important;
  }
  .artist-portal .rsx-overview .rsx-chart-title{
    display:block!important;
    margin-bottom:16px!important;
  }
  .artist-portal .rsx-overview .rsx-chart-title h3{
    margin-top:5px!important;
    font-size:17px!important;
    line-height:1.25!important;
  }
  .artist-portal .rsx-overview .rsx-chart-title>small{
    display:block!important;
    margin-top:5px!important;
  }
  .artist-portal .rsx-overview .rsx-bars{
    gap:14px!important;
  }
  .artist-portal .rsx-overview .rsx-bar-row{
    grid-template-columns:24px minmax(0,1fr)!important;
    gap:9px!important;
  }
  .artist-portal .rsx-overview .rsx-bar-label{
    min-width:0!important;
    gap:8px!important;
  }
  .artist-portal .rsx-overview .rsx-bar-label strong,
  .artist-portal .rsx-overview .rsx-bar-label span{
    min-width:0!important;
    overflow-wrap:anywhere!important;
  }
  .artist-portal .rsx-overview .rsx-leaderboard{
    padding:17px 15px!important;
  }
  .artist-portal .rsx-overview .rsx-leaderboard h3{
    font-size:17px!important;
  }
  .artist-portal .rsx-overview .rsx-leaderboard button{
    grid-template-columns:28px minmax(0,1fr) 16px!important;
    width:100%!important;
    min-width:0!important;
  }
  .artist-portal .rsx-overview .rsx-leaderboard button span,
  .artist-portal .rsx-overview .rsx-leaderboard button strong,
  .artist-portal .rsx-overview .rsx-leaderboard button small{
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
  }

  .artist-portal .rsx-overview .rsx-catalog-health{
    padding:16px!important;
  }
  .artist-portal .rsx-overview .rsx-catalog-health h3{
    margin:6px 0 13px!important;
    font-size:18px!important;
  }
  .artist-portal .rsx-overview .rsx-pipeline{
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
  }
  .artist-portal .rsx-overview .rsx-pipeline>button{
    grid-template-columns:40px minmax(0,1fr) 16px!important;
    min-height:58px!important;
    padding:9px 10px!important;
  }
  .artist-portal .rsx-overview .rsx-pipeline>button>strong{
    font-size:20px!important;
  }
  .artist-portal .rsx-overview .rsx-health-note{
    margin-top:10px!important;
    padding:12px!important;
  }

  .artist-portal .rsx-overview .rsx-bottom-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
}

@media(max-width:390px){
  .artist-portal .rsx-overview .rsx-command-actions{
    grid-template-columns:1fr!important;
  }
  .artist-portal .rsx-overview .rsx-command-actions button:first-child{
    grid-column:auto!important;
  }
  .artist-portal .rsx-overview .rsx-kpis article{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .artist-portal .rsx-overview .rsx-kpis strong{
    font-size:22px!important;
  }
}
