:root {
  --bg: #0d1020;
  --bg-2: #151a32;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f1df;
  --muted: #c8bfdc;
  --gold: #d8b25d;
  --green: #77c7a2;
  --rose: #d9899a;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216,178,93,.22), transparent 32rem),
    radial-gradient(circle at top right, rgba(119,199,162,.14), transparent 30rem),
    linear-gradient(135deg, #090b16 0%, #11172b 45%, #171024 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.7; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--gold);
  color: #15100a;
  padding: .7rem 1rem;
  border-radius: 999px;
  z-index: 999;
}
.skip-link:focus { left: 1rem; }

.fl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 20, 0.86);
  border-bottom: 1px solid var(--line);
}

.fl-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem clamp(1rem, 4vw, 3rem);
  color: var(--muted);
  font-size: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.fl-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.fl-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.fl-logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fff0b6);
  color: #171024;
  box-shadow: 0 0 30px rgba(216,178,93,.35);
  font-size: 1.4rem;
}
.fl-logo strong { display: block; font-size: 1.35rem; letter-spacing: .03em; }
.fl-logo em { color: var(--muted); font-size: .82rem; }

.fl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}
.fl-nav a {
  padding: .6rem .85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
}
.fl-nav a:hover,
.fl-nav a.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.08);
}

.fl-page {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.breadcrumbs {
  display: flex;
  gap: .55rem;
  color: var(--muted);
  font-size: .9rem;
  margin: .2rem 0 1rem;
}
.breadcrumbs a { color: var(--gold); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.card,
.content-card {
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2vw, 1.7rem);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.hero-card:after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 180px;
  background: radial-gradient(circle, rgba(216,178,93,.18), transparent 70%);
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  margin: 0 0 .4rem;
}
h1, h2, h3 { line-height: 1.1; margin: .25rem 0 .75rem; }
h1 { font-size: clamp(2.2rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 68ch; }

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.2rem;
}

.btn-primary,
.btn-secondary,
button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .82rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f6df9d);
  color: #15100a;
}
.btn-secondary,
button {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.stat-grid,
.grid,
.book-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.1);
}
.stat strong { display: block; font-size: 1.6rem; color: var(--gold); }
.stat span { color: var(--muted); }

.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.book-card {
  overflow: hidden;
  padding: .8rem;
  min-height: 100%;
}
.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 15px;
  background: rgba(255,255,255,.08);
  margin-bottom: .8rem;
}
.book-card h3 { font-size: 1.05rem; }
.book-card p { margin: .25rem 0; color: var(--muted); font-size: .92rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.tag {
  display: inline-flex;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: rgba(216,178,93,.13);
  border: 1px solid rgba(216,178,93,.24);
  color: #f6df9d;
  font-size: .82rem;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

label {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  margin-bottom: .85rem;
}
input, select, textarea {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font: inherit;
}

.table-list,
.series-list {
  display: grid;
  gap: .75rem;
}
.list-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.15);
}
.list-row img {
  width: 70px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.fl-footer {
  width: min(1220px, calc(100% - 2rem));
  margin: 2rem auto 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 1rem;
}
.fl-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.fl-footer a { color: var(--gold); }

.muted { color: var(--muted); }

@media (max-width: 900px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .grid, .link-grid, .stat-grid { grid-template-columns: 1fr; }
  .fl-header-main { align-items: flex-start; flex-direction: column; }
  .fl-nav { justify-content: flex-start; }
}
