/* REALTALK show list refresh: compact cards and a clear next-show highlight. */
#shows .overview-show{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid #3a353d;
  border-radius:15px;
  background:linear-gradient(115deg,#1c1a20 0%,#131217 70%,#1b171c 100%);
  box-shadow:inset 0 1px 0 #ffffff08,0 5px 16px #0005;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
#shows .overview-show.featured-show{
  border-color:#a83b51;
  background:linear-gradient(112deg,#2a171d 0%,#171318 67%,#21151b 100%);
  box-shadow:0 0 0 1px #f0445b22,0 0 24px #e326492c,inset 0 1px 0 #ffffff0b;
}
#shows .overview-show.featured-show:before{
  content:"NÄCHSTE SHOW";
  position:absolute;
  z-index:1;
  top:10px;
  left:14px;
  grid-column:auto;
  margin:0;
  padding:3px 9px;
  border:1px solid #a64359;
  border-radius:999px;
  background:#5b202d;
  color:#ffd3dc;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}
#shows .overview-show.featured-show:after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,#fa40560b,transparent 64%,#ff45620a);
}
#shows .overview-show:not(.featured-show).today-show:before{
  content:"HEUTE";
  position:absolute;
  top:10px;
  left:14px;
  margin:0;
  padding:3px 9px;
  border:1px solid #a64359;
  border-radius:999px;
  background:#5b202d;
  color:#ffd3dc;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}
#shows .overview-show.featured-show .show-card-heading{padding-top:18px}
#shows .submission-cta{
  border:1px solid #ee3b54!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,#f24558,#b50f2e 70%,#8d1026)!important;
  color:#fff!important;
  box-shadow:0 0 17px #ed30433d,inset 0 1px 0 #ffffff38!important;
  font-weight:750;
  letter-spacing:.01em;
  text-transform:none;
}
#shows .submission-cta:before{content:none}
@media(max-width:760px){
  body{padding-bottom:calc(154px + env(safe-area-inset-bottom,0px))}
  #home>.section-head{margin-bottom:18px}
  #home>.section-head h1{font-size:26px;letter-spacing:-.45px}
  #shows .show-group{margin-bottom:18px}
  #shows .show-group>h3{font-size:21px;margin-bottom:12px}
  #shows .overview-show{
    grid-template-columns:minmax(0,1fr) minmax(116px,132px);
    grid-template-rows:auto auto;
    align-items:center;
    gap:8px 12px;
    padding:13px 12px;
    margin-bottom:11px;
    border-radius:15px;
  }
  #shows .show-card-heading{
    grid-column:1;
    grid-row:1;
    min-width:0;
    display:grid;
    grid-template-columns:23px minmax(0,1fr);
    align-items:start;
    gap:7px;
  }
  #shows .show-card-heading>div{min-width:0}
  #shows .show-card-heading h3{font-size:17px;line-height:1.25;letter-spacing:.01em}
  #shows .show-card-heading p{margin:5px 0 0;font-size:13px;line-height:1.35;color:#c6bdc6}
  #shows .show-card-heading .show-clock{display:inline-block;margin-top:3px;font-size:12px;color:#aaa1ac}
  #shows .show-card-heading .show-clock:before{content:"· ";color:#e26678}
  #shows button.show-arrow{
    width:23px;
    min-width:23px;
    min-height:28px;
    padding:0;
    border:0;
    background:transparent;
    color:#e28a9b;
    font-size:18px;
  }
  #shows .submission-cta{
    grid-column:2;
    grid-row:1;
    align-self:center;
    width:100%;
    min-height:46px!important;
    padding:8px 7px!important;
    font-size:13px!important;
    white-space:nowrap;
  }
  body:not(.is-admin) #shows .overview-show-actions{display:none!important}
  body:not(.is-admin) #shows .show-facts,
  body:not(.is-admin) #shows .capacity{display:none!important}
  body.is-admin #shows .overview-show-actions{
    grid-column:1/-1;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    width:100%;
  }
  body.is-admin #shows .overview-show-actions>button,
  body.is-admin #shows .overview-show-actions>.phase-navigation{
    min-width:0;
    width:100%;
    min-height:42px;
    font-size:12px;
  }
  body.is-admin #shows .show-facts{grid-column:1/-1;grid-row:3;padding-top:9px}
  body.is-admin #shows .capacity{grid-column:1/-1;grid-row:4}
}
@media(max-width:390px){
  #shows .overview-show{grid-template-columns:minmax(0,1fr) 112px;gap:7px 8px}
  #shows .show-card-heading h3{font-size:16px}
  #shows .show-card-heading p{font-size:12px}
  #shows .submission-cta{font-size:12px!important;padding:8px 5px!important}
}

/* Put the show list first on phones while keeping account navigation available. */
@media(max-width:760px){
  header.compact-masthead,body.detail-mode header.compact-masthead{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto;
    align-items:center;
    gap:8px;
    padding:0 0 10px;
    margin:0 0 12px;
  }
  header.compact-masthead .brand{gap:8px}
  header.compact-masthead .brand img.logo,
  body.detail-mode header.compact-masthead .brand img.logo{width:40px;height:40px;border-radius:9px}
  header.compact-masthead .brand-copy{gap:0!important}
  header.compact-masthead .brand-copy strong{font-size:18px;letter-spacing:.3px}
  header.compact-masthead .brand-copy small{display:none}
  header.compact-masthead .brand .brand-show{font-size:9px;letter-spacing:1px;margin-left:5px}
  header.compact-masthead .header-actions{
    grid-column:2;
    grid-row:1;
    width:auto;
    display:block;
    margin:0;
  }
  header.compact-masthead .header-actions>*:not(#accountBtn){display:none!important}
  header.compact-masthead .header-actions #accountBtn{min-height:38px;margin:0;padding:7px 12px;font-size:12px}
  #appInstallHint{display:none!important}
  body:not(.signed-in) #overviewAccount{display:none!important}
  body.signed-in #overviewAccount{
    display:block;
    margin:0 0 10px;
    padding:5px;
    border-radius:11px;
  }
  body.signed-in #overviewIdentity{display:none!important}
  body.signed-in #overviewAccount .overview-shortcuts{
    display:flex;
    flex-wrap:nowrap;
    gap:5px;
    width:100%;
    overflow-x:auto;
    scrollbar-width:none;
  }
  body.signed-in #overviewAccount .overview-shortcuts::-webkit-scrollbar{display:none}
  body.signed-in #overviewAccount .overview-shortcuts button{
    flex:0 0 auto;
    min-height:34px;
    padding:6px 10px;
    font-size:11px;
    white-space:nowrap;
  }
  #home>.section-head{margin:0 0 12px}
  #home>.section-head h1{font-size:25px;margin:0;letter-spacing:-.4px}
  #home>.section-head p{display:none}
  #shows .show-group>h3{display:none}
}

/* The reference layout keeps the list itself clean for visitors on every screen. */
#appInstallHint{display:none!important}
@media(min-width:761px){
  body:not(.is-admin) #shows .overview-show{
    grid-template-columns:minmax(0,1fr) minmax(150px,190px);
    grid-template-rows:auto;
    align-items:center;
    gap:8px 18px;
    padding:14px 18px;
  }
  body:not(.is-admin) #shows .show-card-heading{grid-column:1;grid-row:1}
  body:not(.is-admin) #shows .overview-show-actions,
  body:not(.is-admin) #shows .show-facts,
  body:not(.is-admin) #shows .capacity{display:none!important}
  body:not(.is-admin) #shows .submission-cta{
    grid-column:2;
    grid-row:1;
    width:100%;
    min-height:48px!important;
  }
}
@media(max-width:760px){
  #home{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
}

/* Simple welcome banner, with the existing show list as the main action. */
#betaSubmissionNotice{box-sizing:border-box;max-width:1240px;margin:0 auto 18px;padding:18px 22px;border:1px solid #783247;border-radius:16px;background:linear-gradient(115deg,#2b151f,#15131a 74%);box-shadow:0 8px 28px #0004;color:#fff}
#betaSubmissionNotice strong{display:block;font-size:clamp(18px,2vw,24px);letter-spacing:-.3px}
#betaSubmissionNotice p{margin:6px 0 0;color:#d5c9d0;font-size:14px;line-height:1.55}
#shows .overview-show.submit-open-card{cursor:pointer}
#shows .overview-show.submit-open-card:hover{border-color:#df4560;box-shadow:0 0 0 1px #f0445b22,0 0 22px #e3264926}
@media(max-width:760px){
  #betaSubmissionNotice{margin:0 0 14px;padding:14px 15px;border-radius:13px}
  #betaSubmissionNotice strong{font-size:17px}
  #betaSubmissionNotice p{font-size:13px;line-height:1.45}
  header.compact-masthead,body.detail-mode header.compact-masthead{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:8px;padding:0 0 10px;margin:0 0 12px}
  header.compact-masthead .header-actions{grid-column:1;grid-row:2;width:100%;display:grid;grid-template-columns:1fr;gap:7px;margin:0}
  header.compact-masthead .header-actions>*:not(#accountBtn){display:block!important}
  header.compact-masthead .support-note{display:none!important}
  header.compact-masthead .community-links{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  header.compact-masthead .community-links a{min-height:40px;padding:7px 9px;font-size:12px}
  header.compact-masthead .header-actions #accountBtn{grid-column:1;min-height:40px;margin:0;padding:7px 12px;font-size:12px}
}

/* Subtle motion draws attention to the next show without distracting. */
@keyframes rtCurrentShowSubmitNudge{
  0%,88%,100%{transform:translateY(0)}
  92%{transform:translateY(-1.5px)}
  96%{transform:translateY(0)}
}
#shows .overview-show.featured-show .submission-cta{
  animation:rtCurrentShowSubmitNudge 4.8s ease-in-out infinite;
}
@media(prefers-reduced-motion:reduce){
  #shows .overview-show.featured-show .submission-cta{animation:none}
}


/* Admin home uses the same show cards as the public overview with aggregate counts. */
body.is-admin #shows .overview-show.admin-show-card{cursor:pointer}
body.is-admin #shows .overview-show.admin-show-card:focus-visible{outline:2px solid #f0445b;outline-offset:3px}
body.is-admin #shows .overview-show-actions,
body.is-admin #shows .overview-show .show-facts,
body.is-admin #shows .overview-show .capacity{display:none!important}
body.is-admin #shows .overview-show.admin-show-card{grid-template-columns:minmax(0,1fr) minmax(150px,190px);grid-template-rows:auto auto;align-items:center;gap:8px 18px;padding:14px 18px}
body.is-admin #shows .overview-show.admin-show-card .show-card-heading{grid-column:1;grid-row:1}
body.is-admin #shows .submitted-song-count{grid-column:2;grid-row:1;justify-self:stretch;align-self:center;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:8px 7px;border:1px solid #9b3b52;border-radius:10px;background:linear-gradient(135deg,#351923,#21151b);color:#ffd3dc;font-size:13px;font-weight:750;line-height:1.2;text-align:center;white-space:nowrap}
@media(max-width:760px){
 body.is-admin #shows .overview-show.admin-show-card{grid-template-columns:minmax(0,1fr) minmax(116px,132px);grid-template-rows:auto auto;align-items:center;gap:8px 12px;padding:13px 12px;margin-bottom:11px;border-radius:15px}
 body.is-admin #shows .overview-show.admin-show-card .show-card-heading{grid-column:1;grid-row:1;min-width:0;display:block}
 body.is-admin #shows .overview-show.admin-show-card .show-card-heading>div{min-width:0;overflow:visible}
 body.is-admin #shows .overview-show.admin-show-card .show-card-heading h3{max-width:none;overflow:visible;text-overflow:clip;white-space:normal;font-size:17px;line-height:1.25;letter-spacing:.01em}
 body.is-admin #shows .overview-show.admin-show-card .show-card-heading p{margin:5px 0 0;font-size:13px;line-height:1.35;color:#c6bdc6;white-space:nowrap}
 body.is-admin #shows .overview-show.admin-show-card .show-card-heading .show-clock{display:inline-block;margin-top:3px;font-size:12px;color:#aaa1ac;white-space:nowrap}
 body.is-admin #shows .submitted-song-count{grid-column:2;grid-row:1;min-height:46px;padding:8px 7px;font-size:13px}
}
@media(max-width:390px){
 body.is-admin #shows .overview-show.admin-show-card{grid-template-columns:minmax(0,1fr) 112px;gap:7px 8px}
 body.is-admin #shows .overview-show.admin-show-card .show-card-heading h3{font-size:16px}
 body.is-admin #shows .overview-show.admin-show-card .show-card-heading p{font-size:12px}
 body.is-admin #shows .submitted-song-count{min-height:42px;font-size:11px}
}


/* Admin profile shortcut and a larger REALTALK logo on mobile. */
@media(min-width:761px){header.compact-masthead .brand img.logo{width:88px;height:88px}}
@media(max-width:760px){
 header.compact-masthead .brand img.logo{width:66px;height:66px}
 body.is-admin.signed-in #overviewAccount .overview-shortcuts{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px;overflow:visible
 }
 body.is-admin.signed-in #overviewAccount .overview-shortcuts #overviewAccountBtn{display:block!important}
 body.is-admin.signed-in #overviewAccount .overview-shortcuts [data-page="home"],
 body.is-admin.signed-in #overviewAccount .overview-shortcuts [data-page="mine"],
 body.is-admin.signed-in #overviewAccount .overview-shortcuts [data-page="settings"]{display:none!important}
 body.is-admin.signed-in #overviewAccount .overview-shortcuts button{
  min-width:0;width:100%;padding:5px 3px;font-size:10px;line-height:1.1;text-align:center;white-space:nowrap
 }
}


/* Override the compact masthead's mobile logo size with the intended dimensions. */
@media(min-width:761px){body header.compact-masthead .brand img.logo{width:88px;height:88px}}
@media(max-width:760px){body header.compact-masthead .brand img.logo{width:66px;height:66px}}

/* Keep badges within the title flow without expanding the admin controls. */
body #shows#shows .overview-show.featured-show:before,
body #shows#shows .overview-show.today-show:before{content:none!important;display:none!important}
body #shows#shows .overview-show.featured-show .show-card-heading:before,
body #shows#shows .overview-show:not(.featured-show).today-show .show-card-heading:before{content:"NÄCHSTE SHOW";display:block;position:static;width:fit-content;margin:0 0 6px;padding:3px 9px;border:1px solid #a64359;border-radius:999px;background:#5b202d;color:#ffd3dc;font-size:10px;font-weight:800;line-height:14px}
body #shows#shows .overview-show:not(.featured-show).today-show .show-card-heading:before{content:"HEUTE"}
