#id_comment{
    width: 100%;
    height: 50px;
    background-color: #1e2a36;
    color: floralwhite;
    border-radius: 10px;

}
.comment{
    margin-left: 10px;
    background-color: #69007833;
    border-radius: 10px;
    padding-left: 1px;
    padding-bottom: 1px;
}
.comment-username{
    color: #e9657b;
}
.comment-username-link:hover .comment-username{
    text-decoration: underline;
}
.uploader-link .model-tag i{
    font-size: 11px;
}
.video-models-section {
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.video-models-section > p {
    bottom: auto;
    margin: 0 2px 0 0;
}
.video-data-item.video-model-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 3px 13px 3px 3px;
    border: 1px solid rgba(166, 172, 130, 0.42);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: floralwhite;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.video-model-pill-avatar {
    display: block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: var(--panel);
}
.video-model-pill .model-tag {
    margin: 0;
    white-space: nowrap;
}
.video-model-pill:hover {
    border-color: var(--sage);
    background: rgba(166, 172, 130, 0.14);
    transform: translateY(-1px);
}
.video-model-pill:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}
#comment-btn{
    display: inline-block;
    object-fit: contain;
    padding: 2px;
    border-radius: 2px;
    background-color: floralwhite;
    color: black;
}
#comment-btn:hover{
    cursor: pointer;
}
#sign-in-btn{
    background-color: floralwhite;
    height: fit-content;
    width: fit-content;
    font-size: 12px;
    border-radius: 10px;
}
/* Sign-in / register modal styles now live inline in
   templates/includes/signin_modal.html so the popup works on every page. */

/* "Most replayed" curve overlaid on the FluidPlayer seek bar (YouTube-style).
   Baseline sits on the timeline; the curve peaks at the most-rewatched segments
   and grows taller when the user hovers the scrub bar. */
.fluid_controls_progress_container {
  overflow: visible; /* let the curve extend above the thin track */
}
.heatmap-curve {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 100%;
  height: 14px;
  pointer-events: none; /* never block seeking/dragging */
  z-index: 2;
  transition: height 0.15s ease;
}
.heatmap-curve-fill {
  fill: rgba(255, 255, 255, 0.20);
}
/* Pointer devices: compact at rest, expand when hovering the scrub bar. */
@media (hover: hover) {
  .fluid_controls_progress_container:hover .heatmap-curve {
    height: 46px;
  }
  .fluid_controls_progress_container:hover .heatmap-curve-fill {
    fill: rgba(255, 255, 255, 0.30);
  }
}
/* Touch devices have no hover, so show a taller curve whenever controls are up. */
@media (hover: none) {
  .heatmap-curve {
    height: 30px;
  }
  .heatmap-curve-fill {
    fill: rgba(255, 255, 255, 0.28);
  }
}
.heatmap-curve-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke; /* constant line width despite viewBox stretch */
}

/* Saved positions share the seek bar's time scale and stay inside fullscreen. */
.video-positions[hidden],
.position-timeline-markers[hidden],
.video-position-chip[hidden],
.video-position-list[hidden],
.video-position-filter[hidden],
.video-positions-action[hidden],
.position-timeline-marker[hidden] { display: none !important; } /* FluidPlayer forces nested control divs to display. */
.video-positions {
  padding: 12px 14px;
  background: var(--panel);
  border-top: 1px solid rgba(166, 172, 130, 0.25);
}
.video-positions-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: floralwhite;
  font-size: 13px;
  font-weight: 700;
}
.video-positions-logo { display: inline-flex; width: 18px; height: 18px; color: var(--sage); }
.video-positions-logo svg,
.fake-fs-tool-positions svg { display: block; width: 100%; height: 100%; }
.video-positions-hint {
  margin-left: auto;
  color: #c5becb;
  font-size: 11px;
  font-weight: 400;
}
.video-positions.is-off .video-positions-hint { visibility: hidden; } /* keeps the buttons in place */
.video-positions.is-off .video-positions-heading { margin-bottom: 0; }

/* Hide-all and filter controls; the viewer's choice is saved by video_positions.js. */
.video-positions-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid rgba(250, 240, 230, 0.25);
  border-radius: 999px;
  background: transparent;
  color: floralwhite;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video-positions-action:hover { background: rgba(255, 255, 255, 0.08); }
.video-positions-action[aria-expanded="true"] { border-color: var(--sage); color: var(--sage); }
.video-positions-action:focus-visible,
.video-position-filter-option:focus-visible { outline: 2px solid floralwhite; outline-offset: 2px; }
#video-positions-toggle .when-off,
#video-positions-toggle[data-off="true"] .when-on { display: none; }
#video-positions-toggle[data-off="true"] .when-off { display: inline; }
#video-positions-all .when-some,
#video-positions-all[data-all="false"] .when-all { display: none; }
#video-positions-all[data-all="false"] .when-some { display: inline; }
.video-positions-empty[hidden] { display: none !important; }
.video-positions-empty { margin: 0 0 4px; color: #c5becb; font-size: 12px; }
.video-position-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(166, 172, 130, 0.18);
}
/* Off: grey and dashed. On: the position's colour, like its jump chip. */
.video-position-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px dashed rgba(250, 240, 230, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #8f8898;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video-position-filter-option:not([aria-pressed="true"]) .position-marker-icon { --position-color: #8f8898; }
.video-position-filter-option[aria-pressed="true"] {
  border: 1px solid var(--position-color);
  background: rgba(0, 0, 0, 0.25);
  color: floralwhite;
}
.video-position-list { display: flex; flex-wrap: wrap; gap: 7px; }
.video-position-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--position-color);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: floralwhite;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.position-marker-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--position-color);
  transform: rotate(45deg);
}
.position-marker-icon.has-glyph {
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: none;
  color: var(--position-color);
  transform: none;
}
.position-marker-icon.has-glyph svg { display: block; width: 100%; height: 100%; }
.video-position-chip:hover,
.video-position-chip.is-current { background: rgba(166, 172, 130, 0.16); }
.video-position-chip:disabled { opacity: 0.45; cursor: default; }
.video-position-chip:focus-visible,
.position-timeline-marker:focus-visible { outline: 2px solid floralwhite; outline-offset: 2px; }
.position-timeline-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.position-timeline-marker {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.position-timeline-marker .position-marker-icon {
  width: 10px;
  height: 10px;
  border: 1px solid #241e2c;
  box-shadow: 0 0 0 1px var(--position-color);
}
/* Glyph pins: a dark badge ringed in the position colour keeps them legible on any frame. */
.position-timeline-marker .position-marker-icon.has-glyph {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  padding: 3px;
  border: 1.5px solid var(--position-color);
  border-radius: 50%;
  background: #241e2c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.position-timeline-marker.is-current .position-marker-icon { box-shadow: 0 0 0 3px floralwhite; }
.position-marker-tooltip {
  display: none;
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 9px;
  border: 1px solid var(--position-color);
  border-radius: 6px;
  background: #241e2c;
  color: floralwhite;
  font: 12px/1.3 sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.position-timeline-marker:hover,
.position-timeline-marker:focus-visible { z-index: 1; }
.position-timeline-marker:hover .position-marker-tooltip,
.position-timeline-marker:focus-visible .position-marker-tooltip { display: block; }
.position-timeline-marker.is-near-start .position-marker-tooltip { left: 0; transform: none; }
.position-timeline-marker.is-near-end .position-marker-tooltip { left: auto; right: 0; transform: none; }

/* Mobile-only "fake fullscreen" button, injected by video_page.js to the left
   of FluidPlayer's Mini Player control. Hidden on pointer devices (desktop has
   working native fullscreen that keeps the heatmap). */
.fluid_controls_right .fake-fs-btn {
  display: none;           /* shown on touch devices only */
  width: 24px;            /* match FluidPlayer's 24x24 control buttons */
  height: 24px;
  float: right;           /* sit in the same floated row as the other controls */
  position: relative;
  padding-right: 5px;     /* same spacing the Mini Player button uses */
  margin-right: 12px;     /* breathing room from the native fullscreen button */
  text-align: center;
  cursor: pointer;
  background: none;       /* no inherited sprite behind the icon */
}
.fluid_controls_right .fake-fs-btn i {
  line-height: 24px;      /* vertically centre the icon in the 24px button */
  font-size: 16px;
  color: #fff;
}
@media (hover: none) {
  .fluid_controls_right .fake-fs-btn { display: inline-block; }
}

/* Fake-fullscreen state: expand the player to fill the viewport while the
   <video> stays inline (playsinline), so the controls + heatmap remain visible
   and larger. !important overrides the inline sizing FluidPlayer applies. */
.fluid_video_wrapper.fake-fs {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important; /* exclude the iOS Safari toolbars where supported */
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2147483647;
  background: #000;
  touch-action: none;       /* swipes drive seek/volume, not page scroll/zoom.
                               JS-driven native scrubber still works (uses touch
                               events, not browser panning). */
}
/* Holding a finger to seek/volume must not trigger text selection, the iOS
   long-press callout menu, or the grey tap-highlight flash. */
.fluid_video_wrapper.fake-fs,
.fluid_video_wrapper.fake-fs * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.fluid_video_wrapper.fake-fs video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* letterbox rather than crop on odd ratios */
}
body.fake-fs-lock { overflow: hidden !important; }

/* Centred feedback HUD shown by video_page.js while a seek/volume swipe is in
   progress. pointer-events:none so it never intercepts taps on the controls. */
.fluid_video_wrapper.fake-fs .fake-fs-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 132px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 12px;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 2147483647;
}
.fluid_video_wrapper.fake-fs .fake-fs-hud.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.fake-fs-hud-icon { font-size: 26px; line-height: 1; }
.fake-fs-hud-text { font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.fake-fs-hud-sub { font-size: 12px; opacity: .8; }
.fake-fs-hud-bar {
  width: 120px;
  height: 4px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  overflow: hidden;
}
.fake-fs-hud-fill { height: 100%; width: 0; background: #fff; border-radius: 2px; }

/* Heart that floats up from the touch point when a swipe-up registers a like.
   position:fixed because the fake-fs wrapper is fixed full-viewport, so the
   touch's clientX/clientY map straight to screen coordinates. */
.fake-fs-heart {
  position: fixed;
  z-index: 2147483647;
  margin: 0;
  color: #d53030;
  font-size: 46px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  animation: fake-fs-heart-rise 900ms ease-out forwards;
}
@keyframes fake-fs-heart-rise {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  40%  { opacity: 1; transform: translate(-50%, -90px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -180px) scale(0.9); }
}

/* Overlay system: feature panels shown inside fake fullscreen (gesture
   coaching, the swipe-like note, the model-videos picker...). video_page.js
   adds .fake-fs-overlay to every registered panel; -card is the shared
   centered dark-box skin. Hidden panels are pointer-events:none so a
   dismissed card can't keep eating center-screen taps at opacity 0. */
.fluid_video_wrapper.fake-fs .fake-fs-overlay {
  position: absolute;
  z-index: 2147483647;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.fluid_video_wrapper.fake-fs .fake-fs-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.fluid_video_wrapper.fake-fs .fake-fs-overlay-card {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: 86%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.fluid_video_wrapper.fake-fs .fake-fs-overlay-card.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

/* Tools layer: the top-right toggle reveals extra fake-fs controls; feature
   buttons sit at the screen edges above the video but below panels. */
.fake-fs-tools-toggle,
.fake-fs-tools {
  display: none;
}
.fluid_video_wrapper.fake-fs .fake-fs-tools-toggle {
  display: flex;
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  z-index: 2147483646;
  opacity: .85;
  transition: opacity .3s ease;
}
.fluid_video_wrapper.fake-fs.tools-on .fake-fs-tools-toggle {
  color: rgba(255, 107, 107, 1);
  opacity: 1;
}
.fluid_video_wrapper.fake-fs.tools-on .fake-fs-tools {
  display: block;
  transition: opacity .3s ease;
}
/* The tools chrome follows FluidPlayer's control-bar auto-hide: the bar's
   container carries fade_out once controls hide (initial_controls_show keeps
   them up before first play), and the toggle/tools are later siblings of it
   inside the wrapper — so the same tap that brings back the seek bar brings
   these back, with no JS observer. Panels (.fake-fs-overlay) deliberately
   stay up; only the chrome hides. */
.fluid_video_wrapper.fake-fs .fluid_controls_container.fade_out:not(.initial_controls_show) ~ .fake-fs-tools-toggle,
.fluid_video_wrapper.fake-fs .fluid_controls_container.fade_out:not(.initial_controls_show) ~ .fake-fs-tools {
  opacity: 0;
  pointer-events: none;
}
.fake-fs-tool-btn {
  display: flex;
  position: absolute;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  z-index: 2147483646;
}
.fake-fs-tool-videos {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
/* Directly under the model-videos button; struck through while positions are off. */
.fake-fs-tool-positions {
  top: calc(50% + 32px);
  right: 10px;
  box-sizing: border-box;
  padding: 10px;
  color: #b8e65c;
}
.fake-fs-tool-positions.is-off { color: rgba(255, 255, 255, 0.55); }
.fake-fs-tool-positions.is-off::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* Model-videos picker: centered sheet with 2x2 thumbnail pages. */
.fluid_video_wrapper.fake-fs .fake-fs-videos {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  width: min(92%, 560px);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.fluid_video_wrapper.fake-fs .fake-fs-videos.is-visible {
  transform: translate(-50%, -50%) scale(1);
}
.fake-fs-videos-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fake-fs-videos-title { font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.fake-fs-videos-close { background: none; border: none; color: #fff; font-size: 18px; width: 36px; height: 36px; }
.fake-fs-videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fake-fs-videos-note { grid-column: 1 / -1; text-align: center; font-size: 13px; opacity: .75; padding: 18px 0; }
.fake-fs-videos-item { position: relative; display: block; color: #fff; text-decoration: none; }
.fake-fs-videos-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: #111; }
.fake-fs-videos-len { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, 0.75); font-size: 11px; padding: 1px 5px; border-radius: 4px; }
.fake-fs-videos-name { display: block; font-size: 12px; line-height: 1.3; margin-top: 4px; max-height: 2.6em; overflow: hidden; }
.fake-fs-videos-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.fake-fs-videos-nav button { background: rgba(255, 255, 255, 0.12); border: none; color: #fff; width: 40px; height: 32px; border-radius: 8px; font-size: 14px; }
.fake-fs-videos-nav button:disabled { opacity: .35; }
.fake-fs-videos-page { font-size: 12px; opacity: .8; min-width: 42px; text-align: center; }
.fake-fs-hint-title { font-size: 15px; font-weight: 700; letter-spacing: .3px; margin-bottom: 10px; text-align: center; }
.fake-fs-hint ul { list-style: none; margin: 0; padding: 0; }
.fake-fs-hint li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; padding: 3px 0; }
.fake-fs-hint li i { width: 20px; text-align: center; color: #ff6b6b; flex: none; }
.fake-fs-hint-dismiss { margin-top: 10px; text-align: center; font-size: 11px; opacity: .6; }
.fake-fs-like-info-body { font-size: 14px; line-height: 1.5; text-align: center; }
.fake-fs-like-info .fake-fs-hint-title i { color: #ff6b6b; margin-right: 6px; }

/* Video category row + community tag contributor. */
.video-categories-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.video-categories-section > p { margin: 0 3px 0 0; }
.video-data-item.video-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.055);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.video-category-pill:hover {
  border-color: var(--sage);
  background: rgba(166, 172, 130, .13);
  transform: translateY(-1px);
}

.tag-contributor {
  width: 100%;
  margin: 18px 0 8px;
  color: var(--ink);
}
.tag-contributor-details {
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at 5% 0%, rgba(250, 93, 162, .12), transparent 38%),
    linear-gradient(145deg, rgba(58, 46, 70, .97), rgba(36, 30, 44, .98));
  box-shadow: 0 12px 30px rgba(12, 8, 16, .18);
}
.tag-contributor-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tag-contributor-summary::-webkit-details-marker { display: none; }
.tag-contributor-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(250, 93, 162, .34);
  border-radius: 13px;
  background: rgba(250, 93, 162, .12);
  color: var(--pink);
}
.tag-contributor-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.tag-contributor-copy strong { font-size: 14px; letter-spacing: .01em; }
.tag-contributor-copy small { color: var(--muted); font-size: 12px; }
.tag-contributor-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 750;
}
.tag-contributor-open i { font-size: 9px; transition: transform .2s ease; }
.tag-contributor-details[open] .tag-contributor-open i { transform: rotate(180deg); }
.tag-contributor-panel {
  padding: 17px;
  border-top: 1px solid var(--line);
}
.tag-contributor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.tag-contributor-heading h3,
.tag-contributor-guest h3 { margin: 0 0 4px; font-size: 16px; }
.tag-contributor-heading p,
.tag-contributor-guest p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.tag-review-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(166, 172, 130, .3);
  border-radius: 999px;
  background: rgba(166, 172, 130, .1);
  color: var(--sage);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-review-instant {
  border-color: rgba(250, 93, 162, .32);
  background: rgba(250, 93, 162, .1);
  color: #ff91c2;
}
#tag-contributor-form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-picker { position: relative; }
.tag-picker-search {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}
#tag-contributor-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: rgba(14, 10, 18, .42);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#tag-contributor-input::placeholder { color: rgba(199, 187, 212, .62); }
#tag-contributor-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(166, 172, 130, .12);
}
.tag-picker-options {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 230px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #211a29;
  box-shadow: 0 16px 35px rgba(7, 4, 10, .48);
  list-style: none;
}
.tag-picker-options.is-open { display: block; }
.tag-picker-options button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.tag-picker-options button:hover,
.tag-picker-options button:focus { background: rgba(166, 172, 130, .14); outline: none; }
.tag-contributor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 8px;
  margin-top: 11px;
}
.tag-contributor-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(250, 93, 162, .28);
  border-radius: 999px;
  background: rgba(250, 93, 162, .1);
  color: #ffd5e8;
  font-size: 12px;
  font-weight: 650;
}
.tag-contributor-chip button {
  display: grid;
  width: 19px;
  height: 19px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.tag-contributor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.tag-contributor-status { margin: 0; color: var(--muted); font-size: 11px; }
.tag-contributor-status.is-error { color: #ff9ca9; }
.tag-contributor-status.is-success { color: #bdde9e; }
.tag-contributor-submit,
.tag-contributor-login {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), #d84e91);
  box-shadow: 0 7px 18px rgba(250, 93, 162, .2);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease, opacity .15s ease;
}
.tag-contributor-submit:hover,
.tag-contributor-login:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tag-contributor-submit:disabled { box-shadow: none; cursor: not-allowed; opacity: .42; transform: none; }
.tag-contributor-submit.is-loading i { animation: tag-send-pulse .75s ease-in-out infinite alternate; }
@keyframes tag-send-pulse { to { opacity: .35; transform: translateX(3px); } }
.tag-contributor-guest {
  display: flex;
  align-items: center;
  gap: 13px;
}
.tag-contributor-guest > i { color: var(--sage); font-size: 22px; }
.tag-contributor-guest > div { min-width: 0; flex: 1; }

@media (max-width: 560px) {
  .tag-contributor-summary { min-height: 64px; padding: 10px 12px; }
  .tag-contributor-open { font-size: 0; }
  .tag-contributor-open i { font-size: 10px; }
  .tag-contributor-panel { padding: 14px 12px; }
  .tag-contributor-heading { flex-direction: column; gap: 9px; }
  .tag-contributor-footer { align-items: stretch; flex-direction: column; }
  .tag-contributor-submit { width: 100%; }
  .tag-contributor-guest { align-items: flex-start; flex-wrap: wrap; }
  .tag-contributor-login { width: 100%; }
}

/* Match the compact, always-visible FootPornX tag form. The safer searchable
   picker and moderation flow use that form's familiar dark presentation. */
#tag-block {
  width: 100%;
  height: fit-content;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  background: #1e1e1e;
  box-shadow: none;
  color: floralwhite;
}
#tag-block > form {
  height: 100%;
  margin: 0;
  overflow: visible;
  background: #1e1e1e;
}
#tag-block .form-items {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
#tag-block .form-items > label {
  display: block;
  flex: 0 0 100px;
  width: 100px;
  margin: 0 10px 0 0;
  color: floralwhite;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: normal;
  text-transform: none;
}
#tag-block .tag-picker { flex: 1; min-width: 0; }
#tag-block #tag-contributor-input {
  width: 100%;
  height: 35px;
  padding: 5px;
  border: 1px solid #444;
  border-radius: 6px;
  outline: none;
  background: #2f2f2f;
  box-shadow: none;
  color: white;
  font: inherit;
  font-size: 14px;
}
#tag-block #tag-contributor-input:focus {
  border-color: #777;
  box-shadow: none;
}
#tag-block .tag-picker-options {
  top: calc(100% + 4px);
  padding: 4px;
  border-color: #444;
  border-radius: 6px;
  background: #2f2f2f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
#tag-block .tag-picker-options button {
  padding: 8px;
  border-radius: 4px;
  color: white;
}
#tag-block .tag-picker-options button:hover,
#tag-block .tag-picker-options button:focus { background: #444; }
#tag-block .tag-contributor-chips {
  margin: 0 0 4px 110px;
}
#tag-block .tag-contributor-chip {
  padding: 4px 6px 4px 9px;
  border: 1px solid #555;
  background: #2f2f2f;
  color: floralwhite;
  font-size: 12px;
}
#tag-block .tag-contributor-chip button { background: #444; }
#tag-block #form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
#tag-block .tag-contributor-status {
  margin: 0;
  color: #b9b9b9;
  font-size: 12px;
}
#tag-block .tag-contributor-status:empty { display: none; }
#tag-block .tag-contributor-status.is-error { color: #ffb4b4; }
#tag-block .tag-contributor-status.is-success { color: floralwhite; }
#tag-block .submit-btn {
  display: inline-block;
  min-height: auto;
  width: fit-content;
  padding: 5px 10px;
  border: 0;
  border-radius: 10px;
  background: floralwhite;
  box-shadow: none;
  color: black;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease;
}
#tag-block .submit-btn:hover { background: #eee; filter: none; transform: none; }
#tag-block .submit-btn:disabled { cursor: not-allowed; opacity: .45; }
#tag-block .tag-contributor-submit { margin-left: auto; }
#tag-block .tag-contributor-guest {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
#tag-block .tag-contributor-guest p {
  margin: 0 auto 0 0;
  color: floralwhite;
  font-size: 14px;
}

@media (max-width: 560px) {
  #tag-block { padding: 15px; }
  #tag-block .form-items { align-items: stretch; flex-direction: column; }
  #tag-block .form-items > label { width: auto; margin: 0 0 7px; }
  #tag-block .tag-contributor-chips { margin-left: 0; }
  #tag-block #form-footer { align-items: flex-end; flex-direction: column; }
  #tag-block .tag-contributor-guest { align-items: stretch; flex-direction: column; }
  #tag-block .tag-contributor-login { width: fit-content; align-self: flex-end; }
}
