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}}
@media (max-width:900px){.main-nav{overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;max-width:100%;flex-wrap:nowrap}.main-nav a{flex:0 0 auto}html,body{overflow-x:hidden}}

/* 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 mobilefix: 佳片全集 / site 10 */
html,body{overflow-x:hidden;max-width:100%}
img,video,iframe{max-width:100%}
video{height:auto}
.content,.sec,.hot-grid,.layout,.card,.card-lg{min-width:0;max-width:100%;box-sizing:border-box}

@media (max-width:900px){
  .main-nav{white-space:normal!important;flex-wrap:wrap!important;overflow:visible!important}
  .main-nav.open,.main-nav.is-open{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%;
    gap:4px;
    padding:8px 0
  }
}

@media (max-width:768px){
  .head-inner{padding:8px 12px;gap:8px}
  .brand-mark{width:32px;height:32px;flex-basis:32px}
  .brand-text{font-size:14px;line-height:1.25}
  .brand-text span{display:block;font-size:11px;letter-spacing:0}
  .crumb{padding:10px 12px 0;gap:5px;flex-wrap:wrap}
  .hero{padding:10px 12px 0;grid-template-columns:1fr!important;gap:10px}
  .hero-side{grid-template-rows:none;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hero-mini{min-height:110px}
  .hero-main{min-height:0;display:flex;flex-direction:column}
  .hero-main>img{position:relative;inset:auto;width:100%;height:180px;object-fit:cover;opacity:.85}
  .hero-main:after{display:none}
  .pulse-badge{position:relative;top:auto;right:auto;margin:10px 12px 0;align-self:flex-start;max-width:calc(100% - 24px);white-space:normal;line-height:1.3;font-size:11px;z-index:2}
  .hero-inner{padding:12px 14px 16px;max-width:none}
  .hero-inner h1{font-size:22px!important;line-height:1.25}
  .hero-inner h1 small{font-size:12px;letter-spacing:1px;margin-top:6px}
  .hero-inner p{font-size:13px;margin-bottom:14px}
  .hero-kicker{margin-bottom:8px;font-size:11px;letter-spacing:.4px;white-space:normal}
  .hero-acts{gap:8px;flex-wrap:wrap}
  .hero-acts a,.hero-acts button,.btn-play,.btn-ghost,.btn-reserve{padding:8px 12px;font-size:13px}
  .layout{grid-template-columns:1fr!important;padding-left:12px;padding-right:12px}
  .sec{margin-bottom:26px}
  .sec-head{gap:8px;margin-bottom:12px;flex-wrap:wrap!important;align-items:center}
  .sec-head h2{font-size:16px}
  .sec-more{margin-left:0}
  .hot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .card-lg{grid-column:auto!important;grid-template-columns:1fr!important}
  .card-lg .thumb{min-height:0}
  .thumb{aspect-ratio:16/10}
  .card-body{padding:10px}
  .card-body h3{font-size:14px}
  .card-body .excerpt{display:none}
  .rail{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .rail-card{flex:0 0 46%}
  .rank-item{grid-template-columns:28px 64px 1fr!important;gap:8px;padding:8px}
  .rank-no{font-size:18px}
  .rank-pic{width:64px}
  .tl-item{grid-template-columns:52px 48px 1fr!important;gap:8px;padding:8px}
  .foot-grid{grid-template-columns:1fr 1fr!important;gap:16px}
  .c12-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .c12-page,.c12-hero,.c12-crumb,.c12-info,.c12-sec{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .c12-hero{display:block!important}
  .c12-pst img{width:100%;height:auto}
}

@media (max-width:520px){
  .hot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hero-side{grid-template-columns:1fr 1fr!important}
  .hero-mini{min-height:100px}
}

@media (max-width:360px){
  .hero-inner h1{font-size:20px!important}
  .hot-grid,.c12-grid{gap:8px}
  .btn-play,.btn-ghost,.btn-reserve{width:100%;justify-content:center}
}

/* c12 desktop polish: 佳片全集 / site 10 */
@media (min-width:769px){
  .wrap,.head-inner,.crumb,.hero,.layout{
    width:100%;
    max-width:1240px;
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box
  }
  .nav-toggle{display:none!important}
  .main-nav{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    white-space:normal!important;
    overflow:visible!important;
    align-items:center
  }
  .main-nav.open,.main-nav.is-open{flex-direction:row!important;width:auto;padding:0}
  .hero{grid-template-columns:1.55fr 1fr!important;gap:16px}
  .hero-main{min-height:340px}
  .hero-main>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.6}
  .hero-main:after{display:block}
  .pulse-badge{position:absolute;top:16px;right:16px;margin:0;max-width:46%;z-index:3}
  .hero-inner{position:relative;z-index:2;padding:36px 30px 30px;max-width:580px}
  .hero-side{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:1fr;gap:16px}
  .layout{grid-template-columns:minmax(0,1fr) 320px!important;gap:28px;padding:30px 18px 10px}
  .hot-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:16px
  }
  .card-lg{
    grid-column:auto!important;
    grid-template-columns:1fr!important;
    display:flex;
    flex-direction:column
  }
  .hot-grid .thumb,
  .hot-grid .card-lg .thumb{
    aspect-ratio:2/3!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden
  }
  .hot-grid .thumb img,
  .hot-grid .card-lg .thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block
  }
  .hot-grid .card-body,
  .card-lg .card-body{padding:10px 4px 4px}
  .hot-grid .card-body h3,
  .card-lg .card-body h3{
    font-size:14px!important;
    line-height:1.35;
    margin-bottom:6px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden
  }
  .hot-grid .excerpt,
  .card-lg .excerpt{display:none!important}
  .poster-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px}
  .poster-grid .thumb{aspect-ratio:2/3!important}
  .c12-page{max-width:1240px;margin-left:auto;margin-right:auto;padding:24px 18px 48px}
  .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-grid .excerpt,
  .c12-card p{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:13px;
    line-height:1.45
  }
  .c12-hero{display:flex!important;flex-wrap:nowrap;gap:28px;align-items:flex-start}
  .c12-pst{flex:0 0 220px;width:220px;max-width:220px}
  .c12-pst img{width:100%;aspect-ratio:2/3;object-fit:cover;height:auto}
}
@media (min-width:769px) and (max-width:1100px){
  .hot-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .poster-grid,.c12-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .layout{grid-template-columns:1fr!important}
}
@media (min-width:1440px){
  .hot-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .poster-grid,.c12-grid{grid-template-columns:repeat(6,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;}
