/* ==========================================================================
   WEDDING OF EGOR & ALENA - ROMANTIC BLUSH & NOBLE BURGUNDY THEME
   Soft Pearl Canvas, Delicate Blush Rose & Noble Marsala/Burgundy Accents
   ========================================================================== */

:root {
  /* Pleasant Light Wedding Canvas */
  --bg-primary: #fdfbfa;      /* Clean pearl ivory with subtle warmth */
  --bg-secondary: #fbf5f4;    /* Delicate blush pearl tint */
  --bg-tertiary: #f6ebe8;     /* Soft petal rose tint */
  --bg-card: #ffffff;         /* Pure luminous white */
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(253, 251, 250, 0.94);

  /* Crisp High-Contrast Typography (Obsidian / Graphite - no muddy browns) */
  --text-main: #231b1e;       /* Deep obsidian graphite */
  --text-muted: #574b50;      /* Muted charcoal */
  --text-dim: #8b7d83;        /* Delicate slate */

  /* Romantic Wedding Accents: Noble Burgundy & Delicate Blush Rose */
  --accent-burgundy: #801c38; /* Noble Burgundy / Royal Marsala */
  --accent-burgundy-dark: #631229;
  --accent-burgundy-light: #9e2749;
  --accent-rose: #d97d74;     /* Soft Rose Petal */
  --accent-rose-light: #fbeae7;/* Delicate Powder Blush */
  --accent-rose-dim: rgba(217, 125, 116, 0.12);
  --accent-burgundy-dim: rgba(128, 28, 56, 0.08);
  --border-subtle: rgba(128, 28, 56, 0.14);
  --border-focus: rgba(128, 28, 56, 0.38);

  /* Delicate Rose-Burgundy Shadows */
  --shadow-sm: 0 4px 16px rgba(128, 28, 56, 0.05);
  --shadow-md: 0 12px 35px rgba(128, 28, 56, 0.08);
  --shadow-lg: 0 20px 55px rgba(128, 28, 56, 0.12);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

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

button, input, textarea {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1.05rem;
}

.btn-gold {
  background: linear-gradient(135deg, #942240 0%, #6e142c 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(128, 28, 56, 0.32);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #aa2a4b 0%, #821935 100%);
  box-shadow: 0 8px 28px rgba(128, 28, 56, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: var(--accent-rose-light);
  border-color: var(--accent-burgundy);
  color: var(--accent-burgundy);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 250, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
  padding-top: var(--safe-top);
}

.site-header.scrolled {
  background: rgba(253, 251, 250, 0.97);
  border-bottom-color: rgba(128, 28, 56, 0.22);
  box-shadow: 0 6px 25px rgba(128, 28, 56, 0.08);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent-burgundy);
  letter-spacing: 0.04em;
}

.monogram-amp {
  font-size: 1.45rem;
  color: var(--accent-rose);
  font-weight: 400;
  font-style: italic;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}
.nav-link:hover {
  color: var(--accent-burgundy);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-burgundy);
  transition: width var(--transition-normal);
}
.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 135px 20px 80px;
  background: radial-gradient(circle at 50% 25%, #ffffff 0%, #faf4f3 60%, #f4e7e4 100%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 30px 40px, rgba(128, 28, 56, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 160px 190px, rgba(217, 125, 116, 0.3), transparent),
    radial-gradient(2px 2px at 320px 110px, rgba(128, 28, 56, 0.2), transparent);
  background-size: 380px 380px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--accent-burgundy);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-burgundy);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(3.2rem, 8.5vw, 5.8rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.title-amp {
  color: var(--accent-burgundy-light);
  font-weight: 400;
  font-style: italic;
  padding: 0 4px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.hero-pill:hover {
  background: var(--accent-rose-light);
  border-color: var(--accent-burgundy);
  color: var(--accent-burgundy);
  transform: translateY(-2px);
}
.hero-pill svg {
  color: var(--accent-burgundy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--accent-burgundy);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(10px) translateX(-50%); }
  60% { transform: translateY(5px) translateX(-50%); }
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

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

.section-film {
  background-color: var(--bg-primary);
}

.section-reels {
  background-color: var(--bg-secondary);
}

.section-gallery {
  background-color: var(--bg-primary);
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-burgundy);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Custom Video Player (Main Film)
   ========================================================================== */

.video-player-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  background: #000000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
}

.main-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Big Play Overlay */
.player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 14, 18, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  transition: opacity var(--transition-normal);
  z-index: 10;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.btn-big-play {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #992444 0%, #6e142c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(153, 36, 68, 0.7);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.btn-big-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(153, 36, 68, 0.9);
}
.btn-big-play svg {
  margin-left: 4px;
}

.overlay-text {
  text-align: center;
}
.overlay-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.overlay-meta {
  font-size: 0.92rem;
  color: var(--accent-rose-light);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

/* Buffering Spinner */
.player-buffering {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 12;
  color: #ffffff;
  font-size: 0.85rem;
  pointer-events: none;
}
.player-buffering.active {
  display: flex;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Double-tap ripple effect */
.ripple-seek {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35%;
  height: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 11;
  color: #fff;
}
.ripple-seek.animate {
  animation: rippleFade 0.6s ease-out;
}
.ripple-left { left: 5%; }
.ripple-right { right: 5%; }
@keyframes rippleFade {
  0% { opacity: 0; transform: translateY(-50%) scale(0.85); }
  30% { opacity: 1; transform: translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateY(-50%) scale(1.1); }
}

/* Custom Controls Bar */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transition: opacity var(--transition-normal);
  z-index: 15;
}

.video-player-inner.playing:not(.hovered) .player-controls {
  opacity: 0;
  pointer-events: none;
}

/* Progress Scrubber */
.progress-container {
  position: relative;
  width: 100%;
  height: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.progress-bar-bg {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: height var(--transition-fast);
}

.progress-container:hover .progress-bar-bg {
  height: 8px;
}

.progress-bar-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  pointer-events: none;
}

.progress-bar-current {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--accent-rose);
  border-radius: 4px;
  pointer-events: none;
}

.progress-scrubber-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid var(--accent-burgundy-light);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.progress-container:hover .progress-scrubber-handle {
  transform: translate(-50%, -50%) scale(1);
}

.progress-hover-time {
  position: absolute;
  bottom: 22px;
  left: 0;
  transform: translateX(-50%);
  padding: 3px 8px;
  background: rgba(14, 16, 20, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

/* Controls Buttons Row */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-rose-light);
}

#btnPlayPause .icon-pause { display: none; }
.video-player-inner.playing #btnPlayPause .icon-play { display: none; }
.video-player-inner.playing #btnPlayPause .icon-pause { display: block; }

.time-display {
  font-size: 0.85rem;
  color: #eee;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
  white-space: nowrap;
}
.time-sep { margin: 0 4px; color: rgba(255, 255, 255, 0.5); }

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 70px;
  height: 4px;
  accent-color: var(--accent-rose);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}

#btnMute .icon-vol-mute { display: none; }
.video-player-inner.muted #btnMute .icon-vol-high { display: none; }
.video-player-inner.muted #btnMute .icon-vol-mute { display: block; }

/* Dropdown Menus (Speed, Quality) */
.ctrl-dropdown {
  position: relative;
}

.btn-text-label, .btn-badge-quality {
  width: auto;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
}

.dropdown-menu {
  position: absolute;
  bottom: 48px;
  right: 0;
  background: rgba(26, 18, 22, 0.97);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  display: none;
  min-width: 140px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 25;
}
.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #ffffff;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.dropdown-item:hover {
  background: rgba(128, 28, 56, 0.35);
  color: var(--accent-rose-light);
}
.dropdown-item.active {
  color: var(--accent-rose);
  font-weight: 600;
}

/* Fullscreen Icons */
#btnFullscreen .icon-fs-exit { display: none; }
:fullscreen #btnFullscreen .icon-fs-enter { display: none; }
:fullscreen #btnFullscreen .icon-fs-exit { display: block; }
:-webkit-full-screen #btnFullscreen .icon-fs-enter { display: none; }
:-webkit-full-screen #btnFullscreen .icon-fs-exit { display: block; }

/* Chapters Navigation */
.player-chapters {
  padding: 24px 26px;
  background: #faf4f3;
  border-top: 1px solid var(--border-subtle);
}

.chapters-header {
  margin-bottom: 14px;
}
.chapters-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-burgundy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.chapter-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.chapter-card:hover {
  background: var(--accent-rose-light);
  border-color: var(--accent-burgundy);
  transform: translateY(-2px);
}
.chapter-card.active {
  background: #ffffff;
  border-color: var(--accent-burgundy);
  border-left: 4px solid var(--accent-burgundy);
  box-shadow: 0 4px 15px rgba(128, 28, 56, 0.15);
}

.chapter-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-burgundy);
  padding: 3px 7px;
  background: var(--accent-rose-light);
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.chapter-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Reels & Trends Section
   ========================================================================== */

.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.reel-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}
.reel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-burgundy);
}

.reel-card-wide {
  grid-column: span 2;
}
@media (max-width: 640px) {
  .reel-card-wide {
    grid-column: span 1;
  }
}

.reel-media-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}
.reel-media-wrapper.aspect-vertical {
  aspect-ratio: 9 / 16;
}
.reel-media-wrapper.aspect-horizontal {
  aspect-ratio: 16 / 9;
}

.reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.reel-card:hover .reel-thumb {
  transform: scale(1.05);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.reel-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #992444 0%, #6e142c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast);
}
.reel-play-btn svg { margin-left: 2px; }
.reel-card:hover .reel-play-btn {
  transform: scale(1.15);
}

.reel-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-burgundy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.reel-badge-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.reel-info {
  padding: 18px 20px;
  background: #ffffff;
}
.reel-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}
.reel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Modal: Vertical Reels Player (TikTok / Stories Style)
   ========================================================================== */

.reels-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.reels-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.reels-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 14, 0.93);
  backdrop-filter: blur(16px);
}

.reels-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: 90vh;
  max-height: 840px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

@media (max-width: 500px) {
  .reels-modal-container {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 0;
  }
}

.reels-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: background var(--transition-fast);
}
@media (max-width: 500px) {
  .reels-close-btn {
    top: calc(var(--safe-top) + 12px);
    right: 14px;
    background: rgba(0, 0, 0, 0.65);
  }
}

.reels-video-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  cursor: pointer;
}
@media (max-width: 500px) {
  .reels-video-box {
    border-radius: 0;
  }
}

#reelsModalVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reels-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  z-index: 5;
}

.reels-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.reels-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-rose);
}

.reels-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reels-meta {
  display: flex;
  flex-direction: column;
}
.reels-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-rose-light);
}
.reels-clip-title {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

.reels-sound-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.reels-sound-btn .icon-sound-off { display: none; }
.reels-video-box.muted .reels-sound-btn .icon-sound-on { display: none; }
.reels-video-box.muted .reels-sound-btn .icon-sound-off { display: block; }

.reels-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.reels-play-indicator.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.reels-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: background var(--transition-fast);
}
.reels-nav-btn:hover {
  background: rgba(128, 28, 56, 0.6);
}
.reels-nav-btn.btn-prev { left: -60px; }
.reels-nav-btn.btn-next { right: -60px; }

@media (max-width: 600px) {
  .reels-nav-btn.btn-prev { left: 10px; }
  .reels-nav-btn.btn-next { right: 10px; }
}

/* ==========================================================================
   Photo Gallery Grid & Lightbox
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 14, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  color: #ffffff;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}
.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 14, 0.95);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   Gratitude & Footer
   ========================================================================== */

.section-gratitude {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #faf3f1 60%, #f4e7e4 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 100px 0;
}

.monogram-large {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 700;
  color: var(--accent-burgundy);
  margin-bottom: 20px;
}

.gratitude-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--text-main);
  margin-bottom: 16px;
}

.gratitude-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.site-footer {
  background: #f5eae7;
  border-top: 1px solid var(--border-subtle);
  padding: 26px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-to-top {
  font-weight: 600;
  color: var(--accent-burgundy);
}
.back-to-top:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Modal: Share Popup (Telegram, WhatsApp, Copy)
   ========================================================================== */

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}
.share-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 20, 0.65);
  backdrop-filter: blur(10px);
}

.share-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  box-shadow: 0 25px 60px rgba(128, 28, 56, 0.2);
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92) translateY(15px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.share-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #faf3f1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.share-close-btn:hover {
  background: var(--accent-rose-light);
  color: var(--accent-burgundy);
}

.share-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.share-modal-monogram {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-burgundy);
  margin-bottom: 4px;
}
.share-modal-title {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.share-modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.share-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  color: #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.share-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.share-btn-tg {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
}
.share-btn-tg:hover {
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.48);
}

.share-btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.share-btn-wa:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.48);
}

.share-icon {
  flex-shrink: 0;
}
.share-btn-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.share-btn-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.share-btn-sub {
  font-size: 0.8rem;
  opacity: 0.88;
}
.share-arrow {
  opacity: 0.7;
}

.share-copy-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.share-link-input {
  flex-grow: 1;
  background: #faf4f3;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text-main);
  user-select: all;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #942240 0%, #6e142c 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(128, 28, 56, 0.35);
  z-index: 350;
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.animate-fade {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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