:root {
  /* LED ZEPPELIN II THEME – warm sepia rock poster */

  --bg-page: #160d08;            /* deep brown/near-black */
  --bg-card: #f6ebd4;            /* warm cream for cards */
  --border-card: #b37b4a;        /* mid sepia */

  --accent: #e0aa5b;             /* golden highlight */
  --accent-soft: #f3c57d;        /* softer gold/smoke */
  --accent-muted: #cd8e6c;       /* rosy tan (logo-ish) */
  --accent-deep: #7b3c27;        /* dark reddish brown */

  --text-main: #2b1a11;          /* dark brown text */
  --text-muted: #7b614f;         /* softer brown */

  --tag-bg: #f0e1c7;             /* pale parchment */
  --tag-border: #c89c63;         /* dusty gold */

  --radius-card: 10px;
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.45);
  --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, #5c3620 0, transparent 55%),
    radial-gradient(circle at 70% 0, #c18a4c 0, transparent 55%),
    #160d08;
  color: var(--text-main);
  line-height: 1.6;
}

/* ===== Header & Nav ===== */

.site-header {
  position: relative;
  z-index: 50;
  background:
    radial-gradient(circle at 70% 0, #f6e2b8 0, transparent 60%),
    linear-gradient(135deg, #4e2415 0, #8b4b2a 40%, #3b2215 100%);
  color: var(--text-main);
  padding: 3rem 1.5rem 2.25rem;
  border-bottom: 3px solid rgba(246, 226, 184, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

/* soft “smoke/cloud” glow */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 15%, rgba(244, 218, 174, 0.55), transparent 60%),
    radial-gradient(circle at 10% 0, rgba(227, 167, 102, 0.35), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.85;
  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: #fef5dd;
  text-shadow:
    0 0 6px rgba(56, 28, 16, 0.9),
    0 0 20px rgba(0, 0, 0, 0.9);
}

.site-subtitle {
  margin: 0;
  font-size: 0.95rem;
  max-width: 32rem;
  color: rgba(248, 233, 202, 0.9);
}

/* Top-level nav bar (the pill) */
.site-nav {
  position: relative;
  z-index: 70;
  background: rgba(22, 13, 8, 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(243, 197, 125, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.95);
}

/* TOP-LEVEL NAV ITEMS */
.site-nav a,
.site-nav button,
.site-nav span {
  font-size: 0.9rem;
  text-decoration: none;
  color: #f8ead0;
  background: none;
  border: none;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  border-radius: 999px;
}

/* Active fandom pill (Led Zeppelin) */
.nav-pill--active {
  background: linear-gradient(135deg, #f3c57d, #e0aa5b);
  border: 1px solid #ffe7af;
  box-shadow: 0 0 16px rgba(243, 197, 125, 0.9);
  color: #3b2215;
  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: #f8ead0;
}

.nav-dropdown-toggle:hover {
  border-color: rgba(243, 197, 125, 0.8);
  background: rgba(29, 18, 12, 0.95);
}

/* 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: #190f0a;
  border: 1px solid rgba(243, 197, 125, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.98);
  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.85;
}

/* Links directly inside dropdown (no sub-submenu) */
.nav-dropdown-menu a {
  font-size: 0.88rem;
  text-decoration: none;
  color: #e6d2b5;
  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: #f3e1c0 !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-subdropdown-toggle:hover {
  background: rgba(192, 138, 90, 0.28);
}

/* 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: #190f0a;
  border: 1px solid rgba(243, 197, 125, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.98);
  display: none;
  z-index: 110;
}

.nav-submenu a {
  display: block;
  font-size: 0.85rem;
  padding: 0.15rem 0;
  text-decoration: none;
  color: #e6d2b5;
}

.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: #a77447;
}

.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 10% 0, rgba(243, 197, 125, 0.18), transparent 60%),
    radial-gradient(circle at 85% 0, rgba(205, 142, 108, 0.14), transparent 60%);
  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 14px 32px rgba(0, 0, 0, 0.85);
  border-color: var(--accent);
}

.fic-card:hover::before {
  opacity: 1;
}

/* Base cover */
.fic-cover {
  border-radius: calc(var(--radius-card) - 2px);
  overflow: hidden;
  border: 1px solid rgba(140, 92, 54, 0.55);
  background: #28140d;
  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: #28140d;
  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: #f8ead0;
  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(205, 142, 108, 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-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(60, 32, 18, 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 #ffe0a7;
  background: linear-gradient(135deg, #f3c57d, #e0aa5b);
  color: #3b2215;
  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, 249, 232, 0.7);
}

.btn-read:hover {
  filter: brightness(1.07);
  box-shadow: 0 0 14px rgba(243, 197, 125, 0.95);
}

/* Secondary buttons (art / playlist / series) */

.btn-art {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #c97b7a, #cd8e6c, #f3c57d);
  border: 1px solid #f3d2b5;
  color: #2b1a11;
  text-shadow: 0 0 3px rgba(255, 244, 230, 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.08);
  box-shadow: 0 0 14px rgba(205, 142, 108, 0.7);
}

.btn-playlist {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #a97541, #d6a15a, #f6e2b8);
  border: 1px solid #f2d59d;
  color: #2b1a11;
  text-shadow: 0 0 3px rgba(255, 248, 224, 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 14px rgba(214, 161, 90, 0.8);
}

.btn-series {
  background: linear-gradient(135deg, #573528, #caa476, #f6ead6);
  border: 1px solid #f0dec0;
  color: #160d08;
  text-shadow: 0 0 3px rgba(255, 246, 225, 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.06);
  box-shadow: 0 0 12px rgba(202, 164, 118, 0.9);
}

.btn-trans {
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #cd8e6c, #e5b39a, #fde9d8);
  border: 1px solid #f3d0be;
  color: #3b2215;
  text-shadow: 0 0 3px rgba(255, 240, 230, 0.8);
  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 14px rgba(205, 142, 108, 0.7);
}

/* ===== 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: 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: #190f0a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(243, 197, 125, 0.5);
  display: block;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
}

.art-tile a {
  display: block;
  background: #190f0a;
}

.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, Zep 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, #d36a5f, #e79b7a, #ffe3c4);
  border: 1px solid #f7c5a4;
  color: #2b1a11;
  text-shadow: 0 0 4px rgba(255, 245, 233, 0.9);
}

.btn-ao3-heart:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 14px rgba(221, 115, 96, 0.9);
}

/* ===== Lightbox Overlay ===== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 3, 2, 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: #190f0a;
  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: #190f0a;
  border-radius: 12px;
  border: 1px solid rgba(243, 197, 125, 0.5);
  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);
}

.playlist-embed iframe {
  display: block;
  width: 100%;
  border: none;
}