/* ================================
   RESET & VARIABLES
   ================================ */
:root {
  --bg: #09090b;
  --surface: #131316;
  --surface-2: #1c1c21;
  --rose: #d4879c;
  --rose-soft: #e2a3b5;
  --rose-glow: rgba(212, 135, 156, 0.15);
  --lavender: #a89ec8;
  --warm: #c9b08a;
  --text: #e8e6e3;
  --text-mid: #9a9894;
  --text-dim: #5a5856;
  --border: rgba(255, 255, 255, 0.05);
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  font-size: 15px;
}

img, video { max-width: 100%; display: block; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

::selection {
  background: var(--rose);
  color: white;
}

/* ================================
   SCROLL PROGRESS
   ================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--rose);
  width: 0%;
  z-index: 10000;
  display: none;
  opacity: 0.7;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-wide {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 140px 0;
  position: relative;
}

/* ================================
   LOADING SCREEN
   ================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
}

#loading-screen.active {
  display: flex;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--rose);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  color: var(--text-mid);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--rose);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.loading-percent {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 8px;
}

/* ================================
   FADE-IN SYSTEM
   ================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.2s; }
.fade-in-delay-2 { transition-delay: 0.4s; }
.fade-in-delay-3 { transition-delay: 0.6s; }
.fade-in-delay-4 { transition-delay: 0.8s; }

/* ================================
   LOGIN SCREEN
   ================================ */
#login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--bg);
  transition: opacity 1s ease, transform 1s ease;
}

#login-screen.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-bg::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-glow) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: loginGlow 6s ease-in-out infinite alternate;
}

@keyframes loginGlow {
  from { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.login-container {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 90%;
  max-width: 460px;
  animation: loginReveal 1.2s ease forwards;
}

@keyframes loginReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-icon {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.login-icon svg {
  width: 48px;
  height: 48px;
  color: var(--rose);
  opacity: 0.7;
  filter: drop-shadow(0 0 12px rgba(212, 135, 156, 0.2));
}

.login-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1;
}

.login-title span {
  color: var(--rose);
}

.login-subtitle {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.login-security {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.login-security svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.login-footer-security {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 360px;
  text-align: center;
  opacity: 0.5;
}

.login-footer-security svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 3px;
  width: 12px;
  height: 12px;
  color: var(--text-dim);
}

#login-form {
  max-width: 320px;
  margin: 0 auto;
}

.input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#password-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#password-input:focus {
  border-color: rgba(212, 135, 156, 0.4);
  box-shadow: 0 0 0 3px rgba(212, 135, 156, 0.08);
}

#password-input::placeholder {
  color: var(--text-dim);
}

#login-btn {
  padding: 14px 22px;
  background: var(--rose);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#login-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

#login-btn svg {
  width: 18px;
  height: 18px;
}

.login-hint {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.login-error {
  color: #c9545d;
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 1.2em;
}

.login-countdown {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.login-countdown-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.login-countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.countdown-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #c9545d;
  line-height: 1;
}

.countdown-unit {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-sep {
  font-size: 1.2rem;
  color: var(--text-dim);
  opacity: 0.4;
  margin-bottom: 14px;
}

.login-shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

/* ================================
   HERO
   ================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 28px;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--rose-glow) 0%, transparent 65%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heroGlow 5s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0.5; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-pretext {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 300;
  padding: 0 20px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-indicator.fade-in {
  transform: translateX(-50%) translateY(24px);
}

.scroll-indicator.fade-in.visible {
  transform: translateX(-50%) translateY(0);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--rose);
  border-bottom: 1.5px solid var(--rose);
  transform: rotate(45deg);
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 0.7; }
}

/* ================================
   PAW DIVIDER
   ================================ */
.paw-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 56px;
  color: var(--rose);
  opacity: 0.25;
}

.paw-divider svg {
  width: 18px;
  height: 18px;
}

.paw-divider .line {
  width: 50px;
  height: 1px;
  background: currentColor;
}

/* ================================
   LETTER / MESSAGE
   ================================ */
.letter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 64px);
  position: relative;
}

.letter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-glow), transparent);
}

.letter-greeting {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--rose-soft);
  margin-bottom: 28px;
}

.letter-body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text);
}

.letter-body p {
  margin-bottom: 18px;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-body .placeholder {
  color: var(--text-dim);
  font-style: italic;
  padding-left: 18px;
  border-left: 2px solid var(--surface-2);
}

.letter-signature {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--rose);
  margin-top: 36px;
  text-align: right;
  opacity: 0.7;
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-header .subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 300;
}

.photo-count {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ================================
   PHOTO GALLERY
   ================================ */
.gallery-grid {
  columns: 4;
  column-gap: 10px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.photo-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.photo-card img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
  background: var(--surface);
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.photo-card:hover::after {
  background: rgba(0, 0, 0, 0.08);
}

/* ================================
   LIGHTBOX
   ================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(9, 9, 11, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.15s ease;
}

/* Lightbox video player wrapper */
.lightbox-vp {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.lightbox-vp video {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  outline: none;
  background: #000;
}

/* Lightbox big play overlay */
.lightbox-vp-big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease;
}

.lightbox-vp-big-play.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Lightbox controls bar */
.lightbox-vp-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 28px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.lightbox-vp.lb-hide-controls .lightbox-vp-controls,
.lightbox-vp.lb-hide-controls .lightbox-vp-big-play.hidden {
  opacity: 0;
}

.lightbox-vp.lb-hide-controls {
  cursor: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.6rem;
  color: var(--text-mid);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--text-mid);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 1px;
}

/* ================================
   VIDEOS
   ================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Player wrapper */
.vp {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.vp:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(212, 135, 156, 0.12);
}

.vp video {
  width: 100%;
  display: block;
  background: #000;
}

/* Big center play button */
.vp-big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.25s ease, opacity 0.25s ease;
}

.vp-big-play:hover {
  background: rgba(0, 0, 0, 0.1);
}

.vp-big-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.vp-big-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.vp-big-play:hover .vp-big-play-btn {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.25);
}

.vp-big-play-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: #fff;
}

/* Custom controls bar */
.vp-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 24px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vp:hover .vp-controls,
.vp.playing .vp-controls {
  opacity: 1;
}

.vp.playing.hide-controls .vp-controls {
  opacity: 0;
}

/* Progress bar */
.vp-progress-wrap {
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
}

.vp-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: height 0.15s ease;
}

.vp-progress-wrap:hover .vp-progress {
  height: 5px;
}

.vp-progress-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 3px;
  width: 0%;
  position: relative;
}

.vp-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  transition: transform 0.15s ease;
}

.vp-progress-wrap:hover .vp-progress-fill::after {
  transform: translateY(-50%) scale(1);
}

/* Bottom row */
.vp-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.vp-btn:hover {
  color: #fff;
}

.vp-btn svg {
  width: 16px;
  height: 16px;
}

.vp-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vp-spacer {
  flex: 1;
}

/* Volume */
.vp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vp-volume-slider {
  width: 0;
  overflow: hidden;
  transition: width 0.2s ease;
}

.vp-volume-wrap:hover .vp-volume-slider {
  width: 50px;
}

.vp-volume-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.vp-volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.vp-volume-slider input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

/* ================================
   LAST DANCE (inside letter card)
   ================================ */
.last-dance-divider {
  width: 50px;
  height: 1px;
  background: var(--border);
  margin: 40px auto;
}

.last-dance-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--rose-soft);
  text-align: center;
  margin-bottom: 20px;
}

.last-dance-text {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
}

.last-dance-text .placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.last-dance-video-small {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.last-dance-video {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 135, 156, 0.12);
  position: relative;
  margin-bottom: 32px;
}

.last-dance-video video {
  width: 100%;
  display: block;
  background: #000;
  min-height: 180px;
}

.last-dance-video:fullscreen {
  max-width: none;
  border-radius: 0;
  border: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.last-dance-video:fullscreen video {
  min-height: auto;
  max-height: 100vh;
  object-fit: contain;
}

.video-placeholder-msg {
  z-index: 5;
}

.video-placeholder-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: var(--surface);
  pointer-events: none;
}

.video-placeholder-msg::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   ENDING
   ================================ */
#ending {
  padding: 80px 0 140px;
  text-align: center;
}

.ending-content {
  max-width: 550px;
  margin: 0 auto;
}

.ending-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 48px;
}

.ending-text .placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.ending-cat {
  margin: 48px auto;
  color: var(--rose);
  opacity: 0.15;
  display: flex;
  justify-content: center;
}

.ending-cat svg {
  width: 36px;
  height: 36px;
}

.delete-btn {
  padding: 14px 36px;
  background: transparent;
  border: 1px solid rgba(180, 70, 80, 0.3);
  border-radius: 8px;
  color: #b4464f;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.delete-btn:hover {
  background: rgba(180, 70, 80, 0.06);
  border-color: rgba(180, 70, 80, 0.5);
}

.download-web-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-mid);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-web-btn svg {
  width: 16px;
  height: 16px;
}

.download-web-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.delete-hint {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 10px;
}

/* ================================
   DELETE MODAL
   ================================ */
.delete-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.delete-modal.active {
  display: flex;
}

.delete-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.3s ease;
}

.delete-modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: modalSlideUp 0.35s var(--ease);
}

.delete-modal-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.delete-modal-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
}

.delete-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delete-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
}

.delete-modal-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.delete-modal-btn.download-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.delete-modal-btn.download-btn:hover {
  background: rgba(212, 135, 156, 0.08);
  border-color: rgba(212, 135, 156, 0.25);
  color: var(--rose-soft);
}

.delete-modal-btn.confirm-btn {
  background: rgba(180, 70, 80, 0.1);
  border: 1px solid rgba(180, 70, 80, 0.3);
  color: #c9545d;
}

.delete-modal-btn.confirm-btn:hover {
  background: rgba(180, 70, 80, 0.18);
  border-color: rgba(180, 70, 80, 0.5);
}

.delete-modal-btn.cancel-btn {
  background: transparent;
  color: var(--text-dim);
  padding: 10px 24px;
}

.delete-modal-btn.cancel-btn:hover {
  color: var(--text-mid);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================================
   DELETE PROGRESS SCREEN
   ================================ */
#delete-progress-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 24px;
}

#delete-progress-screen.active {
  display: flex;
}

.delete-progress-content {
  max-width: 400px;
  width: 100%;
  animation: modalFadeIn 0.5s ease;
}

.delete-progress-icon {
  margin-bottom: 28px;
  color: #c9545d;
  animation: deletePulse 1.2s ease-in-out infinite;
}

.delete-progress-icon svg {
  width: 36px;
  height: 36px;
}

@keyframes deletePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

#delete-progress-screen h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 20px;
}

.delete-file-name {
  font-family: 'DM Sans', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  height: 1.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.delete-progress-fill {
  height: 100%;
  width: 0%;
  background: #c9545d;
  border-radius: 3px;
  transition: width 0.15s ease;
}

.delete-counter {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ================================
   UNAVAILABLE
   ================================ */
#unavailable-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

#unavailable-screen.active {
  display: flex;
}

#unavailable-screen h1 {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-mid);
}

#unavailable-screen p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ================================
   RESPONSIVE
   ================================ */

/* Desktop < 1200 */
@media (max-width: 1200px) {
  .gallery-grid { columns: 3; }
}

/* Tablet landscape & small desktop */
@media (max-width: 1024px) {
  .container-wide { padding: 0 24px; }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* Tablet portrait & below */
@media (max-width: 768px) {
  .section { padding: 100px 0; }

  .container { padding: 0 20px; }
  .container-wide { padding: 0 16px; }

  .gallery-grid {
    columns: 2;
    column-gap: 8px;
  }

  .photo-card { margin-bottom: 8px; }

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

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .last-dance-video {
    border-radius: 12px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body { font-size: 14px; }

  .gallery-grid {
    columns: 2;
    column-gap: 6px;
  }

  .photo-card {
    margin-bottom: 6px;
    border-radius: 6px;
  }

  .letter-card {
    padding: 24px 20px;
  }

  .login-title {
    font-size: 3rem;
  }
}

/* ================================
   TOUCH DEVICES (iPad, phones)
   ================================ */
@media (hover: none) and (pointer: coarse) {
  /* Use dynamic viewport height for iOS Safari address bar */
  #hero {
    min-height: 100dvh;
  }

  /* Remove hover effects that don't work on touch */
  .photo-card:hover {
    transform: none;
    box-shadow: none;
  }

  .photo-card:hover img {
    transform: none;
  }

  .photo-card:hover::after {
    background: rgba(0, 0, 0, 0);
  }

  /* Remove blue tap highlight on iOS */
  button, a, .photo-card, .vp {
    -webkit-tap-highlight-color: transparent;
  }

  /* Bigger tap targets for video controls */
  .vp-btn {
    width: 40px;
    height: 40px;
  }

  .vp-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Thicker progress bar for easier tapping */
  .vp-progress {
    height: 5px;
  }

  .vp-progress-wrap {
    height: 20px;
    padding: 6px 0;
  }

  /* Always show progress dot on touch */
  .vp-progress-fill::after {
    transform: translateY(-50%) scale(1);
    width: 14px;
    height: 14px;
    right: -7px;
  }

  /* Volume slider always visible on touch (no hover) */
  .vp-volume-slider {
    width: 60px;
  }

  .vp-volume-slider input[type="range"] {
    width: 60px;
    height: 5px;
  }

  .vp-volume-slider input[type="range"]::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
  }

  /* Grid video controls: always show when playing */
  .vp-controls {
    padding: 28px 14px 12px;
  }

  .vp.playing .vp-controls {
    opacity: 1;
  }

  /* Lightbox controls - bigger targets */
  .lightbox-vp-controls {
    padding: 32px 16px 14px;
  }

  .lightbox-vp-controls .vp-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-vp-controls .vp-btn svg {
    width: 22px;
    height: 22px;
  }

  .lightbox-vp-controls .vp-progress {
    height: 6px;
  }

  .lightbox-vp-controls .vp-progress-fill::after {
    width: 16px;
    height: 16px;
    right: -8px;
  }

  .lightbox-vp-controls .vp-time {
    font-size: 0.82rem;
  }

  /* Lightbox nav buttons bigger for touch */
  .lightbox-prev,
  .lightbox-next {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .lightbox-close {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.06);
  }

  /* Big play button slightly larger on touch */
  .vp-big-play-btn {
    width: 64px;
    height: 64px;
  }

  .vp-big-play-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Lightbox big play */
  .lightbox-vp-big-play .vp-big-play-btn {
    width: 72px;
    height: 72px;
  }

  .lightbox-vp-big-play .vp-big-play-btn svg {
    width: 28px;
    height: 28px;
  }

  /* Login - bigger input for touch */
  #password-input {
    padding: 16px 18px;
    font-size: 1rem;
  }

  #login-btn {
    padding: 16px 24px;
  }

  /* Delete button bigger tap target */
  .delete-btn {
    padding: 16px 40px;
    font-size: 0.95rem;
  }
}

/* iPad landscape specifically (for gallery columns) */
@media (min-width: 769px) and (max-width: 1024px) and (hover: none) {
  .gallery-grid {
    columns: 3;
    column-gap: 10px;
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* iPad portrait specifically */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  .gallery-grid {
    columns: 2;
    column-gap: 8px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
