:root {
  --ink: #171717;
  --muted: #66615a;
  --paper: #fbfaf7;
  --soft: #f0ece5;
  --line: #ded7cc;
  --clay: #9b6a4c;
  --olive: #60725a;
  --gold: #c39b5e;
  --white: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  will-change: transform;
}

.brand img {
  display: block;
  width: 156px;
  max-height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav-menu button:hover {
  color: var(--ink);
}

.nav-menu {
  position: relative;
}

.nav-menu button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-menu button::after {
  content: "⌄";
  font-size: 0.8rem;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 30;
  display: grid;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(23, 23, 23, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-submenu a {
  border-radius: 6px;
  padding: 10px 12px;
}

.nav-submenu a:hover {
  background: var(--soft);
}

.resource-popover {
  display: none;
}

.nav-menu:hover .nav-submenu,
.nav-menu:focus-within .nav-submenu,
.nav-menu.is-open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.lang-toggle,
.button,
.book-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.lang-toggle {
  min-width: 46px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button.secondary:hover,
.lang-toggle:hover,
.book-actions button:hover:not(:disabled) {
  border-color: var(--ink);
}

.button:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
}

.hero {
  --hero-image: url("https://i.ytimg.com/vi/5ANLpkgxZGE/maxresdefault.jpg");
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100vh - 76px);
  align-items: center;
  padding: clamp(46px, 8vw, 92px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(115deg, rgba(251, 250, 247, 0.9), rgba(240, 236, 229, 0.78)),
    var(--hero-image) center / cover;
  transition: background-image 1800ms ease;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy > * {
  animation: heroItemIn 680ms ease both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 90ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 230ms;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.hero-copy > p:not(.eyebrow),
.section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  align-self: end;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(23, 23, 23, 0.1);
  animation: heroPanelIn 760ms ease 180ms both;
}

@keyframes heroItemIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.verse-reveal > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.verse-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(23, 23, 23, 0.96), rgba(54, 42, 31, 0.94));
  transform: translateX(0);
  transition: transform 680ms cubic-bezier(0.76, 0, 0.24, 1);
}

.verse-reveal.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.verse-reveal.is-revealed::after {
  transform: translateX(102%);
}

.hero-panel span {
  display: block;
  margin-bottom: 18px;
  color: var(--olive);
  font-weight: 800;
}

blockquote {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.22;
}

cite {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
}

.live-card {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  padding-top: 18px;
}

.live-card small {
  color: var(--olive);
  font-weight: 800;
  text-transform: uppercase;
}

.live-card strong {
  font-size: 1.4rem;
}

.live-card a {
  width: fit-content;
  color: var(--clay);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .verse-reveal > *,
  .verse-reveal::after {
    transition: none;
  }

  .verse-reveal::after {
    display: none;
  }

  .verse-reveal > * {
    opacity: 1;
    transform: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 76px);
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.program-layout {
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(22px, 3vw, 34px) clamp(28px, 5vw, 64px);
}

.program-intro {
  grid-column: 1 / -1;
  max-width: 760px;
}

.program-schedule-column,
.program-events-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.column-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.05;
}

.schedule-grid {
  display: grid;
  gap: 12px;
}

.schedule-grid article,
.contact-box,
.book-form,
.book-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.schedule-grid article {
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) 1fr;
  gap: 8px 16px;
  padding: 18px;
}

.schedule-grid article strong {
  grid-row: 1 / span 2;
}

.event-card {
  border-radius: 8px;
}

.schedule-grid article,
.faq-grid article,
.social-links a,
.contact-box,
.contact-form,
.map-panel,
.volley-event-card {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.schedule-grid article:hover,
.faq-grid article:hover,
.social-links a:hover,
.contact-box:hover,
.contact-form:hover,
.map-panel:hover,
.volley-event-card:hover {
  transform: translateY(-2px);
}

.volley-event-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.34fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 29, 0.22);
  padding: clamp(18px, 3vw, 26px);
  background:
    linear-gradient(135deg, rgba(127, 9, 11, 0.98), rgba(28, 7, 9, 0.96)),
    #7f090b;
  color: #fff6e8;
}

.volley-event-card .eyebrow {
  margin-bottom: 8px;
  color: #ffd21d;
}

.volley-event-card h3 {
  margin-bottom: 10px;
  color: #fff6e8;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 0.98;
}

.volley-event-card p {
  margin: 0 0 12px;
  color: rgba(255, 246, 232, 0.78);
}

.volley-event-card strong {
  display: block;
  margin-bottom: 16px;
  color: #ffd21d;
  font-size: 0.98rem;
}

.volley-event-card img {
  align-self: end;
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.volley-event-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffd21d;
  color: #160608;
  font-weight: 950;
}

.managed-events-list {
  display: grid;
  gap: 18px;
}

.managed-event-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 0.2fr);
  gap: 18px;
  width: 100%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--event-accent, #7f090b), #fff 26%);
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--event-accent, #7f090b), #fff 28%), var(--event-accent, #7f090b));
  color: #fff8ee;
  text-align: left;
  cursor: pointer;
}

.managed-event-card:hover {
  transform: translateY(-2px);
}

.managed-event-card .eyebrow {
  color: #ffe064;
}

.managed-event-card h3 {
  margin: 8px 0 10px;
  color: inherit;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 0.98;
}

.managed-event-card p {
  margin: 0 0 12px;
  color: rgba(255, 248, 238, 0.82);
}

.managed-event-card strong {
  display: block;
  color: #ffe064;
}

.managed-event-card img,
.event-poster-placeholder {
  align-self: center;
  justify-self: end;
  width: min(120px, 100%);
  aspect-ratio: 3 / 4;
  border: 4px solid rgba(255, 248, 238, 0.84);
  border-radius: 8px;
  object-fit: cover;
  transform: rotate(2deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.event-poster-placeholder {
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(255, 248, 238, 0.16);
  color: rgba(255, 248, 238, 0.76);
  font-size: 0.78rem;
  text-align: center;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.event-tags span {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 248, 238, 0.86);
  color: #201711;
  font-size: 0.86rem;
  font-weight: 900;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.event-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 10, 9, 0.68);
}

.event-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr);
  width: min(1180px, 100%);
  max-height: min(88vh, 860px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.event-modal.is-open .event-modal-panel {
  transform: translateY(0) scale(1);
}

.event-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.7);
  color: #fff;
  font-size: 1.8rem;
}

.event-modal-poster-wrap {
  display: grid;
  min-height: 420px;
  place-items: center;
  background:
    radial-gradient(circle at 40% 20%, color-mix(in srgb, var(--event-accent, #7f090b), #fff 42%), transparent 34%),
    var(--event-accent, #7f090b);
}

.event-modal-poster-wrap img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.event-modal-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 46px);
}

.event-modal-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.94;
}

.event-modal-copy > p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.event-modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.event-modal-meta article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.event-modal-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-modal-open {
  overflow: hidden;
}

.schedule-grid span,
.contact-box span {
  color: var(--muted);
}

.first-visit {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 980px;
}

.faq-grid article {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-grid article.wide {
  grid-column: auto;
}

.faq-grid h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.faq-grid p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.6;
}

.library,
.library-page,
.admin-page {
  background: #ede7dd;
}

.library-page,
.admin-page {
  min-height: calc(100vh - 166px);
}

.library-gate {
  display: grid;
  max-width: 680px;
  margin: 0 auto;
}

.helper-text {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.library-gate h1,
.library-shell h1,
.admin-shell h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
}

.access-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.access-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.form-note {
  min-height: 20px;
  color: #8a3324;
  font-weight: 700;
}

.auth-page {
  position: relative;
}

.auth-loading {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
}

.auth-loading::before {
  content: "";
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-right: 10px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 999px;
  vertical-align: -0.12em;
  animation: authSpin 720ms linear infinite;
}

.is-auth-checking > .auth-loading {
  display: block;
}

.is-auth-checking > .library-gate,
.is-auth-checking > .library-shell,
.is-auth-checking > .admin-shell {
  display: none !important;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

.is-hidden {
  display: none !important;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.compact-heading {
  align-items: start;
  margin-bottom: 18px;
}

.compact-heading h2,
.admin-book-form h2,
.bulk-import h2 {
  font-size: clamp(1.4rem, 2vw, 2.2rem);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-stats span,
.admin-table td span,
.reservation-card span,
.reservation-card small,
.audit-log span {
  color: var(--muted);
}

.admin-stats strong {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.admin-module-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
}

.admin-module-card span {
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-module-card strong {
  max-width: 14ch;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 0.98;
}

.admin-module-card small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.admin-module-card:not(.is-disabled):hover {
  border-color: var(--ink);
}

.admin-module-card.is-disabled {
  opacity: 0.58;
}

.admin-events-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-events-summary {
  display: grid;
  gap: 16px;
}

.admin-events-summary h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
}

.admin-events-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-events-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.admin-events-stats span,
.admin-event-badges span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-events-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-events-list {
  display: grid;
  gap: 12px;
}

.admin-event-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.admin-event-thumb {
  display: grid;
  width: 96px;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f3eee6;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.admin-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-event-row-copy h3 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.admin-event-row-copy p {
  margin: 0 0 10px;
  color: var(--muted);
}

.admin-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-event-badges span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3eee6;
}

.admin-event-badges .success {
  background: #dff0d9;
  color: #315b2b;
}

.admin-event-badges .muted {
  background: #f2d6cf;
  color: #8a3324;
}

.event-empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: clamp(48px, 8vw, 96px) 18px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 2.5rem;
}

.admin-event-editor {
  margin-top: 18px;
}

.event-editor-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  gap: 18px;
  align-items: start;
}

.event-editor-fields,
.event-language-grid,
.event-editor-form fieldset {
  display: grid;
  gap: 14px;
}

.event-editor-form fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.event-editor-form legend {
  padding: 0 6px;
  font-size: 1.2rem;
  font-weight: 950;
}

.event-editor-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.event-editor-form input,
.event-editor-form textarea {
  width: 100%;
}

.event-editor-form textarea {
  min-height: 110px;
}

.checkbox-label {
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.checkbox-label input {
  width: auto;
}

.color-field {
  grid-template-columns: 70px 1fr;
  align-items: end;
}

.color-field span {
  grid-column: 1 / -1;
}

.color-field input {
  width: 64px;
  min-height: 54px;
  padding: 4px;
}

.event-language-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-field {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
}

.upload-field small {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.admin-event-preview-panel {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.admin-preview-event-card {
  grid-template-columns: 1fr 86px;
  cursor: default;
}

.admin-preview-event-card:hover {
  transform: none;
}

.event-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.event-editor-actions .form-note {
  margin-right: auto;
}

.button.danger {
  border-color: #e4b9ad;
  color: #8a3324;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-book-form {
  grid-column: 1;
}

.admin-grid .admin-panel {
  grid-column: 2;
  grid-row: 1;
}

.admin-panel {
  padding: 18px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.admin-table td:first-child {
  display: grid;
  gap: 4px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--white);
  cursor: pointer;
}

.table-actions button:hover {
  border-color: var(--ink);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.stock-pending {
  color: var(--clay);
  font-weight: 800;
}

.admin-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.volley-admin-panel {
  grid-column: 1 / -1;
}

.volley-admin-table {
  min-width: 1040px;
}

.volley-admin-table input,
.volley-admin-table select,
.volley-admin-table textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
}

.volley-admin-table textarea {
  min-height: 82px;
  resize: vertical;
}

.volley-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.volley-status.approved {
  background: #dcebd8;
  color: #304d2b;
}

.volley-status.rejected {
  background: #f0d7d0;
  color: #773327;
}

.volley-admin-team strong,
.volley-admin-team span,
.volley-admin-players strong,
.volley-admin-players span {
  display: block;
}

.volley-admin-team span,
.volley-admin-players span,
.volley-admin-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.volley-admin-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.volley-admin-color-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: var(--shirt-color, #d8d0c2);
  box-shadow: 0 0 0 1px var(--line), 0 5px 14px rgba(0, 0, 0, 0.08);
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.admin-drawer.is-open {
  pointer-events: auto;
}

.admin-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 20, 20, 0);
  cursor: pointer;
  transition: background 180ms ease;
}

.admin-drawer.is-open .admin-drawer-backdrop {
  background: rgba(20, 20, 20, 0.34);
}

.admin-drawer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 24px));
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -22px 0 50px rgba(0, 0, 0, 0.18);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.admin-drawer.is-open .admin-drawer-panel {
  transform: translateX(0);
}

.admin-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.admin-drawer-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0;
}

.admin-drawer-content {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 20px 28px 32px;
}

.admin-drawer-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-drawer-section h3 {
  margin: 0;
  font-size: 1.25rem;
}

.admin-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-drawer-section label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-drawer-section input,
.admin-drawer-section select,
.admin-drawer-section textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.admin-drawer-section textarea {
  min-height: 130px;
  resize: vertical;
}

.admin-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-drawer-feedback {
  min-height: 22px;
  color: var(--muted);
  font-weight: 800;
}

.admin-drawer-feedback.is-success {
  color: #2f6b3d;
}

.admin-drawer-feedback.is-error {
  color: #8f3b2c;
}

.admin-danger-zone {
  border-color: #e6bdb4;
  background: #fff8f6;
}

.admin-danger-zone .button {
  border-color: #8f3b2c;
  color: #8f3b2c;
}

.admin-danger-zone .button:hover {
  background: #8f3b2c;
  color: var(--white);
}

.danger-button {
  border-color: #8f3b2c;
  background: #8f3b2c;
  color: var(--white);
}

.danger-button:hover {
  background: #773327;
}

.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.admin-confirm-modal.is-open {
  pointer-events: auto;
}

.admin-confirm-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 20, 20, 0);
  cursor: pointer;
  transition: background 180ms ease;
}

.admin-confirm-modal.is-open .admin-confirm-backdrop {
  background: rgba(20, 20, 20, 0.46);
}

.admin-confirm-panel {
  position: relative;
  display: grid;
  width: min(520px, 100%);
  gap: 14px;
  padding: 28px;
  border: 1px solid #e6bdb4;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-confirm-modal.is-open .admin-confirm-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.admin-confirm-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.admin-confirm-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.compact-button {
  min-height: 42px;
  padding: 8px 14px;
}

@media (max-width: 860px) {
  .admin-drawer-panel {
    width: 100vw;
  }

  .admin-drawer-header,
  .admin-drawer-content {
    padding-inline: 18px;
  }

  .admin-drawer-grid {
    grid-template-columns: 1fr;
  }

  .admin-drawer-actions .button {
    width: 100%;
  }

  .admin-confirm-actions {
    flex-direction: column-reverse;
  }

  .admin-confirm-actions .button {
    width: 100%;
  }
}

.volley-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.volley-teams article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 246, 232, 0.16);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 246, 232, 0.08), rgba(255, 246, 232, 0.02)),
    rgba(22, 6, 8, 0.42);
  box-shadow: 0 16px 36px rgba(22, 6, 8, 0.18);
}

.volley-teams h3 {
  margin: 0;
  color: var(--volley-cream);
  font-size: 1.35rem;
  overflow-wrap: normal;
}

.volley-team-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.volley-team-color {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 246, 232, 0.76);
  border-radius: 50%;
  background: var(--shirt-color);
  box-shadow: 0 0 0 1px rgba(22, 6, 8, 0.28);
}

.volley-team-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.volley-team-info span,
.volley-team-players summary {
  border: 1px solid rgba(255, 246, 232, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 246, 232, 0.08);
  color: rgba(255, 246, 232, 0.74);
  font-size: 0.86rem;
  font-weight: 900;
}

.volley-team-players {
  display: grid;
  gap: 8px;
}

.volley-team-players summary {
  width: fit-content;
  cursor: pointer;
  list-style-position: inside;
}

.volley-team-players small {
  display: block;
  line-height: 1.55;
}

.volley-teams span,
.volley-teams small {
  color: rgba(255, 246, 232, 0.68);
  font-weight: 800;
}

.reservations-list,
.audit-log {
  display: grid;
  gap: 10px;
}

.reservation-card,
.audit-log article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.reservation-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.reservation-card div:first-child {
  display: grid;
  gap: 4px;
}

mark {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--ink);
}

.audit-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.pagination-controls button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--white);
  cursor: pointer;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.member-line {
  margin: 14px 0 0;
}

.cart-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.mobile-cart-toggle,
.mobile-cart-backdrop,
.cart-close {
  display: none;
}

.cart-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}

.cart-glyph::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -7px;
  width: 9px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: skewX(-18deg);
}

.cart-glyph::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -7px;
  height: 4px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px currentColor, 12px 0 0 0 currentColor;
}

.cart-panel h2 {
  font-size: clamp(1.5rem, 2vw, 2.4rem);
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.cart-item div {
  display: grid;
  gap: 4px;
}

.cart-item span {
  color: var(--muted);
}

.cart-item button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.book-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.book-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
}

.bulk-import {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  padding: 22px;
}

.bulk-import summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.bulk-import summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 800;
}

.bulk-import[open] summary::after {
  content: "-";
}

.bulk-import h2 {
  margin: 0;
}

.bulk-import p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.bulk-import textarea {
  width: 100%;
  min-height: 220px;
  overflow: auto;
  white-space: pre;
}

.bulk-import .button {
  margin-top: 10px;
}

.bulk-import summary::-webkit-details-marker {
  display: none;
}

.form-row,
.toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.library-results .toolbar {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.books {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.book-card {
  display: grid;
  gap: 18px;
  min-height: 220px;
  padding: 18px;
}

.book-card {
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.book-card:hover {
  border-color: rgba(23, 23, 23, 0.22);
  box-shadow: 0 16px 38px rgba(23, 23, 23, 0.08);
  transform: translateY(-2px);
}

.book-card p {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.book-category {
  color: var(--clay);
  font-weight: 800;
}

.book-meta span,
.book-meta strong {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--soft);
}

.book-meta strong {
  color: var(--ink);
}

.book-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.book-actions button {
  min-width: 0;
  padding: 0 8px;
}

.book-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.video-feature {
  background: var(--ink);
  color: var(--white);
}

.video-feature .eyebrow {
  color: #d9c5ad;
}

.video-feature .button.secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
}

.video-rail {
  overflow: hidden;
  padding-bottom: 18px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.video-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: scroll-position;
}

.video-rail.is-dragging {
  cursor: grabbing;
}

.video-card {
  flex: 0 0 min(34vw, 420px);
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #24211f;
}

.video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.video-card span,
.video-card h3 {
  display: block;
  padding-inline: 16px;
}

.video-card span {
  padding-top: 16px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
}

.video-card h3 {
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.28;
}

.social-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: var(--white);
}

.social-band .eyebrow,
.social-band p {
  color: #d9c5ad;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  --social-color: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 11px 14px;
}

.social-links a:hover {
  border-color: color-mix(in srgb, var(--social-color), white 18%);
  background: color-mix(in srgb, var(--social-color), transparent 86%);
}

.social-links .social-instagram {
  --social-color: #e4405f;
}

.social-links .social-youtube {
  --social-color: #ff0000;
}

.social-links .social-tiktok {
  --social-color: #00f2ea;
}

.social-links .social-facebook {
  --social-color: #1877f2;
}

.social-links span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--social-color), transparent 72%);
  font-size: 0.72rem;
  font-weight: 800;
}

.social-links img {
  display: block;
  width: 17px;
  height: 17px;
}

.identity-verse {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.about-block {
  grid-column: 1 / -1;
  max-width: 980px;
}

.contact-box,
.contact-form,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-box {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.contact-box .button {
  width: fit-content;
}

.map-panel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 260px;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
}

.map-load-button {
  position: absolute;
  z-index: 1;
  display: none;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.map-panel.is-loaded .map-load-button {
  display: none;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.contact-form-hint {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form h3 {
  font-size: 1.4rem;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  color: var(--muted);
}

footer img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.volley-page {
  --volley-red: #7f090b;
  --volley-deep: #160608;
  --volley-yellow: #ffd21d;
  --volley-cream: #fff6e8;
  --volley-blue: #173765;
  --volley-pink: #f05e68;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 210, 29, 0.16), transparent 24%),
    radial-gradient(circle at 80% 22%, rgba(240, 94, 104, 0.18), transparent 25%),
    linear-gradient(135deg, #65080a 0%, #9b0d12 48%, #470406 100%);
  color: var(--volley-cream);
}

.volley-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 246, 232, 0.16);
  background: rgba(22, 6, 8, 0.72);
  backdrop-filter: blur(18px);
  transition: transform 0.24s ease, background 0.24s ease;
  will-change: transform;
}

.volley-brand,
.volley-header-link,
.volley-nav-link {
  display: inline-flex;
  align-items: center;
  color: var(--volley-cream);
  font-weight: 900;
}

.volley-brand {
  gap: 10px;
  letter-spacing: 0.02em;
}

.volley-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.volley-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.volley-nav-link {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(255, 246, 232, 0.8);
  font-size: 0.92rem;
  text-decoration: none;
}

.volley-nav-link:hover {
  background: rgba(255, 246, 232, 0.1);
  color: var(--volley-cream);
}

.volley-brand img,
.volley-footer img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.volley-header-link {
  min-height: 40px;
  border: 1px solid rgba(255, 246, 232, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 246, 232, 0.08);
  font: inherit;
}

.volley-hero,
.volley-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  scroll-margin-top: 92px;
}

.volley-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 560px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 86px) 0;
}

.volley-hero-copy {
  display: grid;
  gap: 22px;
}

.volley-hero-copy > * {
  animation: heroItemIn 680ms ease both;
}

.volley-hero-copy > :nth-child(2) {
  animation-delay: 90ms;
}

.volley-hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}

.volley-hero-copy > :nth-child(4) {
  animation-delay: 230ms;
}

.volley-kicker {
  margin: 0;
  color: var(--volley-yellow);
  font-size: 0.86rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.volley-hero h1,
.volley-section h2 {
  margin: 0;
  max-width: 760px;
  color: var(--volley-cream);
  font-weight: 1000;
  line-height: 0.92;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.volley-hero h1 {
  display: grid;
  gap: 4px;
  font-size: clamp(3.4rem, 7.1vw, 6.25rem);
}

.volley-hero h1 span {
  display: block;
}

.volley-section h2 {
  font-size: clamp(2.55rem, 4.8vw, 4.8rem);
}

.volley-hero p:not(.volley-kicker),
.volley-section p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 246, 232, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.volley-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.volley-button,
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 1000;
  cursor: pointer;
}

.volley-button.primary {
  border: 2px solid var(--volley-yellow);
  background: var(--volley-yellow);
  color: var(--volley-deep);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.volley-button.secondary {
  border: 1px solid rgba(255, 246, 232, 0.34);
  background: rgba(255, 246, 232, 0.1);
  color: var(--volley-cream);
}

.volley-poster {
  position: relative;
  aspect-ratio: 112 / 76;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: visible;
  animation: heroPanelIn 760ms ease 180ms both;
}

.volley-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.volley-section {
  display: grid;
  gap: 28px;
  padding: clamp(48px, 7vw, 86px) 0;
  border-top: 1px solid rgba(255, 246, 232, 0.16);
}

.volley-info,
.volley-registration {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.volley-registration h2 {
  max-width: 620px;
  font-size: clamp(2.5rem, 4.3vw, 4.2rem);
  line-height: 0.96;
}

.volley-facts,
.volley-rule-list,
.volley-regulation-grid {
  display: grid;
  gap: 12px;
}

.volley-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.volley-facts article,
.volley-rule-list article,
.volley-regulation-grid article,
.volley-form {
  border: 1px solid rgba(255, 246, 232, 0.16);
  border-radius: 8px;
  background: rgba(22, 6, 8, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.volley-facts article,
.volley-rule-list article,
.volley-regulation-grid article,
.volley-form,
.volley-teams article {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.volley-facts article:hover,
.volley-rule-list article:hover,
.volley-regulation-grid article:hover,
.volley-form:hover,
.volley-teams article:hover {
  transform: translateY(-2px);
}

.volley-facts article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.volley-facts span {
  color: rgba(255, 246, 232, 0.64);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.volley-facts strong {
  color: var(--volley-cream);
  font-size: 1.25rem;
}

.volley-rule-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.volley-rule-list article,
.volley-regulation-grid article {
  padding: 22px;
}

.volley-rule-list h3,
.volley-regulation-grid h3 {
  margin: 0 0 10px;
  color: var(--volley-yellow);
  font-size: 1.45rem;
}

.volley-regulation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.volley-form {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 22px;
}

.volley-form > * {
  min-width: 0;
}

.volley-hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.volley-form label {
  display: grid;
  gap: 8px;
}

.volley-form span,
.volley-field-heading span {
  color: rgba(255, 246, 232, 0.72);
  font-weight: 900;
}

.volley-form input,
.volley-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 246, 232, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 246, 232, 0.96);
  color: var(--volley-deep);
}

.volley-form textarea {
  min-height: 120px;
}

.volley-consent-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 246, 232, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 246, 232, 0.06);
}

.volley-consent-field input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  padding: 0;
  border-radius: 4px;
  background: var(--volley-cream);
  accent-color: var(--volley-yellow);
}

.volley-consent-field span {
  color: rgba(255, 246, 232, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.volley-players-field {
  display: grid;
  gap: 12px;
}

.volley-color-field {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.volley-color-help {
  margin: 0;
  border: 1px solid rgba(255, 210, 29, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 210, 29, 0.08);
  color: rgba(255, 246, 232, 0.82) !important;
  font-size: 0.98rem !important;
  line-height: 1.55 !important;
}

.volley-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.volley-color-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  min-height: 94px;
  align-items: center;
  border: 1px solid rgba(255, 246, 232, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 246, 232, 0.08);
  color: var(--volley-cream);
  text-align: left;
}

.volley-color-option strong,
.volley-color-option small {
  min-width: 0;
}

.volley-color-option strong {
  font-size: 1.08rem;
}

.volley-color-option small {
  color: rgba(255, 246, 232, 0.68);
  font-weight: 850;
}

.volley-color-option.is-selected {
  border-color: var(--volley-yellow);
  background: rgba(255, 210, 29, 0.12);
  box-shadow: 0 0 0 1px var(--volley-yellow) inset;
}

.volley-color-option.is-full {
  opacity: 0.45;
}

.volley-color-swatch {
  grid-row: span 2;
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 246, 232, 0.72);
  border-radius: 50%;
  background: var(--shirt-color);
  box-shadow: 0 0 0 1px rgba(22, 6, 8, 0.2);
}

.volley-more-colors {
  container-type: inline-size;
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.volley-more-colors summary {
  width: fit-content;
  cursor: pointer;
  color: rgba(255, 246, 232, 0.82);
  font-size: 0.98rem;
  font-weight: 900;
}

.volley-extra-color-grid {
  display: flex;
  gap: 10px;
  width: 100%;
  width: 100cqw;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 0 8px;
  cursor: grab;
  scrollbar-color: rgba(255, 246, 232, 0.35) transparent;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.volley-extra-color-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.volley-extra-color-grid::-webkit-scrollbar {
  height: 8px;
}

.volley-extra-color-grid::-webkit-scrollbar-track {
  background: rgba(255, 246, 232, 0.08);
  border-radius: 999px;
}

.volley-extra-color-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 246, 232, 0.32);
  border-radius: 999px;
}

.volley-color-option.is-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  text-align: center;
}

.volley-color-option.is-compact .volley-color-swatch {
  grid-row: auto;
  width: 34px;
  height: 34px;
}

.volley-color-option.is-compact strong,
.volley-color-option.is-compact small {
  display: none;
}

.volley-color-summary {
  margin: 0;
  color: rgba(255, 246, 232, 0.78) !important;
  font-size: 0.94rem !important;
  font-weight: 900 !important;
}

.volley-field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.volley-field-heading small {
  color: rgba(255, 246, 232, 0.58);
  font-weight: 800;
}

.volley-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.volley-player-card {
  position: relative;
  border: 1px solid rgba(255, 246, 232, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 246, 232, 0.08);
}

.volley-player-card input {
  min-height: 44px;
}

.volley-remove-player {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 246, 232, 0.72);
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.volley-remove-player:hover {
  color: var(--volley-cream);
}

.volley-add-player {
  justify-self: start;
  min-height: 44px;
  border: 1px solid rgba(255, 246, 232, 0.28);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 246, 232, 0.12);
  color: var(--volley-cream);
  font-weight: 950;
}

.google-button {
  width: 100%;
  border: 1px solid rgba(255, 246, 232, 0.24);
  background: rgba(255, 246, 232, 0.12);
  color: rgba(255, 246, 232, 0.68);
}

.google-button span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  background: var(--volley-cream);
  color: var(--volley-blue);
}

.volley-form-note {
  border: 1px solid rgba(255, 246, 232, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 246, 232, 0.08);
  color: rgba(255, 246, 232, 0.78);
  font-size: 0.92rem !important;
  font-weight: 850;
}

.volley-form-note.is-loading {
  border-color: rgba(255, 210, 29, 0.4);
  background: rgba(255, 210, 29, 0.12);
  color: var(--volley-yellow);
}

.volley-form-note.is-success {
  border-color: rgba(76, 175, 80, 0.52);
  background: rgba(76, 175, 80, 0.18);
  color: #d8ffd9;
}

.volley-form-note.is-error {
  border-color: rgba(240, 94, 104, 0.58);
  background: rgba(240, 94, 104, 0.16);
  color: #ffd5d8;
}

.volley-legal-note {
  margin: 0;
  max-width: none !important;
  color: rgba(255, 246, 232, 0.58) !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}

.volley-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 246, 232, 0.16);
  color: rgba(255, 246, 232, 0.72);
}

@media (max-width: 900px) {
  .volley-header {
    position: static;
    transform: none;
  }

  .volley-hero,
  .volley-info,
  .volley-registration,
  .volley-rule-list,
  .volley-regulation-grid,
  .volley-color-grid,
  .volley-extra-color-grid {
    grid-template-columns: 1fr;
  }

  .volley-hero {
    min-height: auto;
  }

  .volley-poster {
    min-height: 0;
  }
}

@media (min-width: 901px) {
  .volley-header.is-hidden-on-scroll {
    transform: translateY(-100%);
  }
}

@media (max-width: 560px) {
  .volley-header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    min-height: 58px;
    overflow: hidden;
    padding: 10px 12px;
  }

  .volley-nav {
    display: none;
  }

  .volley-brand {
    flex: 0 0 auto;
  }

  .volley-brand span {
    display: none;
  }

  .volley-brand img {
    width: 34px;
    height: 34px;
  }

  .volley-header-actions {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    justify-content: flex-end;
  }

  .volley-header-actions a {
    overflow: hidden;
    min-width: 0;
    max-width: calc(100vw - 112px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .volley-header-link {
    min-height: 34px;
    padding: 0 10px;
  }

  .volley-hero,
  .volley-section {
    width: min(100% - 28px, 1180px);
  }

  .volley-hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.25rem);
  }

  .volley-section h2,
  .volley-registration h2 {
    font-size: clamp(2.35rem, 10vw, 3.35rem);
    line-height: 1;
  }

  .volley-actions,
  .volley-button {
    width: 100%;
  }

  .volley-facts {
    grid-template-columns: 1fr;
  }

  .volley-player-grid {
    grid-template-columns: 1fr;
  }

  .volley-extra-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .volley-field-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .volley-teams {
    grid-template-columns: 1fr;
  }

  .volley-poster {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 10px 12px;
    transform: none;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand img {
    content: url("/assets/icon-dark-160.png");
    width: 44px;
    height: 44px;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    padding: 2px 3px 8px;
    font-size: 0.9rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a,
  .nav-menu button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.72);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .nav-menu {
    flex: 0 0 auto;
    position: relative;
  }

  .nav-submenu {
    display: none;
  }

  .resource-popover {
    position: fixed;
    top: 66px;
    left: 50%;
    z-index: 80;
    display: grid;
    min-width: 170px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(23, 23, 23, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .resource-popover.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .resource-popover a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
  }

  .lang-toggle {
    flex: 0 0 auto;
  }

  .hero,
  .split,
  .contact-section,
  .library-layout,
  .admin-module-grid,
  .admin-grid,
  .admin-bottom,
  .admin-events-layout,
  .event-editor-main,
  .event-language-grid {
    grid-template-columns: 1fr;
  }

  .about-block {
    grid-column: auto;
  }

  .admin-book-form,
  .admin-grid .admin-panel,
  .bulk-import {
    grid-column: 1;
    grid-row: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 42px;
    gap: 24px;
  }

  .hero-panel {
    align-self: stretch;
  }

  .books,
  .form-row,
  .toolbar,
  .library-results .toolbar,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid article.wide {
    grid-column: auto;
  }

  .section-heading,
  .social-band,
  .social-band {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-grid article {
    grid-template-columns: 1fr;
  }

  .schedule-grid article strong {
    grid-row: auto;
  }

  .volley-event-card {
    grid-template-columns: 1fr;
  }

  .managed-event-card {
    grid-template-columns: 1fr;
  }

  .volley-event-card img {
    max-height: 150px;
    justify-self: end;
    width: min(220px, 70%);
  }

  .managed-event-card img,
  .event-poster-placeholder {
    justify-self: end;
    width: min(160px, 55%);
  }

  .event-modal {
    padding: 14px;
  }

  .event-modal-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .event-modal-poster-wrap {
    min-height: 260px;
  }

  .event-modal-meta {
    grid-template-columns: 1fr;
  }

  .admin-event-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .admin-event-row .table-actions {
    grid-column: 1 / -1;
  }

  .admin-event-thumb {
    width: 76px;
  }

  .admin-event-preview-panel {
    position: static;
  }

  .book-actions {
    grid-template-columns: 1fr;
  }

  .video-rail {
    overflow-x: hidden;
  }

  .video-card {
    flex-basis: 78vw;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reservation-card {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .header-actions,
  .social-links {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .button,
  .header-actions .button,
  .social-links a,
  .hero-actions .button,
  .access-form .button,
  .cart-panel .button,
  .book-form .button {
    width: 100%;
  }

  .mobile-cart-toggle {
    position: fixed;
    top: 76px;
    right: 14px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 16px 36px rgba(35, 32, 27, 0.18);
    cursor: pointer;
  }

  .mobile-cart-toggle strong {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 999px;
    padding: 0 6px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.72rem;
    line-height: 1;
  }

  .mobile-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(22, 20, 17, 0.38);
  }

  .cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(360px, calc(100vw - 28px));
    max-width: none;
    overflow-y: auto;
    align-content: start;
    border-radius: 8px 0 0 8px;
    padding: 22px 18px;
    box-shadow: -24px 0 52px rgba(35, 32, 27, 0.24);
    transform: translateX(110%);
    transition: transform 0.22s ease;
  }

  .cart-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }

  body.cart-open {
    overflow: hidden;
  }

  body.cart-open .cart-panel {
    transform: translateX(0);
  }

  body.cart-open .mobile-cart-backdrop {
    display: block;
  }
}

@media (min-width: 861px) {
  .site-header.is-hidden-on-scroll {
    transform: translateY(-100%);
  }
}

@media (max-width: 700px) {
  .map-panel:not(.is-loaded) {
    background:
      linear-gradient(rgba(251, 250, 247, 0.82), rgba(251, 250, 247, 0.82)),
      url("/assets/icon-light.png") center / 86px auto no-repeat;
  }

  .map-panel:not(.is-loaded) .map-load-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

@media (max-width: 520px) {
  body {
    min-width: 0;
  }

  .site-header {
    gap: 8px;
    padding-inline: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .lang-toggle {
    min-width: 46px;
    min-height: 42px;
  }

  .nav {
    gap: 6px;
    font-size: 0.84rem;
  }

  .nav a,
  .nav-menu button {
    min-height: 38px;
    padding: 0 10px;
  }

  .nav-submenu {
    min-width: 150px;
  }

  .hero {
    padding-inline: 20px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .hero-copy > p:not(.eyebrow),
  .section p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .hero-panel,
  .contact-box,
  .contact-form,
  .cart-panel,
  .admin-panel,
  .book-form,
  .book-card,
  .access-form {
    padding: 16px;
  }

  .section {
    padding: 46px 18px;
  }

  .library-page,
  .admin-page {
    padding-top: 34px;
  }

  .library-gate h1,
  .library-shell h1,
  .admin-shell h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
    line-height: 1;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 760px;
  }

  .table-actions button,
  .pagination-controls button {
    min-height: 40px;
  }

  .books {
    grid-template-columns: 1fr;
  }

  .book-card {
    min-height: auto;
  }

  .video-track {
    gap: 12px;
  }

  .video-card {
    flex-basis: 84vw;
  }

  .video-card h3 {
    min-height: 68px;
    font-size: 0.98rem;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 220px;
  }

  footer {
    padding: 18px;
    text-align: center;
  }
}
