:root {
  /* 90s NEON LIGHT-MODE DEFAULT THEME */

  --bg-page: #fffaf5;            /* warm off-white */
  --bg-card: #ffffff;            /* pure white card */
  --border-card: #ffc8f0;        /* soft neon pink border */

  --accent: #ff4fa3;             /* hot pink */
  --accent-soft: #ffe66b;        /* neon pastel yellow */
  --accent-muted: #25c6ff;       /* bright turquoise */
  --accent-deep: #b56dff;        /* vivid purple */

  --text-main: #2d1b33;          /* dark plum */
  --text-muted: #7b6589;         /* muted mauve/lavender */

  --tag-bg: #fff0ff;             /* pale pink/purple */
  --tag-border: #ffb3e6;         /* stronger pink */

  --radius-card: 10px;
  --shadow-soft: 0 10px 24px rgba(188, 140, 255, 0.22);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* 90s notebook / stationery vibe */
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 228, 138, 0.32), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(173, 226, 255, 0.36), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 179, 230, 0.35), transparent 55%),
    #fffaf5;
  color: var(--text-main);
  line-height: 1.6;
}

/* ===== Header & Nav ===== */

.site-header {
  position: relative;
  z-index: 50;
  background: linear-gradient(
    135deg,
    #ffe7b2 0%,
    #ffd0f4 35%,
    #d0f2ff 70%,
    #e1d0ff 100%
  );
  color: var(--text-main);
  padding: 3rem 1.5rem 2.25rem;
  border-bottom: 3px solid rgba(181, 109, 255, 0.3);
  box-shadow: 0 14px 30px rgba(188, 140, 255, 0.3);
}

/* soft neon glow overlay */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0, rgba(255, 79, 163, 0.18), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(37, 198, 255, 0.2), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
  pointer-events: none;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 60;
}

.site-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--accent-deep);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 10px rgba(255, 230, 107, 0.7);
}

.site-subtitle {
  margin: 0;
  font-size: 0.95rem;
  max-width: 32rem;
  color: var(--text-muted);
}

/* Top-level nav bar (the pill) */
.site-nav {
  position: relative;
  z-index: 70;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  margin-top: 1.2rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(37, 198, 255, 0.5);
  box-shadow: 0 6px 14px rgba(188, 140, 255, 0.3);
  bottom: -5rem;

}

/* TOP-LEVEL NAV ITEMS */
.site-nav a,
.site-nav button,
.site-nav span {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-main);
  background: none;
  border: none;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  border-radius: 999px;
}

/* Active fandom pill */
.nav-pill--active {
  background: linear-gradient(135deg, #25c6ff, #ff4fa3);
  border: 1px solid #ffe66b;
  box-shadow: 0 0 14px rgba(255, 79, 163, 0.8);
  color: #fffdfc;
  font-weight: 600;
}

/* ===== Dropdowns: Fandoms / Misc Art / Shrines ===== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  position: relative;
  font-size: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-main);
}

.nav-dropdown-toggle:hover {
  border-color: rgba(181, 109, 255, 0.7);
  background: rgba(255, 255, 255, 0.9);
}

/* Main dropdown panel */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  min-width: 160px;
  padding: 0.75rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(188, 140, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
}

/* Show on hover (desktop) */
.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
}

/* Group labels like "RPF", "Live-Action TV" */
.nav-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text-muted);
}

.nav-dropdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  opacity: 0.9;
}

/* Links directly inside dropdown (no sub-submenu) */
.nav-dropdown-menu a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.12rem 0;
}

.nav-dropdown-menu a:hover {
  color: var(--accent-muted);
}

/* ===== Subdropdowns (RPF ▸, Live-Action TV ▸, etc.) ===== */

.nav-subdropdown {
  position: relative;
}

.nav-subdropdown-toggle {
  font-size: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-main) !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-subdropdown-toggle:hover {
  background: rgba(255, 187, 238, 0.25);
}

/* Flyout submenu for each category */
.nav-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.4rem;
  min-width: 180px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(188, 140, 255, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 110;
}

.nav-submenu a {
  display: block;
  font-size: 0.85rem;
  padding: 0.15rem 0;
  text-decoration: none;
  color: var(--text-muted);
}

.nav-submenu a:hover {
  color: var(--accent-muted);
}

/* Show submenu on hover */
.nav-subdropdown:hover .nav-submenu {
  display: block;
}

/* ===== Responsive tweaks for nav ===== */

@media (max-width: 520px) {
  .site-header {
    padding: 2.2rem 1.1rem 1.8rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    padding-inline: 0.9rem;
    gap: 0.4rem;
  }
}

/* ===== Main Content ===== */

.page-wrap {
  max-width: var(--max-width);
  margin: 2.5rem auto 3.5rem;
  padding: 0 1.5rem 0.5rem;
}

.section-heading {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.section-subheading {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fic-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ===== Fic Card ===== */

.fic-card {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  gap: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease-out,
              box-shadow 0.18s ease-out,
              border-color 0.18s ease-out;
  margin-bottom: 1.25rem;
}

.fic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 79, 163, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(37, 198, 255, 0.16), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

/* little color top strip */
.fic-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.3rem;
  background: var(--tag-border);
  border-radius: 8px 8px 0 0;
}

.fic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(188, 140, 255, 0.4);
  border-color: var(--accent);
}

.fic-card:hover::before {
  opacity: 1;
}

/* Base cover: portrait by default */
.fic-cover {
  border-radius: calc(var(--radius-card) - 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 179, 230, 0.7);
  background: #fdf3ff;
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 3 / 4;
  max-width: 230px;
  width: 100%;
  align-self: flex-start;
}

.fic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Landscape / square variants */
.fic-cover--square {
  aspect-ratio: 4 / 3;
}
.fic-cover--square2 {
  aspect-ratio: 1 / 1;
}

/* No-cover cards */
.fic-card--no-cover .fic-cover {
  border-style: dashed;
  background: #fff5ff;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.fic-card--no-cover .fic-cover::before {
  content: "no cover (yet)";
  opacity: 0.7;
}

/* Ribbon */
.ribbon {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-deep);
  color: #fffafb;
  font-size: 0.9rem;
  padding: 15px 16px;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-weight: 600;
}

.ribbon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  border-width: 6px 6px 0 0;
  border-style: solid;
  border-color: var(--accent-deep) transparent transparent transparent;
}

.blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent-muted);
  background: rgba(181, 109, 255, 0.09);
  border-radius: 4px;
  color: var(--text-main);
  font-style: italic;
}

.fic-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.fic-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.fic-title a {
  text-decoration: none;
  color: inherit;
}

.fic-title a:hover {
  color: var(--accent-muted);
}

.fic-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.fic-meta span {
  white-space: nowrap;
}

.fic-meta-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  color: var(--accent-muted);
}

.fic-summary {
  margin: 0.35rem 0 0;
  font-size: 0.93rem;
  color: var(--text-main);
}

.fic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.fic-tag {
  font-size: 0.78rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(255, 179, 230, 0.5);
}

.fic-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* Main "Read" button */
.btn-read {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid #ffe66b;
  background: linear-gradient(135deg, #25c6ff, #ffe66b, #ff4fa3);
  color: #2d1b33;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.btn-read:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 14px rgba(255, 230, 107, 0.8);
}

/* Art button */
.btn-art {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #ff4fa3, #b56dff, #25c6ff);
  border: 1px solid #ffb3e6;
  color: #2d1b33;
  text-shadow: 0 0 4px rgba(255, 245, 252, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-art:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 14px rgba(181, 109, 255, 0.8);
}

/* Playlist button */
.btn-playlist {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #25c6ff, #7dffb3, #ffe66b);
  border: 1px solid #b8ffe0;
  color: #2d1b33;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-playlist:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 14px rgba(37, 198, 255, 0.8);
}

/* Series button */
.btn-series {
  background: linear-gradient(135deg, #e3e6ff, #b8c2ff, #ffffff);
  border: 1px solid #cfd6ff;
  color: #2d1b33;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-series:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 12px rgba(191, 197, 255, 0.7);
}

/* ===== Responsive ===== */

@media (max-width: 800px) {
  .fic-card {
    grid-template-columns: 1fr;
  }

  .fic-cover {
    max-height: 260px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 2.2rem 1.1rem 1.8rem;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    padding-inline: 0.7rem;
    gap: 0.4rem;
  }

  .page-wrap {
    margin-top: 1.8rem;
  }

  .fic-card {
    padding: 1rem 0.9rem;
  }
}

/* ===== Single-fic Art / Extras Pages ===== */

.work-section {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.6rem 1.6rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.work-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.28rem;
  background: var(--accent-soft);
  border-radius: 10px 10px 0 0;
}

.section-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ===== Art Grid ===== */

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.art-tile {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(181, 109, 255, 0.3);
  display: block;
  box-shadow: 0 10px 24px rgba(188, 140, 255, 0.22);
}

.art-tile a {
  display: block;
  background: #ffffff;
}

.art-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 4 / 5;
}

.art-caption {
  padding: 0.6rem 0.75rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.art-caption:empty {
  display: none;
}

/* ===== Kudos / Footer Area ===== */

.kudos-text {
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  color: var(--text-main);
}

.kudos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

/* AO3 heart button */
.btn-ao3-heart {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background: linear-gradient(135deg, #ff4f9c, #ff9de3, #ffeafd);
  border: 1px solid #ffb8e9;
  color: #2d1b33;
  text-shadow: 0 0 4px rgba(255, 240, 248, 0.95);
}

.btn-ao3-heart:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 14px rgba(255, 140, 196, 0.85);
}

/* ===== Lightbox Overlay ===== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 18, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-backdrop.is-visible {
  display: flex;
}

.lightbox-image-wrapper {
  padding: 0.6rem;
  background: #050018;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95);
}

#lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--accent-soft);
  opacity: 0.9;
}

.thumbblur {
  -webkit-filter: blur(15px);
  filter: blur(15px);
}

/* Playlist grid */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  margin-top: 0.75rem;
}

.playlist-block {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(188, 140, 255, 0.35);
  padding: 1.1rem 1.25rem 1.4rem;
  box-shadow: 0 14px 28px rgba(188, 140, 255, 0.25);
}

.playlist-heading {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.playlist-text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.playlist-text a {
  color: var(--accent-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.playlist-text a:hover {
  color: var(--accent);
}

.playlist-embed iframe {
  display: block;
  width: 100%;
  border: none;
}