[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
html[data-view-pending] body { visibility: hidden; }
html[data-view-failed] .page-container { display: none; }
[data-icon] { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }
#rateVal, #rateCnt { display: inline-block; min-width: 2ch; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.image-unavailable { opacity: 0; }
.image-fallback { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #88909d; font-size: 26px; pointer-events: none; }
.second-capture { position: relative; }
.icon { display: inline-block; width: 1em; height: 1em; min-width: 1em; vertical-align: -0.15em; stroke-width: 1.8; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--pink-primary); outline-offset: 3px; }
.pink-subbar :focus-visible { outline-color: #fff; }
.search-input-wrap input:focus-visible { outline-color: #222; }
.theme-btn { width: 38px; padding: 0; flex: 0 0 38px; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.page-container { grid-template-columns: minmax(0, 1fr) 290px; }
.page-container > *, .video-card, .card-body, .footer-inner > *, .subbar-links, .dl-btn-file { min-width: 0; }
.video-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.related-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-meta-row { gap: 6px; }
.card-title, .post-title, .guide-title, .rank-overlay-title, .footer-inner, .step-bullet { overflow-wrap: anywhere; }
.post-meta-tags-row, .star-widget, .dl-box-title { flex-wrap: wrap; }
.star-icons button { appearance: none; border: 0; background: none; color: inherit; width: 25px; height: 28px; padding: 3px; cursor: pointer; }
.star-icons button .icon { width: 18px; height: 18px; }
.star-icons button.is-selected .icon { fill: currentColor; }
.star-icons button:disabled { cursor: default; }
.star-text { white-space: nowrap; }
.heart-rating {
  --heart-color: #dc366b;
  --heart-outline: #a87b8a;
  background: #fff3f7;
  border: 1px solid #efc4d2;
  border-radius: 8px;
  padding: 7px 10px;
  gap: 10px;
  min-height: 46px;
  max-width: 100%;
  color: var(--heart-color);
}
html.dark-mode .heart-rating { --heart-color: #ff769d; --heart-outline: #9f8293; background: #291c29; border-color: #613046; }
.heart-rating .star-icons { gap: 2px; color: var(--heart-outline); }
.heart-rating .star-icons button { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 30px; padding: 3px; border-radius: 5px; transition: color .15s, background-color .15s; }
.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:hover { background: rgba(235, 94, 141, .12); }
.heart-rating .star-text { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.heart-rating #rateVal { color: var(--heart-color); min-width: 3ch; font-size: 14px; }
.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; }
.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); } }
@media (max-width: 380px) {
  .heart-rating { gap: 6px; padding: 6px 8px; }
  .heart-rating .star-icons button { width: 25px; }
  .heart-rating .star-thanks { width: 22px; }
  .heart-rating .thanks-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rating-celebrate .icon, .rating-celebrate .thanks-heart, .rating-celebrate .heart-particle { animation: none !important; }
}
.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; }
.search-input-wrap input { font-size: 12.5px; }
.search-input-wrap { flex: 0 1 250px; }
.search-input-wrap input::-webkit-search-cancel-button { margin-right: 4px; }
.pagination-bar { flex-wrap: wrap; }
.page-num { cursor: pointer; }
.empty-state { padding: 32px 0; color: var(--text-muted); text-align: center; }
[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.jgirl-dl-btn[aria-disabled="true"]:hover { transform: none; }
.dl-online-dot { color: var(--text-muted); }
.dl-btn-file span { overflow-wrap: anywhere; }
.dl-btn-file small { white-space: normal; }
.fake-player { cursor: default; }
.big-play-btn { padding-left: 0; }
.fake-player:hover img, .fake-player:hover .big-play-btn { transform: none; }
.player-controls { pointer-events: none; }
.timeline-fill { width: 0; }
.host-switcher { display: flex; flex-wrap: wrap; }
.host-tab-btn { min-width: 0; max-width: 100%; }
.pink-toc-box { min-width: 0; max-width: 100%; }
.host-guide-panel { min-width: 0; }
.guide-pending { padding: 30px 0; color: var(--text-muted); }
.category-section, .step-header-bar, #dlBox, #ranking, #rank { scroll-margin-top: 110px; }
@media (max-width: 1360px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1200px) {
  .subbar-inner { height: auto; min-height: 44px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
  .subbar-links { flex-wrap: wrap; gap: 5px 8px; }
  .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%; }
  .brand-left { gap: 12px; 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; min-width: 0; }
  .search-input-wrap input { font-size: 16px; }
  .subbar-links { font-size: 12px; }
  .subbar-links > span { overflow-wrap: anywhere; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .main-card-wrap, .guide-card { padding: 16px 12px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-copy { text-align: left; }
  .section-header { gap: 10px; flex-wrap: wrap; }
  .section-title { font-size: 16px; }
  .post-title { font-size: 19px; }
  .pink-download-box { padding: 16px 10px; }
  .jgirl-dl-btn { grid-template-columns: 106px minmax(0, 1fr); }
  .dl-btn-host, .dl-btn-file { padding: 8px; }
  .fake-player { aspect-ratio: 4 / 3; }
  .player-top-badges { top: 8px; left: 8px; right: 8px; gap: 6px; flex-wrap: wrap; }
  .player-tag { padding: 4px 7px; font-size: 11px; }
  .big-play-btn { width: 54px; height: 54px; font-size: 23px; }
  .play-hint { font-size: 11px; max-width: 90%; text-align: center; }
  .player-controls { padding: 0 8px; font-size: 10px; }
  .related-grid-3 .card-meta-row { flex-wrap: wrap; font-size: 10px; }
  .host-tab-btn { flex: 1 1 210px; font-size: 13px; padding: 10px; }
  .guide-title { font-size: 20px; }
  .rg-top-black, .rg-orange-bar { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .rg-menu-items { flex-wrap: wrap; gap: 10px; }
  .rg-body-area { padding: 18px 10px; }
  .rg-plans-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-form-row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); }
  .rg-form-mock > [style*="margin-left"] { margin-left: 0 !important; }
  .direct-cta-box { padding: 16px 12px; }
  .direct-cta-btn { max-width: 100%; overflow-wrap: anywhere; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* === JGIRL.CO SHORT STORY HOVER SCRUB SLIDER === */
.video-grid .video-card .hover-play {
  display: none !important;
}
.video-grid .video-card .thumb-wrap:hover img {
  transform: none !important;
}
.video-grid .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-grid .video-card .thumb-wrap[data-frames]:hover .hover-progress {
  opacity: 1 !important;
}
.video-grid .video-card . badge-date {
  transition: opacity 0.15s ease;
}
.video-grid .video-card .scrub-fill {
  height: 100%;
  width: 0%;
  background: #eb5e8d;
  border-radius: 99px;
  position: relative;
}
.video-grid .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);
}

.fake-player .full-scrub-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 44px;
  height: 6px;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 99px;
  z-index: 4;
  pointer-events: none;
}
.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: 14px;
  height: 14px;
  right: -7px;
}

.vip-gate-modal {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 22, 0.93);
  backdrop-filter: blur(6px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.vip-gate-badge {
  background: rgba(235, 94, 141, 0.2);
  border: 1px solid #eb5e8d;
  color: #ff85ad;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.vip-gate-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.vip-gate-desc {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.vip-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.vip-gate-btn-primary {
  background: linear-gradient(135deg, #eb5e8d, #d9386a);
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(235, 94, 141, 0.4);
}
.vip-gate-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.vip-gate-close {
  margin-top: 12px;
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.vip-login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin-bottom: 10px;
}
.vip-login-input {
  flex: 1 1 160px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  outline: none;
}
.vip-login-input::placeholder {
  color: #94a3b8;
}
.vip-login-input:focus {
  border-color: #eb5e8d;
  background: rgba(255, 255, 255, 0.16);
}
.vip-login-submit {
  flex: 1 1 100%;
  background: linear-gradient(135deg, #eb5e8d, #d9386a);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(235, 94, 141, 0.4);
}
.vip-login-submit:hover {
  filter: brightness(1.06);
}
.vip-login-msg {
  font-size: 12.5px;
  min-height: 18px;
  margin-bottom: 8px;
}
.vip-login-msg.error {
  color: #fda4af;
  font-weight: 700;
}
.prem-user-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(235, 94, 141, 0.55);
  color: #fff;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
}
.prem-logout-btn {
  background: rgba(235, 94, 141, 0.22);
  border: 1px solid #eb5e8d;
  color: #ffd1e1;
  border-radius: 99px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.prem-logout-btn:hover {
  background: #eb5e8d;
  color: #fff;
}
