/* Video Gallery & Reels Modal - Outdoor Charcoal & Glacier Aesthetic */

.video-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.video-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.video-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text, #13201a);
  margin-bottom: 0.75rem;
}

.video-hero .lead {
  font-size: 1.125rem;
  color: var(--color-muted, #556b60);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.video-stats-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted, #556b60);
  margin-bottom: 2rem;
}

.video-stats-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Telegram Stories / Circles Bar */
.stories-section {
  background: var(--color-surface, #fbfaf8);
  border-top: 1px solid var(--color-border, #e5e0d8);
  border-bottom: 1px solid var(--color-border, #e5e0d8);
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}

.stories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.stories-title {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text, #13201a);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stories-title .tg-icon {
  width: 18px;
  height: 18px;
  fill: #229ed9;
}

.stories-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar {
  display: none;
}

.story-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  width: 82px;
  transition: transform 0.2s ease;
}

.story-item:hover {
  transform: translateY(-2px);
}

.story-avatar-wrap {
  width: 74px;
  height: 74px;
  position: relative;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #10b981 0%, #0284c7 50%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.story-item:hover .story-avatar-wrap {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  transform: scale(1.04);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  display: block;
}

.story-play-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border: 2px solid #fff;
}

.story-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text, #13201a);
  margin-top: 0.5rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.story-sub {
  font-size: 0.6875rem;
  color: var(--color-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Category Filters */
.video-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}

.video-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #f1ede5;
  border: 1px solid #e2ddd4;
  color: var(--color-text, #2c3e35);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-filter-btn:hover {
  background: #e7e2d7;
  color: #13201a;
}

.video-filter-btn.is-active {
  background: #162a21;
  color: #fff;
  border-color: #162a21;
}

.video-filter-btn .count {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-left: 0.25rem;
}

/* Reels & Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #121c17;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  aspect-ratio: 9 / 14;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.video-card-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-card-thumb {
  transform: scale(1.05);
}

.video-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 85%, rgba(0,0,0,0.95) 100%);
  pointer-events: none;
}

.video-card-top {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.video-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
}

.video-badge-round {
  background: rgba(34, 158, 217, 0.85);
}

.video-duration {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.video-play-center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 2;
}

.video-play-center svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

.video-card:hover .video-play-center {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(16, 185, 129, 0.9);
  border-color: #10b981;
}

.video-card-body {
  position: relative;
  z-index: 2;
  padding: 1rem;
  color: #fff;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.video-card-quote {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.video-card-route-link {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.15s;
}

.video-card-route-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Fullscreen Reels / Stories Lightbox Modal */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 90vh;
  max-height: 840px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .video-modal-container {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

.video-player-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Style for Telegram Circle Video in Modal */
.video-player-wrap.is-round-mode {
  background: radial-gradient(circle at center, #162a21 0%, #080f0c 100%);
}

.video-player-wrap.is-round-mode .video-modal-video {
  width: min(78vw, 360px);
  height: min(78vw, 360px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px rgba(34, 158, 217, 0.6), 0 0 30px rgba(34, 158, 217, 0.35);
  animation: roundPulse 3s infinite ease-in-out;
}

@keyframes roundPulse {
  0%, 100% {
    box-shadow: 0 0 0 5px rgba(34, 158, 217, 0.6), 0 0 25px rgba(34, 158, 217, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 158, 217, 0.85), 0 0 45px rgba(34, 158, 217, 0.55);
  }
}

/* Progress Bar at the top (Instagram/Telegram Stories indicator) */
.story-progress-bar {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  z-index: 10;
}

.story-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Modal Top Bar */
.video-modal-top {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.video-modal-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.video-modal-author-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.video-modal-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.15;
}

.video-modal-loc {
  font-size: 0.75rem;
  opacity: 0.8;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.video-ctrl-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

.video-ctrl-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Modal Bottom Overlay */
.video-modal-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.95) 100%);
  color: #fff;
  z-index: 10;
}

.video-modal-quote {
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.85rem;
  color: #f1f5f9;
}

.video-modal-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.video-modal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #10b981;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.video-modal-cta-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Nav arrows outside container on desktop */
.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s, transform 0.2s;
}

.modal-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
  left: max(1.5rem, calc((100vw - 440px) / 4));
}

.modal-nav-next {
  right: max(1.5rem, calc((100vw - 440px) / 4));
}

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

/* Inline Reels Section on Home Page */
.home-reels-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-reels-strip::-webkit-scrollbar {
  display: none;
}

.home-reels-strip .video-card {
  flex: 0 0 220px;
  aspect-ratio: 9 / 14;
}
