@font-face {
  font-family: 'SansSerifBldFLF';
  src: url('/assets/fonts/SansSerifBookFLF.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SansSerifBldFLF';
  src: url('/assets/fonts/SansSerifFLF-Demibold.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SansSerifBldFLF';
  src: url('/assets/fonts/SansSerifBldFLF.otf') format('opentype');
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}
@font-face {
  font-family: 'SansSerifBldFLF';
  src: url('/assets/fonts/SansSerifBldFLF-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ============ base ============ */
:root {
  --bg: #fcfcfc;
  --text: #000000;
  --muted: #999999;
  --dark-bg: #222222;
  --dark-text: #fcfcfc;
  --throbber: #00ffff;
  --throbber-size: 28px;
  --fade-ms: 400ms;
  --body-col: 36rem;
  --breakpoint: 768px;
  --modal-margin: 6rem;
  --modal-margin-mobile: 1rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

#app { position: relative; }

.page { position: relative; opacity: 1; transition: opacity var(--fade-ms) ease; }
.page.fade-out { opacity: 0; }
.page.fade-in-start { opacity: 0; }

.page.dark { background: var(--dark-bg); color: var(--dark-text); }

.body-col {
  width: 100%;
  max-width: var(--body-col);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.vertical-gap { height: 3rem; }

/* title-block shares the same width as the .wide-media image below it,
   via the same --media-w custom property, so their edges line up. */
.title-block {
  width: var(--media-w, 36rem);
  max-width: 100%;
  margin: 2rem auto 0;
}
.page-title {
  font-size: var(--title-size, 4.25rem);
  margin: 0;
}
.article-author { font-weight: 700; font-size: 1.25rem; margin: 0.5rem 0 0; }
.article-date-line { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.87rem; margin: 0 0 1rem; }

@media (max-width: 768px) {
  .page-title { font-size: var(--title-size-mobile, 2.4rem); }
  .title-block { width: calc(100% - 3rem); }
}

/* ============ wide media (images that fill their box, cropped centered) ============ */
.wide-media {
  width: var(--media-w, 100%);
  height: var(--media-h, auto);
  max-width: 100%;
  margin: 2rem auto 0;
  border-radius: 4px;
  overflow: hidden;
}
.fill-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .wide-media {
    width: calc(100% - 3rem);
    height: auto;
    aspect-ratio: var(--media-ratio, auto);
  }
}

/* ============ header / nav ============ */
.site-header { width: 100%; }

.site-banner {
  width: 100%;
  height: 3.6rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-banner-text {
  color: #fff;
  font-size: var(--banner-size, 2.2rem);
}
@media (max-width: 768px) {
  .site-banner-text { font-size: var(--banner-size-mobile, 1.4rem); }
  .site-banner { height: 2.6rem; }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 0;
  position: relative;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-size: 1rem;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 250ms ease;
}
@media (hover: hover) {
  .nav-links a:hover::after { transform: scaleX(1); }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 24px;
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: inherit;
    padding: 1rem 0 1.5rem;
    z-index: 20;
  }
  .nav-links.open { display: flex; }
}

/* ============ footer ============ */
.site-footer {
  position: relative;
  min-height: 6rem;
  margin-top: 4rem;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-thumb {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 4px;
  overflow: hidden;
}
.footer-copyright { margin: 0; font-size: 0.85rem; color: var(--muted); position: relative; top: 10px;}

/* ============ article lists ============ */
.article-list {
  list-style: none;
  margin: 6rem auto 0;
  padding: 0;
  width: 100%;
  max-width: 36rem;
}

[data-page="home"] .article-list {
  margin-top: 0rem;
}

.article-list--narrow { max-width: 34.5rem; }

.article-item + .article-item { margin-top: 1.25rem; }
.article-item a {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: center;
}
.article-thumb { width: 6rem; height: 6rem; overflow: hidden; border-radius: 4px; }
.article-meta { display: flex; flex-direction: column; justify-content: flex-start; height: 6rem; }
.article-date { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.87rem; }
.article-title { font-size: 1rem; margin-top: 0.35rem; }

.empty-note { font-size: 2rem; margin: 2rem 0; }

/* ============ toggle (latest/starred, porne gallery numbers) ============ */
.toggle-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.toggle-word {
  position: relative;
  cursor: pointer;
  padding-bottom: 2px;
}
.toggle-word::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 250ms ease;
}
@media (hover: hover) {
  .toggle-word:hover::after { transform: scaleX(1); }
}
.toggle-word.active::after { transform: scaleX(1); }

.toggle-panel-fade { transition: opacity 250ms ease; }
.toggle-panel-fade.fading { opacity: 0; }

/* ============ social / arrow links (matches inspiration) ============ */
.link-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 2rem auto 0;
}
.link-row a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #525252;
  font-size: 1rem;
}
.link-row a:hover { color: var(--text); }

/* ============ throbber ============ */
.throbber {
  position: fixed;
  top: 50%;
  left: 50%;
  width: var(--throbber-size);
  height: var(--throbber-size);
  margin: calc(var(--throbber-size) / -2) 0 0 calc(var(--throbber-size) / -2);
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 255, 0.25);
  border-top-color: var(--throbber);
  animation: throbber-spin 0.8s linear infinite;
  z-index: 1000;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.throbber.visible { opacity: 1; }
@keyframes throbber-spin { to { transform: rotate(360deg); } }

/* ============ art gallery ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 12rem);
  gap: 0;
  width: 36rem;
  max-width: 100%;
  margin: 0 auto;
}
.gallery-item { width: 12rem; height: 12rem; padding: 0; overflow: hidden; }
.gallery-img { transition: transform 250ms ease, box-shadow 250ms ease; }
@media (hover: hover) {
  .gallery-item:hover .gallery-img {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; width: 100%; max-width: 20rem; }
  .gallery-item { width: 100%; height: 20rem; }
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  transition: opacity 250ms ease;
}
.gallery-modal.visible { opacity: 1; }
.gallery-modal[hidden] { display: none; }

.gallery-modal-frame {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1rem;
  max-width: calc(100vw - (2 * var(--modal-margin)));
  max-height: calc(100vh - (2 * var(--modal-margin)));
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 250ms ease, transform 250ms ease;
}
.gallery-modal-frame.visible { opacity: 1; transform: scale(1); }
.gallery-modal-img { max-width: 100%; max-height: calc(100vh - (2 * var(--modal-margin)) - 2rem); object-fit: contain; border-radius: 0.75rem; }
.gallery-modal-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal-download {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .gallery-modal-frame {
    max-width: calc(100vw - (2 * var(--modal-margin-mobile)));
    max-height: calc(100vh - (2 * var(--modal-margin-mobile)));
  }
  .gallery-modal-img { max-height: calc(100vh - (2 * var(--modal-margin-mobile)) - 2rem); }
}

/* ============ arrow buttons (gallery cycling) ============ */
.gallery-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2b2b2b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 150ms ease;
}
@media (hover: hover) {
  .gallery-arrow:not([disabled]):hover { transform: translateY(-2px); }
  .gallery-arrow:not([disabled]):hover svg { transform: scale(1.1); }
}
.gallery-arrow svg { transition: transform 150ms ease; }
.gallery-arrow[disabled] { color: #6b6b6b; cursor: default; }

/* ============ intro text ============ */
.about-section ol, .intro-text ol, .article-body ol { padding-left: 1rem; }
.about-section, .intro-text, .article-body { line-height: 1.6; }

/* ============ music player ============ */
.music-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 33vh;
  background: #ececec;
  border-top: 1px solid #d0d0d0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.player-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #d8d8d8;
}

[data-page="music"] .page-content{
  padding-bottom: 4rem;
}

.player-controls { display: flex; gap: 0.75rem; align-items: center; }
.player-controls button { width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; }

.player-now-playing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  background: #fff;
  text-align: left;
}
.now-playing-icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 4px;
  background: #e4e4e450;
  color: #b7b7b7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.now-playing-info { flex: 1; min-width: 0; }
.player-song-name { font-size: 0.85rem; margin-bottom: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-progress { height: 4px; background: #d0d0d060; border-radius: 2px; overflow: hidden; }
.player-progress-fill { height: 100%; width: 0%; background: #888; }

.player-volume { display: flex; align-items: center; gap: 0.5rem; justify-content: flex-end; }
.volume-icon { display: flex; flex: none; color: #999; }
.player-volume input[type="range"] {
  flex: 1;
  max-width: 8rem;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: #bbb;
  border-radius: 1px;
  outline: none;
}
.player-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #999;
  cursor: pointer;
}
.player-volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #999;
  cursor: pointer;
}
.player-volume input[type="range"]::-moz-range-track {
  height: 2px;
  background: #bbb;
  border-radius: 1px;
}

.player-list-wrap { flex: 1; overflow-y: auto; }
.player-list { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.player-list th { text-align: left; padding: 0.4rem 1.5rem; font-size: 0.75rem; color: var(--muted); position: sticky; top: 0; background: #ececec; }
.player-list td { padding: 0.4rem 1.5rem; cursor: pointer; }
.player-list tbody tr:nth-child(odd) { background: #f9f9f9; }
.player-list tbody tr:nth-child(even) { background: #eee; }
.player-list tbody tr.active { background: #cfe6ff; }

@media (max-width: 768px) {
  .music-player { height: auto; max-height: 45vh; }
  .player-top { grid-template-columns: 1fr; gap: 0.5rem; padding: 0.6rem 1rem; }
  .player-volume { display: none; }
}

/* ============ porne ============ */
.page.dark .music-player,
.page.dark .player-list th,
.page.dark { }

.age-gate {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 2rem;
}
.age-gate[hidden] { display: none; }
.age-gate-box { max-width: 32rem; text-align: center; }
.age-gate-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.age-gate-actions button {
  border: 1px solid #fcfcfc;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}
.age-gate-actions button:hover { background: #fcfcfc; color: #000; }
.age-gate-copyright { margin-top: 2rem; color: #999; font-size: 0.85rem; }

.porne-content[hidden] { display: none; }

.photo-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.photo-gallery-frame { position: relative; width: 42rem; max-width: 60vw; height: 23rem; overflow: hidden; border-radius: 0.5rem; flex: none; }
.photo-gallery-img { transition: filter 400ms ease; }
.photo-gallery-img.mist { filter: blur(14px); }
.mist-toggle {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mist-toggle svg{
  transform: scale(3.5);
}

.porn-site-link-row { display: flex; justify-content: flex-end; width: 42rem; max-width: 60vw; margin: 0.5rem auto 0; }
.porn-site-link { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; color: #ccc; }
.porn-site-link:hover { color: #fff; }

.gallery-caption {
  width: calc(42rem - 4rem);
  max-width: calc(60vw - 4rem);
  margin: 0.5rem auto 0;
  text-align: left;
  color: #ccc;
  font-size: 0.9rem;
}

.play-ring-row { display: flex; justify-content: center; margin-top: 1.5rem; }
.play-ring { position: relative; width: 3rem; height: 3rem; }
.play-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.play-ring-bg, .play-ring-progress {
  stroke-width: 5;
  fill: transparent;
}
.play-ring-bg { stroke: #000; }
.play-ring-progress { stroke: #2ecc71; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset 150ms linear; }
.play-ring-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: #fff; }

@media (max-width: 768px) {
  .photo-gallery-frame { width: 16rem; height: 16rem; }
  .porn-site-link-row, .gallery-caption { width: 16rem; max-width: 100%; }
}
