.doujin-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
  gap:14px;
}

.doujin-card{
  background:#fff;
  border:1px solid #e8eaf0;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.doujin-card-thumb,
.doujin-thumb-wrap{
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:#f7f7f7;
}

.doujin-card-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

.doujin-rank-badge{
  position:static;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  box-sizing:border-box;
  width:auto;
  margin:8px 8px 6px;
  padding:7px 10px;
  border-radius:8px;
  background:#ffd84d;
  color:#111;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  text-align:left;
}

.doujin-rank-no{
  display:inline-block;
  flex:0 0 auto;
  padding:3px 8px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:13px;
  font-weight:800;
  line-height:1.25;
}

.doujin-rank-text,
.doujin-rank-metric{
  position:static;
  display:inline;
  box-sizing:border-box;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#111;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
  box-shadow:none;
}

.doujin-rank-text{
  flex:1 1 120px;
}

.doujin-rank-metric strong{
  display:inline-block;
  margin-right:5px;
}

.doujin-ranking-panel{
  margin:4px 0 0;
  padding:5px;
  border:1px solid #eee;
  border-radius:8px;
  background:#fffdf3;
}

.doujin-ranking-panel h2{
  margin:0 0 3px;
  font-size:14px;
}

.doujin-ranking-panel h3{
  margin:5px 0 3px;
  font-size:12px;
}

.doujin-rank-main-position{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 7px;
  border:1px solid #f2d35b;
  border-radius:9px;
  background:#fff8d8;
  color:#111;
  text-decoration:none;
  transition:background .15s ease, transform .15s ease;
}

.doujin-rank-main-position:hover{
  background:#fff2b8;
  transform:translateY(-1px);
}

.doujin-rank-main-position span{
  font-weight:700;
}

.doujin-rank-main-position strong{
  flex:0 0 auto;
  padding:3px 8px;
  border-radius:999px;
  background:#ffd84d;
  color:#111;
  font-size:14px;
  line-height:1;
}

.doujin-ranking-list{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:3px;
}

.doujin-ranking-list a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  padding:3px 5px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:8px;
  background:#fff;
  color:#111;
  font-size:12px;
  text-decoration:none;
}

.doujin-ranking-list a:hover{
  background:#fff8d8;
  border-color:#f2d35b;
}

.doujin-ranking-list-major a{
  border-color:#f2d35b;
  background:linear-gradient(180deg, #fff9df, #fffef7);
  box-shadow:0 4px 12px rgba(0,0,0,.04);
  font-weight:800;
}

.doujin-ranking-list-major a:hover{
  background:#fff2b8;
  transform:translateY(-1px);
}

.doujin-ranking-list-major span{
  color:#111;
}

.doujin-ranking-list-major span b{
  display:block;
  margin-bottom:2px;
  color:#8a6500;
  font-size:10px;
  font-weight:800;
  line-height:1.2;
}

.doujin-ranking-list span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.doujin-ranking-list strong{
  flex:0 0 auto;
  padding:2px 5px;
  border-radius:999px;
  background:#ffd84d;
  color:#111;
  font-size:11px;
}

.doujin-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:16px 0 0;
  flex-wrap:wrap;
}

.doujin-pagination a,
.doujin-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid #e1e4ea;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.doujin-pagination a{
  background:#111;
  color:#fff;
}

.doujin-card-body{
  padding:10px;
}

.doujin-card-title{
  margin:0;
  font-size:13px;
  line-height:1.45;
}

.doujin-card-title a{
  color:inherit;
  text-decoration:none;
}

.doujin-card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:8px;
}

.doujin-card-tags span{
  display:inline-block;
  padding:3px 7px;
  border-radius:999px;
  background:#f5f7fb;
  border:1px solid #e3e8f0;
  font-size:10px;
  line-height:1.2;
  color:#555;
}

.doujin-card-tags a{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:#f5f7fb;
  border:1px solid #e3e8f0;
  font-size:12px;
  line-height:1.2;
  color:#333;
  text-decoration:none;
}

.doujin-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  font-size:11px;
  color:#666;
}

.doujin-card-list-price{
  color:#999;
  text-decoration:line-through;
}

.doujin-card-discount{
  color:#b83232;
  font-weight:700;
}

.doujin-card-button{
  display:block;
  margin-top:10px;
  padding:8px 10px;
  border-radius:999px;
  background:#111;
  color:#fff;
  text-align:center;
  text-decoration:none;
  font-size:12px;
  line-height:1;
}

.doujin-card-button:hover{
  opacity:.86;
}

.doujin-movie-watch{
  width:min(100%, 1440px);
  max-width:none;
}

.doujin-movie-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:14px 0;
  padding:18px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.07);
}

.doujin-movie-head h1{
  margin:0;
  font-size:26px;
  line-height:1.35;
}

.doujin-movie-head p{
  margin:8px 0 0;
  color:#555;
  font-size:14px;
}

.doujin-movie-counter{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:800;
  font-size:18px;
}

.doujin-movie-sort{
  margin:0 0 12px;
}

.doujin-movie-sort button{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 13px;
  border:1px solid #dce3ee;
  border-radius:999px;
  background:#f8fafc;
  color:#222;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}
.doujin-movie-sort button:hover,
.doujin-movie-sort button[aria-pressed="true"],
.doujin-movie-sort button.is-random-on{
  background:#ffd84d;
  border-color:#f2c928;
  color:#111;
}

.doujin-movie-player-shell{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:520px;
  height:78vh;
  border-radius:10px;
  overflow:hidden;
  background:#000;
  box-shadow:0 10px 30px rgba(0,0,0,.22);
  touch-action:pan-y;
}

.doujin-movie-stage{
  position:relative;
  width:100%;
  height:100%;
  background:#000;
  touch-action:pan-y;
}

.doujin-movie-video{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#000;
  touch-action:pan-y;
}

.doujin-movie-empty{
  position:absolute;
  inset:auto;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:#111;
  font-weight:700;
}

.doujin-movie-empty[hidden]{
  display:none;
}

.doujin-movie-overlay-title{
  position:absolute;
  top:12px;
  left:12px;
  z-index:12;
  max-width:min(68%, 760px);
  max-height:92px;
  overflow:hidden;
  padding:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  color:#fff;
  font-size:15px;
  font-weight:800;
  line-height:1.35;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45);
  transition:opacity .2s ease, transform .2s ease;
}

.doujin-movie-overlay-title-main{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:1;
}

.doujin-movie-overlay-meta{
  margin-top:3px;
  color:rgba(255,255,255,.82);
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}

.doujin-movie-overlay-price{
  margin-top:3px;
  color:#ffe082;
  font-size:12px;
  font-weight:800;
  line-height:1.35;
}

.doujin-movie-time-display{
  position:absolute;
  top:12px;
  right:12px;
  z-index:13;
  padding:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  color:#fff;
  font-family:Arial, sans-serif;
  font-size:14px;
  font-weight:800;
  line-height:1;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45);
  transition:opacity .2s ease, transform .2s ease;
}

.doujin-movie-gesture-feedback{
  position:absolute;
  top:50%;
  z-index:24;
  min-width:86px;
  padding:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  color:#fff;
  font-size:15px;
  font-weight:800;
  line-height:1;
  text-align:center;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transform:translate(-50%, -50%) scale(.96);
  transition:opacity .16s ease, transform .16s ease;
}

.doujin-movie-gesture-feedback.is-visible{
  opacity:1;
  transform:translate(-50%, -50%) scale(1);
}

.doujin-movie-gesture-feedback.is-left{
  left:25%;
}

.doujin-movie-gesture-feedback.is-center{
  left:50%;
}

.doujin-movie-gesture-feedback.is-right{
  left:75%;
}

.doujin-movie-touch-hints{
  position:absolute;
  left:14px;
  right:14px;
  top:50%;
  z-index:17;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  pointer-events:none;
  opacity:0;
  visibility:hidden;
  transform:translateY(-50%) scale(.98);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.doujin-movie-touch-hints.is-hint-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(-50%) scale(1);
}

.doujin-movie-touch-hint{
  display:grid;
  gap:4px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  color:#fff;
  box-shadow:none;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45);
  backdrop-filter:none;
}

.doujin-movie-touch-hint.left{
  justify-self:start;
  text-align:left;
}

.doujin-movie-touch-hint.right{
  justify-self:end;
  text-align:right;
}

.doujin-movie-touch-hint strong{
  color:#ffd84d;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
}

.doujin-movie-touch-hint span{
  font-size:12px;
  font-weight:800;
  line-height:1.25;
  white-space:nowrap;
}

.doujin-movie-overlay-count{
  position:absolute;
  top:48px;
  right:12px;
  z-index:12;
  display:flex;
  align-items:center;
  gap:5px;
  padding:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  color:#fff;
  font-size:14px;
  font-weight:800;
  line-height:1;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45);
}

.doujin-movie-rank-mini{
  position:absolute;
  right:14px;
  bottom:42px;
  z-index:18;
  display:grid;
  gap:5px;
  min-width:138px;
  max-width:260px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  background-color:transparent;
  color:#fff;
  box-shadow:none;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45);
  backdrop-filter:none;
  transition:opacity .2s ease, background .2s ease;
}

.doujin-movie-rank-mini[hidden]{
  display:none;
}

.doujin-movie-overlay-buy{
  position:absolute;
  left:14px;
  bottom:42px;
  z-index:21;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border:1px solid rgba(255,216,77,.72);
  border-radius:999px;
  background:rgba(255,216,77,.95);
  color:#111;
  font-size:13px;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(0,0,0,.32);
  transition:opacity .2s ease, transform .2s ease;
}

.doujin-movie-overlay-buy[hidden]{
  display:none;
}

.doujin-movie-rank-mini-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}

.doujin-movie-rank-mini-row span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.doujin-movie-rank-mini-row strong{
  flex:0 0 auto;
  padding:2px 5px;
  border-radius:999px;
  background:#ffd84d;
  color:#111;
  font-size:12px;
  line-height:1;
}

.doujin-movie-player-shell.is-controls-hidden .doujin-movie-rank-mini{
  opacity:.72;
  background:transparent;
  background-color:transparent;
}

.doujin-movie-seekbar{
  position:absolute;
  left:8px;
  right:8px;
  bottom:3px;
  z-index:20;
  width:auto;
  height:4px;
  accent-color:rgba(255,255,255,.55);
  cursor:pointer;
  opacity:.72;
  transition:opacity .18s ease, height .18s ease;
}

.doujin-movie-seekbar:hover,
.doujin-movie-seekbar:focus{
  height:6px;
  opacity:1;
  outline:none;
}

.doujin-movie-seekbar::-webkit-slider-runnable-track{
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
}

.doujin-movie-seekbar::-webkit-slider-thumb{
  width:12px;
  height:12px;
  margin-top:-4px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  -webkit-appearance:none;
  appearance:none;
}

.doujin-movie-seekbar::-moz-range-track{
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
}

.doujin-movie-seekbar::-moz-range-progress{
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
}

.doujin-movie-seekbar::-moz-range-thumb{
  width:12px;
  height:12px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.75);
}

.doujin-movie-controls{
  position:absolute;
  top:44px;
  right:12px;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  width:min(62%, 520px);
  margin:0;
  padding:10px;
  border-radius:999px;
  background:transparent;
  background-color:transparent;
  backdrop-filter:none;
}

.doujin-movie-controls button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:58px;
  min-width:58px;
  min-height:52px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(0,0,0,.64);
  box-shadow:0 4px 14px rgba(0,0,0,.34);
  color:#fff;
  font-family:Arial, sans-serif;
  font-weight:800;
  font-size:19px;
  line-height:1;
  cursor:pointer;
  transform:translateX(0);
}

.doujin-movie-controls button:hover{
  background:rgba(255,216,77,.95);
  border-color:rgba(255,216,77,.95);
  color:#111;
}

.doujin-movie-controls .doujin-movie-play-btn{
  width:116px;
  min-width:116px;
  min-height:52px;
  font-size:24px;
  font-weight:900;
  background:rgba(255,216,77,.96);
  color:#111;
}

.doujin-movie-volume{
  position:absolute;
  left:auto;
  right:14px;
  bottom:42px;
  z-index:20;
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 11px;
  border-radius:999px;
  background:transparent;
  background-color:transparent;
  backdrop-filter:none;
  transition:opacity .2s ease, transform .2s ease;
}

.doujin-movie-mute-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  min-width:42px;
  min-height:42px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(0,0,0,.64);
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.28);
  font-size:18px;
  cursor:pointer;
}

.doujin-movie-volume-range{
  width:150px;
  accent-color:#ffd84d;
  cursor:pointer;
}

.doujin-movie-player-shell.is-controls-hidden .doujin-movie-controls,
.doujin-movie-player-shell.is-controls-hidden .doujin-movie-volume,
.doujin-movie-player-shell.is-controls-hidden .doujin-movie-overlay-buy{
  opacity:0;
  pointer-events:none;
  transform:translateY(8px);
}

.doujin-movie-player-shell.is-controls-hidden .doujin-movie-controls{
  transform:translateY(-8px);
}

.doujin-movie-player-shell:fullscreen{
  width:100vw;
  height:100vh;
  border-radius:0;
}

.doujin-movie-player-shell:fullscreen .doujin-movie-controls{
  position:absolute;
  top:24px;
  right:24px;
}

.doujin-movie-player-shell:fullscreen .doujin-movie-volume{
  position:absolute;
  left:auto;
  right:14px;
  bottom:42px;
}

.doujin-movie-player-shell:fullscreen .doujin-movie-overlay-buy{
  position:absolute;
  left:14px;
  bottom:42px;
}

.doujin-movie-player-shell:fullscreen .doujin-movie-seekbar{
  position:absolute;
  left:8px;
  right:8px;
  bottom:3px;
}

.doujin-movie-player-shell:-webkit-full-screen{
  width:100vw;
  height:100vh;
  border-radius:0;
}

.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-controls{
  position:absolute;
  top:24px;
  right:24px;
}

.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-volume{
  position:absolute;
  left:auto;
  right:14px;
  bottom:42px;
}

.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-overlay-buy{
  position:absolute;
  left:14px;
  bottom:42px;
}

.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-seekbar{
  position:absolute;
  left:8px;
  right:8px;
  bottom:3px;
}

.doujin-movie-info,
.doujin-movie-detail-full{
  margin:0 0 24px;
  padding:16px;
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.07);
}

.doujin-movie-info h2,
.doujin-movie-detail-title{
  margin:0;
  font-size:20px;
  line-height:1.45;
}

.doujin-movie-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.doujin-movie-detail-image{
  max-width:520px;
  margin:0 0 14px;
  border-radius:12px;
  overflow:hidden;
  background:#f7f7f7;
}

.doujin-movie-detail-image:empty{
  display:none;
}

.doujin-movie-detail-image img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

.doujin-movie-meta,
.doujin-movie-detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}

.doujin-movie-meta span,
.doujin-movie-detail-meta span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  background:#f5f7fb;
  border:1px solid #e3e8f0;
  color:#333;
  font-size:12px;
  line-height:1.2;
}

.doujin-movie-detail-rank{
  margin-top:14px;
}

.doujin-movie-detail-rank > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:420px;
  padding:12px 14px;
  border:1px solid #f2d35b;
  border-radius:14px;
  background:#fff8d8;
  color:#111;
  text-decoration:none;
}

.doujin-movie-detail-rank > a > span{
  font-weight:800;
}

.doujin-movie-detail-rank > a > strong{
  flex:0 0 auto;
  padding:7px 12px;
  border-radius:999px;
  background:#ffd84d;
  font-size:18px;
  line-height:1;
}

.doujin-movie-detail-rank .doujin-ranking-panel{
  margin-top:0;
}

.doujin-movie-tags,
.doujin-movie-detail-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}

.doujin-movie-tags a,
.doujin-movie-detail-tags a{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  background:#fff8d8;
  border:1px solid #f2d35b;
  color:#111;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}

.doujin-movie-buy,
.doujin-movie-detail-buy{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  margin-top:14px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}

.doujin-movie-buy[hidden],
.doujin-movie-detail-buy[hidden]{
  display:none;
}

.doujin-movie-watch-summary{
  display:grid;
  grid-template-columns:minmax(220px, .8fr) minmax(0, 1.2fr);
  gap:14px;
  align-items:stretch;
  margin:12px 0;
  padding:14px;
  border-radius:16px;
  background:#111;
  color:#fff;
  box-shadow:0 6px 20px rgba(0,0,0,.12);
}

.doujin-movie-watch-count{
  font-size:18px;
  font-weight:800;
  line-height:1.3;
}

.doujin-movie-watch-desc{
  margin:6px 0 0;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.6;
}

.doujin-movie-neighbor-nav{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.doujin-movie-neighbor-card{
  display:block;
  min-width:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:rgba(255,255,255,.08);
  color:#fff;
  text-align:left;
  cursor:pointer;
}

.doujin-movie-neighbor-card:hover{
  background:rgba(255,216,77,.16);
  border-color:rgba(255,216,77,.45);
}

.doujin-movie-neighbor-card span{
  display:block;
  margin-bottom:6px;
  color:#ffd84d;
  font-size:12px;
  font-weight:800;
}

.doujin-movie-neighbor-card strong{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-height:2.8em;
  font-size:14px;
  line-height:1.4;
}

.doujin-movie-neighbor-card:disabled{
  opacity:.55;
  cursor:default;
}

.doujin-movie-detail-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.doujin-movie-detail-links a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 11px;
  border:1px solid #dce3ee;
  border-radius:999px;
  background:#fff;
  color:#222;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.doujin-movie-detail-samples{
  margin-top:18px;
}

.doujin-movie-detail-samples h3{
  margin:0 0 12px;
  font-size:18px;
}

.doujin-movie-detail-samples figure{
  max-width:1160px;
  margin:0 auto 10px;
  border-radius:10px;
  overflow:hidden;
  background:#f7f7f7;
}

.doujin-movie-detail-samples img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
}

.doujin-section-lead{
  margin:0 0 14px;
  line-height:1.8;
  color:#555;
}

.doujin-adult-note{
  padding:10px 12px;
  border:1px solid #f0d7d7;
  border-radius:12px;
  background:#fff7f7;
  color:#7a3333;
  line-height:1.7;
}

.doujin-nav-stack{
  display:grid;
  gap:7px;
  margin:0 0 14px;
}

.doujin-local-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:0;
  padding:7px 8px;
  border:1px solid #e6ebf2;
  border-radius:12px;
  background:#fff;
}

.doujin-local-nav > span{
  flex:0 0 120px;
  color:#64748b;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
}

.doujin-local-nav a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:8px 13px;
  border:1px solid #dce3ee;
  border-radius:999px;
  background:#fff;
  color:#222;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}

.doujin-local-nav a:hover{
  background:#f5f7fb;
  text-decoration:none;
}

.doujin-local-nav a.active,
.doujin-local-nav a[aria-current="page"]{
  border-color:#f2d35b;
  background:#fff8d8;
  color:#111;
}

.doujin-local-nav-hub{
  background:#f8fafc;
}

.doujin-local-nav-genres{
  background:#fffdf4;
}

.doujin-local-nav-doujin{
  background:#fff9f6;
}

@media (max-width:768px){
  .doujin-local-nav{
    gap:6px;
    padding:7px;
  }

  .doujin-local-nav > span{
    flex:0 0 100%;
  }

  .doujin-local-nav a{
    min-height:32px;
    padding:7px 10px;
    font-size:12px;
  }

  .doujin-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .doujin-card-body{
    padding:8px;
  }

  .doujin-card-title{
    font-size:12px;
  }

  .doujin-rank-badge{
    margin:7px 7px 5px;
    padding:6px 8px;
    font-size:11px;
    gap:5px;
  }

  .doujin-rank-no{
    padding:3px 7px;
    font-size:12px;
  }

  .doujin-rank-text,
  .doujin-rank-metric{
    padding:0;
    font-size:11px;
  }

  .doujin-movie-head{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius:14px;
  }

  .doujin-movie-head h1{
    font-size:21px;
  }

  .doujin-movie-counter{
    font-size:15px;
    padding:8px 12px;
  }

  .doujin-movie-player-shell{
    width:100vw;
    max-width:none;
    height:calc(100svh - 80px);
    min-height:72vh;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    border-radius:0;
  }

  .doujin-movie-controls{
    top:44px;
    right:8px;
    bottom:auto;
    gap:5px;
    width:min(68%, 260px);
    padding:6px;
    border-radius:18px;
  }

  .doujin-movie-controls button{
    width:40px;
    min-width:40px;
    min-height:40px;
    padding:0;
    font-size:14px;
  }

  .doujin-movie-controls .doujin-movie-play-btn{
    width:78px;
    min-width:78px;
    min-height:40px;
    font-size:21px;
  }

  .doujin-movie-overlay-count{
    top:40px;
    right:8px;
    padding:6px 9px;
    font-size:12px;
  }

  .doujin-movie-rank-mini{
    right:8px;
    bottom:34px;
    min-width:112px;
    max-width:42vw;
    padding:6px;
    border-radius:10px;
    gap:3px;
  }

  .doujin-movie-rank-mini-row{
    gap:6px;
    font-size:11px;
  }

  .doujin-movie-rank-mini-row strong{
    padding:3px 6px;
    font-size:11px;
  }

  .doujin-movie-overlay-title{
    top:8px;
    left:8px;
    max-width:62%;
    max-height:82px;
    padding:6px 9px;
    border-radius:8px;
    font-size:12px;
  }

  .doujin-movie-overlay-meta,
  .doujin-movie-overlay-price{
    font-size:10px;
  }

  .doujin-movie-time-display{
    top:8px;
    right:8px;
    padding:6px 9px;
    font-size:11px;
  }

  .doujin-movie-touch-hints{
    left:8px;
    right:8px;
    gap:8px;
  }

  .doujin-movie-touch-hint{
    padding:8px;
    border-radius:10px;
  }

  .doujin-movie-touch-hint strong{
    font-size:11px;
  }

  .doujin-movie-touch-hint span{
    font-size:10px;
  }

  .doujin-movie-seekbar{
    left:6px;
    right:6px;
    bottom:2px;
    width:auto;
    height:4px;
  }

  .doujin-movie-volume{
    left:auto;
    right:8px;
    bottom:34px;
    gap:6px;
    padding:6px 7px;
  }

  .doujin-movie-overlay-buy{
    left:8px;
    bottom:34px;
    min-height:34px;
    padding:8px 11px;
    font-size:12px;
  }

  .doujin-movie-mute-btn{
    width:34px;
    min-width:34px;
    min-height:34px;
    font-size:15px;
  }

  .doujin-movie-volume-range{
    width:72px;
  }
}

.doujin-genre-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.doujin-genre-chip{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:#f5f7fb;
  border:1px solid #e3e8f0;
  color:#333;
  font-size:13px;
  line-height:1.2;
  text-decoration:none;
}

.doujin-genre-chip.active,
.doujin-genre-chip[aria-current="page"]{
  background:#111;
  border-color:#111;
  color:#fff;
}

.doujin-cross-genre-menu{
  margin-top:14px;
}

.doujin-cross-genre-menu h2{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.35;
}

.doujin-genre-rank-list{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.doujin-genre-rank-list li{
  min-width:0;
}

.doujin-genre-rank-list a{
  display:grid;
  grid-template-columns:88px auto minmax(0, 1fr);
  gap:6px 10px;
  align-items:center;
  min-height:82px;
  padding:10px 12px;
  border:1px solid #e3e8f0;
  border-radius:12px;
  background:#fff;
  color:#222;
  text-decoration:none;
}

.doujin-genre-rank-list a:hover{
  background:#f5f7fb;
}

.doujin-genre-rank-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:12px;
  font-weight:700;
}

.doujin-genre-rank-thumb{
  grid-row:1 / span 2;
  display:block;
  width:88px;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border-radius:8px;
  background:#f7f7f7;
}

.doujin-genre-rank-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

.doujin-genre-rank-name{
  overflow:hidden;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.doujin-genre-rank-meta{
  grid-column:3;
  color:#666;
  font-size:12px;
}

.doujin-text-link{
  color:#0b63ce;
  font-weight:700;
  text-decoration:none;
}

.doujin-rank-cta{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:10px 16px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}

.doujin-rank-cta:hover{
  opacity:.86;
  text-decoration:none;
}

.doujin-rank-menu{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.doujin-rank-menu a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 12px;
  border:1px solid #dce3ee;
  border-radius:999px;
  background:#f8fafc;
  color:#222;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
}

.doujin-rank-menu a:hover{
  background:#eef2f7;
  text-decoration:none;
}

.doujin-rank-menu a[aria-current="page"]{
  background:#111;
  color:#fff;
  border-color:#111;
}

.doujin-text-link:hover,
.doujin-genre-chip:hover,
.doujin-card-title a:hover,
.doujin-card-tags a:hover{
  text-decoration:underline;
}

.doujin-watch-feed{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

.doujin-watch-item{
  width:100%;
  max-width:1120px;
  margin:0 auto 24px;
  padding:16px;
  overflow:hidden;
  box-sizing:border-box;
  border:1px solid #e3e8f0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.doujin-watch-main{
  display:block;
  width:min(100%, 900px);
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
  background:#f7f7f7;
  border-radius:12px;
  overflow:visible;
}

.doujin-watch-main img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:none;
  margin-left:auto;
  margin-right:auto;
  object-fit:contain;
}

.doujin-watch-info{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  padding:0 0 12px;
}

.doujin-watch-info h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.45;
}

.doujin-watch-info h2 a{
  color:inherit;
  text-decoration:none;
}

.doujin-watch-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-width:100%;
  margin-bottom:12px;
  color:#555;
  font-size:12px;
}

.doujin-detail .doujin-card-tags{
  gap:4px;
  margin-top:10px;
}

.doujin-detail .doujin-card-tags a,
.doujin-detail .doujin-card-tags span{
  padding:4px 8px;
  font-size:11px;
  line-height:1.15;
  color:#555;
  background:#f7f8fb;
  border-color:#e5e9f1;
}

.doujin-watch-meta span{
  max-width:100%;
  padding:5px 9px;
  border:1px solid #e3e8f0;
  border-radius:999px;
  background:#f8fafc;
  overflow-wrap:anywhere;
}

.doujin-watch-discount{
  color:#999;
  text-decoration:line-through;
}

.doujin-watch-samples{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin-top:10px;
}

.doujin-watch-review-mini{
  width:100%;
  box-sizing:border-box;
  margin:12px 0 0;
  padding:12px;
  border:1px solid #e8eaf0;
  border-radius:12px;
  background:#fafbfe;
}

.doujin-watch-review-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  color:#555;
  font-size:13px;
}

.doujin-watch-review-head strong{
  color:#111;
  font-size:20px;
  line-height:1;
}

.doujin-watch-review-bars{
  display:grid;
  gap:7px;
  margin-top:10px;
}

.doujin-watch-review-bars div{
  display:grid;
  grid-template-columns:42px minmax(0, 1fr);
  gap:8px;
  align-items:center;
  color:#555;
  font-size:12px;
}

.doujin-watch-review-bars b{
  display:block;
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#e7ebf3;
}

.doujin-watch-review-bars i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#111;
}

.doujin-watch-review-mini p{
  margin:8px 0 0;
  color:#666;
  font-size:12px;
  line-height:1.6;
}

.doujin-watch-sample-image{
  width:min(100%, 900px);
  max-width:900px;
  box-sizing:border-box;
  margin:0 auto 8px;
  border-radius:12px;
  overflow:visible;
  background:#f7f7f7;
}

.doujin-watch-sample-image img,
.doujin-watch-samples img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  max-height:none;
  margin-left:auto;
  margin-right:auto;
  background:#f7f7f7;
  object-fit:contain;
}

.doujin-watch-button{
  width:100%;
  max-width:280px;
  margin-top:14px;
  box-sizing:border-box;
}

.doujin-watch-search{
  display:flex;
  gap:8px;
  margin-top:14px;
  max-width:520px;
}

.doujin-watch-search input{
  min-width:0;
  flex:1;
  box-sizing:border-box;
  padding:11px 13px;
  border:1px solid #d9dee8;
  border-radius:999px;
  background:#fff;
  font-size:14px;
}

.doujin-watch-search button{
  flex:0 0 auto;
  padding:11px 18px;
  border:0;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.doujin-watch-search-box{
  display:block;
  width:min(960px, calc(100% - 24px));
  margin:12px auto 16px;
  padding:18px;
  box-sizing:border-box;
  background:linear-gradient(180deg, #fffdf6, #ffffff);
  border:2px solid rgba(245, 158, 11, .34);
  border-radius:18px;
  box-shadow:0 10px 26px rgba(15, 23, 42, .12);
}

.doujin-watch-search-box h2{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.35;
  color:#111827;
}

.doujin-watch-search-box .doujin-section-lead{
  margin:0 0 12px;
}

.doujin-watch-search-box .doujin-watch-search{
  margin-top:0;
}

.doujin-watch-status{
  margin:16px 0;
  color:#666;
  text-align:center;
}

.doujin-watch-more{
  display:block;
  width:100%;
  max-width:360px;
  margin:16px auto;
  padding:12px 16px;
  border:0;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.doujin-watch-control-panel{
  width:min(100%, 900px);
  max-width:900px;
  box-sizing:border-box;
  margin:22px auto 28px;
  padding:16px;
  border:1px solid #f2d35b;
  border-radius:16px;
  background:#fffaf0;
  box-shadow:0 10px 26px rgba(0,0,0,.09);
}

.doujin-watch-control-head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:5px 10px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(226, 180, 44, .28);
}

.doujin-watch-control-head strong{
  color:#111;
  font-size:17px;
  font-weight:900;
}

.doujin-watch-control-head span{
  color:#667085;
  font-size:12px;
  line-height:1.5;
}

.doujin-watch-control-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.doujin-watch-control-group{
  margin-top:10px;
  padding:10px;
  border:1px solid #f4e1a0;
  border-radius:12px;
  background:#fff;
}

.doujin-watch-control-group > span{
  display:block;
  margin:0 0 7px;
  color:#7a5a00;
  font-size:11px;
  font-weight:900;
  line-height:1.2;
}

.doujin-watch-control-links a,
.doujin-watch-control-links button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  max-width:100%;
  box-sizing:border-box;
  padding:8px 12px;
  border:1px solid #dfe5ee;
  border-radius:999px;
  background:#f8fafc;
  color:#222;
  font:inherit;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  overflow-wrap:anywhere;
}

.doujin-watch-control-links a:hover,
.doujin-watch-control-links button:hover{
  border-color:#f2d35b;
  background:#fff8d8;
  text-decoration:none;
}

.doujin-watch-control-links .doujin-watch-control-more,
.doujin-watch-control-links .doujin-watch-control-buy{
  border-color:#111;
  background:#111;
  color:#fff;
}

.doujin-watch-sentinel{
  height:1px;
}

@media (max-width:1024px){
  .doujin-watch-feed{
    width:100%;
    max-width:100%;
    padding:0;
    overflow:hidden;
    box-sizing:border-box;
  }

  .doujin-watch-item{
    width:100%;
    max-width:100%;
    margin:0 0 18px;
    padding:12px;
    box-sizing:border-box;
    overflow:hidden;
    border:1px solid #e3e8f0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
  }

  .doujin-watch-info,
  .doujin-watch-samples,
  .doujin-watch-review-mini,
  .doujin-watch-sample-image,
  .doujin-watch-meta,
  .doujin-watch-tags{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  .doujin-watch-sample-image{
    margin-left:0;
    margin-right:0;
  }

  .doujin-watch-item img,
  .doujin-watch-sample-image img,
  .doujin-watch-samples img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
  }

  .doujin-watch-button{
    width:100%;
    max-width:none;
    box-sizing:border-box;
  }
}

/* 同人カード微調整 2026-04-30 */
.doujin-grid{
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  align-items:stretch;
}

.doujin-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.doujin-card-thumb{
  aspect-ratio:3 / 2;
}

.doujin-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
}

.doujin-card-button{
  margin-top:auto;
}

/* 同人カード画像調整 2026-04-30 */
.doujin-card-thumb{
  aspect-ratio:4 / 3;
}

.doujin-card-thumb img{
  object-fit:contain;
  object-position:center center;
  background:#f7f7f7;
}

.doujin-detail{
  display:grid;
  grid-template-columns:minmax(280px, 460px) minmax(0, 1fr);
  gap:24px;
  align-items:start;
}

.doujin-detail-cover{
  width:100%;
  max-width:460px;
  border:1px solid #e8eaf0;
  border-radius:12px;
  overflow:hidden;
  background:#f7f7f7;
}

.doujin-detail-cover img{
  display:block;
  width:100%;
  max-height:78vh;
  height:auto;
  object-fit:contain;
}

.doujin-detail-body h1{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.45;
}

.doujin-detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
  color:#555;
  font-size:13px;
}

.doujin-detail-meta span{
  padding:5px 9px;
  border-radius:999px;
  background:#f5f7fb;
  border:1px solid #e3e8f0;
}

.doujin-important-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:10px;
  margin:14px 0 0;
}

.doujin-important-stat{
  min-width:0;
  padding:12px;
  border:1px solid #f2d35b;
  border-radius:14px;
  background:#fff8d8;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.doujin-important-stat span{
  display:block;
  margin-bottom:5px;
  color:#6b5a00;
  font-size:11px;
  font-weight:800;
  line-height:1.25;
}

.doujin-important-stat strong{
  display:block;
  color:#111;
  font-size:20px;
  font-weight:900;
  line-height:1.2;
  overflow-wrap:anywhere;
}

.doujin-important-stat em{
  display:block;
  margin-top:4px;
  color:#555;
  font-size:12px;
  font-style:normal;
  font-weight:700;
  line-height:1.35;
}

.doujin-important-stat.is-sub{
  background:#fff;
  border-color:#e3e8f0;
  box-shadow:0 3px 10px rgba(15,23,42,.04);
}

.doujin-important-stat.is-sub span{
  color:#64748b;
}

.doujin-important-stat.is-sub strong{
  font-size:15px;
  line-height:1.35;
}

.doujin-work-info{
  margin:8px 0 0;
  padding:8px;
  border:1px solid #e3e8f0;
  border-radius:10px;
  background:#fff;
}

.doujin-work-info h2{
  margin:0 0 6px;
  color:#111;
  font-size:14px;
  font-weight:900;
  line-height:1.35;
}

.doujin-work-info-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:0 10px;
}

.doujin-work-info-row{
  display:grid;
  grid-template-columns:72px minmax(0, 1fr);
  align-items:start;
  gap:6px;
  min-width:0;
  padding:5px 0;
  border-top:1px solid #eef2f7;
  font-size:12px;
  line-height:1.35;
}

.doujin-work-info-row span{
  color:#64748b;
  font-weight:800;
}

.doujin-work-info-row a,
.doujin-work-info-row strong{
  min-width:0;
  overflow:hidden;
  color:#111;
  font-weight:800;
  text-decoration:none;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.doujin-work-info-row a:hover{
  text-decoration:underline;
}

.doujin-detail-buy{
  margin:14px 0 0;
}

.doujin-detail-buy-bottom{
  margin:14px 0 8px;
}

.doujin-buy-btn{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:62px;
  box-sizing:border-box;
  padding:12px 18px;
  border:2px solid #b91c1c;
  border-radius:12px;
  background:#dc2626;
  color:#fff;
  text-align:center;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(220,38,38,.28);
}

.doujin-buy-btn:hover{
  background:#b91c1c;
  color:#fff;
}

.doujin-buy-btn strong{
  display:block;
  font-size:19px;
  font-weight:900;
  line-height:1.25;
}

.doujin-buy-btn span{
  display:block;
  margin-top:3px;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  opacity:.92;
}

.doujin-detail-price{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:16px;
}

.doujin-detail-price strong{
  font-size:20px;
  color:#111;
}

.doujin-detail-price span{
  color:#999;
  text-decoration:line-through;
}

.doujin-detail-price em{
  color:#b42318;
  font-style:normal;
  font-weight:700;
}

.doujin-detail-button{
  max-width:280px;
  margin-top:18px;
}

.doujin-review-panel{
  margin-top:18px;
  padding:14px;
  border:1px solid #e8eaf0;
  border-radius:12px;
  background:#fafbfe;
}

.doujin-review-score{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.doujin-review-score strong{
  font-size:26px;
  line-height:1;
}

.doujin-review-stars{
  color:#f5a400;
  letter-spacing:1px;
}

.doujin-review-bars{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.doujin-review-bars div{
  display:grid;
  grid-template-columns:42px minmax(0, 1fr);
  gap:8px;
  align-items:center;
  color:#555;
  font-size:12px;
}

.doujin-review-bars b{
  display:block;
  height:9px;
  border-radius:999px;
  overflow:hidden;
  background:#e7ebf3;
}

.doujin-review-bars i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#111;
}

.doujin-review-panel p{
  margin:10px 0 0;
  color:#666;
  font-size:12px;
  line-height:1.7;
}

.doujin-work-description{
  margin-top:8px;
  padding:8px;
  border:1px solid #e8eaf0;
  border-radius:8px;
  background:#fff;
}

.doujin-work-description h2{
  margin:0 0 4px;
  font-size:15px;
  line-height:1.35;
}

.doujin-work-description p{
  margin:0;
  color:#333;
  font-size:12px;
  line-height:1.55;
}

.doujin-work-description p:last-child{
  margin-bottom:0;
}

.doujin-prev-next{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin:8px 0 12px;
  max-width:100%;
}

.doujin-prev-next a,
.doujin-prev-next > span{
  display:block;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  padding:9px 10px;
  border:1px solid #e3e8f0;
  border-radius:10px;
  background:#fff;
  color:#222;
  font-weight:700;
  text-decoration:none;
}

.doujin-prev-next a:hover{
  background:#f5f7fb;
}

.doujin-prev-next span span,
.doujin-prev-next a span{
  display:block;
  margin-top:5px;
  overflow:hidden;
  color:#666;
  font-size:12px;
  font-weight:400;
  line-height:1.45;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.doujin-footer{
  box-sizing:border-box;
  margin:16px auto 0;
  padding:18px 14px;
  max-width:1120px;
  border:1px solid #e5e7eb;
  border-radius:14px 14px 0 0;
  background:#fff;
  color:#475467;
  font-size:12px;
  text-align:left;
}

.doujin-footer-inner{
  display:grid;
  gap:14px;
}

.doujin-footer-brand{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 12px;
  padding-bottom:12px;
  border-bottom:1px solid #edf1f7;
}

.doujin-footer-brand strong{
  color:#111;
  font-size:16px;
  font-weight:900;
}

.doujin-footer-brand span{
  color:#667085;
  font-size:12px;
  line-height:1.5;
}

.doujin-footer-grid{
  display:grid;
  grid-template-columns:2fr 2fr 1fr 1fr;
  gap:14px;
}

.doujin-footer-block{
  min-width:0;
}

.doujin-footer-block h2{
  margin:0 0 8px;
  color:#111;
  font-size:13px;
  line-height:1.35;
}

.doujin-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.doujin-footer a{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  max-width:100%;
  box-sizing:border-box;
  padding:6px 9px;
  border:1px solid #dfe5ee;
  border-radius:999px;
  background:#f8fafc;
  color:#222;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.doujin-footer a:hover{
  border-color:#f2d35b;
  background:#fff8d8;
  text-decoration:none;
}

.doujin-footer-bridge a{
  background:#fff;
}

.doujin-footer-copy{
  margin:0;
  padding-top:10px;
  border-top:1px solid #edf1f7;
  color:#98a2b3;
  font-size:12px;
  text-align:center;
}

@media (max-width:1024px){
  .doujin-footer-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:768px){
  .doujin-footer{
    margin-top:12px;
    padding:14px 10px;
    border-radius:12px 12px 0 0;
  }

  .doujin-footer-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .doujin-footer-brand{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .doujin-footer-links{
    gap:5px;
  }

  .doujin-footer a{
    min-height:34px;
    padding:7px 9px;
    font-size:11px;
  }
}

.seo-links.doujin-footer-panel{
  box-sizing:border-box;
  background:
    linear-gradient(135deg, rgba(30,41,59,.82), rgba(51,65,85,.66)),
    radial-gradient(circle at top left, rgba(250,204,21,.16), transparent 42%);
  border-color:rgba(255,255,255,.22);
  box-shadow:
    0 12px 30px rgba(15,23,42,.24),
    inset 0 1px 0 rgba(255,255,255,.16);
  text-align:center;
}

.seo-links.doujin-footer-panel h3{
  margin:14px 0 9px;
  font-size:17px;
}

.doujin-footer-panel .doujin-footer-link-row{
  justify-content:center;
  margin:0 auto 12px;
}

.doujin-footer-panel .seo-home-logo img{
  width:180px;
}

.doujin-footer-panel .doujin-footer-link-row a{
  padding:9px 13px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(71,85,105,.96), rgba(30,41,59,.90));
}

@media (max-width:768px){
  .seo-links.doujin-footer-panel{
    margin:16px auto;
    padding:18px 12px;
  }

  .doujin-footer-panel .doujin-footer-link-row{
    gap:7px;
    justify-content:center;
  }

  .doujin-footer-panel .doujin-footer-link-row a{
    min-height:34px;
    padding:8px 11px;
    border-radius:15px;
    font-size:12px;
  }
}

.doujin-sample-grid{
  display:block;
  width:100%;
  max-width:1120px;
  margin:0 auto;
  box-sizing:border-box;
}

.doujin-sample-grid img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:none;
  margin:0 0 8px;
  border:1px solid #e8eaf0;
  border-radius:10px;
  background:#f7f7f7;
  object-fit:contain;
}

@media (max-width:768px){
  .doujin-watch-feed{
    width:100%;
    max-width:100%;
    padding:0;
    overflow:hidden;
    box-sizing:border-box;
  }

  .doujin-watch-item{
    width:100%;
    max-width:100%;
    margin-bottom:18px;
    padding:12px;
    border-radius:14px;
    box-sizing:border-box;
    overflow:hidden;
    background:#fff;
  }

  .doujin-watch-info,
  .doujin-watch-main,
  .doujin-watch-samples,
  .doujin-watch-review-mini,
  .doujin-watch-sample-image,
  .doujin-watch-meta,
  .doujin-watch-tags{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  .doujin-watch-main,
  .doujin-watch-sample-image{
    margin-left:0;
    margin-right:0;
  }

  .doujin-watch-main img,
  .doujin-watch-sample-image img,
  .doujin-watch-samples img{
    display:block;
    width:auto;
    max-width:100%;
    height:auto;
    max-height:none;
    margin-left:auto;
    margin-right:auto;
    object-fit:contain;
  }

  .doujin-watch-info h2{
    font-size:16px;
    overflow-wrap:anywhere;
  }

  .doujin-watch-meta{
    gap:6px;
  }

  .doujin-watch-meta span,
  .doujin-watch-tags a{
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .doujin-watch-review-bars{
    width:100%;
    max-width:100%;
  }

  .doujin-watch-review-bars div{
    grid-template-columns:40px minmax(0, 1fr);
    width:100%;
    max-width:100%;
  }

  .doujin-watch-button{
    width:100%;
    max-width:none;
    box-sizing:border-box;
  }

  .doujin-watch-search{
    max-width:none;
  }

  .doujin-detail{
    grid-template-columns:1fr;
    gap:14px;
  }

  .doujin-detail-cover{
    max-width:none;
  }

  .doujin-detail-cover img{
    max-height:none;
    width:100%;
  }

  .doujin-detail-body h1{
    font-size:18px;
  }

  .doujin-important-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .doujin-important-stat{
    padding:10px;
  }

  .doujin-important-stat strong{
    font-size:16px;
  }

  .doujin-detail-button{
    max-width:none;
  }

  .doujin-sample-grid{
    display:block;
  }

  .doujin-sample-grid img{
    width:100%;
    max-width:100%;
    margin-bottom:6px;
  }

  .doujin-ranking-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .doujin-work-info-grid{
    grid-template-columns:1fr;
  }

  .doujin-ranking-list-major a{
    padding:4px 6px;
  }

  .doujin-detail .doujin-card-tags a,
  .doujin-detail .doujin-card-tags span{
  padding:2px 6px;
    font-size:11px;
  }

  .doujin-rank-main-position{
    align-items:flex-start;
    flex-direction:column;
  }

  .doujin-work-description{
    padding:9px;
  }

  .doujin-prev-next{
    grid-template-columns:1fr;
  }

  .doujin-prev-next span span,
  .doujin-prev-next a span{
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

/* Genre ranking layout */
.doujin-genre-rank-list{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(460px, 1fr));
  gap:10px;
  margin:0;
  padding:0;
  list-style:none !important;
}

.doujin-genre-rank-list li{
  min-width:0;
  margin:0;
  padding:0;
  list-style:none !important;
}

.doujin-genre-rank-list a{
  display:grid;
  grid-template-columns:170px 34px minmax(0, 1fr);
  grid-template-rows:auto auto;
  gap:5px 9px;
  align-items:center;
  min-height:134px;
  padding:8px;
  border:1px solid #e3e8f0;
  border-radius:12px;
  background:#fff;
  color:#222;
  text-decoration:none;
  box-shadow:0 2px 8px rgba(0,0,0,0.03);
}

.doujin-genre-rank-list a:hover{
  background:#f8fafc;
  text-decoration:none;
}

.doujin-genre-rank-thumb{
  grid-row:1 / span 2;
  grid-column:1;
  display:block;
  width:170px;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border-radius:8px;
  background:#f7f7f7;
}

.doujin-genre-rank-thumb img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:100% !important;
  object-fit:cover;
  object-position:center center;
}

.doujin-genre-rank-no{
  grid-column:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:11px;
  font-weight:700;
}

.doujin-genre-rank-name{
  grid-column:3;
  min-width:0;
  overflow:hidden;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.doujin-genre-rank-meta{
  grid-column:2 / span 2;
  color:#666;
  font-size:12px;
  line-height:1.45;
}

@media (max-width:768px){
  .doujin-genre-rank-list{
    grid-template-columns:1fr;
    gap:8px;
  }

  .doujin-genre-rank-list a{
    grid-template-columns:130px 30px minmax(0, 1fr);
    min-height:104px;
    padding:7px;
  }

  .doujin-genre-rank-thumb{
    width:130px;
  }

  .doujin-genre-rank-name{
    white-space:normal;
    overflow-wrap:anywhere;
  }
}

/* Mobile baseline for doujin pages */
html,
body{
  max-width:100%;
  overflow-x:hidden;
}

.wrap,
.white-box,
.doujin-nav-stack,
.doujin-local-nav,
.doujin-grid,
.doujin-card,
.doujin-card-body,
.doujin-genre-links,
.doujin-rank-menu,
.doujin-cross-genre-menu,
.doujin-ranking-panel,
.doujin-detail-block{
  box-sizing:border-box;
  max-width:100%;
}

.doujin-grid{
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
}

.doujin-card,
.doujin-card *{
  min-width:0;
}

.doujin-card-thumb,
.doujin-card-thumb img,
.doujin-thumb-wrap,
.doujin-thumb-wrap img{
  max-width:100%;
}

.doujin-card-thumb img,
.doujin-thumb-wrap img{
  height:100%;
  object-fit:contain;
}

.doujin-card-title,
.doujin-card-title a,
.doujin-card-meta,
.doujin-card-tags,
.doujin-card-tags a,
.doujin-genre-chip,
.doujin-local-nav a,
.doujin-rank-menu a{
  overflow-wrap:anywhere;
  word-break:normal;
}

.doujin-local-nav,
.doujin-genre-links,
.doujin-rank-menu,
.pagi{
  max-width:100%;
  overflow:hidden;
}

.pagi{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
}

.pagi-link,
.pagi-current,
.pagi-dots{
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
}

.doujin-card-button{
  min-height:44px;
  width:100%;
  box-sizing:border-box;
  text-align:center;
  white-space:normal;
}

@media (max-width:1024px){
  .doujin-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:12px;
  }

  .doujin-ranking-list{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .white-box{
    padding:14px;
  }
}

@media (max-width:768px){
  .wrap{
    width:100%;
    padding-left:10px;
    padding-right:10px;
    overflow:hidden;
  }

  .white-box{
    margin-bottom:12px;
    padding:12px;
    border-radius:10px;
  }

  .white-box h1{
    font-size:20px;
    line-height:1.35;
  }

  .white-box h2{
    margin-bottom:8px;
    font-size:17px;
    line-height:1.35;
  }

  .doujin-section-lead{
    margin-bottom:10px;
    line-height:1.65;
  }

  .doujin-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:9px;
  }

  .doujin-card{
    border-radius:10px;
  }

  .doujin-card-body{
    padding:8px;
  }

  .doujin-card-title{
    font-size:12px;
    line-height:1.4;
  }

  .doujin-card-tags,
  .doujin-card-meta{
    gap:4px;
    margin-top:6px;
  }

  .doujin-card-tags a,
  .doujin-card-tags span,
  .doujin-card-meta span{
    font-size:10px;
    line-height:1.25;
  }

  .doujin-card-button{
    min-height:44px;
    padding:8px 9px;
    font-size:12px;
    line-height:1.25;
  }

  .doujin-nav-stack{
    gap:6px;
    margin-bottom:10px;
  }

  .doujin-local-nav,
  .doujin-genre-links,
  .doujin-rank-menu{
    gap:6px;
  }

  .doujin-local-nav a,
  .doujin-genre-chip,
  .doujin-rank-menu a{
    min-height:32px;
    padding:7px 9px;
    font-size:12px;
    line-height:1.2;
  }

  .doujin-cross-genre-menu{
    margin-top:10px;
  }

  .doujin-cross-genre-menu h2{
    margin-bottom:8px;
    font-size:15px;
  }

  .pagi{
    margin-top:12px !important;
    gap:5px;
  }

  .pagi-link,
  .pagi-current,
  .pagi-dots{
    min-height:32px;
    padding:6px 9px;
    font-size:12px;
  }

  .doujin-ranking-panel{
    padding:6px;
  }

  .doujin-ranking-list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:5px;
  }

  .doujin-ranking-list a{
    padding:5px 6px;
    font-size:11px;
  }

  .doujin-buy-btn{
    min-height:52px;
    padding:10px 12px;
  }

  .doujin-buy-btn strong{
    font-size:16px;
  }

  .doujin-buy-btn span{
    font-size:12px;
  }
}

@media (max-width:480px){
  .wrap{
    padding-left:8px;
    padding-right:8px;
  }

  .white-box{
    padding:10px;
  }

  .doujin-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .doujin-card-thumb{
    aspect-ratio:4 / 3;
  }

  .doujin-card-body{
    padding:7px;
  }

  .doujin-card-title{
    font-size:11px;
  }

  .doujin-card-button{
    min-height:44px;
    padding:7px 8px;
    font-size:11px;
  }

  .doujin-local-nav a,
  .doujin-genre-chip,
  .doujin-rank-menu a{
    padding:6px 8px;
    font-size:11px;
  }

  .pagi-link,
  .pagi-current,
  .pagi-dots{
    padding:5px 7px;
    font-size:11px;
  }
}

/* Watch mobile viewing baseline */
.doujin-watch-feed,
.doujin-watch-item,
.doujin-watch-main,
.doujin-watch-samples,
.doujin-watch-sample-image,
.doujin-movie-watch,
.doujin-movie-player-shell,
.doujin-movie-stage,
.doujin-movie-detail-full,
.doujin-movie-detail-samples,
.doujin-movie-watch-summary{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

.doujin-watch-main img,
.doujin-watch-sample-image img,
.doujin-watch-samples img,
.doujin-movie-video,
.doujin-movie-detail-image img,
.doujin-movie-detail-samples img{
  display:block;
  max-width:100%;
  height:auto;
}

.doujin-watch-main,
.doujin-watch-sample-image{
  width:min(100%, 900px);
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
  overflow:visible;
}

.doujin-watch-main img,
.doujin-watch-sample-image img,
.doujin-watch-samples img{
  width:auto;
  max-width:100%;
  height:auto;
  max-height:none;
  margin-left:auto;
  margin-right:auto;
  object-fit:contain;
}

.doujin-movie-video{
  width:100%;
  height:100%;
  object-fit:contain;
}

.doujin-watch-search,
.doujin-movie-sort,
.doujin-movie-controls,
.doujin-movie-detail-links,
.doujin-movie-detail-tags,
.doujin-movie-detail-meta{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

.doujin-movie-controls button,
.doujin-movie-neighbor-card,
.doujin-movie-detail-buy,
.doujin-watch-more,
.doujin-watch-search button,
.doujin-watch-search select,
.doujin-watch-all-button{
  touch-action:manipulation;
}

@media (max-width:1024px){
  .doujin-watch-search-box{
    width:calc(100% - 12px);
    margin:8px auto 12px;
    padding:14px 12px;
    border-radius:14px;
  }

  .doujin-watch-search-box h2{
    font-size:17px;
  }

  .doujin-movie-watch{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .doujin-movie-player-shell{
    width:100%;
    max-width:100%;
    min-height:420px;
    height:min(70vh, 680px);
    margin-left:0;
    margin-right:0;
  }

  .doujin-movie-watch-summary{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  .doujin-watch-item{
    margin-bottom:12px;
    padding:8px;
    border-radius:12px;
  }

  .doujin-watch-info{
    padding-bottom:8px;
  }

  .doujin-watch-info h2{
    margin-bottom:7px;
    font-size:15px;
    line-height:1.4;
  }

  .doujin-watch-meta{
    gap:5px;
    margin-bottom:8px;
  }

  .doujin-watch-meta span{
    padding:4px 7px;
    font-size:11px;
  }

  .doujin-watch-samples{
    margin-top:7px;
  }

  .doujin-watch-sample-image{
    margin-bottom:6px;
    border-radius:9px;
  }

  .doujin-watch-review-mini{
    margin-top:8px;
    padding:9px;
  }

  .doujin-watch-button,
  .doujin-watch-more{
    min-height:44px;
  }

  .doujin-watch-control-panel{
    width:100%;
    max-width:100%;
    margin:16px auto 20px;
    padding:10px;
    border-radius:12px;
  }

  .doujin-watch-control-links{
    gap:6px;
  }

  .doujin-watch-control-group{
    margin-top:8px;
    padding:8px;
  }

  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    min-height:44px;
    padding:8px 10px;
    font-size:11px;
  }

  .doujin-watch-search{
    flex-wrap:wrap;
    gap:6px;
  }

  .doujin-watch-search input,
  .doujin-watch-search button{
    min-height:44px;
  }

  .doujin-watch-search input{
    flex:1 1 180px;
  }

  .doujin-watch-search button{
    flex:1 0 86px;
  }

  .doujin-movie-head{
    margin:8px 0;
    padding:10px;
    border-radius:12px;
  }

  .doujin-movie-head h1{
    font-size:18px;
  }

  .doujin-movie-head p{
    margin-top:5px;
    font-size:12px;
    line-height:1.55;
  }

  .doujin-movie-counter{
    min-height:34px;
    padding:6px 10px;
    font-size:13px;
  }

  .doujin-movie-player-shell{
    width:100%;
    max-width:100%;
    min-height:300px;
    height:min(62vh, 560px);
    margin-left:0;
    margin-right:0;
    border-radius:10px;
    overflow:hidden;
  }

  .doujin-movie-controls{
    display:grid;
    grid-template-columns:repeat(7, minmax(0, 1fr));
    gap:4px;
    width:calc(100% - 10px);
    padding:5px;
    border-radius:14px;
  }

  .doujin-movie-controls button,
  .doujin-movie-controls .doujin-movie-play-btn{
    width:auto;
    min-width:0;
    min-height:38px;
    padding:0 2px;
    font-size:12px;
  }

  .doujin-movie-controls .doujin-movie-play-btn{
    font-size:18px;
  }

  .doujin-movie-volume{
    max-width:calc(100% - 16px);
  }

  .doujin-movie-volume-range{
    width:min(96px, 30vw);
  }

  .doujin-movie-overlay-title{
    max-width:58%;
    max-height:64px;
    font-size:11px;
  }

  .doujin-movie-overlay-count,
  .doujin-movie-time-display{
    font-size:10px;
  }

  .doujin-movie-rank-mini{
    display:none;
  }

  .doujin-movie-touch-hints{
    display:none;
  }

  .doujin-movie-watch-summary,
  .doujin-movie-detail-full{
    margin:10px 0;
    padding:10px;
    border-radius:12px;
  }

  .doujin-movie-neighbor-nav{
    grid-template-columns:1fr;
    gap:7px;
  }

  .doujin-movie-neighbor-card{
    min-height:44px;
    padding:9px;
  }

  .doujin-movie-detail-head{
    display:block;
    margin-bottom:8px;
  }

  .doujin-movie-detail-title{
    font-size:16px;
  }

  .doujin-movie-detail-image{
    max-width:100%;
    margin-bottom:10px;
  }

  .doujin-movie-detail-buy{
    min-height:46px;
    font-size:14px;
  }

  .doujin-movie-detail-samples{
    margin-top:12px;
  }

  .doujin-movie-detail-samples h3{
    margin-bottom:8px;
    font-size:16px;
  }

  .doujin-movie-detail-samples figure{
    margin-bottom:7px;
    border-radius:9px;
  }
}

@media (max-width:480px){
  .doujin-watch-item{
    padding:7px;
  }

  .doujin-movie-player-shell{
    min-height:260px;
    height:min(58vh, 480px);
  }

  .doujin-movie-controls{
    bottom:12px;
    gap:3px;
    width:calc(100% - 8px);
    padding:4px;
  }

  .doujin-movie-controls button,
  .doujin-movie-controls .doujin-movie-play-btn{
    min-height:36px;
    font-size:11px;
  }

  .doujin-movie-controls .doujin-movie-play-btn{
    font-size:16px;
  }

  .doujin-movie-seekbar{
    bottom:2px;
  }

  .doujin-movie-volume{
    left:6px;
    bottom:28px;
    padding:4px 5px;
  }

  .doujin-movie-mute-btn{
    width:32px;
    min-width:32px;
    min-height:32px;
    font-size:14px;
  }

  .doujin-movie-volume-range{
    width:64px;
  }
}

/* Doujin rank hub */
.doujin-rank-hub-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.doujin-rank-hub-card{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  padding:12px;
  border:1px solid #e3e8f0;
  border-radius:10px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}

.doujin-rank-hub-rank{
  flex:0 0 auto;
  min-width:46px;
  padding:7px 8px;
  border-radius:999px;
  background:#ffd84d;
  color:#111;
  font-size:13px;
  font-weight:900;
  line-height:1;
  text-align:center;
}

.doujin-rank-hub-thumb{
  display:block;
  flex:0 0 168px;
  width:168px;
  aspect-ratio:4 / 3 !important;
  overflow:hidden;
  border-radius:8px;
  background:#f7f7f7;
}

.doujin-rank-hub-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover !important;
  object-position:center center;
}

.doujin-rank-hub-body{
  min-width:0;
  flex:1 1 auto;
}

.doujin-rank-hub-body h2{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.doujin-rank-hub-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.doujin-rank-hub-meta span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 8px;
  border:1px solid #e3e8f0;
  border-radius:999px;
  background:#f8fafc;
  color:#444;
  font-size:12px;
  line-height:1.2;
}

.doujin-rank-hub-representative{
  display:inline-block;
  max-width:100%;
  margin-top:8px;
  color:#111;
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  overflow-wrap:anywhere;
}

@media (max-width:768px){
  .doujin-rank-hub-list{
    grid-template-columns:1fr;
    gap:8px;
  }

  .doujin-rank-hub-card{
    padding:10px;
    border-radius:9px;
  }

  .doujin-rank-hub-rank{
    min-width:40px;
    padding:6px;
    font-size:12px;
  }

  .doujin-rank-hub-thumb{
    flex-basis:128px;
    width:128px;
    aspect-ratio:4 / 3 !important;
  }

  .doujin-rank-hub-body h2{
    font-size:15px;
  }

  .doujin-rank-hub-meta span{
    min-height:24px;
    padding:4px 7px;
    font-size:11px;
  }
}

@media (max-width:480px){
  .doujin-rank-media-card{
    display:grid;
    grid-template-columns:40px minmax(0, 1fr);
  }

  .doujin-rank-media-card .doujin-rank-hub-rank{
    grid-column:1;
    grid-row:1;
  }

  .doujin-rank-media-card .doujin-rank-hub-thumb{
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    flex-basis:auto;
    aspect-ratio:4 / 3 !important;
  }

  .doujin-rank-media-card .doujin-rank-hub-body{
    grid-column:1 / -1;
  }
}

/* Doujin common hub navigation */
.doujin-common-nav{
  display:grid;
  gap:0;
  margin:0 0 12px;
  padding:8px 10px;
  border:1px solid #e8edf5;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.doujin-common-nav-bottom{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:16px auto 10px;
  padding:0 8px;
}

.doujin-common-nav-bottom .doujin-common-nav{
  margin:0;
}

.doujin-bottom-nav{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:18px auto 10px;
  padding:14px;
  border:1px solid #e8edf5;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.doujin-bottom-nav-head{
  margin:0 0 10px;
}

.doujin-bottom-nav-head h2{
  margin:0 0 4px;
  color:#111;
  font-size:17px;
  line-height:1.35;
}

.doujin-bottom-nav-head p{
  margin:0;
  color:#667085;
  font-size:12px;
  line-height:1.55;
}

.doujin-bottom-nav-row{
  display:grid;
  grid-template-columns:92px minmax(0, 1fr);
  gap:8px;
  align-items:start;
  min-width:0;
  padding:9px 0;
  border-top:1px solid #edf1f7;
}

.doujin-bottom-nav-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:4px 7px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}

.doujin-bottom-nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  min-width:0;
}

.doujin-bottom-nav-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  min-width:76px;
  max-width:100%;
  box-sizing:border-box;
  padding:7px 10px;
  border:1px solid #dfe5ee;
  border-radius:999px;
  background:#f8fafc;
  color:#222;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.doujin-bottom-nav-links a:hover{
  border-color:#f2d35b;
  background:#fff8d8;
}

.doujin-bottom-nav-links a.active,
.doujin-bottom-nav-links a[aria-current="page"]{
  border-color:#111;
  background:#111;
  color:#fff;
}

.doujin-common-nav-row{
  display:grid;
  grid-template-columns:128px minmax(0, 1fr);
  align-items:start;
  gap:8px;
  min-width:0;
  padding:7px 0;
  border-bottom:1px solid #edf1f7;
}

.doujin-common-nav-row:last-child{
  border-bottom:0;
}

.doujin-common-nav-head{
  min-width:0;
  padding-top:5px;
}

.doujin-common-nav-label{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 7px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}

.doujin-common-nav-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  min-width:0;
}

.doujin-common-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  min-height:29px;
  max-width:100%;
  padding:6px 9px;
  border:1px solid #dfe5ee;
  border-radius:999px;
  background:#f8fafc;
  color:#222;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.doujin-common-nav-category a{
  background:#f8fafc;
}

.doujin-common-nav-sort a{
  background:#fffdf4;
}

.doujin-common-nav-genre a{
  background:#fff;
}

.doujin-common-nav a:hover{
  border-color:#f2d35b;
  background:#fff8d8;
}

.doujin-common-nav a.active,
.doujin-common-nav a[aria-current="page"]{
  border-color:#111;
  background:#111;
  color:#fff;
}

.doujin-common-nav-compact .doujin-common-nav-row{
  grid-template-columns:78px minmax(0, 1fr);
  padding:5px 0;
}

.doujin-common-nav-compact .doujin-common-nav a{
  min-width:0;
  min-height:28px;
  padding:5px 8px;
}

@media (max-width:768px){
  .doujin-common-nav{
    margin-bottom:10px;
    padding:7px 8px;
    border-radius:10px;
  }

  .doujin-common-nav-row{
    grid-template-columns:1fr;
    gap:5px;
    padding:6px 0;
  }

  .doujin-common-nav-head{
    padding-top:0;
  }

  .doujin-common-nav-label{
    font-size:11px;
  }

  .doujin-common-nav-links{
    gap:5px;
  }

  .doujin-common-nav a{
    min-height:32px;
    min-width:0;
    padding:6px 8px;
    font-size:11px;
  }

  .doujin-bottom-nav{
    margin:14px auto 8px;
    padding:11px 10px;
    border-radius:10px;
  }

  .doujin-bottom-nav-row{
    grid-template-columns:1fr;
    gap:6px;
    padding:8px 0;
  }

  .doujin-bottom-nav-label{
    justify-content:flex-start;
    width:max-content;
    max-width:100%;
  }

  .doujin-bottom-nav-links{
    gap:5px;
  }

  .doujin-bottom-nav-links a{
    min-height:34px;
    min-width:0;
    padding:7px 9px;
    font-size:11px;
  }
}

/* Doujin top hub */
.doujin-home-hub{
  margin-bottom:12px;
}

.doujin-home-hub h2{
  margin:0 0 10px;
  font-size:18px;
  line-height:1.35;
}

.doujin-home-hub-links{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.doujin-home-hub-links a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  max-width:100%;
  padding:7px 12px;
  border:1px solid #dfe5ee;
  border-radius:999px;
  background:#fff8d8;
  color:#111;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.doujin-home-hub-links a:hover{
  border-color:#111;
  background:#111;
  color:#fff;
}

@media (max-width:768px){
  .doujin-home-hub{
    margin-bottom:10px;
  }

  .doujin-home-hub h2{
    margin-bottom:8px;
    font-size:16px;
  }

  .doujin-home-hub-links{
    gap:6px;
  }

  .doujin-home-hub-links a{
    min-height:32px;
    padding:6px 9px;
    font-size:12px;
  }
}

/* Doujin circle grid cards */
.doujin-circle-grid{
  display:grid;
  grid-template-columns:repeat(8, minmax(0, 1fr));
  gap:10px;
}

.doujin-circle-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  overflow:hidden;
  border:1px solid #e3e8f0;
  border-radius:10px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
}

.doujin-circle-rank{
  position:absolute;
  top:6px;
  left:6px;
  z-index:2;
  padding:4px 7px;
  border-radius:999px;
  background:#ffd84d;
  color:#111;
  font-size:11px;
  font-weight:900;
  line-height:1;
}

.doujin-circle-thumb{
  display:block;
  width:100%;
  aspect-ratio:4 / 5;
  overflow:hidden;
  background:#f4f6f9;
}

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

.doujin-circle-thumb-empty{
  background:linear-gradient(135deg, #f8fafc, #eef2f7);
}

.doujin-circle-body{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
  padding:8px;
}

.doujin-circle-name{
  display:-webkit-box;
  min-height:2.7em;
  margin:0 0 7px;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  color:#111;
  font-size:13px;
  font-weight:900;
  line-height:1.35;
}

.doujin-circle-meta{
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
  margin-top:auto;
}

.doujin-circle-meta span{
  display:flex;
  justify-content:space-between;
  gap:5px;
  min-width:0;
  padding:4px 6px;
  border:1px solid #edf1f7;
  border-radius:7px;
  background:#f8fafc;
  color:#555;
  font-size:10px;
  line-height:1.2;
}

.doujin-circle-meta strong{
  flex:0 0 auto;
  color:#111;
}

.doujin-circle-title{
  display:-webkit-box;
  margin-top:7px;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  color:#444;
  font-size:11px;
  font-weight:700;
  line-height:1.35;
  text-decoration:none;
}

.doujin-circle-title:hover{
  text-decoration:underline;
}

.doujin-circle-action{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  margin-top:8px;
  padding:7px 8px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
}

.doujin-circle-action:hover{
  opacity:.86;
}

@media (max-width:1200px){
  .doujin-circle-grid{
    grid-template-columns:repeat(6, minmax(0, 1fr));
  }
}

@media (max-width:1024px){
  .doujin-circle-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:9px;
  }
}

@media (max-width:768px){
  .doujin-circle-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .doujin-circle-body{
    padding:7px;
  }

  .doujin-circle-name{
    font-size:12px;
  }

  .doujin-circle-action{
    min-height:36px;
  }
}

/* Doujin thumbnail ratio unification */
.doujin-card-thumb,
.doujin-thumb-wrap,
.doujin-genre-rank-thumb,
.doujin-circle-thumb{
  display:block;
  width:100%;
  aspect-ratio:4 / 3 !important;
  overflow:hidden;
  background:#f7f7f7;
}

.doujin-card-thumb img,
.doujin-thumb-wrap img,
.doujin-genre-rank-thumb img,
.doujin-circle-thumb img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:cover !important;
  object-position:center center;
}

.doujin-watch-main,
.doujin-watch-sample-image{
  width:min(100%, 900px) !important;
  max-width:900px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  overflow:visible !important;
}

.doujin-watch-main img,
.doujin-watch-sample-image img,
.doujin-watch-samples img{
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
  object-fit:contain !important;
}

.doujin-circle-thumb-empty{
  aspect-ratio:4 / 3 !important;
}

@media (max-width:768px){
  .doujin-card-thumb,
  .doujin-thumb-wrap,
  .doujin-genre-rank-thumb,
  .doujin-circle-thumb{
    aspect-ratio:4 / 3 !important;
  }
}

/* Doujin mobile navigation and white-box polish */
@media (max-width:768px){
  body{
    background:#f5f7fb;
  }

  .wrap{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    padding-left:10px;
    padding-right:10px;
    overflow:hidden;
  }

  .white-box,
  .box,
  .doujin-common-nav,
  .doujin-home-hub,
  .doujin-bottom-nav,
  .doujin-local-nav,
  .doujin-rank-menu,
  .doujin-genre-links,
  .doujin-cross-genre-menu,
  .doujin-ranking-panel,
  .doujin-watch-item,
  .doujin-movie-head,
  .doujin-movie-detail-full,
  .doujin-rank-hub-card,
  .doujin-circle-card{
    box-sizing:border-box;
    max-width:100%;
  }

  .white-box,
  .box{
    margin:10px 0;
    padding:12px;
    border:1px solid #e5eaf2;
    border-radius:12px;
    background:#fff;
    box-shadow:0 3px 12px rgba(0,0,0,.035);
  }

  .doujin-common-nav{
    display:block;
    margin:10px 0 12px;
    padding:10px;
    border:1px solid #dfe7f1;
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,.055);
    overflow:hidden;
  }

  .doujin-common-nav-row{
    display:block;
    padding:9px 0;
    border-bottom:1px solid #edf1f7;
  }

  .doujin-common-nav-row:first-child{
    padding-top:0;
  }

  .doujin-common-nav-row:last-child{
    padding-bottom:0;
    border-bottom:0;
  }

  .doujin-common-nav-head{
    display:block;
    margin:0 0 7px;
    padding:0;
  }

  .doujin-common-nav-label{
    min-height:24px;
    padding:4px 9px;
    border:1px solid #e1e7f0;
    border-radius:999px;
    background:#f2f4f7;
    color:#344054;
    font-size:11px;
    font-weight:900;
  }

  .doujin-common-nav-links,
  .doujin-home-hub-links,
  .doujin-bottom-nav-links,
  .doujin-local-nav,
  .doujin-rank-menu,
  .doujin-genre-links,
  .doujin-cross-genre-menu{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    max-width:100%;
    overflow:hidden;
  }

  .doujin-common-nav a,
  .doujin-home-hub-links a,
  .doujin-bottom-nav-links a,
  .doujin-local-nav a,
  .doujin-rank-menu a,
  .doujin-genre-chip,
  .doujin-cross-genre-menu a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:36px;
    max-width:100%;
    box-sizing:border-box;
    padding:7px 10px;
    border:1px solid #dfe5ee;
    border-radius:999px;
    background:#f8fafc;
    color:#222;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    text-decoration:none;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .doujin-common-nav-category a,
  .doujin-home-hub-links a{
    background:#f8fafc;
  }

  .doujin-common-nav-sort a,
  .doujin-rank-menu a{
    background:#fffdf4;
  }

  .doujin-common-nav-genre a,
  .doujin-genre-chip{
    background:#fff;
  }

  .doujin-common-nav a.active,
  .doujin-common-nav a[aria-current="page"],
  .doujin-local-nav a[aria-current="page"],
  .doujin-rank-menu a[aria-current="page"]{
    border-color:#111;
    background:#111;
    color:#fff;
  }

  .doujin-home-hub{
    margin:10px 0;
    padding:12px;
    border:1px solid #e5eaf2;
    border-radius:12px;
    background:#fff;
    box-shadow:0 3px 12px rgba(0,0,0,.035);
  }

  .doujin-home-hub h2,
  .white-box h2{
    margin:0 0 8px;
    font-size:16px;
    line-height:1.35;
  }

  .white-box h1{
    margin-top:0;
    font-size:20px;
    line-height:1.35;
  }

  .doujin-section-lead{
    margin-bottom:10px;
    font-size:13px;
    line-height:1.65;
  }

  .doujin-local-nav,
  .doujin-rank-menu,
  .doujin-genre-links{
    margin:10px 0;
    padding:9px;
    border:1px solid #e5eaf2;
    border-radius:12px;
    background:#fff;
    box-shadow:0 3px 12px rgba(0,0,0,.03);
  }
}

@media (max-width:480px){
  .doujin-common-nav,
  .doujin-home-hub,
  .white-box,
  .box,
  .doujin-local-nav,
  .doujin-rank-menu,
  .doujin-genre-links{
    border-radius:10px;
  }

  .doujin-common-nav a,
  .doujin-home-hub-links a,
  .doujin-bottom-nav-links a,
  .doujin-local-nav a,
  .doujin-rank-menu a,
  .doujin-genre-chip,
  .doujin-cross-genre-menu a{
    min-height:34px;
    padding:7px 9px;
    font-size:11px;
  }
}

/* Watch page mobile box/button polish */
@media (max-width:768px){
  .doujin-watch-feed{
    display:block;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .doujin-watch-item{
    margin:12px 0 16px;
    padding:10px;
    border:1px solid #e1e7f0;
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 18px rgba(15,23,42,.07);
    overflow:hidden;
  }

  .doujin-watch-info{
    margin:0 0 10px;
    padding:10px;
    border:1px solid #edf1f7;
    border-radius:12px;
    background:#fff;
    box-shadow:0 2px 8px rgba(15,23,42,.035);
  }

  .doujin-watch-meta,
  .doujin-watch-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    max-width:100%;
    overflow:hidden;
  }

  .doujin-watch-meta span,
  .doujin-watch-tags a{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    max-width:100%;
    box-sizing:border-box;
    overflow-wrap:anywhere;
    text-decoration:none;
  }

  .doujin-watch-review-mini{
    margin-top:10px;
    padding:10px;
    border:1px solid #e5eaf2;
    border-radius:12px;
    background:#f8fafc;
  }

  .doujin-watch-button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    max-width:none;
    min-height:46px;
    box-sizing:border-box;
    padding:11px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    text-align:center;
    text-decoration:none;
  }

  .doujin-watch-control-panel{
    width:100%;
    max-width:100%;
    margin:18px 0 20px;
    padding:12px;
    border:1px solid #efd77a;
    border-radius:14px;
    background:#fffaf0;
    box-shadow:0 8px 22px rgba(15,23,42,.10);
    overflow:hidden;
  }

  .doujin-watch-control-head{
    display:block;
    margin-bottom:10px;
    padding-bottom:10px;
  }

  .doujin-watch-control-head strong{
    display:block;
    margin-bottom:4px;
    font-size:16px;
  }

  .doujin-watch-control-head span{
    display:block;
    font-size:12px;
    line-height:1.6;
  }

  .doujin-watch-control-group{
    margin-top:9px;
    padding:10px;
    border:1px solid #f1dfa4;
    border-radius:12px;
    background:#fff;
    box-shadow:0 2px 8px rgba(15,23,42,.035);
  }

  .doujin-watch-control-links{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    flex:1 1 132px;
    min-width:0;
    min-height:44px;
    max-width:100%;
    padding:9px 10px;
    border:1px solid #dfe5ee;
    border-radius:999px;
    background:#f8fafc;
    color:#222;
    font-size:12px;
    font-weight:900;
    line-height:1.25;
    text-align:center;
    text-decoration:none;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .doujin-watch-control-links .doujin-watch-control-more,
  .doujin-watch-control-links .doujin-watch-control-buy{
    border-color:#111;
    background:#111;
    color:#fff;
  }

  .doujin-watch-main,
  .doujin-watch-sample-image{
    width:100% !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:visible !important;
  }

  .doujin-watch-main img,
  .doujin-watch-sample-image img,
  .doujin-watch-samples img{
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
    object-fit:contain !important;
  }
}

@media (max-width:480px){
  .doujin-watch-item{
    padding:8px;
    border-radius:12px;
  }

  .doujin-watch-info,
  .doujin-watch-control-panel,
  .doujin-watch-control-group{
    border-radius:11px;
  }

  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    flex-basis:100%;
    min-height:44px;
    font-size:12px;
  }
}

/* Android Chrome watch hardening */
@media (max-width:1024px){
  .doujin-watch-feed,
  .doujin-watch-item,
  .doujin-watch-info,
  .doujin-watch-main,
  .doujin-watch-samples,
  .doujin-watch-sample-image,
  .doujin-watch-review-mini,
  .doujin-watch-control-panel,
  .doujin-watch-control-group{
    box-sizing:border-box !important;
    max-width:100% !important;
  }

  .doujin-watch-item,
  .doujin-watch-info,
  .doujin-watch-control-panel,
  .doujin-watch-control-group{
    display:block !important;
    background:#fff !important;
    border-style:solid !important;
  }

  .doujin-watch-control-panel{
    background:#fffaf0 !important;
  }

  .doujin-watch-search input,
  .doujin-watch-search button,
  .doujin-watch-search select,
  .doujin-watch-all-button,
  .doujin-watch-more,
  .doujin-watch-button,
  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    -webkit-appearance:none !important;
    appearance:none !important;
    box-sizing:border-box !important;
    max-width:100% !important;
    border-radius:999px !important;
    line-height:1.35 !important;
    text-decoration:none !important;
    -webkit-tap-highlight-color:rgba(0,0,0,.08);
  }

  .doujin-watch-search button,
  .doujin-watch-all-button,
  .doujin-watch-more,
  .doujin-watch-button,
  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:44px !important;
    padding:9px 12px !important;
    font-weight:900 !important;
    text-align:center !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }

  .doujin-watch-button,
  .doujin-watch-more{
    display:flex !important;
    width:100% !important;
  }

  .doujin-watch-control-links{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    width:100% !important;
    max-width:100% !important;
  }

  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    flex:1 1 132px !important;
    min-width:0 !important;
    border:1px solid #dfe5ee !important;
    background:#f8fafc !important;
    color:#222 !important;
  }

  .doujin-watch-control-links .doujin-watch-control-more,
  .doujin-watch-control-links .doujin-watch-control-buy,
  .doujin-watch-more,
  .doujin-watch-button{
    border-color:#111 !important;
    background:#111 !important;
    color:#fff !important;
  }
}

@media (max-width:430px){
  .doujin-watch-search{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
  }

  .doujin-watch-search input,
  .doujin-watch-search button,
  .doujin-watch-search select,
  .doujin-watch-all-button{
    width:100% !important;
    min-width:0 !important;
  }

  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    flex-basis:100% !important;
  }
}

.doujin-site-stats{
  margin:12px 0 16px;
}

.doujin-site-stats .stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
  width:100%;
}

.doujin-site-stats .stat-grid span{
  display:block;
  min-width:0;
  box-sizing:border-box;
  padding:10px 12px;
  border:1px solid #e4e8ef;
  border-radius:14px;
  background:#f8fafc;
  color:#344054;
  font-size:12px;
  line-height:1.45;
  text-align:left;
}

.doujin-site-stats .stat-grid strong{
  display:block;
  margin-top:3px;
  color:#111827;
  font-size:16px;
  line-height:1.25;
  overflow-wrap:anywhere;
}

.doujin-site-stats .stat-grid em{
  display:block;
  margin:0 0 5px;
  color:#475467;
  font-style:normal;
  font-weight:700;
}

.doujin-site-stats .stat-grid small{
  display:block;
  margin-top:5px;
  color:#667085;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.doujin-site-stats .stat-grid b{
  display:inline-block;
  margin-left:3px;
  font-weight:800;
}

.doujin-site-stats .stat-grid b.is-up{
  color:#047857;
}

.doujin-site-stats .stat-grid b.is-down{
  color:#b42318;
}

.doujin-site-stats .stat-grid b.is-flat{
  color:#667085;
}

@media (max-width:768px){
  .doujin-site-stats .stat-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .doujin-site-stats .stat-grid span{
    padding:9px;
    border-radius:12px;
    font-size:11px;
  }

  .doujin-site-stats .stat-grid strong{
    font-size:14px;
  }
}

@media (max-width:380px){
  .doujin-site-stats .stat-grid{
    grid-template-columns:1fr;
  }
}

/* Watch and v-detail mobile white-box/ranking readability */
@media (max-width:768px){
  .doujin-watch-item{
    display:block;
    margin:14px 0 20px !important;
    padding:12px !important;
    border:1px solid #dfe7f1 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
    overflow:hidden !important;
  }

  .doujin-watch-info{
    margin:0 0 12px !important;
    padding:12px !important;
    border:1px solid #edf1f7 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 3px 12px rgba(15,23,42,.04) !important;
  }

  .doujin-watch-info h2{
    margin:0 0 10px !important;
    padding-bottom:8px;
    border-bottom:1px solid #eef2f7;
    color:#111827;
    font-size:17px !important;
    font-weight:900;
    line-height:1.45 !important;
  }

  .doujin-watch-info h2 a{
    color:inherit;
    text-decoration:none;
  }

  .doujin-watch-meta,
  .doujin-watch-tags{
    margin-bottom:8px;
  }

  .doujin-watch-samples{
    display:block;
    margin-top:10px !important;
    padding:0;
    background:transparent;
  }

  .doujin-watch-sample-image{
    width:100% !important;
    max-width:100% !important;
    margin:0 auto 10px !important;
    border:1px solid #eef2f7;
    border-radius:12px !important;
    background:#f7f7f7;
    overflow:visible !important;
  }

  .doujin-watch-sample-image:last-child{
    margin-bottom:0 !important;
  }

  .doujin-watch-control-panel{
    margin:18px 0 22px !important;
  }

  .doujin-ranking-panel{
    display:block;
    margin:12px 0 !important;
    padding:12px !important;
    border:1px solid #f0d46a !important;
    border-radius:14px !important;
    background:#fffdf2 !important;
    box-shadow:0 6px 18px rgba(15,23,42,.07) !important;
    overflow:hidden;
  }

  .doujin-ranking-panel h2{
    margin:0 0 10px !important;
    font-size:17px !important;
    line-height:1.35;
  }

  .doujin-ranking-panel h3{
    margin:14px 0 8px !important;
    padding-top:10px;
    border-top:1px solid rgba(226,180,44,.28);
    color:#6b4f00;
    font-size:13px !important;
    line-height:1.35;
  }

  .doujin-rank-main-position{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center !important;
    gap:10px;
    width:100%;
    box-sizing:border-box;
    padding:11px 12px !important;
    border:1px solid #f0d46a !important;
    border-radius:12px !important;
    background:#fff8d8 !important;
    text-decoration:none !important;
  }

  .doujin-rank-main-position span,
  .doujin-ranking-list a span{
    display:block !important;
    min-width:0;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    color:#111827;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
  }

  .doujin-rank-main-position strong,
  .doujin-ranking-list a strong{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-width:62px;
    min-height:28px;
    box-sizing:border-box;
    padding:5px 8px !important;
    border-radius:999px !important;
    background:#ffd84d !important;
    color:#111 !important;
    font-size:13px !important;
    font-weight:900;
    line-height:1.15;
    white-space:nowrap;
  }

  .doujin-ranking-list,
  .doujin-ranking-list-major{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:8px !important;
    width:100%;
    max-width:100%;
  }

  .doujin-ranking-list a,
  .doujin-ranking-list-major a{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center !important;
    gap:8px;
    min-width:0;
    min-height:52px;
    box-sizing:border-box;
    padding:10px !important;
    border:1px solid #e5eaf2 !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#111827;
    font-size:12px !important;
    line-height:1.35;
    text-decoration:none !important;
    box-shadow:0 2px 8px rgba(15,23,42,.035);
  }

  .doujin-ranking-list-major a{
    border-color:#f0d46a !important;
    background:#fffaf0 !important;
  }
}

@media (max-width:480px){
  .doujin-watch-item{
    padding:10px !important;
    border-radius:14px !important;
  }

  .doujin-watch-info h2{
    font-size:16px !important;
  }

  .doujin-ranking-list,
  .doujin-ranking-list-major{
    grid-template-columns:1fr !important;
  }

  .doujin-ranking-list a,
  .doujin-ranking-list-major a,
  .doujin-rank-main-position{
    min-height:48px;
    padding:10px !important;
  }
}

@media (max-width:640px){
  .doujin-watch-feed,
  #doujin-watch-feed{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  .doujin-watch-item{
    display:block !important;
    box-sizing:border-box !important;
    width:auto !important;
    max-width:calc(100% - 16px) !important;
    min-width:0 !important;
    margin:12px 8px 18px !important;
    padding:12px !important;
    overflow:hidden !important;
    border:1px solid #dfe7f1 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 2px 8px rgba(0,0,0,.05) !important;
  }

  .doujin-watch-item *,
  .doujin-watch-control-panel *{
    box-sizing:border-box !important;
  }

  .doujin-watch-info{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 12px !important;
    padding:12px !important;
    overflow:hidden !important;
    border:1px solid #edf1f7 !important;
    border-radius:14px !important;
    background:#fff !important;
  }

  .doujin-watch-info h2{
    display:block !important;
    margin:0 0 10px !important;
    padding-bottom:8px !important;
    border-bottom:1px solid #eef2f7 !important;
    color:#111827 !important;
    font-size:17px !important;
    font-weight:900 !important;
    line-height:1.4 !important;
    overflow-wrap:anywhere !important;
  }

  .doujin-watch-info h2 a{
    color:inherit !important;
    text-decoration:none !important;
  }

  .doujin-watch-meta,
  .doujin-watch-tags{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:6px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 8px !important;
    overflow:visible !important;
  }

  .doujin-watch-meta span,
  .doujin-watch-tags a{
    display:inline-flex !important;
    align-items:center !important;
    max-width:100% !important;
    min-height:28px !important;
    padding:5px 8px !important;
    border:1px solid #e3e8f0 !important;
    border-radius:999px !important;
    background:#f8fafc !important;
    color:#333 !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    text-decoration:none !important;
    overflow-wrap:anywhere !important;
  }

  .doujin-watch-main,
  .doujin-watch-samples,
  .doujin-watch-sample-image{
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
    overflow:hidden !important;
  }

  .doujin-watch-samples{
    margin-top:10px !important;
    background:transparent !important;
  }

  .doujin-watch-sample-image{
    margin:0 auto 10px !important;
    border:1px solid #eef2f7 !important;
    border-radius:12px !important;
    background:#f8fafc !important;
  }

  .doujin-watch-main img,
  .doujin-watch-sample-image img,
  .doujin-watch-samples img{
    display:block !important;
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
    object-fit:contain !important;
  }

  .doujin-watch-review-mini{
    width:100% !important;
    max-width:100% !important;
    margin:10px 0 0 !important;
    padding:10px !important;
    border:1px solid #e5eaf2 !important;
    border-radius:12px !important;
    background:#fff !important;
  }

  .doujin-watch-button{
    -webkit-appearance:none !important;
    appearance:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    max-width:none !important;
    min-height:44px !important;
    margin-top:12px !important;
    border:1px solid #111 !important;
    border-radius:999px !important;
    background:#111 !important;
    color:#fff !important;
    font-weight:900 !important;
    line-height:1.35 !important;
    text-align:center !important;
    text-decoration:none !important;
    white-space:nowrap !important;
  }

  .doujin-watch-control-panel{
    display:block !important;
    box-sizing:border-box !important;
    width:auto !important;
    max-width:calc(100% - 16px) !important;
    min-width:0 !important;
    margin:18px 8px 22px !important;
    padding:12px !important;
    overflow:hidden !important;
    border:1px solid #ead07a !important;
    border-radius:16px !important;
    background:#fffdf4 !important;
    box-shadow:0 3px 14px rgba(90,60,0,.10) !important;
  }

  .doujin-watch-control-head{
    display:block !important;
    margin:0 0 10px !important;
    padding-bottom:10px !important;
    border-bottom:1px solid #f0dfaa !important;
  }

  .doujin-watch-control-head strong{
    display:block !important;
    margin:0 0 4px !important;
    color:#111 !important;
    font-size:16px !important;
    font-weight:900 !important;
    line-height:1.3 !important;
  }

  .doujin-watch-control-head span{
    display:block !important;
    color:#5f6368 !important;
    font-size:12px !important;
    line-height:1.6 !important;
  }

  .doujin-watch-control-group{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin-top:9px !important;
    padding:10px !important;
    border:1px solid #f1dfa4 !important;
    border-radius:12px !important;
    background:#fff !important;
  }

  .doujin-watch-control-group > span{
    display:block !important;
    margin:0 0 7px !important;
    color:#7a5a00 !important;
    font-size:11px !important;
    font-weight:900 !important;
    line-height:1.3 !important;
  }

  .doujin-watch-control-links{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:7px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
  }

  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    -webkit-appearance:none !important;
    appearance:none !important;
    display:inline-flex !important;
    flex:1 1 132px !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    min-height:44px !important;
    max-width:100% !important;
    padding:8px 10px !important;
    border:1px solid #dfe4ec !important;
    border-radius:999px !important;
    background:#fff !important;
    color:#222 !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    text-align:center !important;
    text-decoration:none !important;
    white-space:normal !important;
    cursor:pointer !important;
  }

  .doujin-watch-control-links .doujin-watch-control-more,
  .doujin-watch-control-links .doujin-watch-control-buy{
    border-color:#111 !important;
    background:#111 !important;
    color:#fff !important;
  }
}

@media (max-width:430px){
  .doujin-watch-item,
  .doujin-watch-control-panel{
    max-width:calc(100% - 12px) !important;
    margin-left:6px !important;
    margin-right:6px !important;
    padding:10px !important;
    border-radius:14px !important;
  }

  .doujin-watch-info{
    padding:10px !important;
    border-radius:12px !important;
  }

  .doujin-watch-control-links{
    gap:6px !important;
  }
}

@media (max-width:390px){
  .doujin-watch-control-links a,
  .doujin-watch-control-links button{
    flex-basis:100% !important;
    min-height:43px !important;
    font-size:11px !important;
  }

  .doujin-watch-info h2{
    font-size:16px !important;
  }
}

/* Doujin cards: keep thumbnails 4:3 across desktop/tablet/mobile */
.doujin-card > .doujin-card-thumb,
.doujin-grid .doujin-card-thumb,
.doujin-grid .doujin-thumb-wrap{
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:4 / 3 !important;
  overflow:hidden !important;
  background:#f7f7f7;
}

.doujin-card > .doujin-card-thumb img,
.doujin-grid .doujin-card-thumb img,
.doujin-grid .doujin-thumb-wrap img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}

@media (max-width:1024px){
  .doujin-card > .doujin-card-thumb,
  .doujin-grid .doujin-card-thumb,
  .doujin-grid .doujin-thumb-wrap{
    aspect-ratio:4 / 3 !important;
    height:auto !important;
  }

  .doujin-card > .doujin-card-thumb img,
  .doujin-grid .doujin-card-thumb img,
  .doujin-grid .doujin-thumb-wrap img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }
}

@media (max-width:768px){
  .doujin-card > .doujin-card-thumb,
  .doujin-grid .doujin-card-thumb,
  .doujin-grid .doujin-thumb-wrap{
    aspect-ratio:4 / 3 !important;
  }
}

/* Doujin card CTA: prevent iPhone-only wrapping */
.doujin-card-button{
  display:flex !important;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:36px;
  line-height:1.2;
  white-space:nowrap !important;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width:480px){
  .doujin-card-button{
    min-height:36px !important;
    padding:8px 6px !important;
    font-size:12px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
  }
}

@media (max-width:380px){
  .doujin-card-button{
    padding-left:5px !important;
    padding-right:5px !important;
    font-size:11px !important;
  }
}

/* Movie watch: remove heavy black translucent text backgrounds */
.doujin-movie-overlay-title{
  padding:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  color:#fff !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45) !important;
}

.doujin-movie-overlay-meta{
  color:rgba(255,255,255,.9) !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45) !important;
}

.doujin-movie-overlay-price{
  color:#ffe082 !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45) !important;
}

.doujin-movie-time-display,
.doujin-movie-overlay-count{
  background:transparent !important;
  background-color:transparent !important;
  color:#fff !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45) !important;
  box-shadow:none !important;
}

.doujin-movie-rank-mini,
.doujin-movie-touch-hint{
  background:transparent !important;
  background-color:transparent !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:none !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.45) !important;
}

.doujin-movie-player-shell.is-controls-hidden .doujin-movie-rank-mini{
  background:transparent !important;
  background-color:transparent !important;
}

.doujin-movie-touch-hint strong{
  color:#fff !important;
}

.doujin-movie-touch-hint span,
.doujin-movie-rank-mini-row span{
  color:#fff !important;
}

.doujin-movie-touch-hints{
  left:50% !important;
  right:auto !important;
  top:14px !important;
  display:block !important;
  width:min(88%, 320px);
  transform:translateX(-50%) !important;
}

.doujin-movie-touch-hints.is-hint-visible{
  transform:translateX(-50%) !important;
}

.doujin-movie-touch-hint.simple{
  display:flex !important;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px 10px;
  padding:8px 10px !important;
}

.doujin-movie-player-shell .doujin-movie-rank-mini{
  display:none !important;
}

/* Doujin area header: FANZA-style top category menu */
.site-mode-nav.doujin-mode .doujin-main-menu{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  align-items:stretch;
  justify-content:center;
  gap:8px;
  width:min(760px, calc(100% - 24px));
  max-width:760px;
}

.site-mode-nav.doujin-mode .doujin-main-menu .btn{
  min-width:0;
  text-align:center;
  white-space:nowrap;
}

@media (max-width:768px){
  .site-mode-nav.doujin-mode .doujin-main-menu{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    align-items:stretch;
    width:100%;
    max-width:none;
    gap:6px;
  }

  .site-mode-nav.doujin-mode .doujin-main-menu .btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    min-height:36px;
    box-sizing:border-box;
    padding:8px 6px;
    font-size:12px;
    line-height:1.25;
    text-align:center;
    white-space:nowrap;
  }
}

@media (max-width:480px){
  .site-mode-nav.doujin-mode .doujin-main-menu .btn{
    width:100%;
    min-width:0;
    font-size:12px;
  }
}

/* Doujin common nav: force white-box and chip UI on tablet/mobile */
.doujin-common-nav{
  box-sizing:border-box;
  width:min(100%, 1180px);
  margin:12px auto 14px;
  padding:12px;
  border:1px solid #e6e8f0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.doujin-common-nav-row{
  display:grid;
  grid-template-columns:128px minmax(0, 1fr);
  gap:10px;
  align-items:start;
  padding:10px 0;
  border-bottom:1px solid #edf1f7;
}

.doujin-common-nav-row:last-child{
  border-bottom:0;
}

.doujin-common-nav-head{
  min-width:0;
}

.doujin-common-nav-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 10px;
  border:1px solid #e1e7f0;
  border-radius:999px;
  background:#f2f4f7;
  color:#344054;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
}

.doujin-common-nav-links{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  min-width:0;
  max-width:100%;
  overflow:visible !important;
}

.doujin-common-nav-links a{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:34px;
  max-width:100%;
  box-sizing:border-box;
  padding:7px 12px;
  border:1px solid #dfe4ec !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#222 !important;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none !important;
  white-space:nowrap;
  box-shadow:0 1px 3px rgba(15,23,42,.04);
}

.doujin-common-nav-category .doujin-common-nav-links a{
  background:#f8fafc !important;
}

.doujin-common-nav-sort .doujin-common-nav-links a{
  background:#fffdf4 !important;
}

.doujin-common-nav-genre .doujin-common-nav-links a{
  background:#fff !important;
}

.doujin-common-nav-links a:hover,
.doujin-common-nav-links a.active,
.doujin-common-nav-links a[aria-current="page"]{
  border-color:#111 !important;
  background:#111 !important;
  color:#fff !important;
}

@media (max-width:1024px){
  .doujin-common-nav{
    width:auto;
    margin:12px 10px 14px !important;
    padding:12px !important;
    border:1px solid #e6e8f0 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 2px 8px rgba(0,0,0,.05) !important;
    overflow:hidden;
  }

  .doujin-common-nav-row{
    grid-template-columns:1fr;
    gap:7px;
    padding:10px 0 !important;
  }

  .doujin-common-nav-links{
    overflow:visible !important;
  }

  .doujin-common-nav-links a{
    min-height:34px !important;
    padding:7px 11px !important;
    font-size:12px !important;
    white-space:nowrap !important;
  }
}

@media (max-width:480px){
  .doujin-common-nav{
    margin:10px 8px 12px !important;
    padding:10px !important;
    border-radius:14px !important;
  }

  .doujin-common-nav-row{
    padding:9px 0 !important;
  }

  .doujin-common-nav-label{
    min-height:26px;
    padding:4px 9px;
    font-size:11px;
  }

  .doujin-common-nav-links{
    gap:7px !important;
  }

  .doujin-common-nav-links a{
    min-height:33px !important;
    padding:7px 10px !important;
    font-size:11px !important;
  }
}

@media (max-width:640px){
  .doujin-common-nav,
  section.doujin-common-nav{
    display:block !important;
    box-sizing:border-box !important;
    width:auto !important;
    max-width:calc(100% - 16px) !important;
    margin:10px 8px 12px !important;
    padding:10px !important;
    overflow:hidden !important;
    border:1px solid #e6e8f0 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 2px 8px rgba(0,0,0,.05) !important;
  }

  .doujin-common-nav *,
  section.doujin-common-nav *{
    box-sizing:border-box !important;
  }

  .doujin-common-nav-row{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    padding:9px 0 !important;
    border-bottom:1px solid #edf1f7 !important;
  }

  .doujin-common-nav-row:last-child{
    border-bottom:0 !important;
  }

  .doujin-common-nav-head{
    display:block !important;
    margin:0 0 7px !important;
    padding:0 !important;
  }

  .doujin-common-nav-label{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:26px !important;
    padding:4px 9px !important;
    border:1px solid #e1e7f0 !important;
    border-radius:999px !important;
    background:#f2f4f7 !important;
    color:#344054 !important;
    font-size:11px !important;
    font-weight:900 !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
  }

  .doujin-common-nav-links{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:7px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
  }

  .doujin-common-nav-links a,
  .doujin-common-nav a{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    min-height:33px !important;
    max-width:100% !important;
    padding:7px 10px !important;
    border:1px solid #dfe4ec !important;
    border-radius:999px !important;
    background:#fff !important;
    color:#222 !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    box-shadow:0 1px 3px rgba(15,23,42,.04) !important;
  }

  .doujin-common-nav-links a.active,
  .doujin-common-nav-links a[aria-current="page"],
  .doujin-common-nav a.active,
  .doujin-common-nav a[aria-current="page"]{
    border-color:#111 !important;
    background:#111 !important;
    color:#fff !important;
  }
}

@media (max-width:430px){
  .doujin-common-nav,
  section.doujin-common-nav{
    max-width:calc(100% - 12px) !important;
    margin:8px 6px 10px !important;
    padding:9px !important;
    border-radius:14px !important;
  }

  .doujin-common-nav-links{
    gap:6px !important;
  }
}

@media (max-width:390px){
  .doujin-common-nav-links a,
  .doujin-common-nav a{
    min-height:32px !important;
    padding:7px 9px !important;
    font-size:10.5px !important;
  }
}

/* Movie watch: stable in-video controls for Android/tablet */
@media (max-width:1024px){
  .doujin-movie-player-shell{
    position:relative !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:min(68svh, 620px) !important;
    min-height:360px !important;
    margin:10px 0 14px !important;
    border:1px solid #111 !important;
    border-radius:16px !important;
    background:#050505 !important;
    box-shadow:0 8px 24px rgba(15,23,42,.18) !important;
    overflow:hidden !important;
    touch-action:pan-y !important;
  }

  .doujin-movie-stage{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    background:#000 !important;
    overflow:hidden !important;
  }

  .doujin-movie-video{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    background:#000 !important;
  }

  .doujin-movie-overlay-title{
    position:absolute !important;
    top:10px !important;
    left:10px !important;
    right:auto !important;
    z-index:22 !important;
    max-width:calc(100% - 126px) !important;
    max-height:42px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    color:#fff !important;
    font-size:12px !important;
    line-height:1.25 !important;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0 2px 4px rgba(0,0,0,.45) !important;
    overflow:hidden !important;
    pointer-events:none !important;
  }

  .doujin-movie-overlay-meta,
  .doujin-movie-overlay-price{
    display:none !important;
  }

  .doujin-movie-time-display,
  .doujin-movie-overlay-count{
    position:absolute !important;
    right:10px !important;
    z-index:24 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:28px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:900 !important;
    line-height:1 !important;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0 2px 4px rgba(0,0,0,.45) !important;
    box-shadow:none !important;
  }

  .doujin-movie-time-display{
    top:9px !important;
  }

  .doujin-movie-overlay-count{
    top:43px !important;
  }

  .doujin-movie-touch-hints{
    position:absolute !important;
    left:50% !important;
    right:auto !important;
    top:auto !important;
    bottom:74px !important;
    z-index:25 !important;
    display:block !important;
    width:min(90%, 330px) !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:translateX(-50%) !important;
    pointer-events:none !important;
  }

  .doujin-movie-touch-hints.is-hint-visible{
    transform:translateX(-50%) !important;
  }

  .doujin-movie-touch-hint,
  .doujin-movie-touch-hint.simple{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:5px 9px !important;
    width:100% !important;
    box-sizing:border-box !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    background-color:transparent !important;
    color:#fff !important;
    box-shadow:none !important;
    text-shadow:
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000,
       0 2px 4px rgba(0,0,0,.45) !important;
    backdrop-filter:none !important;
  }

  .doujin-movie-touch-hint strong{
    color:#fff !important;
    font-size:11px !important;
    line-height:1.1 !important;
  }

  .doujin-movie-touch-hint span{
    color:#fff !important;
    font-size:11px !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
  }

  .doujin-movie-controls,
  .doujin-movie-player-shell.is-controls-hidden .doujin-movie-controls{
    position:absolute !important;
    left:50% !important;
    right:auto !important;
    bottom:12px !important;
    z-index:30 !important;
    display:grid !important;
    grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
    gap:5px !important;
    width:calc(100% - 20px) !important;
    max-width:560px !important;
    margin:0 !important;
    padding:6px !important;
    border:1px solid rgba(255,216,77,.55) !important;
    border-radius:18px !important;
    background:rgba(255,255,255,.94) !important;
    box-shadow:0 4px 16px rgba(15,23,42,.18) !important;
    transform:translateX(-50%) !important;
    opacity:1 !important;
    pointer-events:auto !important;
    backdrop-filter:none !important;
  }

  .doujin-movie-controls button,
  .doujin-movie-controls .doujin-movie-play-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    min-height:42px !important;
    box-sizing:border-box !important;
    padding:0 4px !important;
    border:1px solid #d0d5dd !important;
    border-radius:999px !important;
    background:#111 !important;
    color:#fff !important;
    box-shadow:none !important;
    font-size:13px !important;
    font-weight:900 !important;
    line-height:1 !important;
  }

  .doujin-movie-controls .doujin-movie-play-btn{
    background:#ffd84d !important;
    color:#111 !important;
    font-size:18px !important;
  }

  .doujin-movie-controls button[data-action="back"]{
    display:none !important;
  }

  .doujin-movie-seekbar{
    position:absolute !important;
    left:10px !important;
    right:10px !important;
    bottom:2px !important;
    z-index:31 !important;
    width:auto !important;
    height:4px !important;
    opacity:.8 !important;
  }

  .doujin-movie-volume{
    display:none !important;
  }

  .doujin-movie-rank-mini,
  .doujin-movie-player-shell .doujin-movie-rank-mini{
    display:none !important;
  }

  .doujin-movie-watch-summary,
  .doujin-movie-detail-full{
    margin:10px 0 !important;
    padding:12px !important;
    border:1px solid #e5eaf2 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 3px 12px rgba(0,0,0,.035) !important;
  }
}

@media (max-width:480px){
  .doujin-movie-player-shell{
    height:min(62svh, 500px) !important;
    min-height:300px !important;
    border-radius:12px !important;
  }

  .doujin-movie-overlay-title{
    top:8px !important;
    left:8px !important;
    max-width:calc(100% - 112px) !important;
    font-size:11px !important;
  }

  .doujin-movie-time-display,
  .doujin-movie-overlay-count{
    right:8px !important;
    min-height:26px !important;
    padding:5px 8px !important;
    font-size:10px !important;
  }

  .doujin-movie-overlay-count{
    top:39px !important;
  }

  .doujin-movie-touch-hints{
    bottom:66px !important;
    width:calc(100% - 18px) !important;
  }

  .doujin-movie-touch-hint,
  .doujin-movie-touch-hint.simple{
    gap:4px 7px !important;
    padding:6px 8px !important;
  }

  .doujin-movie-touch-hint strong,
  .doujin-movie-touch-hint span{
    font-size:10px !important;
  }

  .doujin-movie-controls,
  .doujin-movie-player-shell.is-controls-hidden .doujin-movie-controls{
    bottom:10px !important;
    width:calc(100% - 14px) !important;
    gap:4px !important;
    padding:5px !important;
    border-radius:16px !important;
  }

  .doujin-movie-controls button,
  .doujin-movie-controls .doujin-movie-play-btn{
    min-height:38px !important;
    padding:0 2px !important;
    font-size:11px !important;
  }

  .doujin-movie-controls .doujin-movie-play-btn{
    font-size:16px !important;
  }
}

/* Movie watch fullscreen UI: keep the overlay controls inside the fullscreen shell. */
.doujin-movie-controls{
  top:auto !important;
  right:auto !important;
  bottom:88px !important;
  left:50% !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  width:min(calc(100% - 220px), 560px) !important;
  max-width:520px !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  transform:translateX(-50%) !important;
}

.doujin-movie-player-shell.is-controls-hidden .doujin-movie-controls{
  opacity:0 !important;
  pointer-events:none !important;
  transform:translate(-50%, 8px) !important;
}

.doujin-movie-volume{
  left:auto !important;
  right:14px !important;
  bottom:42px !important;
  z-index:22 !important;
  display:flex !important;
}

.doujin-movie-player-shell.is-controls-hidden .doujin-movie-volume,
.doujin-movie-player-shell.is-controls-hidden .doujin-movie-overlay-buy{
  opacity:0 !important;
  pointer-events:none !important;
  transform:translateY(8px) !important;
}

.doujin-movie-overlay-buy{
  left:14px !important;
  bottom:42px !important;
  z-index:22 !important;
}

.doujin-movie-player-shell:fullscreen .doujin-movie-controls,
.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-controls{
  top:auto !important;
  right:auto !important;
  bottom:76px !important;
  left:50% !important;
  transform:translateX(-50%) !important;
}

.doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-controls,
.doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-controls{
  opacity:1 !important;
  pointer-events:auto !important;
  transform:translateX(-50%) !important;
}

.doujin-movie-player-shell:fullscreen .doujin-movie-volume,
.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-volume{
  right:24px !important;
  bottom:42px !important;
}

.doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-volume,
.doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-volume,
.doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-overlay-buy,
.doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-overlay-buy{
  opacity:1 !important;
  pointer-events:auto !important;
  transform:none !important;
}

.doujin-movie-player-shell:fullscreen .doujin-movie-overlay-buy,
.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-overlay-buy{
  left:24px !important;
  bottom:42px !important;
}

@media (max-width:768px){
  .doujin-movie-controls{
    top:auto !important;
    right:auto !important;
    bottom:82px !important;
    left:50% !important;
    width:min(calc(100% - 16px), 360px) !important;
    gap:5px !important;
    transform:translateX(-50%) !important;
  }

  .doujin-movie-volume{
    right:8px !important;
    bottom:34px !important;
  }

  .doujin-movie-overlay-buy{
    left:8px !important;
    bottom:34px !important;
    min-height:34px !important;
    padding:8px 11px !important;
    font-size:12px !important;
  }
}

.doujin-autoscroll-panel{
  display:grid;
  gap:8px;
  box-sizing:border-box;
  width:100%;
  margin:10px 0 12px;
  padding:10px;
  border:1px solid #e5eaf2;
  border-radius:14px;
  background:#fffaf0;
}

.doujin-autoscroll-title,
.doujin-autoscroll-speed-label{
  color:#111;
  font-size:13px;
  font-weight:900;
  line-height:1.3;
}

.doujin-autoscroll-title{
  font-size:15px;
}

.doujin-autoscroll-lead{
  margin:0;
  color:#4b5563;
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

.doujin-autoscroll-status-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  box-sizing:border-box;
}

.doujin-autoscroll-status-row span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 9px;
  border:1px solid #d8dee8;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:12px;
  font-weight:900;
  line-height:1.2;
}

.doujin-autoscroll-controls,
.doujin-autoscroll-speed{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}

.doujin-autoscroll-panel button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:38px;
  box-sizing:border-box;
  padding:8px 12px;
  border:1px solid #d8dee8;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  text-align:center;
  cursor:pointer;
  -webkit-tap-highlight-color:rgba(0,0,0,.08);
}

.doujin-autoscroll-controls button{
  flex:1 1 96px;
}

.doujin-autoscroll-speed-btn{
  flex:1 1 40px;
  padding-left:8px;
  padding-right:8px;
}

.doujin-autoscroll-panel button:hover,
.doujin-autoscroll-speed-btn.is-active{
  border-color:#111;
  background:#111;
  color:#fff;
}

.doujin-autoscroll-floating{
  position:fixed;
  top:10px;
  right:10px;
  z-index:9999;
  display:none;
  width:auto;
  max-width:calc(100vw - 20px);
  box-sizing:border-box;
  padding:8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  background:rgba(17, 24, 39, .88);
  color:#fff;
  box-shadow:0 4px 16px rgba(0,0,0,.25);
}

.doujin-autoscroll-floating.is-visible{
  display:grid;
  gap:6px;
}

.doujin-autoscroll-floating button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:36px;
  box-sizing:border-box;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:12px;
  font-weight:900;
  line-height:1.1;
  cursor:pointer;
  -webkit-tap-highlight-color:rgba(255,255,255,.18);
}

.doujin-autoscroll-floating-controls{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:6px;
}

.doujin-autoscroll-floating-actions{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:6px;
}

.doujin-autoscroll-floating-controls button,
.doujin-autoscroll-floating-actions button{
  width:100%;
  background:#ffd84d;
  color:#111;
}

.doujin-autoscroll-floating-row{
  display:grid;
  grid-template-columns:auto minmax(58px, auto) auto;
  align-items:center;
  gap:6px;
}

.doujin-autoscroll-floating-row span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1.1;
  white-space:nowrap;
}

.lovecal-watch-current{
  position:fixed;
  left:14px;
  top:14px;
  z-index:21;
  width:min(420px, calc(100% - 380px));
  min-width:240px;
  box-sizing:border-box;
  pointer-events:none;
}

.lovecal-watch-current-count,
.lovecal-watch-current-title,
.lovecal-watch-current-meta{
  color:#fff;
  font-weight:900;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 4px rgba(0,0,0,.75);
}

.lovecal-watch-current-count{
  font-size:20px;
  line-height:1.2;
}

.lovecal-watch-current-title{
  display:-webkit-box;
  margin-top:5px;
  overflow:hidden;
  font-size:14px;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.lovecal-watch-current-meta{
  margin-top:4px;
  font-size:12px;
}

@media (max-width:768px){
  .doujin-autoscroll-panel{
    margin:10px 0;
    padding:9px;
  }

  .doujin-autoscroll-panel button{
    min-height:42px;
    padding:8px 10px;
    font-size:12px;
  }

  .doujin-autoscroll-speed-btn{
    flex-basis:calc(20% - 6px);
  }

  .doujin-autoscroll-floating{
    top:8px;
    right:8px;
    max-width:min(46vw, 220px);
    padding:7px;
    border-radius:12px;
  }

  .lovecal-watch-current{
    left:8px;
    top:8px;
    width:min(76vw, 300px);
    min-width:0;
  }

  .lovecal-watch-current-count{
    font-size:18px;
  }

  .lovecal-watch-current-title{
    font-size:13px;
  }
}

/* Doujin still-image watch: Android/Xiaomi/tablet image width */
@media (max-width:1180px){
  .doujin-watch-feed{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    padding-left:0 !important;
    padding-right:0 !important;
    overflow-x:hidden !important;
  }

  .doujin-watch-feed .doujin-watch-item{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:6px !important;
    padding-right:6px !important;
    overflow-x:hidden !important;
  }

  .doujin-watch-feed .doujin-watch-main,
  .doujin-watch-feed .doujin-watch-samples,
  .doujin-watch-feed .doujin-watch-sample-image{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    overflow-x:hidden !important;
  }

  .doujin-watch-feed .doujin-watch-main img,
  .doujin-watch-feed .doujin-watch-sample-image img,
  .doujin-watch-feed .doujin-watch-samples img{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:auto !important;
    max-height:none !important;
    box-sizing:border-box !important;
    margin-left:0 !important;
    margin-right:0 !important;
    object-fit:contain !important;
  }
}

/* Compact search below the doujin watch buttons */
.doujin-watch-search-box{
  width:960px;
  max-width:calc(100% - 16px);
  margin:10px auto 14px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.12);
  background:linear-gradient(135deg, #fffaf0, #fff);
  box-shadow:0 5px 14px rgba(0,0,0,.08);
}

.doujin-watch-search-box .doujin-watch-search{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  width:100%;
  max-width:none;
  margin:0;
}

.doujin-watch-search-box .doujin-watch-search label{
  flex:0 0 auto;
  font-size:13px;
  line-height:1.2;
  font-weight:900;
  color:#111827;
  white-space:nowrap;
}

.doujin-watch-search-box .doujin-watch-search input{
  flex:1 1 260px;
  min-width:220px;
  height:46px;
  min-height:46px;
  box-sizing:border-box;
  padding:10px 14px;
  border:1px solid rgba(148,163,184,.55);
  border-radius:999px;
  font-size:16px;
}

.doujin-watch-search-box .doujin-watch-search select{
  height:46px;
  min-height:46px;
  min-width:0;
  flex:0 1 180px;
  box-sizing:border-box;
  padding:10px 30px 10px 12px;
  border:1px solid rgba(148,163,184,.55);
  border-radius:999px;
  background:#fff;
  color:#111827;
  font-size:15px;
}

.doujin-watch-search-box .doujin-watch-search button{
  height:46px;
  min-height:46px;
  padding:10px 20px;
  border-radius:999px;
  font-size:15px;
}

.doujin-watch-all-button,
.doujin-watch-video-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  min-height:46px;
  flex:0 0 auto;
  box-sizing:border-box;
  padding:10px 18px;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}

.doujin-watch-video-button{
  background:#111827;
  color:#fff;
}

.doujin-watch-search-box .doujin-autoscroll-panel{
  margin:12px 0 0;
}

.watch-sort-buttons{
  display:flex;
  flex:1 1 100%;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
  padding-top:10px;
  border-top:1px solid rgba(15,23,42,.08);
}

.watch-sort-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px !important;
  height:auto !important;
  padding:7px 12px !important;
  border:1px solid rgba(17,24,39,.14) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#111827 !important;
  font-size:13px !important;
  font-weight:900 !important;
  line-height:1.2;
  white-space:nowrap;
  cursor:pointer;
}

.watch-sort-button.is-active{
  border-color:#111827 !important;
  background:#111827 !important;
  color:#fff !important;
}

.watch-sort-select{
  display:none;
}

@media (max-width:640px){
  .doujin-watch-search-box{
    width:calc(100% - 12px);
    margin:6px auto 8px;
    padding:12px;
  }

  .doujin-watch-search-box .doujin-watch-search{
    flex-direction:column !important;
    align-items:stretch !important;
    flex-wrap:nowrap !important;
    gap:10px;
  }

  .doujin-watch-search-box .doujin-watch-search label{
    font-size:12px;
    white-space:normal;
  }

  .doujin-watch-search-box .doujin-watch-search input,
  .doujin-watch-search-box .doujin-watch-search select,
  .doujin-watch-search-box .doujin-watch-search button,
  .doujin-watch-search-box .doujin-watch-all-button,
  .doujin-watch-search-box .doujin-watch-video-button{
    flex:0 0 auto !important;
    width:100% !important;
    min-width:0 !important;
    min-height:46px;
    height:auto;
    box-sizing:border-box;
    font-size:16px;
  }

  .watch-sort-buttons{
    display:none;
  }

  .watch-sort-select{
    display:block;
  }

  .watch-sort-button{
    flex:0 0 auto !important;
    width:auto !important;
    min-height:40px !important;
    font-size:13px !important;
  }
}

@media (max-width:768px){
  .doujin-watch-feed .doujin-watch-item{
    padding-left:4px !important;
    padding-right:4px !important;
  }
}

/* Movie watch: keep the bottom controller in one compact row. */
.doujin-movie-controls,
.doujin-movie-player-shell.is-controls-hidden .doujin-movie-controls,
.doujin-movie-player-shell:fullscreen .doujin-movie-controls,
.doujin-movie-player-shell:-webkit-full-screen .doujin-movie-controls,
.doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-controls,
.doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-controls{
  top:auto !important;
  right:auto !important;
  bottom:46px !important;
  left:50% !important;
  z-index:32 !important;
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  max-width:calc(100% - 28px) !important;
  margin:0 !important;
  padding:5px 6px !important;
  gap:5px !important;
  overflow:visible !important;
  white-space:nowrap !important;
  transform:translateX(-50%) !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

.doujin-movie-controls button,
.doujin-movie-controls .doujin-movie-play-btn{
  flex:0 0 auto !important;
  width:38px !important;
  min-width:38px !important;
  max-width:38px !important;
  min-height:38px !important;
  height:38px !important;
  padding:0 !important;
  font-size:14px !important;
  line-height:1 !important;
}

.doujin-movie-controls .doujin-movie-play-btn{
  width:46px !important;
  min-width:46px !important;
  max-width:46px !important;
  font-size:17px !important;
}

@media (max-width:420px){
  .doujin-movie-controls,
  .doujin-movie-player-shell.is-controls-hidden .doujin-movie-controls,
  .doujin-movie-player-shell:fullscreen .doujin-movie-controls,
  .doujin-movie-player-shell:-webkit-full-screen .doujin-movie-controls,
  .doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-controls,
  .doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-controls{
    bottom:44px !important;
    gap:3px !important;
    padding:4px 5px !important;
    max-width:calc(100% - 16px) !important;
  }

  .doujin-movie-controls button,
  .doujin-movie-controls .doujin-movie-play-btn{
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    min-height:34px !important;
    height:34px !important;
    font-size:12px !important;
  }

  .doujin-movie-controls .doujin-movie-play-btn{
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    font-size:15px !important;
  }
}

/* Movie watch: auto-hide only the bottom UI; keep top information visible. */
.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-controls,
.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-volume,
.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-overlay-buy,
.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-seekbar,
.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-touch-hints,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-controls,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-volume,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-overlay-buy,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-seekbar,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-touch-hints,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-controls,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-volume,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-overlay-buy,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-seekbar,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-touch-hints{
  opacity:0 !important;
  pointer-events:none !important;
  transform:translateY(10px) !important;
  transition:opacity .22s ease, transform .22s ease !important;
}

.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-controls,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-controls,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-controls{
  transform:translate(-50%, 10px) !important;
}

.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-overlay-title,
.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-time-display,
.doujin-movie-player-shell.is-bottom-ui-hidden .doujin-movie-overlay-count,
.doujin-movie-player-shell.is-controls-hidden .doujin-movie-overlay-title,
.doujin-movie-player-shell.is-controls-hidden .doujin-movie-time-display,
.doujin-movie-player-shell.is-controls-hidden .doujin-movie-overlay-count,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-overlay-title,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-time-display,
.doujin-movie-player-shell:fullscreen.is-bottom-ui-hidden .doujin-movie-overlay-count,
.doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-overlay-title,
.doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-time-display,
.doujin-movie-player-shell:fullscreen.is-controls-hidden .doujin-movie-overlay-count,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-overlay-title,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-time-display,
.doujin-movie-player-shell:-webkit-full-screen.is-bottom-ui-hidden .doujin-movie-overlay-count,
.doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-overlay-title,
.doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-time-display,
.doujin-movie-player-shell:-webkit-full-screen.is-controls-hidden .doujin-movie-overlay-count{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  transform:none !important;
}
/* codex-12url-buildout: css */
.doujin-buildout {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #fff;
}

.doujin-buildout h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.doujin-buildout p {
  margin: 0;
  line-height: 1.9;
}

.doujin-buildout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.doujin-buildout-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #1f3a5f;
  font-weight: 700;
  text-decoration: none;
}

.doujin-buildout-links a:hover {
  background: #e7eef8;
}

@media (max-width: 520px) {
  .doujin-buildout {
    padding: 14px;
  }

  .doujin-buildout-links a {
    width: 100%;
    justify-content: center;
  }
}

/* codex-design-refresh-20260615: header footer common nav */
:root {
  --doujin-ink: #182033;
  --doujin-muted: #667085;
  --doujin-line: #d9e2ef;
  --doujin-panel: #ffffff;
  --doujin-soft: #f5f8fc;
  --doujin-accent: #2f5f9f;
  --doujin-accent-soft: #e8f0fb;
}

body {
  background: #f2f5f9;
  color: var(--doujin-ink);
}

.doujin-site-header {
  position: relative;
  z-index: 5;
  margin: 0 0 18px;
  padding: 18px clamp(12px, 3vw, 28px);
  border-bottom: 1px solid var(--doujin-line);
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: 0 6px 18px rgba(27, 44, 74, 0.06);
}

.doujin-site-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 14px;
}

.doujin-site-logo,
.doujin-footer-logo-text {
  color: var(--doujin-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.doujin-site-logo::after {
  content: "DB";
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--doujin-accent-soft);
  color: var(--doujin-accent);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.doujin-site-lead {
  max-width: 620px;
  margin: 0;
  color: var(--doujin-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  text-align: right;
}

.doujin-site-nav,
.doujin-common-nav-links,
.doujin-footer-links {
  scrollbar-width: thin;
}

.doujin-site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
}

.doujin-site-nav a,
.doujin-common-nav-links a,
.doujin-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--doujin-line);
  border-radius: 999px;
  background: #fff;
  color: var(--doujin-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.doujin-site-nav a:hover,
.doujin-common-nav-links a:hover,
.doujin-footer-links a:hover,
.doujin-site-nav a[aria-current="page"],
.doujin-common-nav-links a[aria-current="page"],
.doujin-common-nav-links a.active {
  border-color: rgba(47, 95, 159, 0.3);
  background: var(--doujin-accent-soft);
  color: var(--doujin-accent);
}

.wrap {
  max-width: 1180px;
}

.white-box,
.doujin-common-nav,
.doujin-card,
.doujin-buildout {
  border-color: var(--doujin-line);
  box-shadow: 0 8px 22px rgba(27, 44, 74, 0.05);
}

.doujin-common-nav,
section.doujin-common-nav {
  max-width: 1180px;
  margin: 14px auto;
  padding: 14px;
  border: 1px solid var(--doujin-line);
  border-radius: 12px;
  background: var(--doujin-panel);
}

.doujin-common-nav-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.doujin-common-nav-head {
  min-width: 0;
  padding-top: 8px;
}

.doujin-common-nav-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--doujin-muted);
  font-size: 12px;
  font-weight: 900;
}

.doujin-common-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.doujin-footer {
  margin: 30px 0 0;
  padding: 28px clamp(14px, 3vw, 28px);
  border-top: 1px solid var(--doujin-line);
  background: #101827;
  color: #e8eef7;
}

.doujin-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.doujin-footer-brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.doujin-footer-logo-text {
  color: #fff;
}

.doujin-footer-brand p,
.doujin-footer-note p,
.doujin-footer-copy {
  margin: 0;
  color: #b7c3d7;
  font-size: 13px;
  line-height: 1.8;
}

.doujin-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(240px, 0.8fr);
  gap: 18px;
}

.doujin-footer-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.doujin-footer-block h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.doujin-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doujin-footer-links a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f8ff;
}

.doujin-footer-links a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.doujin-footer-copy {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .doujin-site-header {
    padding: 14px 10px;
  }

  .doujin-site-header-inner,
  .doujin-footer-brand {
    display: block;
  }

  .doujin-site-lead {
    margin-top: 8px;
    text-align: left;
  }

  .doujin-site-nav,
  .doujin-common-nav-links,
  .doujin-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .doujin-site-nav a,
  .doujin-common-nav-links a,
  .doujin-footer-links a {
    width: 100%;
    min-width: 0;
    padding: 9px 8px;
    white-space: normal;
    text-align: center;
  }

  .doujin-common-nav-row {
    display: block;
  }

  .doujin-common-nav-head {
    padding: 0 0 10px;
  }

  .doujin-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .doujin-site-nav,
  .doujin-common-nav-links,
  .doujin-footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .doujin-site-nav a,
  .doujin-common-nav-links a,
  .doujin-footer-links a {
    font-size: 12px;
  }
}
