/* ==========================================================================
   RATS WORLD - DARK RUSTIC GOTHIC THEME (BOOTSTRAP 5 EXTENSION)
   ========================================================================== */

:root {
  --bg-darkest: #09080c;
  --bg-main: #0e0c12;
  --bg-surface: #15131a;
  --bg-surface-elevated: #1e1a24;
  --bg-card: #181520;

  --iron-dark: #221f29;
  --iron-light: #393444;
  --iron-border: #423b50;

  --gold-dark: #8c6827;
  --gold-primary: #c99a53;
  --gold-light: #dfb774;
  --gold-bright: #f3d498;

  --crimson-dark: #4a0f12;
  --crimson-primary: #851c22;
  --crimson-glow: #bd2a33;

  --text-main: #dfd8cb;
  --text-muted: #9f9689;
  --text-dim: #6c645b;
  --parchment: #f0e6d6;

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-gothic: 'MedievalSharp', cursive;
  --font-body: 'Crimson Pro', serif;

  --shadow-gothic: 0 10px 30px rgba(0, 0, 0, 0.85);
  --shadow-glow-gold: 0 0 20px rgba(201, 154, 83, 0.25);
  --shadow-glow-crimson: 0 0 20px rgba(189, 42, 51, 0.35);

  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Body Styling */
body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(133, 28, 34, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 10% 40%, rgba(201, 154, 83, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(133, 28, 34, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #09080c 0%, #0e0c12 50%, #08070a 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: 1.5px;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(243, 212, 152, 0.5);
}

/* Gothic Dividers */
.gothic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 500px;
  color: var(--gold-primary);
}

.gothic-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold-primary), var(--gold-dark), transparent);
}

.gothic-divider .ornament {
  font-size: 1.2rem;
  color: var(--gold-primary);
  text-shadow: 0 0 8px rgba(201, 154, 83, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gothic Buttons */
.gothic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--parchment);
  background: linear-gradient(145deg, #241d2a, #131018);
  border: 1px solid var(--gold-dark);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-decoration: none;
}

.gothic-btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px dashed rgba(201, 154, 83, 0.3);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.gothic-btn:hover {
  color: #fff;
  border-color: var(--gold-bright);
  background: linear-gradient(145deg, #32263d, #1a1523);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(201, 154, 83, 0.4);
}

.gothic-btn:hover::before {
  border-color: rgba(243, 212, 152, 0.8);
}

.poem-list-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.poem-list-actions form {
  display: flex;
  margin: 0;
}

.poem-list-actions .gothic-btn {
  min-height: 36px;
  padding: 6px 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.poem-list-actions .poem-list-delete {
  width: 36px;
  padding-right: 0;
  padding-left: 0;
}

.gothic-btn.btn-crimson {
  border-color: var(--crimson-primary);
  background: linear-gradient(145deg, #441115, #1d0709);
}

.gothic-btn.btn-crimson:hover {
  border-color: var(--crimson-glow);
  background: linear-gradient(145deg, #61181e, #2c0a0d);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 20px rgba(189, 42, 51, 0.6);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.gothic-navbar {
  background: rgba(10, 9, 13, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #2d2636;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.gothic-navbar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--gold-dark) 20%, var(--gold-bright) 50%, var(--gold-dark) 80%, transparent 95%);
}

#home,
#studio,
#quotes,
#about-page,
#music-studio {
  scroll-margin-top: 6rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon-svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 8px rgba(201, 154, 83, 0.4));
  transition: var(--transition-bounce);
}

.logo-wrapper:hover .logo-icon-svg {
  transform: scale(1.08) rotate(-4deg);
  filter: drop-shadow(0 0 14px rgba(189, 42, 51, 0.7));
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 40%, var(--gold-primary) 70%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-link.gothic-nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main) !important;
  padding: 8px 14px !important;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link.gothic-nav-link::before {
  content: '☩';
  position: absolute;
  left: 0;
  opacity: 0;
  color: var(--gold-bright);
  font-size: 0.8rem;
  transition: var(--transition-bounce);
}

.nav-link.gothic-nav-link:hover {
  color: var(--gold-bright) !important;
  padding-left: 20px !important;
}

.nav-link.gothic-nav-link:hover::before {
  opacity: 1;
}

.master-console-navbar .master-console-nav .dropdown-menu {
  min-width: 14rem;
  padding: 0.45rem;
  background: rgba(15, 13, 19, 0.98);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
}

.master-console-navbar .master-console-nav .dropdown-item {
  padding: 0.55rem 0.7rem;
  border-radius: 0.25rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.master-console-navbar .master-console-nav .dropdown-item:hover,
.master-console-navbar .master-console-nav .dropdown-item:focus,
.master-console-navbar .master-console-nav .dropdown-item.active {
  color: var(--gold-light);
  background: rgba(201, 154, 83, 0.16);
}

.master-console-navbar .console-view-site {
  white-space: nowrap;
}

.social-dropdown {
  position: relative;
}

.message-nav-link {
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.message-nav-link:hover,
.message-nav-link:focus-visible {
  color: var(--gold-bright);
  background: rgba(201, 154, 83, 0.1);
}

.message-nav-link.has-unread {
  color: var(--gold-bright);
  background: rgba(189, 42, 51, 0.2);
}

.message-nav-link.message-status-error { color: #ffc107; }

.message-inbox-item {
  display: block;
  padding: 12px 0;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 154, 83, 0.2);
  overflow-wrap: anywhere;
}

.message-inbox-item:hover,
.message-inbox-item.active { color: var(--gold-bright); }

.social-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  min-width: 180px;
  padding: 8px;
  transform-origin: top left;
}

.social-dropdown-menu:not([hidden]) {
  animation: member-card-open 180ms ease-out;
}

.social-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 4px;
  color: var(--parchment);
  font-family: var(--font-heading);
  text-decoration: none;
}

.social-dropdown-item[aria-disabled="true"] {
  cursor: default;
}

.social-dropdown-item:hover {
  background: #30251b;
  color: var(--gold-light);
}

.chat-room-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--iron-border);
  border-radius: 4px;
  color: var(--parchment);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.chat-room-link:hover,
.chat-room-link.active {
  color: var(--gold-light);
  border-color: var(--gold-dark);
  background: #30251b;
}

.chat-messages {
  height: 420px;
  overflow-y: auto;
  padding: 12px;
  background: #100e16;
  border: 1px solid var(--iron-border);
  border-radius: 4px;
}

.chat-message {
  padding: 12px 0;
  border-bottom: 1px solid var(--iron-border);
}

.chat-message-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.chat-message-heading strong,
.chat-message-body {
  overflow-wrap: anywhere;
}

.chat-message-body {
  white-space: pre-wrap;
}

.chat-emojis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.forum-directory-entry {
  border-top: 1px solid var(--iron-border);
}

.forum-directory-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.forum-listing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  padding: 6px;
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
  background: linear-gradient(145deg, #261f30, #100e16);
  color: var(--gold-primary);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.forum-listing-icon svg {
  width: 90%;
  height: 90%;
}

.forum-listing-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .forum-directory-row {
    gap: 12px;
  }

  .forum-listing-icon {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
    padding: 4px;
  }
}

.forum-topic-title,
.forum-post-body {
  overflow-wrap: anywhere;
}

.forum-post-body {
  white-space: pre-wrap;
}

.forum-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.forum-images img {
  display: block;
  max-width: 100%;
  width: 220px;
  height: 160px;
  object-fit: contain;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  background: #100e16;
}

.forum-images a,
.forum-images label {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .social-dropdown-menu {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .master-console-navbar .logo-wrapper {
    gap: 8px;
  }

  .master-console-navbar .logo-icon-svg {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .master-console-navbar .logo-title {
    font-size: clamp(1rem, 5vw, 1.3rem);
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .master-console-navbar .logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-dropdown-menu:not([hidden]) {
    animation: none;
  }
}

/* User Profile Badge */
.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(145deg, #191621, #100e16);
  border: 1px solid #362e43;
  padding: 6px 14px 6px 8px;
  border-radius: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
  font: inherit;
}

.user-profile-bar:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 0 15px rgba(201, 154, 83, 0.25);
}

.user-profile-menu {
  position: relative;
}

.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.user-profile-card {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1050;
  width: 310px;
  max-width: calc(100vw - 32px);
  padding: 28px 20px 20px;
  text-align: center;
  background: linear-gradient(145deg, #191621, #100e16);
  border: 1px solid var(--gold-dark);
  border-radius: 14px;
  box-shadow: var(--shadow-gothic), 0 0 24px rgba(201, 154, 83, 0.15);
  transform-origin: top right;
}

.user-profile-card:not([hidden]) {
  animation: member-card-open 220ms ease-out;
}

.member-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.member-card-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(201, 154, 83, 0.2);
}

.member-card-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #362e43;
}

.member-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid #58482f;
  border-radius: 20px;
  background: #100e16;
  color: var(--parchment);
  font: inherit;
  font-size: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.member-card-badge:hover,
.member-card-badge[aria-pressed="true"] {
  color: var(--gold-light);
  background: #30251b;
  border-color: var(--gold-dark);
}

.member-card-badge:disabled {
  opacity: 0.6;
  cursor: wait;
}

.user-profile-trigger:focus-visible,
.member-card-badge:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@keyframes member-card-open {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .user-profile-card:not([hidden]) {
    animation: none;
  }
}

.avatar-frame {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  background: #09080c;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.status-beacon {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #100e16;
  transition: var(--transition-smooth);
}

.status-beacon.online {
  background-color: #27ae60;
  box-shadow: 0 0 10px #2ecc71;
  animation: pulse-online 2.2s infinite;
}

.status-beacon.offline {
  background-color: #7f8c8d;
  box-shadow: 0 0 5px rgba(127, 140, 141, 0.4);
}

@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.user-handle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--parchment);
  line-height: 1.1;
}

.user-status-text {
  font-size: 0.75rem;
  color: #2ecc71;
}

.user-status-text.offline {
  color: #95a5a6;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider-frame {
  position: relative;
  width: 100%;
  border-radius: 6px;
  border: 2px solid var(--iron-border);
  box-shadow: var(--shadow-gothic), 0 0 35px rgba(0, 0, 0, 0.9);
  background: #0d0b11;
  overflow: hidden;
}

.slider-viewport {
  position: relative;
  min-height: 480px;
  display: grid;
}

/* Slides share one grid cell so the viewport grows to fit the tallest slide (no clipped text on phones) */
.slide-item {
  position: relative;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.03);
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) contrast(1.25);
  background-image: 
    radial-gradient(circle at 75% 30%, rgba(133, 28, 34, 0.35) 0%, transparent 60%),
    linear-gradient(90deg, rgba(9, 8, 12, 0.95) 0%, rgba(14, 12, 18, 0.8) 50%, rgba(9, 8, 12, 0.95) 100%);
}

.slide-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  padding: 20px 80px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(133, 28, 34, 0.4);
  border: 1px solid var(--crimson-primary);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   POETRY CATALOG - GOTHIC ART FRAME & BURNED PAPER EFFECT
   ========================================================================== */

.poem-art-link {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

.poem-rating-stars { display: flex; gap: 4px; }

.poem-rating-form .poem-rating-picker { width: auto; }

.poem-rating-form > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 0;
}

.poem-rating-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #706778;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, transform 0.15s;
}

.poem-rating-star i { color: #706778; }
.poem-rating-star:has(input:checked) i,
.poem-rating-star:has(~ .poem-rating-star input:checked) i { color: var(--gold-bright); }

.poem-rating-star:has(input:focus-visible) {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

@media (hover: hover) {
  .poem-rating-stars:hover .poem-rating-star i { color: #706778; }
  .poem-rating-stars .poem-rating-star:hover i,
  .poem-rating-stars .poem-rating-star:has(~ .poem-rating-star:hover) i { color: var(--gold-bright); }
  .poem-rating-star:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .poem-rating-star { transition: none; }
  .poem-rating-star:hover { transform: none; }
}

.poem-image-inset {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.poem-image-inset img {
  display: block;
  border-radius: inherit;
}

.poem-image-inset::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 5px 12px rgba(0, 0, 0, 0.65), inset 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.poem-art-hint {
  display: block;
  margin-top: 0.75rem;
  color: #dfb774;
  font-size: 0.9rem;
  text-align: center;
  transition: color 0.2s ease;
}

.poem-art-link:hover .poem-art-hint,
.poem-art-link:focus-visible .poem-art-hint {
  color: #fff;
  text-decoration: underline;
}

.poem-art-link:focus-visible {
  outline: 2px solid #dfb774;
  outline-offset: 4px;
}

@media (min-width: 992px) {
  .poem-art-link { width: 110%; }
}

.poem-image-lightbox {
  max-width: 95vw;
  max-height: 95vh;
  padding: 3rem 0 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.poem-image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.poem-image-lightbox img {
  display: block;
  max-width: 95vw;
  max-height: calc(95vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.poem-image-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #dfb774;
  border-radius: 50%;
  background: #17141c;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.poem-image-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Outer gothic frame moulding: rich dark oak, antique brass edge, Chiaroscuro depth */
.poem-art-frame {
  position: relative;
  isolation: isolate;
  padding: 16px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 230, 160, 0.16) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(to right, #33251a, #1a120c 25%, #2a1e15 50%, #16100a 75%, #38291e),
    #1f1610;
  border: 3px solid #8e682d;
  box-shadow:
    0 22px 50px -10px rgba(0, 0, 0, 0.95),
    0 10px 20px rgba(0, 0, 0, 0.75),
    inset 0 1px 2px rgba(255, 230, 160, 0.55),
    inset 1px 0 2px rgba(255, 230, 160, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.9),
    inset -1px 0 3px rgba(0, 0, 0, 0.8);
}

/* Stepped ornate inner moulding of the outer frame */
.poem-art-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(223, 183, 116, 0.45);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(223, 183, 116, 0.15) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(45deg, rgba(223, 183, 116, 0.02) 0px, rgba(223, 183, 116, 0.02) 2px, transparent 2px, transparent 6px);
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.65);
}

/* Recessed interior mat chamber behind the frame opening */
.poem-art-mat {
  position: relative;
  padding: 14px 12px;
  border-radius: 3px;
  background-color: #0b090e;
  background-image:
    radial-gradient(ellipse at center, #18131e 0%, #08060a 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
  border: 2px solid rgba(206, 160, 84, 0.6);
  box-shadow:
    inset 0 16px 28px rgba(0, 0, 0, 0.96),
    inset 12px 0 22px rgba(0, 0, 0, 0.9),
    inset -10px 0 20px rgba(0, 0, 0, 0.85),
    inset 0 -12px 22px rgba(0, 0, 0, 0.9),
    inset 0 0 35px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

/* The Burned Paper Container: elevates the burned sheet with depth shadows */
.poem-burned-paper {
  position: relative;
  display: block;
  width: 100%;
  filter:
    drop-shadow(0 0 2px #040201)
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.95))
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.85));
}

/* The Picture itself: organic ragged burned paper contour & antique sepia warmth */
.poem-catalog-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border: none;
  border-radius: 0;
  -webkit-clip-path: polygon(
    0% 2%, 2% 0.8%, 5% 2.2%, 9% 1.2%, 14% 3.6%, 20% 0.6%, 26% 1.9%, 33% 0.4%, 39% 2.3%, 45% 1.1%,
    52% 2.6%, 58% 0.8%, 65% 2.1%, 72% 0.5%, 78% 2.4%, 84% 1.2%, 90% 2.7%, 95% 0.9%, 98% 2.2%, 100% 3.5%,
    99.2% 8%, 97.8% 14%, 99.5% 21%, 98.1% 29%, 99.4% 37%, 96.8% 46%, 99.1% 54%, 98.2% 63%, 99.6% 72%, 97.9% 80%, 99.2% 88%, 98.4% 94%, 97.2% 97.5%,
    92% 99.2%, 86% 98.1%, 80% 99.5%, 73% 96.8%, 66% 99.2%, 59% 98.4%, 51% 99.6%, 43% 97.9%, 36% 99.1%, 29% 98.2%, 22% 99.4%, 15% 96.2%, 9% 99.1%, 4% 97.8%, 1.5% 96.5%,
    2.2% 90%, 0.8% 82%, 2.4% 74%, 1.1% 66%, 2.6% 57%, 3.8% 48%, 2.3% 40%, 1.0% 31%, 2.5% 22%, 0.9% 14%, 2.1% 7%
  );
  clip-path: polygon(
    0% 2%, 2% 0.8%, 5% 2.2%, 9% 1.2%, 14% 3.6%, 20% 0.6%, 26% 1.9%, 33% 0.4%, 39% 2.3%, 45% 1.1%,
    52% 2.6%, 58% 0.8%, 65% 2.1%, 72% 0.5%, 78% 2.4%, 84% 1.2%, 90% 2.7%, 95% 0.9%, 98% 2.2%, 100% 3.5%,
    99.2% 8%, 97.8% 14%, 99.5% 21%, 98.1% 29%, 99.4% 37%, 96.8% 46%, 99.1% 54%, 98.2% 63%, 99.6% 72%, 97.9% 80%, 99.2% 88%, 98.4% 94%, 97.2% 97.5%,
    92% 99.2%, 86% 98.1%, 80% 99.5%, 73% 96.8%, 66% 99.2%, 59% 98.4%, 51% 99.6%, 43% 97.9%, 36% 99.1%, 29% 98.2%, 22% 99.4%, 15% 96.2%, 9% 99.1%, 4% 97.8%, 1.5% 96.5%,
    2.2% 90%, 0.8% 82%, 2.4% 74%, 1.1% 66%, 2.6% 57%, 3.8% 48%, 2.3% 40%, 1.0% 31%, 2.5% 22%, 0.9% 14%, 2.1% 7%
  );
  filter: sepia(0.2) contrast(1.08) brightness(0.96);
  transition: filter 0.3s ease;
}

/* Burned Paper Overlay: Carbon soot, scorch gradients, burnt umber, toasted amber */
.poem-burned-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  -webkit-clip-path: polygon(
    0% 2%, 2% 0.8%, 5% 2.2%, 9% 1.2%, 14% 3.6%, 20% 0.6%, 26% 1.9%, 33% 0.4%, 39% 2.3%, 45% 1.1%,
    52% 2.6%, 58% 0.8%, 65% 2.1%, 72% 0.5%, 78% 2.4%, 84% 1.2%, 90% 2.7%, 95% 0.9%, 98% 2.2%, 100% 3.5%,
    99.2% 8%, 97.8% 14%, 99.5% 21%, 98.1% 29%, 99.4% 37%, 96.8% 46%, 99.1% 54%, 98.2% 63%, 99.6% 72%, 97.9% 80%, 99.2% 88%, 98.4% 94%, 97.2% 97.5%,
    92% 99.2%, 86% 98.1%, 80% 99.5%, 73% 96.8%, 66% 99.2%, 59% 98.4%, 51% 99.6%, 43% 97.9%, 36% 99.1%, 29% 98.2%, 22% 99.4%, 15% 96.2%, 9% 99.1%, 4% 97.8%, 1.5% 96.5%,
    2.2% 90%, 0.8% 82%, 2.4% 74%, 1.1% 66%, 2.6% 57%, 3.8% 48%, 2.3% 40%, 1.0% 31%, 2.5% 22%, 0.9% 14%, 2.1% 7%
  );
  clip-path: polygon(
    0% 2%, 2% 0.8%, 5% 2.2%, 9% 1.2%, 14% 3.6%, 20% 0.6%, 26% 1.9%, 33% 0.4%, 39% 2.3%, 45% 1.1%,
    52% 2.6%, 58% 0.8%, 65% 2.1%, 72% 0.5%, 78% 2.4%, 84% 1.2%, 90% 2.7%, 95% 0.9%, 98% 2.2%, 100% 3.5%,
    99.2% 8%, 97.8% 14%, 99.5% 21%, 98.1% 29%, 99.4% 37%, 96.8% 46%, 99.1% 54%, 98.2% 63%, 99.6% 72%, 97.9% 80%, 99.2% 88%, 98.4% 94%, 97.2% 97.5%,
    92% 99.2%, 86% 98.1%, 80% 99.5%, 73% 96.8%, 66% 99.2%, 59% 98.4%, 51% 99.6%, 43% 97.9%, 36% 99.1%, 29% 98.2%, 22% 99.4%, 15% 96.2%, 9% 99.1%, 4% 97.8%, 1.5% 96.5%,
    2.2% 90%, 0.8% 82%, 2.4% 74%, 1.1% 66%, 2.6% 57%, 3.8% 48%, 2.3% 40%, 1.0% 31%, 2.5% 22%, 0.9% 14%, 2.1% 7%
  );
  box-shadow:
    inset 0 0 10px 5px #050201,
    inset 0 0 22px 10px rgba(42, 14, 4, 0.94),
    inset 0 0 42px 18px rgba(115, 48, 12, 0.68),
    inset 0 0 75px 28px rgba(180, 100, 30, 0.32),
    inset 0 0 115px 45px rgba(215, 145, 55, 0.12);
  background:
    /* Deep scorch bite marks */
    radial-gradient(ellipse 85px 65px at 2% 2%, rgba(5, 2, 1, 0.98) 0%, rgba(45, 14, 4, 0.9) 35%, rgba(130, 55, 14, 0.55) 65%, transparent 100%),
    radial-gradient(ellipse 80px 60px at 98% 3%, rgba(5, 2, 1, 0.96) 0%, rgba(50, 16, 4, 0.88) 35%, rgba(130, 55, 14, 0.5) 65%, transparent 100%),
    radial-gradient(ellipse 95px 75px at 98% 97%, rgba(5, 2, 1, 0.98) 0%, rgba(45, 14, 4, 0.9) 40%, rgba(130, 55, 14, 0.55) 70%, transparent 100%),
    radial-gradient(ellipse 85px 65px at 2% 96%, rgba(5, 2, 1, 0.96) 0%, rgba(50, 16, 4, 0.88) 35%, rgba(130, 55, 14, 0.5) 65%, transparent 100%),
    radial-gradient(ellipse 75px 45px at 45% 0%, rgba(5, 2, 1, 0.94) 0%, rgba(60, 20, 5, 0.82) 40%, transparent 100%),
    radial-gradient(ellipse 55px 85px at 100% 46%, rgba(5, 2, 1, 0.95) 0%, rgba(60, 20, 5, 0.82) 40%, transparent 100%),
    radial-gradient(ellipse 75px 50px at 15% 100%, rgba(5, 2, 1, 0.95) 0%, rgba(60, 20, 5, 0.82) 40%, transparent 100%),
    radial-gradient(ellipse 55px 80px at 0% 48%, rgba(5, 2, 1, 0.95) 0%, rgba(60, 20, 5, 0.82) 40%, transparent 100%),
    /* Linear singed edges */
    linear-gradient(to bottom, rgba(8, 3, 1, 0.88) 0%, rgba(70, 24, 6, 0.55) 14px, transparent 40px),
    linear-gradient(to top, rgba(8, 3, 1, 0.88) 0%, rgba(70, 24, 6, 0.55) 14px, transparent 40px),
    linear-gradient(to right, rgba(8, 3, 1, 0.88) 0%, rgba(70, 24, 6, 0.55) 14px, transparent 40px),
    linear-gradient(to left, rgba(8, 3, 1, 0.88) 0%, rgba(70, 24, 6, 0.55) 14px, transparent 40px);
}

/* Subtle ember glow on hover */
.poem-art-frame:hover .poem-catalog-image {
  filter: sepia(0.24) contrast(1.1) brightness(1.0);
}

/* Frame Overlay: Casts shadows ON TOP of picture & holds corner brackets */
.poem-frame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: 6px;
  box-shadow:
    inset 0 16px 30px rgba(0, 0, 0, 0.92),
    inset 14px 0 24px rgba(0, 0, 0, 0.85),
    inset -12px 0 22px rgba(0, 0, 0, 0.8),
    inset 0 -14px 26px rgba(0, 0, 0, 0.88);
}

/* Ornate Gothic Corner Brackets */
.frame-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  background-image: url('../img/frame-corner.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.85));
}

.frame-corner-tl {
  top: 3px;
  left: 3px;
  transform: rotate(0deg);
}

.frame-corner-tr {
  top: 3px;
  right: 3px;
  transform: rotate(90deg);
}

.frame-corner-br {
  bottom: 3px;
  right: 3px;
  transform: rotate(180deg);
}

.frame-corner-bl {
  bottom: 3px;
  left: 3px;
  transform: rotate(270deg);
}

/* Graceful styling if poem-art-frame wraps an img directly without inner divs */
.poem-art-frame > img.poem-catalog-image {
  -webkit-clip-path: polygon(
    0% 2%, 2% 0.8%, 5% 2.2%, 9% 1.2%, 14% 3.6%, 20% 0.6%, 26% 1.9%, 33% 0.4%, 39% 2.3%, 45% 1.1%,
    52% 2.6%, 58% 0.8%, 65% 2.1%, 72% 0.5%, 78% 2.4%, 84% 1.2%, 90% 2.7%, 95% 0.9%, 98% 2.2%, 100% 3.5%,
    99.2% 8%, 97.8% 14%, 99.5% 21%, 98.1% 29%, 99.4% 37%, 96.8% 46%, 99.1% 54%, 98.2% 63%, 99.6% 72%, 97.9% 80%, 99.2% 88%, 98.4% 94%, 97.2% 97.5%,
    92% 99.2%, 86% 98.1%, 80% 99.5%, 73% 96.8%, 66% 99.2%, 59% 98.4%, 51% 99.6%, 43% 97.9%, 36% 99.1%, 29% 98.2%, 22% 99.4%, 15% 96.2%, 9% 99.1%, 4% 97.8%, 1.5% 96.5%,
    2.2% 90%, 0.8% 82%, 2.4% 74%, 1.1% 66%, 2.6% 57%, 3.8% 48%, 2.3% 40%, 1.0% 31%, 2.5% 22%, 0.9% 14%, 2.1% 7%
  );
  clip-path: polygon(
    0% 2%, 2% 0.8%, 5% 2.2%, 9% 1.2%, 14% 3.6%, 20% 0.6%, 26% 1.9%, 33% 0.4%, 39% 2.3%, 45% 1.1%,
    52% 2.6%, 58% 0.8%, 65% 2.1%, 72% 0.5%, 78% 2.4%, 84% 1.2%, 90% 2.7%, 95% 0.9%, 98% 2.2%, 100% 3.5%,
    99.2% 8%, 97.8% 14%, 99.5% 21%, 98.1% 29%, 99.4% 37%, 96.8% 46%, 99.1% 54%, 98.2% 63%, 99.6% 72%, 97.9% 80%, 99.2% 88%, 98.4% 94%, 97.2% 97.5%,
    92% 99.2%, 86% 98.1%, 80% 99.5%, 73% 96.8%, 66% 99.2%, 59% 98.4%, 51% 99.6%, 43% 97.9%, 36% 99.1%, 29% 98.2%, 22% 99.4%, 15% 96.2%, 9% 99.1%, 4% 97.8%, 1.5% 96.5%,
    2.2% 90%, 0.8% 82%, 2.4% 74%, 1.1% 66%, 2.6% 57%, 3.8% 48%, 2.3% 40%, 1.0% 31%, 2.5% 22%, 0.9% 14%, 2.1% 7%
  );
  filter: sepia(0.2) contrast(1.08) brightness(0.96);
}

@media (max-width: 991.98px) {
  .poem-content-with-image {
    padding-left: 0;
    margin-top: 1.5rem;
  }
  .poem-art-frame {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

.poem-catalog-text {
  color: var(--text-main);
  white-space: pre-wrap;
  line-height: 1.8;
}

.poem-card {
  background-color: #17141c;
  background-image:
    radial-gradient(rgba(223, 183, 116, 0.14) 0.8px, transparent 1.1px),
    linear-gradient(135deg, rgba(223, 183, 116, 0.1), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 4px);
  background-size: 6px 6px, 100% 100%, 100% 5px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7), inset 0 0 32px rgba(0, 0, 0, 0.55);
}

.poem-content-with-image {
  padding-left: 60px;
}

@media (min-width: 992px) {
  .poem-content-with-image { padding-left: 150px; }
}

.poem-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.poem-font-size-control {
  appearance: none;
  padding-right: 1.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-primary) 50%),
    linear-gradient(135deg, var(--gold-primary) 50%, transparent 50%),
    linear-gradient(145deg, #241d2a, #131018);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 8px) 50%,
    0 0;
  background-size: 4px 4px, 4px 4px, 100% 100%;
  background-repeat: no-repeat;
}

.poem-font-size-control option {
  color: var(--parchment);
  background: #131018;
}

.poem-rich-editor {
  min-height: 220px;
  overflow-y: auto;
  white-space: normal;
  line-height: 1.8;
}

.poem-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

.poem-rich-editor blockquote,
.poem-catalog-text blockquote,
.about-body blockquote {
  border-left: 3px solid var(--gold-primary);
  margin: 0.75rem 0;
  padding-left: 1rem;
  color: var(--gold-light);
}

.poem-catalog-text ul,
.poem-catalog-text ol {
  padding-left: 1.5rem;
}

.slide-title span {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-description {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 28px;
  line-height: 1.7;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 48px;
  height: 48px;
  background: rgba(18, 15, 24, 0.85);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-size: 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  backdrop-filter: blur(6px);
}

.slider-btn:hover {
  background: var(--bg-surface-elevated);
  color: #fff;
  border-color: var(--gold-bright);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(201, 154, 83, 0.5);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--iron-border);
  border: 1px solid var(--iron-light);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.slider-dot.active {
  width: 26px;
  border-radius: 6px;
  background: var(--gold-primary);
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(201, 154, 83, 0.8);
}

/* ==========================================================================
   3 FLOATING & BOUNCING FEATURE CARDS
   ========================================================================== */
@keyframes gothicCardFloatBounce {
  0% { transform: translateY(0px) scale(1); }
  35% { transform: translateY(-22px) scale(1.03); }
  65% { transform: translateY(-12px) scale(1.02); }
  85% { transform: translateY(-18px) scale(1.025); }
  100% { transform: translateY(-16px) scale(1.025); }
}

.gothic-card {
  background: linear-gradient(160deg, #1c1824 0%, #120f18 60%, #0c0a10 100%);
  border: 1px solid var(--iron-border);
  border-radius: 4px;
  padding: 34px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}

.gothic-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 154, 83, 0.12);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.card-corner-ornament {
  position: absolute;
  top: 8px;
  right: 8px;
  color: rgba(201, 154, 83, 0.3);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.gothic-card:hover {
  animation: gothicCardFloatBounce 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  border-color: var(--gold-primary);
  box-shadow: 
    0 25px 45px -8px rgba(0, 0, 0, 0.95),
    0 0 25px rgba(201, 154, 83, 0.22),
    inset 0 0 20px rgba(133, 28, 34, 0.15);
}

.gothic-card:hover .card-corner-ornament {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(201, 154, 83, 0.8);
  transform: rotate(45deg);
}

.card-icon-box {
  width: 65px;
  height: 65px;
  background: linear-gradient(145deg, #261f30, #130f1a);
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.7rem;
  color: var(--gold-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: var(--transition-bounce);
}

.gothic-card:hover .card-icon-box {
  background: linear-gradient(145deg, #441117, #1d070a);
  border-color: var(--crimson-glow);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 18px rgba(189, 42, 51, 0.6);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.card-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-top: auto;
}

/* ==========================================================================
   QUOTE PLAQUE
   ========================================================================== */
.quote-plaque,
.social-dropdown-menu {
  background: linear-gradient(180deg, #1a1622 0%, #100e16 100%);
  border: 2px solid #362e44;
  border-radius: 4px;
  box-shadow: var(--shadow-gothic), inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.quote-plaque {
  padding: 36px 50px;
  position: relative;
  text-align: center;
}

.quote-plaque::before, .quote-plaque::after,
.social-dropdown-menu::before, .social-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent, var(--gold-dark), var(--gold-bright), var(--gold-dark), transparent);
  pointer-events: none;
}
.quote-plaque::before, .social-dropdown-menu::before { left: 0; }
.quote-plaque::after, .social-dropdown-menu::after { right: 0; }

.quote-marks-icon {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold-dark);
  opacity: 0.6;
  line-height: 0.5;
  margin-bottom: 12px;
  display: block;
}

.quote-text {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  color: var(--parchment);
  max-width: 900px;
  margin: 0 auto 14px;
}

.about-body {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.8;
  text-align: start;
}

.quote-author {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   MUSIC BOX (YOUTUBE PLAYER)
   ========================================================================== */
.musicbox-chassis {
  background: linear-gradient(165deg, #181520 0%, #0f0d14 50%, #08070b 100%);
  border: 2px solid var(--iron-border);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(133, 28, 34, 0.2);
  padding: 32px;
  position: relative;
}

.youtube-frame-wrapper {
  position: relative;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--iron-border);
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.youtube-frame-wrapper::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.youtube-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.track-info-card {
  background: #110f17;
  border: 1px solid #2d2639;
  border-radius: 4px;
  padding: 16px;
}

.recording-visualizer {
  padding: 16px;
  border: 1px solid #2d2639;
  border-radius: 4px;
  background: linear-gradient(165deg, #181520, #08070b);
}

.recording-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--iron-border);
}

.recording-spectrum-bar {
  flex: 1;
  min-width: 0;
  height: 100%;
  transform: scaleY(0.02);
  transform-origin: bottom;
  background: linear-gradient(to top, #851c22, #c99a53 65%, #f3d498);
  border-radius: 2px 2px 0 0;
}

.playlist-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #14111c;
  border: 1px solid #231f2c;
  border-radius: 3px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 8px;
}

.playlist-track-item:hover, .playlist-track-item.active {
  background: linear-gradient(90deg, #30141a, #1a121e);
  border-color: var(--crimson-glow);
  color: #fff;
  transform: translateX(4px);
}

.playlist-track-item.active .track-name {
  color: var(--gold-bright);
}

/* Form Controls (Gothic Input) */
.gothic-input, .form-control.gothic-input {
  background-color: #0a090e !important;
  border: 1px solid var(--iron-border) !important;
  color: var(--parchment) !important;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.gothic-input:focus, .form-control.gothic-input:focus {
  background-color: #100e16 !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 10px rgba(201, 154, 83, 0.3) !important;
  color: #fff !important;
}

/* Gothic Footer */
.gothic-footer {
  background: #060508;
  border-top: 2px solid #251f2e;
  padding: 60px 0 30px;
  margin-top: 50px;
  position: relative;
}

.gothic-footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--crimson-primary), var(--gold-dark), transparent);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-primary);
}

.social-btn {
  width: 40px;
  height: 40px;
  background: #131018;
  border: 1px solid var(--iron-border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-bounce);
  text-decoration: none;
}

.social-btn:hover {
  background: #251b2f;
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(201, 154, 83, 0.4);
}

@media (max-width: 768px) {
  .slide-content {
    padding: 20px 65px;
  }
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .slide-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .slide-content {
    padding: 28px 52px 56px;
  }
  .slide-title {
    font-size: 1.6rem;
  }
  .slide-description {
    font-size: 0.95rem;
  }
  .slide-tag {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }
  .video-play-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }
}

.quote-text p:last-child {
  margin-bottom: 0;
}
.about-body p:last-child {
  margin-bottom: 0;
}

/* Featured video box */
#videobox { scroll-margin-top: 110px; }
.video-frame { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border: 1px solid rgba(197, 160, 89, 0.45); border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 0 30px rgba(133, 28, 34, 0.35); }
.video-frame iframe, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { background-size: cover; background-position: center; cursor: pointer; padding: 0; }
.video-poster::after { content: ''; position: absolute; inset: 0; background: rgba(10, 6, 8, 0.45); transition: background 0.2s; }
.video-poster:hover::after { background: rgba(10, 6, 8, 0.2); }
.video-play-icon { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(133, 28, 34, 0.9); color: #fff; font-size: 2rem; border: 2px solid rgba(197, 160, 89, 0.8); }

/* Scrollable recordings list */
.playlist-scroll { max-height: 440px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--crimson-glow) #14111c; }
.playlist-scroll::-webkit-scrollbar { width: 8px; }
.playlist-scroll::-webkit-scrollbar-thumb { background: var(--crimson-glow); border-radius: 4px; }
.playlist-scroll::-webkit-scrollbar-track { background: #14111c; }
.playlist-play-btn { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(197, 160, 89, 0.7); background: rgba(133, 28, 34, 0.5); color: #fff; font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; }
.playlist-track-item:hover .playlist-play-btn, .playlist-track-item.active .playlist-play-btn { background: var(--crimson-glow); }

/* Legal pages */
.legal-body h2, .legal-body h3 { font-family: var(--font-display); color: var(--gold-bright); }
.legal-body h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.legal-body h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal-body p, .legal-body li { color: var(--text-muted, #b9b2c2); line-height: 1.8; }

/* Blog */
.card-text-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.blog-body h2 { font-size: 1.4rem; }
.blog-body blockquote { border-left: 3px solid var(--gold-primary); padding-left: 1rem; font-style: italic; }

/* Avatar picker */
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.avatar-option { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 8px 4px; border: 1px solid #2c2638; border-radius: 10px; background: rgba(0,0,0,.25); transition: var(--transition-smooth); }
.avatar-option:hover { border-color: var(--gold-dark); }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-option-img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold-dark); display: block; }
.avatar-option-img .avatar-img { display: block; width: 100%; height: 100%; }
.avatar-option-name { font-size: .72rem; color: #b8b0c6; text-align: center; }
.avatar-option:has(input:checked) { border-color: var(--gold); background: rgba(201,154,83,.12); box-shadow: 0 0 12px rgba(201,154,83,.3); }
.avatar-option:has(input:focus-visible) { outline: 2px solid var(--gold); }
.avatar-frame .avatar-img { display: block; }
