/* ===== sclg card (Astra-like) ===== */
.sclg-wrap{ margin:18px 0; }
.sclg-cards{ display:grid; gap:12px; }

.sclg-card{
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  border-radius:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  overflow:hidden;
  transition: box-shadow .18s ease, transform .10s ease, border-color .18s ease;
}
.sclg-card:hover{
  border-color:rgba(0,0,0,.12);
  box-shadow:0 6px 18px rgba(0,0,0,.10);
  transform: translateY(-1px);
}

.sclg-head{
  display:flex;
  gap:14px;
  padding:14px 16px;
}

/* cover: 16:9, PC 140px */
.sclg-cover{
  flex:0 0 140px;
  width:140px;
  aspect-ratio:16/9;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff; /* default white */
}
.sclg-cover--empty{
  background:#fff;
}

.sclg-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* right column fill */
.sclg-info{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  justify-content:center;
  align-items:stretch; /* key: full width */
}

.sclg-title{
  font-size:16px;
  line-height:1.35;
  text-decoration:none;
  word-break:break-word;
}
.sclg-title:hover{ text-decoration:underline; }

.sclg-meta{
  font-size:13px;
  opacity:.85;
  line-height:1.2;
}

/* toggle: full width */
.sclg-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  width:100%;
  max-width:100%;

  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#000;
  cursor:pointer;
  user-select:none;
  text-align:left;

  transition: box-shadow .15s ease, transform .08s ease, border-color .15s ease;
}
.sclg-toggle:hover{
  border-color:rgba(0,0,0,.18);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.sclg-toggle:active{ transform:none; }

.sclg-toggle .sclg-main{
  min-width:0;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sclg-toggle .sclg-arrow{
  opacity:.7;
  flex:0 0 auto;
  transition: transform .18s ease;
}

/* open state arrow rotate */
.sclg-card.is-open .sclg-toggle .sclg-arrow{
  transform: rotate(180deg);
}

/* panel: bottom expand */
.sclg-panel{
  display:grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
  border-top:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.01);
}
.sclg-panelinner{
  overflow:hidden;
  padding:0 16px;
}
.sclg-card.is-open .sclg-panel{
  grid-template-rows: 1fr;
}
.sclg-card.is-open .sclg-panelinner{
  padding:12px 16px 14px 16px;
}

.sclg-body{
  font-size:14px;
  line-height:1.6;
}
.sclg-body em{ opacity:.8; }

/* pagination */
.sclg-pagination{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.sclg-pagination a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  text-decoration:none;
  font-size:13px;
  transition: box-shadow .15s ease, transform .08s ease, border-color .15s ease;
}
.sclg-pagination a:hover{
  border-color:rgba(0,0,0,.18);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* ===== Mobile ===== */
@media (max-width:768px){
  .sclg-head{ padding:12px; gap:12px; }
  .sclg-cover{ flex-basis:120px; width:120px; }
  .sclg-title{ font-size:15px; }
  .sclg-meta{ font-size:12px; }
  .sclg-toggle{ padding:10px 12px; }
  .sclg-toggle .sclg-main{ font-size:12px; }
}

@media (max-width:420px){
  .sclg-head{ flex-direction:column; align-items:stretch; }
  .sclg-cover{ width:100%; flex:0 0 auto; border-radius:14px; }
  .sclg-info{ gap:10px; }
  .sclg-title{ font-size:15px; }
}
