    :root {
      /* METALLICA — RIDE THE LIGHTNING THEME */

      --bg-page: #0a0e2a;            /* dark navy background */
      --bg-card: #1a1f47;            /* storm indigo */
      --border-card: #3fa9f5;        /* lightning blue */

      --accent: #6ec8ff;             /* electric blue hover */
      --accent-soft: #b2e3ff;        /* pale plasma */
      --accent-muted: #4a3f8c;       /* voltage violet */
      --accent-deep: #3fa9f5;        /* main electric pop */

      --text-main: #e8ecff;          /* ice white/blue */
      --text-muted: #bac2d9;         /* cool muted blue */

      --tag-bg: #0f132f;             /* deep storm blue */
      --tag-border: #6ec8ff;         /* electric accent */

      --radius-card: 10px;
      --shadow-soft: 0 0 18px rgba(26, 143, 255, 0.35);
      --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, #161a3a 0, #050714 55%, #000 100%);
      color: var(--text-main);
      line-height: 1.6;
    }

    /* ===== Header & Nav ===== */

 .site-header {
  position: relative;
  z-index: 50;
  background: radial-gradient(circle at top, #3b4ab0 0, #171a3f 45%, #050714 100%);
  color: var(--text-main);
  padding: 3rem 1.5rem 2.25rem;
  border-bottom: 3px solid rgba(178, 227, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* subtle lightning-ish glow */
.site-header::after {
  background:
    radial-gradient(circle at 15% 0, rgba(110, 200, 255, 0.15), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(63, 169, 245, 0.2), transparent 60%) !important;
  mix-blend-mode: screen;
  opacity: 0.8;
  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-soft);
  text-shadow:
    0 0 6px rgba(178, 227, 255, 0.7),
    0 0 20px rgba(0, 0, 0, 0.9);
}

.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(5, 7, 20, 0.88);
  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(110, 200, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.85);
  bottom: -5rem;
  
}

/* TOP-LEVEL NAV ITEMS (About, Originals, etc.) */
.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 (e.g., Metallica) */
.nav-pill--active {
  background: linear-gradient(135deg, #6ec8ff, #3fa9f5);
  border: 1px solid #b2e3ff;
  box-shadow: 0 0 14px rgba(111, 200, 255, 0.8);
  color: #050714;
  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(110, 200, 255, 0.7);
  background: rgba(15, 19, 47, 0.9); /* soft navy wash */
}

/* 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: #050714;
  border: 1px solid rgba(178, 227, 255, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
  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.8;
}

/* 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-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: var(--text-main) !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-subdropdown-toggle:hover {
  background: rgba(63, 169, 245, 0.15);
}

/* 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: #050714;
  border: 1px solid rgba(178, 227, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.95);
  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-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.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-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; /* matches the .work-section margin */
    }

    .fic-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top, rgba(110, 200, 255, 0.16), transparent 58%);
      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 0 25px rgba(111, 200, 255, 0.7);
      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(178, 227, 255, 0.35);
  background: #050714;
  display: flex;
  align-items: center;
  justify-content: center;

  /* key bits */
  aspect-ratio: 3 / 4;      /* default: book-cover shape */
  max-width: 230px;
  width: 100%;
  align-self: flex-start;   /* DON'T stretch to full row height */
}

/* Image fills the box, respects aspect-ratio */
.fic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Landscape / letterbox-ish */
.fic-cover--square {
  aspect-ratio: 4 / 3;      /* wider than tall */
}

/* Perfect square */
.fic-cover--square2 {
  aspect-ratio: 1 / 1;
}

/* If you still use no-cover cards, keep this but inherit the new sizing */
.fic-card--no-cover .fic-cover {
  border-style: dashed;
  background: #050714;
  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: var(--text-main);
 font-size: 0.9rem;
  padding: 15px 16px;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  font-weight: 600;
}

/* Little triangle notch */
.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(198, 167, 214, 0.08);
  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-deep);
    }

    .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-soft);
    }

    .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(111, 200, 255, 0.4);
    }

    .fic-actions {
      margin-top: 0.6rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      align-items: center;
    }

    .btn-read {
      font-size: 0.85rem;
      border-radius: 999px;
      padding: 0.35rem 0.9rem;
      border: 1px solid #b2e3ff;
      background: linear-gradient(135deg, #6ec8ff, #3fa9f5);
      color: #050714;
      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(245, 250, 255, 0.8);
    }

    .btn-read:hover {
      filter: brightness(1.1);
      box-shadow: 0 0 14px rgba(111, 200, 255, 0.85);
    }

.btn-art {
      font-size: 0.85rem;
      border-radius: 999px;
      padding: 0.35rem 0.9rem;
       background: linear-gradient(135deg, #c06bff, #6b5de2, #b2e3ff);
  border: 1px solid #dcbefe;
  color: #050714;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
      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.12);
  box-shadow: 0 0 14px rgba(193, 107, 255, 0.7);
    }

.btn-playlist {
      font-size: 0.85rem;
      border-radius: 999px;
      padding: 0.35rem 0.9rem;
      background: linear-gradient(135deg, #4cc7c2, #6ec8ff, #e0f7ff);
  border: 1px solid #c7faff;
  color: #050714;
  text-shadow: 0 0 4px rgba(240, 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-playlist:hover {
filter: brightness(1.12);
  box-shadow: 0 0 14px rgba(110, 200, 255, 0.8);
    }

.btn-series {
 background: linear-gradient(135deg, #3f4758, #abb4c6, #f5faff);
  border: 1px solid #e5eaf7;
  color: #0a0e2a;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
      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.1);
  box-shadow: 0 0 12px rgba(178, 196, 220, 0.8);
    }


    /* ===== 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 ===== */

/* Wrapper sections (Art Gallery, Kudos, etc.) */
.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);   /* pale lightning strip */
  border-radius: 10px 10px 0 0;
}

/* Section title inside work-section */
.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: #050714;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(178, 227, 255, 0.35);
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.art-tile a {
  display: block;
  background: #050714;
}

.art-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 4 / 5; /* poster-ish */
}

.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 (Metallica 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: linear-gradient(135deg, #ff4f88, #ff8bb3, #ffe5f2);
  border: 1px solid #ffc4de;
  color: #050714;
  text-shadow: 0 0 4px rgba(255, 240, 248, 0.9);
}

.btn-ao3-heart:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 14px rgba(255, 120, 170, 0.9);
}

/* ===== Lightbox Overlay ===== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;              /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* toggle this class in JS */
.lightbox-backdrop.is-visible {
  display: flex;
}

.lightbox-image-wrapper {
  padding: 0.6rem;
  background: #050714;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
}

/* important sizing */
#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.8;
}

.thumbblur {
  webkit-filter: blur(15px); /* Chrome, Safari, Opera */
    filter: blur(15px);
}
/* Two-column responsive layout for playlists */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  margin-top: 0.75rem;
}

/* Each side (A / B) */
.playlist-block {
  background: #050714; /* deep navy */
  border-radius: 12px;
  border: 1px solid rgba(178, 227, 255, 0.35);
  padding: 1.1rem 1.25rem 1.4rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.8);
}

.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);
}

/* Make sure the iframe behaves */
.playlist-embed iframe {
  display: block;
  width: 100%;
  border: none;
}
