/* BASE */
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
}

/* NAV BAR — Matches Pack Library */
.top-nav {
  width: 100%;
  background-color: #0d0d0d;
  box-shadow: 0 2px 4px rgba(255,255,255,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.top-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.top-nav a {
  color: #60b1fc;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: bold;
}

.top-nav a:hover {
  color: #f5c400;
}

/* HERO HEADER */
.hero {
  text-align: center;
  margin-top: 2rem;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 0 10px #00ffee;
}

.tagline {
  font-size: 1.2rem;
  color: #aee0d6;
  margin-top: 0.5rem;
}

/* TRAILER FEED */
.trailer-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

.trailer-card {
  position: relative;
  width: 100%;
  max-width: 450px; /* MATCHES YOUR PREFERENCE */
}

/* 9:16 TikTok-style video */
.trailer-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

/* Reaction Button */
.reaction-btn {
  position: absolute;
  right: 10px;
  bottom: 20%;
  background: #111;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 0 10px rgba(255,0,0,0.6);
  transition: transform 0.2s ease;
}

.reaction-btn:hover {
  transform: scale(1.15);
}

/* Emoji Picker Bubble */
.emoji-picker {
  position: absolute;
  right: 60px;
  bottom: 20%;
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.7);
  padding: 10px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease-in-out;
}

.emoji-picker.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.emoji-picker span {
  cursor: pointer;
  font-size: 1.4rem;
}

/* Reaction Counters Area */
.reaction-stats {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
}

.emoji-counts {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}

.your-reaction {
  color: #60b1fc;
  font-weight: bold;
  text-shadow: 0 0 6px #60b1fc;
}

/* ===== TRAILER FEED LAYOUT ===== */

/* Container that holds all trailers */
.trailer-section {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  padding-bottom: 3rem;
}

/* Each individual trailer card */
.trailer-card {
  position: relative;
  width: 100%;
  max-width: 450px;        /* phone-sized on desktop */
  aspect-ratio: 9 / 16;    /* vertical shape */
}

/* The actual video */
.trailer-video {
  position: absolute;
  inset: 0;                /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

/* Cover image that sits on top until user taps */
.trailer-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease-in-out;
}

/* Cover hides when card has .playing class */
.trailer-card.playing .trailer-cover {
  opacity: 0;
  pointer-events: none;
}

/* ▶ icon on cover */
.cover-play-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.9);
}
