/* =====================================================================
   COMMERCE & CAPTURE (task A) — email capture band + buy buttons
   Loaded after styles.css so it layers on top of any design theme.
   ===================================================================== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.join-band { padding-top: 40px; padding-bottom: 40px; }
.join-inner {
  max-width: var(--maxw, 1240px); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  background: var(--grad-soft, rgba(99,230,210,0.12));
  border: 1px solid var(--line, rgba(210,224,255,0.10));
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
}
.join-copy h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 12px; }
.join-copy p { color: var(--muted, #b7c0d4); margin: 0; }
.join-form { display: flex; flex-direction: column; gap: 12px; }
.join-form input[type="email"] {
  width: 100%; min-height: 52px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--hair, rgba(210,224,255,0.12));
  background: rgba(255,255,255,0.04); color: var(--text, #eef2f8);
  font-family: var(--sans, Inter, sans-serif); font-size: 16px;
}
.join-form input[type="email"]:focus { outline: 2px solid var(--teal, #63e6d2); outline-offset: 1px; }
.join-form .btn { width: 100%; }
.join-status { margin: 4px 0 0; font-size: 13.5px; min-height: 18px; }
.join-status.ok { color: var(--teal, #63e6d2); }
.join-status.err { color: var(--rose, #f0a6c8); }
.join-status a { text-decoration: underline; }

.product .buy-btn { margin-top: 16px; width: 100%; }
.product.featured .buy-btn { margin-top: 20px; }
.buy-btn.is-notify { opacity: 0.92; }
.form-notice { margin-top: 12px; font-size: 13.5px; color: var(--teal, #63e6d2); }

@media (max-width: 760px) {
  .join-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ---- AURLOA emotion moods ---- */
.aurloa-moods { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.aurloa-mood {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--hair, rgba(210,224,255,0.12));
  border-radius: 14px; padding: 8px 8px 10px; cursor: pointer; width: 92px;
  transition: transform .16s ease, border-color .2s ease, background .2s ease;
}
.aurloa-mood img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; display: block; }
.aurloa-mood span { font-size: 12px; letter-spacing: 0.04em; color: var(--muted, #b7c0d4); }
.aurloa-mood:hover { transform: translateY(-2px); border-color: var(--teal, #63e6d2); }
.aurloa-mood.is-active { border-color: var(--teal, #63e6d2); background: var(--grad-soft, rgba(99,230,210,0.12)); }
.aurloa-mood.is-active span { color: var(--text, #eef2f8); }
#aurloa-main { transition: opacity .25s ease; }

/* ---- AURLOA trailer / story preview ---- */
.aurloa-trailer { margin-top: 48px; }
.trailer-head { max-width: 760px; margin-bottom: 22px; }
.trailer-head .eyebrow { display:inline-block; }
.trailer-head h2 { font-size: clamp(22px, 2.4vw, 34px); margin: 6px 0 10px; }
.trailer-head p { color: var(--muted, #b7c0d4); margin: 0; }
.trailer-video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 18px; background:#000; border:1px solid var(--hair, rgba(210,224,255,0.12)); }
.trailer-video iframe, .trailer-video video { position:absolute; inset:0; width:100%; height:100%; border:0; }
.trailer-frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trailer-frames figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair, rgba(210,224,255,0.12)); background: var(--panel, #0e1424); }
.trailer-frames figure img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9; transition: transform .3s ease; }
.trailer-frames figure:hover img { transform: scale(1.04); }
.trailer-frames .tf-lead { grid-column: 1 / -1; }
.trailer-frames .tf-lead img { aspect-ratio: 21/9; }
@media (max-width: 760px) {
  .trailer-frames { grid-template-columns: repeat(2, 1fr); }
  .trailer-frames .tf-lead img { aspect-ratio: 16/9; }
}

/* ---- enlarge AURLOA + anime artwork ---- */
.anime-hero { align-items: center; gap: 40px; }
.anime-hero #aurloa-main { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.aurloa-mood { width: 108px; }
.aurloa-mood img { width: 92px; height: 92px; }
.trailer-frames { gap: 14px; }
.trailer-frames figure img { aspect-ratio: 16/10; }
.trailer-frames .tf-lead img { aspect-ratio: 21/9; }

/* ---- copyright protection: discourage casual download of original photos + artwork ---- */
#photo-gallery img, .lightbox img, #lightbox img, .anime-section img, .trailer-frames img, #aurloa-main {
  -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; user-drag: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

/* ---- gallery country -> city hierarchy ---- */
#photo-gallery .country-block { margin-bottom: 60px; }
#photo-gallery .country-head {
  font-family: var(--serif, Fraunces, serif);
  font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.01em;
  padding-bottom: 14px; margin: 0 0 6px; border-bottom: 1px solid var(--line, rgba(210,224,255,0.10));
}
#photo-gallery .country-head .col-count { font-size: 0.42em; opacity: 0.45; font-family: var(--sans, Inter, sans-serif); vertical-align: middle; margin-left: 6px; }
#photo-gallery .city-block { margin-top: 30px; }
#photo-gallery .city-head {
  font-family: var(--sans, Inter, sans-serif); font-size: clamp(15px, 1.5vw, 20px); font-weight: 600;
  letter-spacing: 0.02em; color: var(--muted, #b7c0d4); margin: 0 0 14px;
}
#photo-gallery .city-head .topic-count { opacity: 0.4; font-size: 0.8em; margin-left: 4px; }

/* =====================================================================
   PIXEL PROFESSIONAL POLISH
   ---------------------------------------------------------------------
   Studio-grade refinement pass. Goals: one consistent grid, one tighter
   type scale, one shared card language, calmer rhythm, elegant filter
   chips, and a solid mobile pass. Reuses existing tokens only
   (--grad, --grad-soft, --muted, --line, --hair, --panel, --serif,
   --sans, --maxw, --text, --dim). No new colors, no JS/HTML hooks
   touched. Subtle motion only.
   ===================================================================== */

/* ---- 0. Local rhythm/scale tokens (all derived from existing vars) ---- */
:root {
  --gutter: clamp(22px, 6vw, 64px);   /* one shared page gutter */
  --card-radius: 18px;                /* one shared card radius */
  --card-pad: clamp(24px, 2.4vw, 32px);
  --section-gap: clamp(72px, 9vw, 120px);
  --heading-gap: clamp(36px, 5vw, 56px);
  --stack-sm: 10px;
  --stack-md: 18px;
}

/* ---- 1. Consistent section rhythm & one shared max-width/gutter -------
   Every section (constrained OR full-bleed band) now presents its inner
   content at the SAME max-width and the SAME gutter, so nothing reads as
   off-grid. Full-bleed bands keep their tint but align their content to
   the exact same column as the constrained sections.                     */
.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.intro-band,
.timeline-section,
.anime-section,
.members-section,
.roadmap-section,
.licensing-section,
.contact-section {
  /* align band content to the same central column as constrained sections */
  padding-left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
}
/* Keep the email band aligned to the same column + rhythm as siblings */
.join-band { padding-left: var(--gutter); padding-right: var(--gutter); }
.join-inner { max-width: var(--maxw); }

/* ---- 2. Tighter, more confident type scale --------------------------
   The stock h2 clamp tops out very large (56px). Rein it in for a calmer,
   more editorial feel and give headings consistent measure + margins.    */
h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  max-width: 22ch;
}
h3 {
  font-size: clamp(19px, 1.5vw, 22px);
}
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); }

/* Eyebrow: consistent size + breathing room everywhere it appears */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.26em;
  margin-bottom: 16px;
}

/* Section heading block: one consistent spacing below every heading */
.section-heading { margin-bottom: var(--heading-gap); }
.section-heading > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 64ch;
}

/* ---- 3. ONE shared card language ------------------------------------
   Unify radius / padding / border / hover across every card family so
   the page reads as a single system rather than many bespoke boxes.      */
.intro-grid article,
.product,
.members-grid article,
.license-grid article,
.game-card,
.roadmap article,
.membership-pricing article,
.episodes article,
.chapter-list article,
.music-panel,
.contact-card,
.timeline-card {
  border-radius: var(--card-radius);
  padding: var(--card-pad);
}
/* Match the aurora hover top-rule inset to the new padding */
.intro-grid article::before,
.members-grid article::before,
.license-grid article::before,
.game-card::before,
.episodes article::before,
.roadmap article::before {
  left: var(--card-pad);
  right: var(--card-pad);
}
/* Consistent, restrained hover lift + hairline for every card family */
.intro-grid article:hover,
.product:hover,
.members-grid article:hover,
.license-grid article:hover,
.game-card:hover,
.roadmap article:hover,
.membership-pricing article:hover,
.episodes article:hover,
.timeline-card:hover {
  transform: translateY(-3px);
  border-color: var(--hair);
}

/* Consistent inner heading rhythm inside cards */
.intro-grid article h3,
.members-grid article h3,
.license-grid article h3,
.game-card h3,
.roadmap article h3,
.episodes article h3,
.product h3,
.chapter-list article h3 {
  margin-bottom: var(--stack-sm);
}

/* Slightly larger, uniform gap between cards for a calmer grid */
.intro-grid,
.product-grid,
.members-grid,
.license-grid,
.game-layout,
.roadmap,
.membership-pricing,
.episodes { gap: clamp(16px, 1.6vw, 22px); }

/* ---- 4. Elegant photo FILTER chips ----------------------------------
   Keep the (#photo-filters) column/group structure intact; refine the
   pills: quieter resting state, clearer hover, aurora active state.      */
#photo-filters { gap: 14px; margin-bottom: clamp(28px, 4vw, 40px); }
.filter-group { gap: 10px; row-gap: 10px; }
.filter-label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--dim);
  align-self: center;
}
#photo-filters .filter-group button,
.filter-row button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
#photo-filters .filter-group button:hover,
.filter-row button:hover {
  color: var(--text);
  border-color: var(--hair);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}
/* Active chip: subtle aurora fill via the soft gradient + bright text,
   confident but not shouty (avoids the heavy solid-gradient look).       */
#photo-filters .filter-group button.active,
#photo-filters .filter-group button[aria-pressed="true"],
.filter-row button.active,
.filter-row button[aria-pressed="true"] {
  background: var(--grad-soft);
  color: var(--text);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(99,230,210,0.35);
  font-weight: 700;
}

/* ---- 5. Buttons: a touch more refined, consistent weight ------------- */
.btn {
  min-height: 48px;
  font-size: 14px;
  letter-spacing: 0.015em;
}
.btn.primary { box-shadow: 0 8px 26px rgba(99,230,210,0.18); }
.btn.primary:hover { box-shadow: 0 14px 38px rgba(99,230,210,0.28); }
.btn:hover { transform: translateY(-1px); }

/* ---- 6. Nav & header: calmer, tighter tracking ----------------------- */
.site-header { min-height: 72px; }
.site-nav { gap: clamp(16px, 1.6vw, 24px); font-size: 12.5px; }

/* ---- 7. Hero: a hair more restraint on the copy measure -------------- */
.hero-copy { margin-bottom: 32px; }

/* ---- 8. Anime hero copy: align measure with the rest ----------------- */
.anime-hero > div p { font-size: 17px; }

/* ---- 9. Timeline card heading rhythm --------------------------------- */
.timeline-card strong { font-size: 22px; }

/* =====================================================================
   MOBILE / RESPONSIVE PASS
   Prevent horizontal overflow, keep comfortable spacing, and ensure
   touch targets stay >= 44px on small screens.
   ===================================================================== */
@media (max-width: 640px) {
  /* No section should be able to push the page sideways */
  .section,
  .intro-band,
  .timeline-section,
  .anime-section,
  .members-section,
  .roadmap-section,
  .licensing-section,
  .contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  /* Comfortable card padding on phones */
  :root { --card-pad: 22px; }
  /* Restore >=44px touch targets on the smaller mobile chips */
  #photo-filters .filter-group button,
  .filter-row button { min-height: 44px; }
  /* Buttons remain easily tappable */
  .btn { min-height: 48px; }
  /* Tighter heading measure so lines wrap gracefully */
  h2 { max-width: 100%; }
}

/* Guard against any accidental horizontal scroll from wide children */
html, body { overflow-x: hidden; }

/* ---- Owner edit mode: manual photo removal ---- */
#cy-edit-panel {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 200; display: flex; align-items: center; gap: 10px;
  background: rgba(10,15,26,0.94); border: 1px solid var(--teal, #63e6d2);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--text, #eef2f8);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
#cy-edit-panel .cy-count { color: var(--teal, #63e6d2); font-weight: 700; }
#cy-edit-panel button {
  background: rgba(255,255,255,0.06); border: 1px solid var(--hair, rgba(210,224,255,0.12));
  color: var(--text, #eef2f8); border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
#cy-edit-panel button:hover { border-color: var(--teal, #63e6d2); }
body.cy-edit #photo-gallery .photo-tile { outline: 1px dashed rgba(99,230,210,0.25); }
.cy-del {
  position: absolute; top: 6px; right: 6px; z-index: 5;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(230,40,60,0.92); color: #fff; font-size: 13px; line-height: 26px;
  cursor: pointer; padding: 0; display: none; box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
body.cy-edit .photo-tile { position: relative; }
body.cy-edit .cy-del { display: block; }
body.cy-edit .cy-del:hover { background: rgba(255,60,80,1); transform: scale(1.1); }
.cy-move {
  position: absolute; top: 6px; left: 6px; z-index: 5;
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(20,150,200,0.92); color: #fff; font-size: 13px; line-height: 26px;
  cursor: pointer; padding: 0; display: none; box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ---- Social hub (content HQ) ---- */
.social-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.social-link {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--hair, rgba(210,224,255,0.18));
  color: var(--text, #eef2f8); text-decoration: none; font-size: 13px; font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}
.social-link:hover { border-color: var(--teal, #63e6d2); background: rgba(99,230,210,0.08); transform: translateY(-1px); }

/* ---- Anime follow CTA (flagship content hook) ---- */
.anime-follow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 22px 0 8px; padding: 18px 22px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(99,230,210,0.10), rgba(120,140,255,0.10));
  border: 1px solid var(--hair, rgba(210,224,255,0.18));
}
.anime-credit { margin: 4px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--teal, #63e6d2); }
.anime-follow p { margin: 0; font-size: 15px; color: var(--text, #eef2f8); }
.anime-follow .btn { white-space: nowrap; }

/* ---- Story Archive (flagship content engine) ---- */
.story-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .story-archive-grid { grid-template-columns: 1fr; } }
.story-card {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--panel, #0e1424); border: 1px solid var(--hair, rgba(210,224,255,0.12));
  transition: transform .25s, border-color .25s;
}
.story-card:hover { transform: translateY(-3px); border-color: var(--teal, #63e6d2); }
.story-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0a0f1a; }
.story-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.story-card:hover .story-card-img img { transform: scale(1.06); }
.story-epnum {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.story-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.story-char { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal, #63e6d2); }
.story-hook { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--text, #eef2f8); }
.story-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted, #b9c4d6); }
.story-cliff { margin: 0; font-size: 13px; line-height: 1.5; color: #d7c48a; font-style: italic; }
.story-cliff span { font-style: normal; font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .08em; color: #e0b84a; margin-right: 4px; }
.story-cta { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--teal, #63e6d2); text-decoration: none; align-self: flex-start; }
.story-cta:hover { text-decoration: underline; }

/* ---- Featured membership tier (Season Pass) ---- */
.membership-pricing .tier-featured {
  border: 1px solid var(--teal, #63e6d2);
  box-shadow: 0 0 0 1px rgba(99,230,210,0.25), 0 8px 30px rgba(99,230,210,0.10);
  position: relative;
}
.membership-pricing .tier-featured::before {
  content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--teal, #63e6d2); color: #05202a; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
body.cy-edit .cy-move { display: block; }
body.cy-edit .cy-move:hover { background: rgba(40,180,240,1); transform: scale(1.1); }
body.cy-edit #photo-gallery .photo-tile, body.cy-edit #member-album .album-tile { cursor: grab; }
body.cy-edit .cy-dragging { opacity: 0.4; outline: 2px dashed var(--teal, #63e6d2); }

/* ---- Video Vault (paid members) ---- */
.vault-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vault-card { border: 1px solid var(--line, rgba(210,224,255,0.10)); border-radius: 16px; overflow: hidden; background: var(--panel, #0e1424); cursor: pointer; transition: transform .16s ease, border-color .2s ease; }
.vault-card:hover { transform: translateY(-3px); border-color: var(--teal, #63e6d2); }
.vault-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #0a1424, #16203a); display: flex; align-items: center; justify-content: center; }
.vault-icon { font-size: 30px; opacity: 0.85; }
.vault-card.is-locked .vault-thumb { filter: grayscale(0.3) brightness(0.7); }
.vault-meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.vault-meta strong { font-size: 14.5px; color: var(--text, #eef2f8); }
.vault-meta span { font-size: 12px; color: var(--muted, #b7c0d4); }
.vault-badge { position: absolute; top: 12px; right: 14px; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--muted, #b7c0d4); }
.vault-badge.free { background: var(--grad-soft, rgba(99,230,210,0.16)); color: var(--teal, #63e6d2); }
.vault-unlock { margin-top: 24px; padding: 20px; border: 1px solid var(--hair, rgba(210,224,255,0.12)); border-radius: 16px; background: var(--grad-soft, rgba(99,230,210,0.10)); text-align: center; }
.vault-unlock-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.vault-code { display: flex; gap: 8px; }
.vault-code input { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hair, rgba(210,224,255,0.12)); background: rgba(255,255,255,0.04); color: var(--text, #eef2f8); }
.vault-modal { position: fixed; inset: 0; z-index: 300; background: rgba(3,6,12,0.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.vault-modal-inner { position: relative; width: min(1000px, 96vw); }
.vault-embed { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background:#000; }
.vault-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vault-close { position: absolute; top: -42px; right: 0; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }
@media (max-width: 760px) { .vault-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .vault-grid { grid-template-columns: 1fr; } }

/* ---- Members Travel Album (personal, gated) ---- */
.members-album-wrap { margin-top: 44px; }
.album-place { font-family: var(--sans, Inter, sans-serif); font-size: 15px; font-weight: 600; color: var(--muted, #b7c0d4); letter-spacing: 0.03em; margin: 22px 0 12px; }
.album-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 6px; }
.album-tile { margin: 0; position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; background: var(--panel, #0e1424); }
.album-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-tile figcaption { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10px; padding: 3px 6px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.6)); opacity: 0; transition: opacity .2s; }
.album-tile:hover figcaption { opacity: 1; }
.member-album.locked { filter: blur(9px) brightness(0.7); pointer-events: none; user-select: none; max-height: 360px; overflow: hidden; }
.album-lock { margin-top: -300px; position: relative; z-index: 2; text-align: center; padding: 24px; border: 1px solid var(--teal, #63e6d2); border-radius: 16px; background: rgba(10,15,26,0.92); }
.album-lock .btn { margin: 0; }
@media (max-width: 760px) { .album-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 460px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- always-visible owner "manual delete" toggle ---- */
#cy-edit-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 250;
  background: rgba(230,40,60,0.92); color: #fff; border: none;
  border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  font-family: var(--sans, Inter, sans-serif);
}
#cy-edit-toggle:hover { background: rgba(255,60,80,1); transform: translateY(-1px); }
body.cy-edit #cy-edit-toggle { background: rgba(40,45,60,0.95); border: 1px solid var(--teal, #63e6d2); }
