:root{--ivw-max:1800px;--ivw-gutter:clamp(22px,2.2vw,42px)}
body.ivwork-shorts-page{margin:0!important}

/* Independent page containers use the homepage shell formula. Elements that
   already live inside .ivwork-fc-shell are excluded on purpose. */
.ivwork-game-index,
.ivwork-gp-footer,
.ivwork-channel-footer,
.chan-profile-main,
.ivwork-shorts-main,
.ivwork-shorts-heading,
.ivwork-shorts-grid,
.ivpm-tabs,
.ivpm-sec,
.ivpm-grid,
.ivpm-foot,
.ivpm-legal,
.ivart-home-category-nav,
.detail-main,
.site-footer,
.ivwork-ill-wrap,
main.ivt,
main:not(.ivwork-fc-main):not(.ivt){
  width:100%!important;
  max-width:var(--ivw-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--ivw-gutter)!important;
  padding-right:var(--ivw-gutter)!important;
  box-sizing:border-box!important
}

/* Hub pages inject their own style block INSIDE main.ivt, which loads after
   this stylesheet; the higher-specificity selector keeps the shared column. */
html body main.ivt{
  width:100%!important;
  max-width:var(--ivw-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--ivw-gutter)!important;
  padding-right:var(--ivw-gutter)!important;
  box-sizing:border-box!important
}

/* Inner content wrappers must not add a second gutter. Legal/info pages are
   an exception: they are framed cards and keep their own inner padding. */
.ivwork-fc-main:not(.ivwork-fc-legal-page),
.ivwork-product-footer{
  padding-left:0!important;
  padding-right:0!important
}

/* Legal/info pages ship with max-width:1100px, which reads as a narrow blog
   column next to the homepage. Grow the CARD to the shared outer width while
   keeping its border, rounded corners, background and 34px inner padding. */
.ivwork-fc-shell .ivwork-fc-main.ivwork-fc-legal-page{
  width:100%!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:34px!important;
  padding-right:34px!important;
  box-sizing:border-box!important
}
/* Ads inside that card should still span the full shared column. */
.ivwork-fc-legal-page .ivwork-fc-ad-slot{
  width:calc(100% + 68px)!important;
  margin-left:-34px!important;
  margin-right:-34px!important
}

/* /pc-shorts/ hero is content-box with max-width:1500px PLUS 28px side
   padding, which overflows a 1366px viewport by 30px. */
.ivpm-hero{
  max-width:100%!important;
  box-sizing:border-box!important
}

/* The internal-link module keeps the shared side gutter on standalone pages;
   when it sits inside .ivwork-fc-shell the shell already provides the gutter,
   so a second one would inset the cards by another 30px. Vertically it keeps
   its own rhythm everywhere. */
.ivwork-fc-shell .ivwork-ill-wrap{
  padding-left:0!important;
  padding-right:0!important
}
.ivwork-ill-wrap{padding-top:16px!important;padding-bottom:8px!important}

/* Ads: one shared width and vertical rhythm, no fixed cap, no placeholder. */
.ivwork-fc-ad-slot{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:18px auto 26px!important;
  padding:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  box-sizing:border-box!important
}
.ivwork-fc-ad-slot[data-ad-position="page_bottom"]{margin-bottom:8px!important}
.ivw-ad,
.ivwork-fc ins.adsbygoogle{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  box-sizing:border-box!important
}

/* Responsive grids. */
.ivwork-shorts-grid,
.ivpm-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:900px){
  .ivwork-shorts-grid,
  .ivpm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ivwork-ill-wrap{padding-top:12px!important;padding-bottom:4px!important}
}
@media(max-width:520px){
  .ivwork-shorts-grid,
  .ivpm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ==========================================================================
   v1.6 - Mobile bottom tab bar (pc-shorts et al). The bar is fixed to the
   viewport but its row of items can exceed 390px and stretch page width.
   Constrain it to the viewport and let items scroll inside the bar instead.
   ========================================================================== */
@media(max-width:680px){
  .ivwork-mtab{
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100vw!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    box-sizing:border-box!important
  }
  .ivwork-mtab-item{flex:1 1 auto!important;min-width:56px!important}
}

/* v1.7 - Mobile cookie-consent compact bar. Its button row can exceed the
   viewport and stretch the fixed bar (and page scroll width) past 390px.
   Pin the bar to the viewport and let the paragraph ellipsize instead. */
@media(max-width:680px){
  .ivw-cmp{
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    box-sizing:border-box!important
  }
  .ivw-cmp p{max-width:50vw!important}
  .ivw-cmp-actions{flex-wrap:wrap!important;margin-right:30px!important}
  .ivw-cmp button{white-space:normal!important}
}

/* v1.7b - pc-shorts hero carries a decorative pseudo-element track that
   extends ~110px past the viewport on phones (page scrollWidth 501 on 390).
   Clip the horizontal bleed on small screens only; desktop is untouched. */
@media(max-width:680px){
  .ivpm-hero{overflow-x:clip!important}
}

/* ==========================================================================
   v1.5 - INNER main-content containers (the six pages reported unchanged).
   These blocks live INSIDE the outer <main> that v1.4 already widened; their
   own fixed max-width was still rendering them as narrow centred columns.
   ========================================================================== */

/* /games/non-steam/ : .wrap is the ranking container (1200px, 20px padding). */
body.ivw-r-nonsteam .wrap{
  width:100%!important;
  max-width:1800px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--ivw-gutter)!important;
  padding-right:var(--ivw-gutter)!important;
  box-sizing:border-box!important
}

/* /channels/ : the 220px sticky sidebar squeezed the main column to 1048px.
   Reuse the site's own responsive pattern - sidebar becomes a horizontal
   category bar above the content, main column takes the full shared width. */
body.ivw-r-channels .ivwork-fc-collection-layout{
  grid-template-columns:minmax(0,1fr)!important;
  gap:15px!important
}
body.ivw-r-channels .ivwork-fc-category-sidebar{
  position:static!important;
  padding:12px 13px!important
}
body.ivw-r-channels .ivwork-fc-category-sidebar nav{
  display:flex!important;
  gap:6px;
  overflow-x:auto;
  padding:2px 0 5px!important
}
body.ivw-r-channels .ivwork-fc-category-sidebar nav a{
  flex:none;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.08)!important
}
body.ivw-r-channels .ivwork-fc-collection-layout > .ivwork-fc-section{
  margin-bottom:30px!important
}

/* /pc-shorts/ : .ivpm-stats is a second tab-looking row made of <span>s with
   no links - clicking them does nothing. The real navigation is .ivpm-tabs
   (which repeats the same three counts), so the dead row is removed. */
body.ivw-r-pcs .ivpm-stats{display:none!important}
body.ivw-r-pcs .ivpm-hero,
body.ivw-r-pcs .ivpm-tabs,
body.ivw-r-pcs .ivpm-sec,
body.ivw-r-pcs .ivpm-foot,
body.ivw-r-pcs .ivpm-legal,
body.ivw-r-pcs .ivpm-watchwrap{
  width:100%!important;
  max-width:1800px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:var(--ivw-gutter)!important;
  padding-right:var(--ivw-gutter)!important;
  box-sizing:border-box!important
}
/* .ivpm-grid is nested in .ivpm-sec, which already provides the gutter. */
body.ivw-r-pcs .ivpm-grid{
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important
}

/* /music/ : .content-section / .hero-copy capped at 1320px. */
body.ivw-r-music .content-section{
  width:100%!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important
}
body.ivw-r-music .hero-copy{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important
}
body.ivw-r-music .concert-grid{
  width:100%!important;
  max-width:none!important
}

/* /articles/ : .ivart-wrap capped at 1280px with 40px side padding. */
body.ivw-r-articles .ivart-wrap{
  width:100%!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important
}

/* Article detail: widen the prose FRAME to the shared column, but keep a
   1100px reading column inside so English line length stays readable. */
body.ivw-r-articledetail .ivart-prose{
  width:100%!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important
}
body.ivw-r-articledetail .ivart-prose > p,
body.ivw-r-articledetail .ivart-prose > h2,
body.ivw-r-articledetail .ivart-prose > h3,
body.ivw-r-articledetail .ivart-prose > ul,
body.ivw-r-articledetail .ivart-prose > ol,
body.ivw-r-articledetail .ivart-prose > blockquote{
  max-width:1100px!important;
  margin-left:auto!important;
  margin-right:auto!important
}
body.ivw-r-articledetail .ivart-detail-hero-in{
  width:100%!important;
  max-width:none!important
}
</style>
