/* Frontend base styles */

.lttm-no-tickets {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #6b7280;
}

.lttm-row-container {
  --lttm-bg-netflix: #0b1829;
  --lttm-bg-card: #122a45;
  --lttm-text: #f3f6fb;
  --lttm-muted: #c6d3e6;
  --lttm-accent: #f3c200;
  --lttm-ease: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin: 40px 0 60px;
  padding: 24px;
  background: var(--lttm-bg-netflix);
  color: var(--lttm-text);
  font-family: 'Space Grotesk', sans-serif;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(3, 10, 22, 0.22);
}

.lttm-row-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  margin: 0 0 18px;
  color: #e5e5e5;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.lttm-row-posters {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  height: min(78vh, 960px);
  min-height: 0;
  padding: 0 10px 72px 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 194, 0, 0.45) rgba(255, 255, 255, 0.08);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: auto;
}

.lttm-row-posters::-webkit-scrollbar {
  width: 8px;
}

.lttm-row-posters::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.lttm-row-posters::-webkit-scrollbar-thumb {
  background: rgba(243, 194, 0, 0.45);
  border-radius: 999px;
}

.lttm-row-poster {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
  position: relative;
  width: 100%;
  padding: 18px 18px 42px;
  border-radius: 18px;
  overflow: visible;
  background: linear-gradient(145deg, rgba(18, 42, 69, 0.96) 0%, rgba(11, 24, 41, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--lttm-ease), border-color var(--lttm-ease), box-shadow var(--lttm-ease);
}

.lttm-image-shell {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  height: 100%;
  min-height: 340px;
  border-radius: 14px;
  overflow: hidden;
}

.lttm-poster-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform var(--lttm-ease);
  border: 0;
  display: block;
  background: linear-gradient(160deg, #183c64 0%, #0b1829 100%);
}

.lttm-poster-img--empty {
  min-height: 340px;
}

.lttm-row-poster:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 194, 0, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.lttm-row-poster:hover .lttm-poster-img {
  transform: scale(1.02);
}

.lttm-poster-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 100%;
  background: transparent;
  padding: 4px 0;
  box-sizing: border-box;
}

.lttm-poster-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 34px;
  width: 100%;
}

.lttm-poster-btn {
  min-width: 240px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lttm-accent);
  color: #0b1829;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(243, 194, 0, 0.4);
  text-decoration: none !important;
}

.lttm-poster-btn:hover,
.lttm-poster-btn:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(243, 194, 0, 0.6);
  color: #0b1829;
}

.lttm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}

.lttm-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.lttm-poster-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  margin: 0;
  color: #fff;
  letter-spacing: 1px;
  text-align: left;
  line-height: 1.05;
  text-transform: uppercase;
}

.lttm-ticket-countdown-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
}

.lttm-ticket-countdown-label {
  color: var(--lttm-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.lttm-poster-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 10px;
  font-size: 13px;
  color: var(--lttm-accent);
  font-weight: 700;
  text-align: left;
}

.lttm-poster-description {
  color: var(--lttm-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  max-height: none;
  overflow: visible;
}

.lttm-poster-description p {
  margin: 0 0 8px;
}

.lttm-poster-description p:last-child {
  margin-bottom: 0;
}

.lttm-ticket-countdown-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
}

.lttm-countdown {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

@media (max-width: 1024px) {
  .lttm-row-posters {
    height: min(72vh, 880px);
  }

  .lttm-row-poster {
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    gap: 18px;
  }

  .lttm-image-shell,
  .lttm-poster-img,
  .lttm-poster-img--empty {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .lttm-row-container {
    margin: 24px 0 36px;
    padding: 16px;
    border-radius: 18px;
  }

  .lttm-row-title {
    font-size: 24px;
  }

  .lttm-row-posters {
    gap: 14px;
    height: auto;
    max-height: none;
    min-height: auto;
    padding: 0 4px 24px 0;
    overflow: visible !important;
  }

  .lttm-row-poster {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px 14px 34px;
  }

  .lttm-poster-img {
    min-height: 260px;
  }

  .lttm-image-shell,
  .lttm-poster-img--empty {
    min-height: 260px;
  }

  .lttm-poster-title {
    font-size: 24px;
  }

  .lttm-poster-description {
    font-size: 13px;
  }

  .lttm-poster-btn {
    width: 100%;
    min-width: 0;
  }

  .lttm-poster-actions {
    padding-bottom: 18px;
  }

  .lttm-ticket-countdown-line {
    flex-wrap: wrap;
    gap: 8px;
  }

  .lttm-countdown {
    font-size: 13px;
  }
}
