/* CherryHUB – mobile schedule + wallpaper gallery update
   Loaded after style.css so these rules only override the parts changed here. */

.wallpaper-gallery{
  max-height:min(62vh,720px);
  overflow-y:auto;
  overflow-x:hidden;
  padding:4px 8px 4px 2px;
  scrollbar-width:thin;
  scrollbar-color:rgba(232,48,118,.55) transparent;
}

.wallpaper-gallery::-webkit-scrollbar{width:7px}
.wallpaper-gallery::-webkit-scrollbar-thumb{
  background:rgba(232,48,118,.48);
  border-radius:999px;
}

.wallpaper-entry{
  min-width:0;
  padding:4px 0 8px;
}

.wallpaper-entry h3{
  margin:0 0 14px;
  font-size:clamp(20px,3vw,28px);
  line-height:1.15;
}

.wallpaper-preview-wrap{
  width:100%;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-sizing:border-box;
  border:1px solid var(--line-strong, rgba(91,54,72,.15));
  border-radius:22px;
  background:var(--bg-soft, #fff2f7);
}

.wallpaper-preview{
  display:block;
  width:100%;
  height:auto;
  max-height:460px;
  object-fit:cover;
}

.wallpaper-preview-placeholder{
  min-height:220px;
  color:var(--muted, #83717a);
  font-weight:700;
}

.wallpaper-downloads{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.wallpaper-download-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  box-sizing:border-box;
  border-radius:999px;
  background:var(--pink-strong, #ed347b);
  color:#fff;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}

.wallpaper-no-download{
  margin-top:14px;
  color:var(--muted, #83717a);
  font-size:14px;
}

.wallpaper-divider{
  height:1px;
  margin:24px 0;
  background:var(--line-strong, rgba(91,54,72,.15));
}

.wallpaper-empty{
  display:flex;
  min-height:220px;
  padding:28px;
  box-sizing:border-box;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  text-align:center;
  border:1px dashed var(--line-strong, rgba(91,54,72,.18));
  border-radius:22px;
  background:var(--bg-soft, #fff2f7);
}

.wallpaper-empty strong{font-size:20px}
.wallpaper-empty span{max-width:520px;color:var(--muted, #83717a);line-height:1.55}

/* Keep the center Stream item visually identical when it becomes a Twitch link. */
.mobile-dock .dock-main{
  text-decoration:none;
}

/* Phone fixes */
@media (max-width:760px){
  html,
  body{
    max-width:100%;
    overflow-x:clip;
  }

  .modal{
    bottom:82px;
    box-sizing:border-box;
    padding:12px;
    align-items:flex-start;
    overflow:hidden;
  }

  .modal-panel{
    box-sizing:border-box;
    width:calc(100vw - 24px);
    max-width:calc(100vw - 24px);
    max-height:calc(100dvh - var(--header-height,64px) - 82px - 24px);
    margin:0;
    padding:28px 18px 24px;
    overflow-y:auto;
    overflow-x:hidden;
  }

  .modal-content,
  .tab-content,
  .detail-block,
  .schedule-list,
  .schedule-item{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .tab-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    width:100%;
    max-width:100%;
  }

  .tab-btn{
    flex:1 1 145px;
    min-width:0;
    max-width:100%;
    white-space:normal;
  }

  .schedule-only-block{
    overflow:hidden;
  }

  .schedule-item{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:7px 12px;
    padding:16px 14px;
  }

  .schedule-day{
    min-width:0;
    overflow-wrap:anywhere;
  }

  .schedule-time{
    min-width:0;
    white-space:nowrap;
    text-align:right;
  }

  .schedule-title{
    grid-column:1 / -1 !important;
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .schedule-status{
    max-width:100%;
    box-sizing:border-box;
    overflow-wrap:anywhere;
  }

  .wallpaper-gallery{
    max-height:52dvh;
    padding-right:2px;
  }

  .wallpaper-preview-wrap{
    min-height:150px;
    border-radius:18px;
  }

  .wallpaper-preview{
    max-height:52dvh;
    object-fit:contain;
  }

  .wallpaper-downloads{
    gap:8px;
  }

  .wallpaper-download-link{
    flex:1 1 calc(50% - 4px);
    min-width:0;
    padding:10px 12px;
    white-space:normal;
    text-align:center;
    line-height:1.2;
  }

  .wallpaper-empty{
    min-height:180px;
    padding:22px 16px;
  }
}


/* Final phone containment + theme toggle placement */
@media (max-width:760px){
  .top-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
  }

  .menu-toggle{order:1}
  .theme-toggle{
    order:2;
    display:inline-flex !important;
    width:39px !important;
    height:39px !important;
    min-height:39px;
    padding:0 !important;
    flex:0 0 39px;
    border-radius:50%;
    font-size:0 !important;
  }
  .theme-toggle::first-letter{font-size:0 !important}
  .theme-toggle::before{font-size:17px;line-height:1}
  html[data-theme="light"] .theme-toggle::before{content:"☀️"}
  html[data-theme="dark"] .theme-toggle::before{content:"🌙"}

  .schedule-stage{
    box-sizing:border-box;
    width:calc(100% - 36px) !important;
    max-width:calc(100% - 36px) !important;
    min-width:0;
    margin-left:18px !important;
    margin-right:18px !important;
    border-radius:34px !important;
    overflow:hidden;
  }

  .schedule-stage-head,
  .home-schedule-list{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  .schedule-stage-head{
    gap:10px;
  }

  .schedule-stage-head > div{min-width:0}
  .schedule-open{flex:0 1 auto;max-width:48%;white-space:normal;text-align:center}

  .home-schedule-list{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px;
    overflow-x:hidden !important;
  }

  .home-schedule-item{
    min-width:0;
    width:100%;
    overflow:hidden;
  }

  .home-schedule-item b,
  .home-schedule-item legend,
  .home-schedule-item time{
    max-width:100%;
    overflow-wrap:anywhere;
  }
}

@media (max-width:430px){
  .schedule-stage{
    width:calc(100% - 28px) !important;
    max-width:calc(100% - 28px) !important;
    margin-left:14px !important;
    margin-right:14px !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
  .home-schedule-list{gap:6px}
  .home-schedule-item{padding:11px 9px}
}

/* CherryHUB – larger horizontal news feed */
.schedule-flow{
  padding:34px 0 14px;
}
.schedule-flow .schedule-stage{
  width:100%;
  max-width:100%;
}

.news-feed-section{
  width:min(var(--max),calc(100% - 44px));
  margin:18px auto 34px;
  display:block;
  padding:24px 26px 26px;
  border-radius:32px 12px 32px 32px;
  overflow:hidden;
}

.news-feed-section .news-zone-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.news-feed-section .news-zone-head h2{
  margin:5px 0 0;
  font-size:clamp(32px,4vw,48px);
}

.news-feed-section .news-strip{
  display:flex;
  grid-template-columns:none;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 2px 14px;
  scroll-snap-type:none;
  scrollbar-width:auto;
  scrollbar-color:var(--pink) color-mix(in srgb,var(--line) 50%,transparent);
  cursor:grab;
  user-select:none;
}
.news-feed-section .news-strip::-webkit-scrollbar{display:block;height:14px}
.news-feed-section .news-strip::-webkit-scrollbar-track{background:var(--bg-soft);border-radius:999px}
.news-feed-section .news-strip::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,var(--pink),var(--lav));
  border:3px solid var(--bg-soft);
  border-radius:999px;
  min-width:48px;
}
.news-feed-section .news-strip:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
.news-feed-section .news-strip .news-card{cursor:grab}
.news-feed-section .news-strip.is-dragging,
.news-feed-section .news-strip.is-dragging .news-card{cursor:grabbing}
.news-feed-section .news-strip.is-dragging .news-card{transform:none;transition:none}
.news-feed-section .news-strip img{-webkit-user-drag:none}

.news-card{
  appearance:none;
  flex:0 0 clamp(340px,38vw,520px);
  min-width:0;
  min-height:320px;
  padding:0;
  overflow:hidden;
  scroll-snap-align:start;
  text-align:left;
  cursor:pointer;
  color:var(--text);
  background:var(--surface-strong);
  border:1px solid var(--line);
  border-radius:26px 26px 26px 9px;
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.news-card:hover,
.news-card:focus-visible{
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--pink) 55%,var(--line));
  box-shadow:var(--shadow);
  outline:none;
}
.news-card-image{
  width:100%;
  aspect-ratio:16/8.2;
  overflow:hidden;
  background:var(--bg-soft);
}
.news-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.news-card-placeholder{
  display:grid;
  place-items:center;
  background:
    linear-gradient(135deg,rgba(239,79,138,.72),rgba(139,110,232,.5)),
    var(--blossom-image) center / cover no-repeat;
}
.news-card-placeholder span{
  color:#fff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.18em;
  text-shadow:0 2px 14px rgba(0,0,0,.25);
}
.news-card-body{
  padding:18px 20px 20px;
}
.news-card-body time,
.news-card-label{
  display:block;
  margin-bottom:7px;
  color:var(--pink-strong);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.news-card-body h3{
  margin:0 0 8px;
  font:400 27px/1.08 "DM Serif Display",serif;
}
.news-card-body p{
  display:-webkit-box;
  margin:0;
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  line-height:1.55;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.news-card-more{
  display:inline-block;
  margin-top:14px;
  color:var(--pink-strong);
  font-size:11px;
  font-weight:900;
}
.news-empty{
  flex:1 0 100%;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  padding:24px;
  text-align:center;
  border:1px dashed var(--line-strong);
  border-radius:22px;
  background:var(--surface);
}
.news-empty strong{font-size:18px}
.news-empty span{color:var(--muted);font-size:12px}

.featured-panels-standalone{
  margin-top:0;
  margin-bottom:34px;
}

.news-modal-article{
  display:grid;
  gap:18px;
}
.news-modal-image{
  width:100%;
  max-height:440px;
  overflow:hidden;
  border-radius:22px 22px 22px 8px;
  background:var(--bg-soft);
  border:1px solid var(--line);
}
.news-modal-image img{
  width:100%;
  max-height:440px;
  object-fit:cover;
}
.news-modal-copy{
  color:var(--text);
  font-size:14px;
  line-height:1.75;
  overflow-wrap:anywhere;
}
.news-modal-extra{
  padding:14px 16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  border-radius:16px;
  background:var(--bg-soft);
  border:1px solid var(--line);
}

@media (max-width:760px){
  .schedule-flow{
    width:100%;
    padding:18px 0 8px;
  }

  .news-feed-section{
    width:calc(100% - 28px);
    margin:16px 14px 28px;
    padding:19px 16px 20px;
    border-radius:26px 9px 26px 26px;
  }
  .news-feed-section .news-zone-head{
    align-items:flex-start;
    margin-bottom:14px;
  }
  .news-feed-section .news-zone-head h2{font-size:34px}
  .news-feed-section .scribble-small{display:none}
  .news-feed-section .news-strip{
    gap:11px;
    margin-right:-16px;
    padding-right:16px;
  }
  .news-card{
    flex:0 0 min(84vw,360px);
    min-height:292px;
    border-radius:22px 22px 22px 7px;
  }
  .news-card-image{aspect-ratio:16/8.7}
  .news-card-body{padding:15px 16px 17px}
  .news-card-body h3{font-size:23px}
  .news-card-body p{font-size:11px;-webkit-line-clamp:3}
  .featured-panels-standalone{
    width:100%;
    margin-bottom:24px;
  }
  .news-modal-copy{font-size:13px;line-height:1.7}
  .news-modal-image{border-radius:18px 18px 18px 6px}
}
