/* v0.7.0 — Shared Boundary Pass
   A group owns the rounded outer boundary. Its child items touch that boundary;
   independent lists remain independent. */

/* Shared group shell: stronger selector than the general dev.3 section surface. */
.id7-page .id7-stack > .id7-section.id7-group-section{
  padding:0!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:#0e141b!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .id7-section-head{
  margin:0!important;
  padding:22px 24px 17px!important;
}

/* Media — Telegram channels: full-width rows inside one rounded group. */
.id7-page .id7-stack > .id7-section.id7-group-section > .telegram-channels{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  background:transparent!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .telegram-channels .channel-card{
  width:100%!important;
  margin:0!important;
  min-height:70px!important;
  padding:15px 24px!important;
  border:0!important;
  border-top:1px solid rgba(255,255,255,.038)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .telegram-channels .channel-card:hover{
  background:#151c24!important;
}

/* Media — streams/video: one group, 2x2 cells sharing the same outer boundary. */
.id7-page .id7-stack > .id7-section.id7-group-section > .external-grid{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:0!important;
  background:transparent!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .external-grid .platform-card{
  min-height:155px!important;
  margin:0!important;
  padding:18px 24px!important;
  border:0!important;
  border-top:1px solid rgba(255,255,255,.038)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .external-grid .platform-card:nth-child(even){
  border-left:1px solid rgba(255,255,255,.038)!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .external-grid .platform-card:hover{
  background:#151c24!important;
}

/* Music — latest release: heading and the whole Cut element share one shell. */
.id7-page .id7-stack > .id7-section.id7-latest-section.id7-group-section > .id7-latest-release{
  width:100%!important;
  margin:0!important;
  padding:14px 24px!important;
  border:0!important;
  border-top:1px solid rgba(255,255,255,.038)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.id7-page .id7-stack > .id7-section.id7-latest-section.id7-group-section > .id7-latest-release:hover{
  background:#151c24!important;
}

/* Rid — world foundations: shared outer boundary, no inset panel around the items. */
.id7-page .id7-stack > .id7-section.id7-group-section > .id7-rid-systems{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .id7-rid-systems .id7-rid-system{
  min-height:116px!important;
  margin:0!important;
  padding:18px 24px!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:inset 0 1px rgba(255,255,255,.038)!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .id7-rid-systems .id7-rid-system:nth-child(even){
  box-shadow:inset 1px 1px rgba(255,255,255,.038)!important;
}
.id7-page .id7-stack > .id7-section.id7-group-section > .id7-rid-systems .id7-rid-system:hover{
  background:#151c24!important;
}

/* Links groups keep the dev.4 grouped pattern, but child rows truly touch the shell. */
.id7-links-groups .catalog-section.id7-linked-group{
  padding:0!important;
  overflow:hidden!important;
  border-radius:15px!important;
  background:#0e141b!important;
}
.id7-links-groups .catalog-section.id7-linked-group .catalog-heading{
  margin:0!important;
  padding:18px 20px 14px!important;
}
.id7-links-groups .catalog-section.id7-linked-group .catalog-grid{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
}
.id7-links-groups .catalog-section.id7-linked-group .catalog-card{
  width:100%!important;
  margin:0!important;
  min-height:58px!important;
  padding:10px 20px!important;
  border:0!important;
  border-top:1px solid rgba(255,255,255,.035)!important;
  border-radius:0!important;
  background:transparent!important;
}
.id7-links-groups .catalog-section.id7-linked-group .catalog-card:hover{
  padding-left:20px!important;
  padding-right:20px!important;
  background:#151c24!important;
}

/* Independent sections: no enclosing surface. */
.id7-page .id7-stack > .section.id7-plain-section,
.id7-page .id7-stack > .id7-section.id7-plain-section{
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Official releases are individual rounded rows again, not one grouped container. */
body[data-page="music"] .id7-page .id7-stack > #releases{
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body[data-page="music"] .id7-page #releases > .shell{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
}
body[data-page="music"] .id7-page #releases .music-section-head{
  margin:0 0 18px!important;
  padding:0!important;
}
body[data-page="music"] .id7-page #releases .release-gallery{
  gap:7px!important;
}
body[data-page="music"] .id7-page #releases .release-tile-link{
  border:0!important;
  border-radius:12px!important;
  background:#0c1015!important;
  overflow:hidden!important;
}
body[data-page="music"] .id7-page #releases .release-tile-link:hover{
  background:#11161d!important;
}

/* Collection is a static list, not a set of buttons. */
.id7-page .id7-collection-list li:hover{
  background:transparent!important;
}

@media(max-width:900px){
  .id7-page .id7-stack > .id7-section.id7-group-section > .id7-section-head{padding:19px 20px 15px!important}
  .id7-page .id7-stack > .id7-section.id7-group-section > .telegram-channels .channel-card,
  .id7-page .id7-stack > .id7-section.id7-group-section > .external-grid .platform-card,
  .id7-page .id7-stack > .id7-section.id7-latest-section.id7-group-section > .id7-latest-release,
  .id7-page .id7-stack > .id7-section.id7-group-section > .id7-rid-systems .id7-rid-system{padding-left:20px!important;padding-right:20px!important}
  .id7-links-groups .catalog-section.id7-linked-group .catalog-heading{padding:17px!important}
  .id7-links-groups .catalog-section.id7-linked-group .catalog-card,
  .id7-links-groups .catalog-section.id7-linked-group .catalog-card:hover{padding-left:17px!important;padding-right:17px!important}
}
@media(max-width:620px){
  .id7-page .id7-stack > .id7-section.id7-group-section{border-radius:13px!important}
  .id7-page .id7-stack > .id7-section.id7-group-section > .external-grid,
  .id7-page .id7-stack > .id7-section.id7-group-section > .id7-rid-systems{grid-template-columns:1fr!important}
  .id7-page .id7-stack > .id7-section.id7-group-section > .external-grid .platform-card:nth-child(even){border-left:0!important}
  .id7-page .id7-stack > .id7-section.id7-group-section > .id7-rid-systems .id7-rid-system:nth-child(even){box-shadow:inset 0 1px rgba(255,255,255,.038)!important}
}


/* v0.7.0 — grouped pages final polish */
.id7-page .id7-section-head h2{line-height:1.05!important}
.id7-page .channel-card,.id7-page .platform-card,.id7-page .id7-rid-system,
.id7-page .release-tile-link,.id7-links-groups .catalog-card{transition:background .15s ease,color .15s ease!important}
.id7-page .channel-icon,.id7-page .platform-icon,.id7-page .music-platform-icon,.id7-links-groups .catalog-icon{flex:none!important}
.id7-page .channel-card:focus-visible,.id7-page .platform-card:focus-visible,
.id7-page .id7-rid-system:focus-visible,.id7-page .release-tile-link:focus-visible,
.id7-links-groups .catalog-card:focus-visible{outline-offset:-3px!important}
body[data-page="music"] .id7-page #releases .release-tile-link:hover .release-tile img,
body[data-page="music"] .id7-page #releases .release-tile-link:focus-visible .release-tile img{transform:none!important;box-shadow:none!important}
.id7-page .id7-collection-list li{cursor:default!important}
@media(max-width:700px){
 .id7-page .id7-stack>.id7-section.id7-group-section>.telegram-channels .channel-card{
   grid-template-columns:34px minmax(0,1fr) auto!important;gap:10px 12px!important;align-items:center!important;padding:14px 16px!important
 }
 .id7-page .telegram-channels .channel-card>span:nth-child(2){display:block!important;min-width:0!important}
 .id7-page .telegram-channels .channel-card h3{margin:0 0 4px!important}
 .id7-page .telegram-channels .channel-card p{margin:0!important;font-size:.82rem!important;line-height:1.48!important}
 .id7-page .id7-stack>.id7-section.id7-group-section>.external-grid .platform-card{min-height:132px!important;padding:16px!important}
 .id7-page .platform-card h3{margin-top:10px!important}
 .id7-page .id7-stack>.id7-section.id7-latest-section.id7-group-section>.id7-latest-release{
   grid-template-columns:64px minmax(0,1fr) auto!important;gap:10px 13px!important;padding:14px 16px!important
 }
 .id7-latest-release img{width:64px!important;height:64px!important}
 .id7-latest-release p{grid-column:1/-1!important;margin-top:2px!important;font-size:.84rem!important}
 .id7-rid-system{grid-template-columns:32px minmax(0,1fr) auto!important;gap:11px!important}
 .id7-links-groups{grid-template-columns:1fr!important;gap:16px!important}
 .id7-links-groups .catalog-section.id7-linked-group .catalog-card{padding-top:11px!important;padding-bottom:11px!important}
}
@media(max-width:460px){
 .id7-page .id7-stack>.id7-section.id7-group-section>.id7-section-head{padding:17px 16px 13px!important}
 .id7-page .id7-stack>.id7-section.id7-group-section>.external-grid .platform-card{min-height:120px!important}
}
