html{-webkit-text-size-adjust:100%;text-size-adjust:100%}img{max-width:100%}video{max-width:100%;background:#000}.c12-video{display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain;background:#000}.c12-player{position:relative;width:100%;background:#000;aspect-ratio:16/9}@supports not (aspect-ratio:16/9){.c12-player{height:0;padding-top:56.25%}.c12-player .c12-video{position:absolute;left:0;top:0}}

/* c12: keep brand/logo clickable above decorative layers */
a.brand,a.tpl-brand,a.ink-brand,a.footer-brand,a.foot-brand,a.footer-logo,
header a[class*="brand"],header a[class*="logo"],.site-header a[class*="brand"]{
  position:relative;z-index:50;pointer-events:auto!important;
}
[data-touch-ad-shadow-host]{display:none!important;pointer-events:none!important;}

/* c12: never lock page scroll (html overflow:hidden leftover from capture/popups) */
html,body{overflow-y:auto!important;height:auto!important;max-height:none!important;}
/* c12 mobile baseline (all sites) */
html,body{overflow-x:hidden;max-width:100%}
img,video,iframe,canvas{max-width:100%}
video{height:auto}
.hero,.hero-stage,.hero-backdrop,.carousel,.banner{overflow:hidden}
@media (max-width:768px){
  .c12-page,.c12-hero,.c12-crumb,.c12-info,.c12-tags,.c12-sec{
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important
  }
  .c12-page{width:auto!important;padding-left:12px!important;padding-right:12px!important}
  .c12-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .c12-grid img{width:100%!important;height:auto!important;aspect-ratio:2/3;object-fit:cover}
  .c12-hero{display:block!important;flex-wrap:wrap!important}
  .c12-pst{max-width:100%;width:auto}
  .c12-pst img{width:100%;height:auto}
  .c12-player,.c12-detail-player,video.c12-video{width:100%;max-width:100%}
}

/* c12 desktop baseline (all sites) */
@media (min-width:769px){
  .c12-page{max-width:1240px;margin-left:auto;margin-right:auto;box-sizing:border-box}
  .c12-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px!important}
  .c12-grid img{width:100%!important;aspect-ratio:2/3!important;object-fit:cover;height:auto!important}
  .c12-grid p,.c12-card p,.c12-excerpt{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
  }
  .c12-hero{display:flex!important;flex-wrap:nowrap;gap:28px;align-items:flex-start}
  .c12-pst{flex:0 0 220px;max-width:220px}
  .c12-pst img{width:100%;aspect-ratio:2/3;object-fit:cover}
}
@media (min-width:769px) and (max-width:1100px){
  .c12-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* c12 rank/list fix: inner <a> wrapper was squeezing grid children into column 1 */
.rank-item > a {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: 48px 80px minmax(0, 1fr) auto !important;
  gap: 16px;
  align-items: center;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  color: inherit !important;
  text-decoration: none !important;
}
.rank-item .rank-pic,
.rank-item > a .rank-pic {
  width: 80px !important;
  max-width: 80px !important;
  height: auto !important;
  aspect-ratio: 2/3 !important;
  object-fit: cover !important;
  border-radius: 8px;
  justify-self: center;
}
.rank-txt { min-width: 0; }
.rank-txt h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.35; }
.rank-txt p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
}
.rank-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-tags span {
  display: inline-block;
  font-size: 12px;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e3efec;
  color: #2a6b62;
  white-space: nowrap;
}
.rank-no { font-size: 22px; font-weight: 800; text-align: center; }
.rank-score { font-size: 18px; font-weight: 700; white-space: nowrap; }
.tl-item > a {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: 72px 56px minmax(0, 1fr) auto !important;
  gap: 12px;
  align-items: center;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  color: inherit !important;
  text-decoration: none !important;
}
.card-lg > a {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  min-width: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}
@media (max-width:640px){
  .rank-score{display:inline-block!important}
  .rank-item > a {
    grid-template-columns: 28px 56px minmax(0, 1fr) auto !important;
    gap: 10px;
  }
  .rank-item .rank-pic, .rank-item > a .rank-pic {
    width: 56px !important;
    max-width: 56px !important;
  }
  .rank-no { font-size: 16px; }
  .tl-item > a {
    grid-template-columns: 52px 44px minmax(0, 1fr) !important;
  }
}

@media (max-width:900px){
  nav.tpl-links{display:flex!important;flex-wrap:wrap!important;gap:8px 14px;width:100%;align-items:center}
  .tpl-nav{flex-wrap:wrap}
}



/* c12 detail compat: posters, prefixes, fallbacks */
.poster-frame,.poster,.poster-link,.card-media,.thumb{position:relative;display:block;overflow:hidden}
.poster-frame{height:0;padding-top:150%}
.poster-frame img,.poster img,.poster-link img,.card-media img{max-width:100%;height:auto;display:block;object-fit:cover}
.poster-frame img{position:absolute;left:0;top:0;width:100%;height:100%}
@supports (aspect-ratio:2/3){
  .poster-frame{height:auto;padding-top:0;aspect-ratio:2/3}
}
.hero-slide .hero-title,.hero-content .hero-title{
  display:block;margin:0 0 .35em;font-size:36px;font-size:clamp(2rem,5vw,4.2rem);
  line-height:1.15;font-weight:700;color:inherit
}
.sticky,.site-header,header.sticky{position:-webkit-sticky;position:sticky}
[class*="backdrop"],.hero-backdrop,.hero-mask,.hero-overlay{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
video{max-width:100%;height:auto}
@supports not (gap:8px){
  .hero-tags > span,.tag-row > span,.hero-actions > a,.card-meta > span{margin-right:8px;margin-bottom:6px}
}

/* seo detail: keep homepage logo h1 visually unchanged */
h1.brand-text,.brand h1.brand-text{margin:0;padding:0;font-size:inherit;font-weight:inherit;line-height:inherit;}
