/* ==========================================================================
   HAYFILM.BOND - MODERN ARMENIAN CINEMA PLATFORM
   High-FPS Smooth UI | Horizontal Mobile Swiping | Pure Square Posters
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Noto+Sans+Armenian:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #000000;
  --accent: #ff6b00;
  --accent-hover: #ff8533;
  --text-main: #ffffff;
  --text-muted: #8e95a5;
  --header-height: 64px;
  --font-family: 'Montserrat', 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 0px !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  transition: background-color 0.25s ease;
  transform: translateZ(0);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  background: var(--accent);
  color: #000;
  font-weight: 900;
  font-size: 18px;
  padding: 4px 10px;
  letter-spacing: 1px;
}

.brand-title {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 7px 14px 7px 34px;
  font-size: 13px;
  outline: none;
  width: 200px;
  transition: width 0.25s, border-color 0.25s;
}

.search-input:focus {
  width: 260px;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.85);
}

.search-icon {
  position: absolute;
  left: 9px;
  width: 15px;
  height: 15px;
  fill: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================================
   HERO BANNER SLIDER (Zero Lag, Hardware Accelerated)
   ========================================================================== */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 480px;
  max-height: 700px;
  overflow: hidden;
  background: #000;
  contain: layout paint;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(0, 0, 0);
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
  transform: translateZ(0);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.15) 70%, transparent 100%),
              linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.35) 20%, transparent 60%);
  display: flex;
  align-items: center;
  padding: 0 80px;
}

.hero-content {
  max-width: 600px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #bbb;
  font-weight: 600;
}

.meta-badge {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1px 6px;
  font-size: 11px;
  color: #fff;
}

.hero-description {
  font-size: 14px;
  line-height: 1.6;
  color: #cfd3dc;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

/* Watch Button */
.btn-watch {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s, transform 0.15s;
}

.btn-watch:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-watch svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Side Arrows - Transparent, Bold, Elegant Chevron (No Black Box) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 70px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-arrow:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-50%) scale(1.18);
  background: transparent !important;
}

.hero-arrow.prev {
  left: 8px;
}

.hero-arrow.next {
  right: 8px;
}

.hero-arrow svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95));
}

/* Pagination Dots */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.hero-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50% !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px !important;
}

/* ==========================================================================
   MOVIE CATALOG SECTIONS (Desktop: Clean Grid | Mobile: Horizontal Swipe)
   ========================================================================== */
.catalog-section {
  padding: 30px 40px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Desktop Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
}

/* Movie Card */
.movie-card {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
  contain: layout style;
}

.movie-card:hover {
  transform: translateY(-4px);
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f1015;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease;
}

.movie-card:hover .card-poster-wrap {
  border-color: var(--accent);
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.movie-card:hover .card-poster {
  transform: scale(1.04);
}

.card-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-play-overlay {
  opacity: 1;
}

.play-circle {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.movie-card:hover .play-circle {
  transform: scale(1);
}

.play-circle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 2px;
}

/* Card Info Under Poster: ONLY Movie Title in Medium Size */
.card-info {
  padding: 8px 0 0 0;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.movie-card:hover .card-title {
  color: var(--accent);
}

.card-subtitle,
.section-count,
.card-badge-hd,
.card-badge-rating,
.hero-badge-tag,
.meta-rating,
.btn-details,
.nav-links {
  display: none !important;
}
.hero-badge-tag,
.meta-rating,
.btn-details,
.nav-links {
  display: none !important;
}

/* ==========================================================================
   VIDEO PLAYER MODAL
   ========================================================================== */
.player-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.player-modal-box {
  width: 100%;
  max-width: 1050px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  position: relative;
}

.player-modal-header {
  padding: 12px 18px;
  background: #0d0e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-movie-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #bbb;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--accent);
}

.player-view-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-view-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 35px 20px;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.footer-brand span {
  color: var(--accent);
}

/* ==========================================================================
   MOBILE & TABLET OPTIMIZATIONS (Native-like Horizontal Swipe & High FPS)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-slider-container {
    height: 60vh;
  }
  .hero-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: 56px;
    background: rgba(0, 0, 0, 0.96) !important;
  }
  .search-input {
    width: 130px;
    font-size: 12px;
  }
  .hero-slider-container {
    height: 50vh;
    min-height: 350px;
  }
  .hero-slide-overlay {
    padding: 0 20px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-description {
    display: none !important;
  }

  /* "ԴԻՏԵԼ ՀԻՄԱ" Button on Mobile: Comfortable, Bold, Medium Size */
  .btn-watch {
    padding: 10px 22px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    gap: 8px !important;
  }
  .btn-watch svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Catalog Sections: Horizontal Swipe Row on Phone (Side-by-Side) */
  .catalog-section {
    padding: 18px 0 14px 16px !important;
  }

  .section-header {
    margin-bottom: 12px;
    padding-left: 10px;
    padding-right: 16px;
    border-left: 3px solid var(--accent);
  }

  .section-title {
    font-size: 16px;
  }

  .movies-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding-right: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .movies-grid::-webkit-scrollbar {
    display: none;
  }

  /* Swipe Card: ~5 swipeable cards in the row */
  .movie-card {
    flex: 0 0 135px !important;
    width: 135px !important;
    max-width: 135px !important;
    scroll-snap-align: start;
    transform: translateZ(0);
  }

  .card-poster-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
  }

  .card-title {
    font-size: 13px !important;
  }

  .hero-arrow {
    width: 36px !important;
    height: 52px !important;
    background: transparent !important;
    border: none !important;
  }

  .hero-arrow svg {
    width: 28px !important;
    height: 28px !important;
    stroke-width: 3.5 !important;
  }

  .hero-arrow.prev {
    left: 4px !important;
  }

  .hero-arrow.next {
    right: 4px !important;
  }
}
