:root {
  /* RUSH – 2112 THEME – cosmic neon space */

  --bg-page: #020614;            /* deep space */
  --bg-card: #071021;            /* dark navy card */
  --border-card: #233451;        /* cool blue border */

  --accent: #3dd5ff;             /* main cyan highlight */
  --accent-soft: #67e0ff;        /* softer cyan glow */
  --accent-muted: #a18bff;       /* lavender/purple accent */
  --accent-deep: #ff3b3b;        /* red star / danger */

  --text-main: #f5fbff;          /* bright cool white */
  --text-muted: #9fb3d6;         /* desaturated blue-gray */

  --tag-bg: rgba(8, 24, 54, 0.9);  /* dark chip background */
  --tag-border: #3dd5ff;           /* neon cyan border */

  --radius-card: 10px;
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.7);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(61, 213, 255, 0.25) 0, transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(161, 139, 255, 0.28) 0, transparent 55%),
    radial-gradient(circle at 15% 70%, rgba(255, 59, 59, 0.18) 0, transparent 55%),
    #000000;
  color: var(--text-main);
  line-height: 1.6;
}

/* ===== Header & Nav ===== */

.site-header {
  position: relative;
  z-index: 50;
  background:
    radial-gradient(circle at 10% 0, rgba(61, 213, 255, 0.35) 0, transparent 55%),
    radial-gradient(circle at 85% 0, rgba(161, 139, 255, 0.35) 0, transparent 60%),
    linear-gradient(180deg, #020614 0, #05091c 35%, #050716 100%);
  color: var(--text-main);
  padding: 3rem 1.5rem 2.25rem;
  border-bottom: 3px solid rgba(61, 213, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
}

/* soft “starfield” glow */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 15%, rgba(103, 224, 255, 0.4), transparent 60%),
    radial-gradient(circle at 20% 0, rgba(255, 59, 59, 0.25), transparent 55%);
  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: #e7f3ff;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 1),
    0 0 24px rgba(61, 213, 255, 0.65);
}

.site-subtitle {
  margin: 0;
  font-size: 0.95rem;
  max-width: 32rem;
  color: rgba(214, 230, 255, 0.92);
}

/* Top-level nav bar (the pill) */
.site-nav {
  position: relative;
  z-index: 70;
  background: rgba(4, 8, 25, 0.92);
  backdrop-filter: blur(10px);
  margin-top: 1.2rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(103, 224, 255, 0.6);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 1);
  bottom: -5rem;
  
}

/* TOP-LEVEL NAV ITEMS */
.site-nav a,
.site-nav button,
.site-nav span {
  font-size: 0.9rem;
  text-decoration: none;
  color: #e5f1ff;
  background: none;
  border: none;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  border-radius: 999px;
}

/* Active fandom pill (Rush) */
.nav-pill--active {
  background: radial-gradient(circle at 20% 0, #ffffff 0, #9fdfff 40%, #68b8ff 65%, #2d5afc 100%);
  border: 1px solid #ffffff;
  box-shadow:
    0 0 14px rgba(103, 224, 255, 0.9),
    0 0 30px rgba(10, 155, 255, 0.9);
  color: #081024;
  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: #e5f1ff;
}

.nav-dropdown-toggle:hover {
  border-color: rgba(103, 224, 255, 0.9);
  background: rgba(6, 15, 42, 0.96);
}

/* 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: #050816;
  border: 1px solid rgba(103, 224, 255, 0.55);
  box-shadow: 0 16px 38px rgba(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-soft);
  opacity: 0.9;
}

/* Links directly inside dropdown (no sub-submenu) */
.nav-dropdown-menu a {
  font-size: 0.88rem;
  text-decoration: none;
  color: #d3e1ff;
  padding: 0.12rem 0;
}

.nav-dropdown-menu a:hover {
  color: var(--accent-soft);
}

/* ===== 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: #e5f1ff !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-subdropdown-toggle:hover {
  background: rgba(45, 90, 252, 0.22);
}

/* 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: #050816;
  border: 1px solid rgba(103, 224, 255, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 1);
  display: none;
  z-index: 110;
}

.nav-submenu a {
  display: block;
  font-size: 0.85rem;
  padding: 0.15rem 0;
  text-decoration: none;
  color: #d3e1ff;
}

.nav-submenu a:hover {
  color: var(--accent-soft);
}

/* 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.7rem;
    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-soft);
}

.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 12% 0, rgba(61, 213, 255, 0.2), transparent 60%),
    radial-gradient(circle at 88% 10%, rgba(161, 139, 255, 0.18), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(255, 59, 59, 0.14), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

/* top strip */
.fic-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.3rem;
  background: linear-gradient(90deg, #3dd5ff, #a18bff, #ff3b3b);
  border-radius: 8px 8px 0 0;
}

.fic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 1);
  border-color: var(--accent-soft);
}

.fic-card:hover::before {
  opacity: 1;
}

/* Base cover */
.fic-cover {
  border-radius: calc(var(--radius-card) - 2px);
  overflow: hidden;
  border: 1px solid rgba(61, 213, 255, 0.5);
  background: #050816;
  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-ish */
.fic-cover--square {
  aspect-ratio: 4 / 3;
}

/* Perfect square */
.fic-cover--square2 {
  aspect-ratio: 1 / 1;
}

/* No cover fallback */
.fic-card--no-cover .fic-cover {
  border-style: dashed;
  background: #050816;
  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 base */
.ribbon {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-deep);
  color: #ffecef;
  font-size: 0.9rem;
  padding: 15px 16px;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  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(20, 32, 72, 0.8);
  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-soft);
}

.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 10px rgba(61, 213, 255, 0.4);
}

.fic-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* ===== Buttons ===== */

.btn-read {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid #ffffff;
  background: radial-gradient(circle at 10% 0, #ffffff 0, #9fe3ff 35%, #3dd5ff 60%, #2137ff 100%);
  color: #050816;
  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.7);
}

.btn-read:hover {
  filter: brightness(1.08);
  box-shadow:
    0 0 16px rgba(103, 224, 255, 0.9),
    0 0 26px rgba(31, 112, 255, 0.9);
}

.btn-art {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #a18bff, #3dd5ff);
  border: 1px solid #d9d1ff;
  color: #050816;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
  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.1);
  box-shadow: 0 0 16px rgba(161, 139, 255, 0.9);
}

.btn-playlist {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #ff3b3b, #ff7c7c, #ffe1e1);
  border: 1px solid #ffd0d0;
  color: #050816;
  text-shadow: 0 0 3px rgba(255, 255, 255, 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-playlist:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(255, 86, 86, 0.9);
}

.btn-series {
  background: linear-gradient(135deg, #27345e, #3dd5ff, #a18bff);
  border: 1px solid #cde7ff;
  color: #050816;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
  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.08);
  box-shadow: 0 0 16px rgba(61, 213, 255, 0.9);
}

.btn-trans {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #a18bff, #ffb4e6, #ffffff);
  border: 1px solid #f4e4ff;
  color: #050816;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-trans:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(161, 139, 255, 0.9);
}

/* ===== Responsive ===== */

@media (max-width: 800px) {
  .fic-card {
    grid-template-columns: 1fr;
  }

  .fic-cover {
    max-height: 260px;
  }
}

@media (max-width: 520px) {
  .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: linear-gradient(90deg, #3dd5ff, #a18bff, #ff3b3b);
  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-soft);
}

/* ===== Art Grid ===== */

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.art-tile {
  background: #050816;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(103, 224, 255, 0.55);
  display: block;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 1);
}

.art-tile a {
  display: block;
  background: #050816;
}

.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-style heart button, 2112 version */
.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: radial-gradient(circle at 20% 0, #ffffff 0, #ff8b8b 35%, #ff3b3b 65%, #a00000 100%);
  border: 1px solid #ffd5d5;
  color: #050816;
  text-shadow: 0 0 4px rgba(255, 245, 245, 0.9);
}

.btn-ao3-heart:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(255, 59, 59, 0.95);
}

/* ===== Lightbox Overlay ===== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 2, 8, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-backdrop.is-visible {
  display: flex;
}

.lightbox-image-wrapper {
  padding: 0.6rem;
  background: #050816;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 1);
}

#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: #050816;
  border-radius: 12px;
  border: 1px solid rgba(103, 224, 255, 0.55);
  padding: 1.1rem 1.25rem 1.4rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 1);
}

.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-soft);
}

.playlist-text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.playlist-text a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.playlist-text a:hover {
  color: var(--accent);
}

.playlist-embed iframe {
  display: block;
  width: 100%;
  border: none;
}