/* ==========================================================================
   JGirl Collection - DLE 14.x+ Template Stylesheet (jgirl-dle.css)
   1:1 Widescreen Catalog + Interactive 12-Frame Scrubber + Zoom Lightbox
   ========================================================================== */

:root {
  --bg-body: #ffffff;
  --bg-header-top: #f8f9fa;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --text-main: #1f2328;
  --text-muted: #656d76;
  --border-color: #dcdfe4;
  --pink-primary: #ed7696;
  --pink-bar: #ed7696;
  --pink-soft: rgba(237, 118, 150, 0.1);
  --pink-box-bg: #fff0f5;
  --pink-btn-left: #fbd5e0;
  --pink-btn-right: #ed7696;
  --blue-accent: #3b429f;
  --red-accent: #e11d48;
  --shadow-sm: none;
  --shadow-hover: 0 10px 24px rgba(237, 118, 150, 0.22);
  --radius-card: 5px;
}

html.dark-mode {
  --bg-body: #0d0f14;
  --bg-header-top: #12151e;
  --bg-card: #161922;
  --bg-sidebar: #161922;
  --text-main: #f0f3f8;
  --text-muted: #8b95a5;
  --border-color: #252a37;
  --pink-soft: rgba(236, 107, 149, 0.15);
  --pink-box-bg: #1d1623;
  --pink-btn-left: #2c2036;
  --pink-btn-right: #ec6b95;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.38);
  --shadow-hover: 0 12px 28px rgba(236, 107, 149, 0.28);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }

html, body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.48;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  min-width: 1em;
  vertical-align: -0.15em;
  stroke-width: 1.8;
}

/* === TOP FOLDER TABS HEADER (FULL WIDESCREEN) === */
.top-brand-wrap {
  background: var(--bg-header-top);
  border-bottom: none;
}

.top-brand-area {
  max-width: 1580px;
  width: 92%;
  margin: 0 auto;
  padding: 10px 10px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-left {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.jgirl-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-bottom: 8px;
  font-family: "Arial Black", Impact, sans-serif;
}

.jgirl-logo .lg-top {
  font-size: 32px;
  font-weight: 900;
  color: #ed7696;
  letter-spacing: -0.5px;
}

.jgirl-logo .lg-sub {
  font-size: 15.5px;
  font-weight: 900;
  color: #ed7696;
  letter-spacing: -0.3px;
}

.folder-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.f-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 36px;
  padding: 0 16px;
  border-radius: 7px 7px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  transition: filter 0.15s, transform 0.15s;
}

.f-tab:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.f-tab .mini-sub {
  font-size: 9px;
  color: #fde047;
  line-height: 1;
  margin-bottom: 1px;
  font-weight: 700;
}

.tab-upskirt { background: #ed7696; }
.tab-fc2 { background: #dc2e2e; }
.tab-av { background: #262b96; }
.tab-kgirl { background: #c81414; }
.tab-cgirl { background: #ff6600; }
.tab-anime { background: #8a2be2; }
.tab-peep { background: #f07fa6; }
.tab-deep { background: #c59b08; }

.brand-right-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  font-size: 12px;
}

.admin-pill {
  background: var(--pink-soft);
  color: var(--pink-primary);
  border: 1px solid rgba(235, 94, 141, 0.3);
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 700;
}
.admin-pill:hover {
  background: var(--pink-primary);
  color: #fff;
}

/* === PINK SUB-BAR (STICKY FULL WIDESCREEN) === */
.pink-subbar {
  background: var(--pink-bar);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}

.subbar-inner {
  max-width: 1580px;
  width: 92%;
  margin: 0 auto;
  padding: 0 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subbar-links {
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subbar-links a:hover { text-decoration: underline; }

.subbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  width: 260px;
}

.search-input-wrap input[type="search"],
.search-input-wrap input[type="text"] {
  width: 100%;
  height: 30px;
  border-radius: 99px;
  border: none;
  padding: 0 34px 0 14px;
  font-size: 12.5px;
  background: #fff;
  color: #222;
  outline: none;
}

.search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 27px;
  height: 27px;
  border: 0;
  background: transparent;
  color: var(--pink-primary);
  cursor: pointer;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.18);
  padding: 3px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s, color 0.15s, transform 0.12s;
  line-height: 1;
  white-space: nowrap;
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lang-pill.active {
  background: #fff;
  color: #161922;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.lang-flag {
  font-size: 13px;
  line-height: 1;
}

.theme-btn {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 38px;
  height: 30px;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === CENTERED MAIN 2-COLUMN CONTAINER (1580px MAX-WIDTH, 215px SIDEBAR = 262px CARDS) === */
.page-container {
  max-width: 1580px;
  width: 92%;
  margin: 20px auto 50px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 215px;
  gap: 14px;
  align-items: start;
}

.page-container > * { min-width: 0; }

.category-section { margin-bottom: 32px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2.5px solid var(--pink-primary);
  gap: 10px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title { font-size: 16px; font-weight: 700; }
.section-date { font-size: 14.5px; color: #333333; font-weight: 400; }
.section-more-top { font-size: 13px; font-weight: 400; color: var(--pink-primary); }
.section-header.blue-border { border-bottom-color: var(--blue-accent); }
.section-footer-link { text-align: right; margin-top: 12px; }
.section-footer-link a { font-size: 14px; font-weight: 400; color: var(--pink-primary); text-decoration: underline; }

/* === 5-COLUMN WIDESCREEN VIDEO GRID (1:1 JGIRL.CO 262px CARDS, 8px GAP) === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 8px;
}

/* Make DLE navigation inside .video-grid span full width */
.video-grid > .navigation,
.video-grid > .pagination-bar,
.video-grid > .berrors {
  grid-column: 1 / -1;
}

.video-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #181a20;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover .thumb-wrap {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

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

.badge-new {
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--pink-bar);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 3px;
  z-index: 2;
}

.badge-duration {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(15, 18, 25, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}

.badge-date {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(55, 55, 55, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 1.5px 7px;
  border-radius: 3px;
  z-index: 2;
}

.badge-cam {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(236, 90, 133, 0.92);
  color: #fff;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  z-index: 2;
}

/* === JGIRL.CO SHORT STORY HOVER SCRUB SLIDER === */
.video-card .hover-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.48) !important;
  border-radius: 99px;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 6;
  pointer-events: none;
  overflow: visible !important;
}

.video-card .thumb-wrap[data-frames]:hover .hover-progress {
  opacity: 1 !important;
}

.video-card .scrub-fill {
  height: 100%;
  width: 0%;
  background: #eb5e8d;
  border-radius: 99px;
  position: relative;
}

.video-card .scrub-dot,
.fake-player .scrub-dot {
  position: absolute;
  right: -5.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #eb5e8d;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.card-body {
  padding: 5px 1px 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 400;
  color: #555555;
  gap: 6px;
}

.meta-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.meta-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-tags svg.icon {
  fill: #ec6b95;
  color: #ec6b95;
  width: 13px;
  height: 13px;
}

.meta-tags a {
  color: #555555;
  font-weight: 400;
}
.meta-tags a:hover {
  color: var(--pink-primary);
}

.host-badges { display: flex; gap: 3px; flex-shrink: 0; }

.host-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.host-uc { background: #2563eb; border-bottom: 2px solid #60a5fa; }
.host-rg { background: #383b42; border-bottom: 2px solid #f97316; }
.host-kf { background: #eb658d; }
.host-dd { background: #6366f1; }

.card-title {
  font-size: 14px;
  font-weight: 400;
  color: #111111;
  line-height: 1.44;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

html.dark-mode .card-title {
  color: var(--text-main);
}
html.dark-mode .card-meta-row,
html.dark-mode .meta-tags a,
html.dark-mode .section-date {
  color: var(--text-muted);
}

.video-card:hover .card-title { color: var(--pink-primary); }

/* === FULLSTORY MAIN CARD === */
.main-card-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.post-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.post-meta-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-left .m-item { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

.pink-tag-list { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.pink-tag-list a, .pink-tag {
  background: #eb658d;
  color: #fff !important;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 4px;
  transition: opacity 0.15s;
  display: inline-block;
}
.pink-tag-list a:hover, .pink-tag:hover { opacity: 0.85; }

/* Heart Rating Widget */
.star-widget.heart-rating {
  --heart-color: #dc366b;
  --heart-outline: #a87b8a;
  display: inline-flex;
  align-items: center;
  background: #fff3f7;
  border: 1px solid #efc4d2;
  border-radius: 8px;
  padding: 6px 10px;
  gap: 10px;
  min-height: 42px;
  color: var(--heart-color);
  user-select: none;
}
html.dark-mode .star-widget.heart-rating {
  --heart-color: #ff769d;
  --heart-outline: #9f8293;
  background: #291c29;
  border-color: #613046;
}
.heart-rating .star-icons { display: inline-flex; gap: 2px; color: var(--heart-outline); }
.heart-rating .star-icons button {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 28px;
  padding: 2px;
  border-radius: 5px;
  cursor: pointer;
}
.heart-rating .star-icons button .icon { width: 20px; height: 20px; stroke-width: 1.7; }
.heart-rating .star-icons button.is-selected { color: var(--heart-color); }
.heart-rating .star-icons button.is-selected .icon { fill: currentColor; }
.heart-rating .star-icons button:hover { background: rgba(235, 94, 141, 0.12); }
.heart-rating .star-text { color: var(--text-muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.heart-rating #rateVal { color: var(--heart-color); display: inline-block; min-width: 3ch; text-align: center; font-size: 14px; }
.heart-rating #rateCnt { display: inline-block; min-width: 1.5ch; text-align: center; }
.heart-rating .star-thanks { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 65px; height: 30px; flex-shrink: 0; position: relative; color: var(--heart-color); visibility: hidden; font-size: 11px; font-weight: 800; }
.heart-rating .star-thanks.is-visible { visibility: visible; }
.thanks-heart { display: inline-flex; }
.thanks-heart .icon { width: 15px; height: 15px; fill: currentColor; }
.heart-particle { position: absolute; left: 6px; top: 8px; opacity: 0; pointer-events: none; }
.heart-particle .icon { width: 9px; height: 9px; fill: currentColor; }
.particle-one { --drift: -14px; --turn: -20deg; }
.particle-two { --drift: 1px; --turn: 12deg; }
.particle-three { --drift: 16px; --turn: 25deg; }
.rating-celebrate .star-icons button.is-selected .icon { animation: heart-fill .42s ease-out both; animation-delay: calc(var(--heart-order) * 35ms); }
.rating-celebrate .thanks-heart { animation: heart-thanks .7s ease-out; }
.rating-celebrate .heart-particle { animation: heart-rise .8s ease-out both; }
.rating-celebrate .particle-two { animation-delay: .07s; }
.rating-celebrate .particle-three { animation-delay: .14s; }
@keyframes heart-fill { 0% { transform: scale(.85); } 45% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes heart-thanks { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.4); } 55% { transform: scale(.95); } 75% { transform: scale(1.15); } }
@keyframes heart-rise { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--drift), -25px) rotate(var(--turn)) scale(.8); } }

/* === TOP MAIN INTERACTIVE 12-FRAME SCRUBBER (BLOCK 1) === */
.fake-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  background: #0d0f14;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: ew-resize;
}

.fake-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.player-tag {
  background: rgba(15, 18, 25, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
}

.player-tag.hd { background: #eb5e8d; }

.fake-player .full-scrub-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 5px;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 99px;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.fake-player:hover .full-scrub-bar {
  opacity: 1;
}

.fake-player .full-scrub-bar .scrub-fill {
  height: 100%;
  width: 0%;
  background: #eb5e8d;
  border-radius: 99px;
  position: relative;
}

.fake-player .full-scrub-bar .scrub-dot {
  width: 13px;
  height: 13px;
  right: -6.5px;
}

/* === 1:1 JGIRL.CO SPLIT ROW: SECOND CAPTURE LEFT + PINK DOWNLOAD BOX RIGHT (BLOCK 2) === */
.split-preview-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.second-capture {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.second-capture:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(235, 94, 141, 0.28);
}

.second-capture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.second-capture .zoom-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(15, 18, 25, 0.84);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(235, 94, 141, 0.55);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
}

.dl-right-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pink-download-box {
  flex: 1;
  background: var(--pink-box-bg);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: none;
}

.dl-box-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dl-online-dot { font-size: 12px; color: #16a34a; font-weight: 700; }

.jgirl-dl-btn {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(236, 107, 149, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.jgirl-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 107, 149, 0.34);
}

.dl-btn-host {
  background: var(--pink-btn-left);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

.dl-btn-file {
  background: var(--pink-btn-right);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  min-width: 0;
}

.dl-action-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  padding: 1px 6px;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.3;
}

.dl-btn-file span { overflow-wrap: anywhere; text-decoration: underline; }
.dl-btn-file small { font-size: 10.5px; opacity: 0.92; font-weight: 400; }

.dl-vip-links { font-size: 13px; color: var(--text-muted); text-align: center; }
.dl-vip-links a { color: var(--pink-primary); font-weight: 700; text-decoration: none; }
.dl-vip-links a:hover { text-decoration: underline; }

.dl-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 400;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.dl-meta-table th,
.dl-meta-table td {
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  text-align: left;
  font-weight: 400;
  color: var(--text-main);
}

.dl-meta-table th {
  width: 112px;
  white-space: nowrap;
}

/* === DESCRIPTION BOX === */
.desc-box {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px 20px 12px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
  background: var(--bg-card);
  overflow-wrap: anywhere;
}

.desc-content.is-collapsed {
  max-height: 290px;
  overflow: hidden;
}

.desc-footer-toggle {
  text-align: right;
  margin-top: 6px;
}

.desc-toggle-btn {
  border: none;
  background: transparent;
  color: var(--pink-primary);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 0;
}

.desc-toggle-btn:hover {
  opacity: 0.82;
}

.desc-box img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}

/* === PINK SECTION BAR & RELATED GRID === */
.pink-section-bar {
  background: linear-gradient(90deg, #ec6b95 0%, rgba(236, 107, 149, 0.25) 75%, transparent 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 4px;
  margin: 0 0 14px;
}

.related-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  margin-bottom: 24px;
  list-style: none;
}

/* === RIGHT SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-box {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 11px 11px;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 4px;
  font-size: 14.5px;
  font-weight: 400;
  color: #333333;
  border-bottom: none;
}
.sidebar-nav li:first-child a {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.sidebar-nav li a .icon { display: none; }
html.dark-mode .sidebar-nav li a,
html.dark-mode .side-title {
  color: var(--text-main);
}
.sidebar-nav li a:hover { color: var(--pink-primary); }

.vip-guide-box {
  background: linear-gradient(135deg, rgba(240,82,131,0.12) 0%, rgba(99,102,241,0.12) 100%);
  border: 1px solid rgba(240, 82, 131, 0.35);
  border-radius: var(--radius-card);
  padding: 11px 11px;
}
.vip-guide-box h4 { font-size: 13.5px; font-weight: 700; color: var(--pink-primary); margin-bottom: 6px; }
.vip-guide-box p { font-size: 12.5px; font-weight: 400; color: var(--text-muted); margin-bottom: 10px; }
.vip-btn {
  display: block;
  text-align: center;
  background: var(--pink-bar);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.vip-btn.secondary { background: #333740; }

.side-title {
  text-align: center;
  font-size: 14.5px;
  font-weight: 400;
  color: #333333;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.side-title .icon { display: none; }

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  counter-reset: rank-counter;
}

.rank-item {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9.2;
  background: #111;
  border: 1px solid var(--border-color);
  counter-increment: rank-counter;
}

.rank-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rank-num {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.rank-num::before {
  content: counter(rank-counter);
}

.rank-overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 18, 25, 0.72);
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.tag-cloud a {
  background: #ec6b95;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 400;
  padding: 2.5px 8px;
  border-radius: 4px;
  display: inline-block;
}
.tag-cloud a:hover { opacity: 0.85; }

/* === POPULAR VENDORS (人気作者) SIDEBAR LIST & CARD VENDOR LINKS === */
.vendor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.vendor-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5.5px 6px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-main);
  border-radius: 5px;
  transition: background 0.15s ease, color 0.15s ease;
}

.vendor-list li a:hover {
  background: var(--pink-soft);
  color: var(--pink-primary);
}

.vendor-list .vendor-icon,
.vendor-link .icon {
  fill: var(--pink-primary);
  color: var(--pink-primary);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-left .vendor-link {
  color: var(--text-main);
  font-weight: 700;
  transition: color 0.15s ease;
}

.meta-left .vendor-link:hover {
  color: var(--pink-primary);
  text-decoration: underline;
}

/* === DLE PAGINATION BAR === */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 34px 0 10px;
  flex-wrap: wrap;
}

.pagination-bar .pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-bar .pages a,
.pagination-bar .pages span,
.pagination-bar .page-num {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.pagination-bar .pages a:hover,
.pagination-bar .page-num:hover {
  border-color: var(--pink-primary);
  color: var(--pink-primary);
}

.pagination-bar .pages span:not(.nav_ext),
.pagination-bar .page-num.active,
.pagination-bar .page-num.next-btn {
  background: var(--pink-primary);
  border-color: var(--pink-primary);
  color: #fff;
}

/* === FULLSCREEN SCREENSHOT SHEET LIGHTBOX === */
.screenlist-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 10, 15, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  animation: lb-fade 0.16s ease-out;
}
@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 18, 26, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 13px;
  flex-shrink: 0;
}
.lightbox-close {
  background: #eb5e8d;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.lightbox-close:hover { filter: brightness(1.08); }
.lightbox-stage {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox-img {
  max-width: 95vw;
  max-height: calc(100vh - 86px);
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.lightbox-img.is-zoomed {
  max-width: none;
  max-height: none;
  width: 140%;
  cursor: zoom-out;
  margin: auto;
}

/* === FOOTER === */
.site-footer {
  background: #1a1d26;
  color: #e5e7eb;
  padding: 32px 0 26px;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: 1580px;
  width: 92%;
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 240px 200px 1fr;
  gap: 24px;
}

.footer-col h4 { font-size: 13px; margin-bottom: 10px; color: #fff; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul li a { font-size: 12px; color: #cbd5e1; text-decoration: underline; }
.footer-copy { text-align: right; align-self: end; font-size: 12px; color: #94a3b8; }

/* DLE Info/Error alert boxes */
.berrors {
  background: var(--bg-card);
  border: 1px solid var(--pink-primary);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

/* === 1:1 JGIRL.CO POPUP PREVIEW PLAYER MODAL === */
.jgirl-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: jgirlFadeIn 0.14s ease-out;
}

@keyframes jgirlFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.jgirl-preview-close {
  position: fixed;
  top: 16px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.jgirl-preview-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

.jgirl-preview-box {
  position: relative;
  width: min(680px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
  user-select: none;
  cursor: ew-resize;
}

.jgirl-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
  pointer-events: none;
}

.jgirl-preview-cam {
  position: absolute;
  right: 12px;
  bottom: 22px;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: #ec6590;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.jgirl-preview-cam svg {
  width: 13px;
  height: 13px;
}

.jgirl-preview-slider {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 4;
}

.jgirl-preview-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

.jgirl-preview-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ec6b95;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: left 0.04s linear;
}

/* Responsive Breakpoints */
@media (max-width: 1360px) {
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .subbar-inner { height: auto; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
  .subbar-right { margin-left: auto; }
}
@media (max-width: 980px) {
  .page-container { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-preview-dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .top-brand-area, .subbar-inner, .page-container, .footer-inner { width: 100%; }
  .folder-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-tab { min-width: 0; padding: 0 7px; }
  .subbar-right { width: 100%; margin-left: 0; }
  .search-input-wrap { width: auto; flex: 1; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-copy { text-align: left; }
}

/* === CLEAN SEARCH PAGE STYLES === */
.searchpage {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin-bottom: 25px;
}
.searchpage .title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}
.searchpage #searchinput {
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  color: var(--text-main) !important;
  background: var(--bg-card) !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.searchpage #searchinput:focus {
  border-color: var(--pink-primary) !important;
  box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.15) !important;
}
.searchpage .search_result_num {
  padding: 11px 16px;
  background: rgba(232, 62, 140, 0.06);
  border-left: 4px solid var(--pink-primary);
  border-radius: 4px;
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

/* === TAG CLOUD DIRECTORY PAGE (/tags/) === */
.tag-page-container,
.video-grid > .tag-page-container,
.video-grid > .box.story {
  grid-column: 1 / -1;
  width: 100%;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  margin-bottom: 25px;
  box-sizing: border-box;
}

.tag-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color, #edf0f5);
  margin-bottom: 20px;
}

.tag-search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.tag-search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}

.tag-search-input-wrap input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 20px;
  border: 1px solid var(--border-color, #d1d5db);
  background: var(--bg-body, #f9fafb);
  color: var(--text-main, #111827);
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.tag-search-input-wrap input:focus {
  border-color: #ec6b95;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(236, 107, 149, 0.15);
}

.tag-stats-badge {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  background: var(--bg-body, #f3f4f6);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-stats-badge strong {
  color: #ec6b95;
}

.tag-cloud-grid,
.tag_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  align-items: center;
}

.tag-cloud-grid span.tag-item,
.tag-cloud-grid > span,
.tag_list > span {
  display: inline-flex;
}

.tag-cloud-grid a,
.tag_list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  background: #f8f9fa;
  color: #374151 !important;
  border: 1px solid #e5e7eb;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.3;
}

.tag-cloud-grid a .tag-count,
.tag_list a .tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: #6b7280;
  transition: all 0.18s ease;
}

/* Tiered popular tag hierarchy */
.tag-cloud-grid .clouds_xlarge a,
.tag_list .clouds_xlarge a {
  background: #ec6b95;
  color: #ffffff !important;
  border-color: #ec6b95;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(236, 107, 149, 0.25);
}

.tag-cloud-grid .clouds_xlarge a .tag-count,
.tag_list .clouds_xlarge a .tag-count {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.tag-cloud-grid .clouds_large a,
.tag_list .clouds_large a {
  background: #fff0f5;
  color: #c71f59 !important;
  border-color: #f7b7cb;
  font-weight: 600;
}

.tag-cloud-grid .clouds_large a .tag-count,
.tag_list .clouds_large a .tag-count {
  background: rgba(236, 107, 149, 0.15);
  color: #c71f59;
}

.tag-cloud-grid .clouds_medium a,
.tag_list .clouds_medium a {
  background: #fff8fa;
  border-color: #fad1de;
}

/* Hover effects */
.tag-cloud-grid a:hover,
.tag_list a:hover {
  background: #ec6b95 !important;
  color: #ffffff !important;
  border-color: #ec6b95 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 107, 149, 0.32);
}

.tag-cloud-grid a:hover .tag-count,
.tag_list a:hover .tag-count {
  background: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

/* Dark mode */
.dark-mode .tag-page-container,
.dark-mode .video-grid > .tag-page-container,
.dark-mode .video-grid > .box.story {
  background: #17191e;
  border-color: #272a33;
}

.dark-mode .tag-search-bar {
  border-bottom-color: #272a33;
}

.dark-mode .tag-search-input-wrap input {
  background: #0f1115;
  border-color: #2e323d;
  color: #f3f4f6;
}

.dark-mode .tag-search-input-wrap input:focus {
  border-color: #ec6b95;
  background: #15171d;
}

.dark-mode .tag-stats-badge {
  background: #232731;
  color: #9ca3af;
}

.dark-mode .tag-cloud-grid a,
.dark-mode .tag_list a {
  background: #1f232b;
  color: #e5e7eb !important;
  border-color: #2e333e;
}

.dark-mode .tag-cloud-grid a .tag-count,
.dark-mode .tag_list a .tag-count {
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

.dark-mode .tag-cloud-grid .clouds_large a,
.dark-mode .tag_list .clouds_large a {
  background: rgba(236, 107, 149, 0.15);
  color: #ff85ad !important;
  border-color: rgba(236, 107, 149, 0.35);
}

.dark-mode .tag-cloud-grid .clouds_large a .tag-count,
.dark-mode .tag_list .clouds_large a .tag-count {
  background: rgba(236, 107, 149, 0.25);
  color: #ff85ad;
}

.dark-mode .tag-cloud-grid a:hover,
.dark-mode .tag_list a:hover {
  background: #ec6b95 !important;
  color: #ffffff !important;
}

