/* ═══════════════════════════════════════════════════
   addryel.com — Visual Alchemist
   Global Styles
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+SC:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ── Variables ── */
:root {
  --bg-deep:     #130208;
  --bg-dark:     #1e0409;
  --bg-card:     #4a0a18;
  --bg-card-hover: #5e1020;
  --bg-header:   #0e0104;
  --bg-nav:      #1a0307;
  --gold:        #c9a837;
  --gold-light:  #e8d080;
  --gold-dim:    #8a6820;
  --gold-faint:  #6a5018;
  --text-gold:   #d4a843;
  --text-light:  #eed890;
  --border:      rgba(201,168,55,0.45);
  --border-hover:rgba(201,168,55,0.85);
  --shadow-gold: 0 0 18px rgba(201,168,55,0.18);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text-gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none; /* custom cursor */
}

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

/* ══════════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════════ */
#cursor-wand {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 20px;
  height: 20px;
  /* tip of arrow is at (2,1) in viewBox → shift element so tip aligns with mouse */
  transform: translate(-2px, -1px);
}

#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99998;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  gap: 24px;
}

.logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.logo-name {
  font-family: 'Cormorant SC', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.logo-tagline {
  font-family: 'Cormorant SC', serif;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 300;
  color: var(--text-gold);
  letter-spacing: 0.18em;
}

.search-wrap {
  flex: 0 1 420px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,55,0.07);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 7px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201,168,55,0.25);
}

.search-bar svg { flex-shrink: 0; opacity: 0.6; }

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-gold);
  width: 100%;
  letter-spacing: 0.05em;
}

.search-bar input::placeholder { color: var(--gold-dim); font-size: 1.15rem; }

/* ── Navigation ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 32px;
  background: var(--bg-nav);
  border-top: 1px solid rgba(201,168,55,0.15);
}

.site-nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  padding: 11px 14px;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: left 0.2s, right 0.2s;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--gold-light);
}
.site-nav a:hover::after, .site-nav a.active::after {
  left: 12px; right: 12px;
}

/* ══════════════════════════════════════════════════
   HERO TEXT (compact — just the title strip)
══════════════════════════════════════════════════ */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 64px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Cormorant SC', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1.3;
  text-shadow: 0 2px 24px rgba(201,168,55,0.45), 0 0 50px rgba(201,168,55,0.12);
  max-width: 780px;
  margin: 0 auto;
  letter-spacing: 0.03em;
}

/* corner ornaments on hero */
.ornament-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 3;
}
.ornament-corner.tl { top: 8px;    left: 8px;   }
.ornament-corner.tr { top: 8px;    right: 8px;  transform: scaleX(-1); }
.ornament-corner.bl { bottom: 8px; left: 8px;   transform: scaleY(-1); }
.ornament-corner.br { bottom: 8px; right: 8px;  transform: scale(-1,-1); }

/* ── Ornamental Separator ── */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  position: relative;
  z-index: 3;
}

.separator-line {
  flex: 1;
  height: 1px;
  max-width: 280px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.separator-line.r {
  background: linear-gradient(to left, transparent, var(--gold-dim), transparent);
}

.separator-gem {
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.hero-separator { margin-top: 18px; opacity: 0.65; max-width: 200px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════════════
   MAIN CONTENT (grid area — transparent, inherits frame background)
══════════════════════════════════════════════════ */
#main-content {
  position: relative;
  padding: 0 0 8px;
}

/* ── Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 24px 24px;
}

/* ── Category Card ── */
.cat-card {
  position: relative;
  background: linear-gradient(to right, #190305, #5c0f1e);
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.cat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold), inset 0 0 30px rgba(201,168,55,0.06);
  background: linear-gradient(to right, #220407, #6e1224);
}

/* Small corner ornaments on each card */
.card-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.6;
}
.card-corner.tr { top: 3px;    right: 3px;  transform: rotate(90deg) scaleY(-1); }
.card-corner.bl { bottom: 3px; left: 3px;   transform: rotate(90deg) scaleX(-1); }

/* Icon thumbnail */
.cat-icon {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 5px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  /* animation starting state */
  opacity: 0;
  transform: translateY(-60px) scale(0.85);
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card text */
.cat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-name {
  font-family: 'Cinzel', serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.2;
}

.cat-btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-dim);
  border: 1px solid var(--gold-faint);
  padding: 5px 14px;
  border-radius: 2px;
  text-transform: uppercase;
  align-self: flex-start;
  background: linear-gradient(to right, #190305, #5c0f1e);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.cat-card:hover .cat-btn {
  color: var(--gold-light);
  border-color: var(--gold);
  background: linear-gradient(to right, #220407, #6e1224);
}

/* ── Page outer frame separator ── */
.page-sep-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  margin: 0 24px;
}

/* ══════════════════════════════════════════════════
   OUTER PAGE BORDER WRAPPER
══════════════════════════════════════════════════ */
.page-frame {
  position: relative;
  max-width: 1200px;
  margin: 16px auto 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  /* Background covers both hero text and grid */
  background-image: url('https://pub-3c9628b1a1bb466fa813f45c7468f294.r2.dev/Assets/Branding/Background.jpeg');
  background-size: cover;
  background-position: center;
}

/* Dark overlay over the whole frame */
.page-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14,2,6,0.40);
  pointer-events: none;
  z-index: 0;
}

/* All direct children above the overlay (except corners which are absolute) */
.page-frame > *:not(.frame-corner) { position: relative; z-index: 1; }

/* Full-page corner ornaments */
.frame-corner {
  position: absolute;
  width: 55px;
  height: 55px;
  pointer-events: none;
  z-index: 10;
  opacity: 0.6;
}
.frame-corner.tl { top: 0;    left: 0;    }
.frame-corner.tr { top: 0;    right: 0;   transform: scaleX(-1); }
.frame-corner.bl { bottom: 0; left: 0;    transform: scaleY(-1); }
.frame-corner.br { bottom: 0; right: 0;   transform: scale(-1,-1); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
#site-footer {
  text-align: center;
  padding: 18px 32px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  margin-top: 16px;
}

/* ══════════════════════════════════════════════════
   CATEGORY PAGE
══════════════════════════════════════════════════ */
.cat-page-header {
  padding: 28px 32px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.cat-page-title-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cat-page-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
}

.cat-page-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--gold-dim);
  font-style: normal;
  letter-spacing: 0.04em;
}

.cat-page-desc {
  flex: 1;
  border-left: 1px solid var(--border);
  padding-left: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-style: normal;
  color: var(--text-gold);
  line-height: 1.45;
  align-self: center;
}

.about-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 32px 24px 48px;
}
.about-body {
  width: 55%;
  background: rgba(55, 12, 24, 0.82);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 40px 48px;
}
.about-heading {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.about-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: normal;
  color: var(--text-gold);
  line-height: 1.55;
  margin-bottom: 1.2em;
}
.about-body p:last-child {
  margin-bottom: 0;
}

/* Reiki gratitude link */
.reiki-gratitude {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.reiki-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.reiki-img {
  max-width: 220px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: box-shadow 0.4s ease, filter 0.4s ease;
}
.reiki-link:hover .reiki-img {
  box-shadow: 0 0 22px 8px rgba(201,168,55,0.55), 0 0 50px 18px rgba(201,168,55,0.25);
  filter: brightness(1.12);
}
.reiki-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-gold);
  line-height: 1.55;
  margin-top: 0.65em;
  text-align: center;
  transition: color 0.4s ease;
}
.reiki-link:hover .reiki-caption {
  color: var(--gold-light);
}

/* Apps section */
.app-link {
  display: inline-block;
  text-decoration: none;
}
.app-link-img {
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: box-shadow 0.4s ease;
}
.app-link:hover .app-link-img {
  box-shadow: 0 0 16px 5px rgba(201,168,55,0.45);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-form label {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  background: rgba(19, 2, 8, 0.7);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text-gold);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-light);
}
.contact-form textarea {
  min-height: 140px;
}
.contact-submit {
  align-self: center;
  margin-top: 8px;
  padding: 11px 40px;
  background: transparent;
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-submit:hover {
  background: rgba(201, 168, 55, 0.12);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 20px 24px 24px;
}

/* ── Gallery Item ── */
.gallery-item {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

/* 16:9 placeholder */
.thumb-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--bg-deep);
}

/* vector placeholder — keeps image inside 16:9 box with padding */
.thumb-vector {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-deep);
}

.thumb-16x9 img,
.thumb-16x9 video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-vector img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
}

/* play overlay on video thumbs */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,2,6,0.35);
  transition: background 0.2s;
}
.gallery-item:hover .play-overlay { background: rgba(14,2,6,0.1); }
.play-overlay svg { filter: drop-shadow(0 0 6px rgba(201,168,55,0.5)); }

/* gallery item info bar */
.item-info {
  padding: 10px 12px 10px 44px;
  border-top: 1px solid var(--border);
}
.item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  color: var(--text-gold);
}

/* small corner ornaments on gallery items */
.gallery-item .card-corner {
  width: 36px;
  height: 36px;
}

/* corners inside thumb containers (on the image/video itself) */
.thumb-16x9 .card-corner,
.thumb-vector .card-corner {
  width: 28px;
  height: 28px;
  z-index: 3;
}

/* ══════════════════════════════════════════════════
   PLAYER PAGE  (mockup 02)
══════════════════════════════════════════════════ */
.player-page {
  position: relative;
  background-image: url('https://pub-3c9628b1a1bb466fa813f45c7468f294.r2.dev/Assets/Branding/Background.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}
.player-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14,2,6,0.62);
  pointer-events: none;
}

.player-wrap {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}

.player-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 6px;
}

/* video/image box */
.player-box {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  background: #000;
  margin: 12px 0;
  box-shadow: var(--shadow-gold);
}

.player-box video,
.player-box img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #000;
}

/* vector inside player — fills player box at natural aspect ratio */
.player-box.vector-player {
  background: var(--bg-deep);
}
.player-box.vector-player img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

/* Custom audio controls bar */
.audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14,2,6,0.85);
  border-top: 1px solid var(--border);
}

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.15s;
}
.ctrl-btn:hover { color: var(--gold-light); transform: scale(1.15); }

.time-display {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  min-width: 38px;
}

.progress-wrap {
  flex: 1;
  position: relative;
  height: 4px;
  background: var(--gold-faint);
  border-radius: 2px;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* player corner ornaments */
.player-box .card-corner {
  width: 48px;
  height: 48px;
}

/* Related items below player */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

/* ══════════════════════════════════════════════════
   MODAL LIGHTBOX
══════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(14,2,6,0.92);
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: min(92vw, 1000px);
  width: 100%;
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════════════
   SEARCH RESULTS PAGE
══════════════════════════════════════════════════ */
.search-page { padding: 24px 32px; }
.search-page h2 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  margin-bottom: 20px;
}
.search-section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin: 20px 0 12px;
  text-transform: uppercase;
}

/* Progress bar thumb (diamond) */
.progress-thumb {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 5px rgba(201,168,55,0.9);
  pointer-events: none;
  left: 0%;
  transition: box-shadow 0.15s;
}
.progress-wrap:hover .progress-thumb {
  box-shadow: 0 0 9px rgba(232,208,128,1);
}

/* Maximize / fullscreen button on player */
.player-maximize-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(14,2,6,0.72);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 6px 7px;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.player-maximize-btn:hover { background: rgba(14,2,6,0.92); color: var(--gold-light); }

/* Fullscreen lightbox overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99000;
  background: #090104;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img,
.lightbox-overlay video {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 92vh;
  display: block;
  cursor: default;
  box-shadow: 0 0 60px rgba(201,168,55,0.15);
}
.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close-btn:hover { color: var(--gold-light); }

/* Motion Graphics: hover-reveal video thumb */
.mg-thumb-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Audio waveform canvas */
#waveform-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ══════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════ */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Cat icon float-in animation */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-80px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cat-icon.animated {
  animation: floatIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }
  .header-top    { flex-wrap: wrap; }
  .hero-title    { font-size: 1.5rem; }
  .ornament-corner { width: 60px; height: 60px; }
}
