:root {
  /* BREAKING BAD THEME – green lab glow */

  --bg-page: #050c06;            /* near-black green */
  --bg-card: #121a12;            /* dark bottle green */
  --border-card: #3b5a38;        /* muted lab green */

  --accent: #9acd32;             /* bright yellow-green */
  --accent-soft: #d4e157;        /* smoky chartreuse */
  --accent-muted: #5f8f4e;       /* mossy mid green */
  --accent-deep: #1b3b20;        /* deep bottle green */

  --text-main: #f3f7e5;          /* pale warm white */
  --text-muted: #b5c3a1;         /* desaturated sage */

  --tag-bg: #0c140c;             /* deep green */
  --tag-border: #9acd32;         /* neon tag outline */

  --radius-card: 10px;
  --shadow-soft: 0 0 18px rgba(154, 205, 50, 0.35); /* green glow */
  --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, #142512 0, transparent 45%),
    radial-gradient(circle at top right, rgba(212, 225, 87, 0.18), transparent 55%),
    radial-gradient(circle at bottom, #050c06 0, #020403 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 left, #243f20 0, #0b1409 55%, #020403 100%);
  color: var(--text-main);
  padding: 3rem 1.5rem 2.25rem;
  border-bottom: 3px solid rgba(154, 205, 50, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

/* smoky yellow overlay */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(212, 225, 87, 0.2), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(246, 233, 130, 0.18), transparent 60%);
  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(212, 225, 87, 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 */
.site-nav {
  position: relative;
  z-index: 70;
  background: rgba(5, 10, 5, 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(154, 205, 50, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.9);
  bottom: -5rem;

}

.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;
  position: relative;
}

/* underline hover */
.site-nav a::after,
.site-nav button::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--accent-muted);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.site-nav a:hover::after,
.site-nav button:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Active fandom pill */
.nav-pill--active {
  background: linear-gradient(135deg, var(--accent-muted), var(--accent-soft));
  border: 1px solid rgba(212, 225, 87, 0.9);
  box-shadow: 0 0 14px rgba(154, 205, 50, 0.7);
  color: #050c06;
  font-weight: 600;
}

.nav-pill--active::after {
  display: none;
}

/* ===== Dropdowns ===== */

.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(154, 205, 50, 0.7);
  background: rgba(5, 14, 6, 0.9);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  min-width: 160px;
  padding: 0.75rem;
  border-radius: 12px;
  background: #020403;
  border: 1px solid rgba(154, 205, 50, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.95);
  display: none;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
}

.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;
}

.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 */

.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(154, 205, 50, 0.18);
}

.nav-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0.4rem;
  min-width: 180px;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #020403;
  border: 1px solid rgba(154, 205, 50, 0.3);
  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);
}

.nav-subdropdown:hover .nav-submenu {
  display: block;
}

/* ===== Responsive 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 top, rgba(154, 205, 50, 0.18), transparent 58%);
  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: var(--tag-border);
  border-radius: 8px 8px 0 0;
}

.fic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(154, 205, 50, 0.75);
  border-color: var(--accent-soft);
}

.fic-card:hover::before {
  opacity: 1;
}

/* cover */

.fic-cover {
  border-radius: calc(var(--radius-card) - 2px);
  overflow: hidden;
  border: 1px solid rgba(154, 205, 50, 0.45);
  background: #020403;
  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;
}

/* alt aspect ratios if you use them */
.fic-cover--square { aspect-ratio: 4 / 3; }
.fic-cover--square2 { aspect-ratio: 1 / 1; }

.fic-card--no-cover .fic-cover {
  border-style: dashed;
  background: #020403;
  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 tag (e.g. favorite) */
.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;
}
.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 styling */
.blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent-muted);
  background: rgba(33, 56, 32, 0.35);
  border-radius: 4px;
  color: var(--text-main);
  font-style: italic;
}

/* card text */

.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-summary a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(148, 182, 86, 0.12);
  border: 1px solid rgba(148, 182, 86, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fic-summary a:hover {
  background: rgba(212, 225, 87, 0.25);
  border-color: rgba(212, 225, 87, 0.55);
  color: var(--accent);
}


.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(154, 205, 50, 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 rgba(212, 225, 87, 0.9);
  background: linear-gradient(135deg, #2f5d2c, #4f8a3d, #d4e157);
  color: #050c06;
  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(248, 255, 225, 0.8);
}

.btn-read:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 14px rgba(154, 205, 50, 0.9);
}

/* You can keep these three for art/playlist/series links, recolored */

.btn-art {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #8e6e20, #d4b157, #f4e7a0);
  border: 1px solid #f4e7a0;
  color: #050c06;
  text-shadow: 0 0 4px rgba(255, 248, 200, 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.12);
  box-shadow: 0 0 14px rgba(244, 231, 160, 0.8);
}

.btn-playlist {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #1f4a3e, #4f8a72, #cde7d9);
  border: 1px solid #bfe0cd;
  color: #050c06;
  text-shadow: 0 0 4px rgba(232, 255, 244, 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(119, 187, 148, 0.9);
}

.btn-series {
  background: linear-gradient(135deg, #283226, #6f7b64, #d8e3c9);
  border: 1px solid #ccd9ba;
  color: #050c06;
  text-shadow: 0 0 3px rgba(248, 255, 232, 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.1);
  box-shadow: 0 0 12px rgba(200, 216, 175, 0.85);
}
/* ===== 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);   /* yellow-green 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: #020403; /* deep green-black */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(154, 205, 50, 0.4); /* green glow */
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

.art-tile a {
  display: block;
  background: #020403;
}

.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 – BREAKING BAD 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, #375a2c, #6f9b38, #d4e157);
  border: 1px solid rgba(212, 225, 87, 0.9);
  color: #050c06;
  text-shadow: 0 0 4px rgba(244, 255, 210, 0.9);
}

.btn-ao3-heart:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 14px rgba(154, 205, 50, 0.85);
}

/* ===== 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: #020403;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9);
}

/* 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: #020403; /* green-black instead of navy */
  border-radius: 12px;
  border: 1px solid rgba(154, 205, 50, 0.4);
  padding: 1.1rem 1.25rem 1.4rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.9);
}

.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;
}

/* ===== 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;
  }
}