@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --bg-dark: #060d17;
  --text-light: #ffffff;
  --text-muted: #9ca3af;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0;
  padding: 1rem;
}

.button-container {
  display: none;
}

#movie-count {
  margin-top: 1rem;
}

/**/

.slider-wrapper {
  position: relative;
}

/* Base arrow button */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(22, 29, 37, 0.8);
  /* dark theme */
  color: #d32f2f;
  /* your red accent */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(22, 29, 37, 1);
}

/* Position them */
.slider-arrow.prev {
  left: 8px;
}

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

.media-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  margin: 3rem 2rem 0;
}

.media-section a {
  text-decoration: none;
}

.media-section .section-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.media-section .section-header:hover > * {
  color: #d32f2f;
}

.media-section .section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  margin-top: 1rem;
  position: relative;
  display: inline-block;
}

.media-section .section-link {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
}

.media-section .section-link:hover {
  color: #d32f2f;
}

/* 5-column grid */
.media-section .media-grid {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

/* CARD LAYOUT */
.media-section .media-card {
  display: flex;
  flex-direction: column;
}

/* THUMBNAIL + OVERLAYS */
.media-section .media-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.media-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}


.media-card:hover .media-thumbnail {
  opacity: 0;
}


.media-section .media-thumb img {
  width: 100%;
  display: block;
}

.media-section .media-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.media-section .media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #d32f2f;
  color: #fff;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.media-section .media-grid::-webkit-scrollbar {
  display: none;
  /* WebKit hide */
}

.media-section .media-grid:hover::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.media-section .media-grid:hover::-webkit-scrollbar-track {
  background: transparent;
}

.media-section .media-grid:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.media-section .media-grid .media-card {
  flex: 0 0 auto;
  width: 265px;
  /* Match card width with layout */
  scroll-snap-align: start;
}

.media-section .media-grid .media-info-col {
  margin-top: 12px;
}

.media-section .media-subinfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-section .media-grid .media-title {
  margin: 0;
  /*font-size: 0.785rem;*/
  font-size: 1rem;
  font-weight: 200;
  font-family: "Roboto";

  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1rem;
/*  min-height: calc(1.4em * 2); */
}

.media-section .media-grid .media-genre {
  margin: 0;
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.8);
}

.media-section .media-grid .media-by {
  margin: 0;
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.6);
}

.media-section .media-grid .media-author {
  color: #d32f2f;
  font-weight: 600;
}


@media (max-width: 700px) {

  .slider-arrow {
    display: flex !important;
  }


  /* Media Section: Carousels */
  .media-section {
    padding: 20px 0 10px 0;
  }

  .media-section .section-title {
    font-size: 1.1rem;
  }

  .media-section .media-grid.top10,
  .media-section .media-grid.newest {
    gap: 14px;
    padding-bottom: 7px;
  }

  .media-section .media-card,
  .media-section .media-grid.top10 .media-card,
  .media-section .media-grid.newest .media-card {
    width: 72vw;
    min-width: 142px;
    max-width: 96vw;
    padding: 0;
  }

  .media-section .media-thumb img {
    border-radius: 10px;
  }

  .media-section .media-info-col,
  .media-section .media-info {
    padding: 6px 2px;
    font-size: 0.98rem;
  }
}

#androidTvBanner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

#androidTvBanner > img {
  width: 100%;
  height: 400px;
  object-fit: fill;
  max-width: 1280px;
}


@media (max-width: 950px) {

  #androidTvBanner > img {
    height: 320px;
    object-fit: cover;
  }
}

/* ================================
   DISCOVER CONTENT STYLES
   ================================ */
.discover-section {
  background: var(--bg-dark);
  padding: 50px 0;
}

.discover-section .container {
  text-align: center;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.discover-section .section-title {
  font-size: 2.5rem;
  margin: 0 auto 8px;
  display: inline-block;
  color: #fff;
  font-weight: 700;
  margin-bottom: 32px;
}

.discover-section .section-subtitle {
  opacity: 0.7;
  margin-bottom: 40px;
  color: #fff;
}

.discover-grid.top-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: left;
  margin-bottom: 40px;
  overflow-x: unset;
}

.eternity-card.gradient {
  height: 140px;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.eternity-card.gradient h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  z-index: 100;
  position: relative;
}

.eternity-card.gradient.purple {
  background: radial-gradient(circle at top right, #a87ccf 0%, #7b4faa 45%, #3c1f5c 75%, #0e0012 100%);
}

.eternity-card.gradient.purple h3 {
  background: linear-gradient(135deg, #e3c1ff 0%, #b277e1 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.eternity-card.gradient.green {
  background: radial-gradient(circle at top right, #c1f832 0%, #6eaa10 45%, #264900 75%, #091700 100%);
}

.eternity-card.gradient.green h3 {
  background: linear-gradient(135deg, #eaff8c 0%, #8cbe00 100%);
  background-clip: text !important;
  -webkit-background-clip: text !important;
}

.eternity-card.gradient.gold {
  background: radial-gradient(circle at top right, #781f00 0%, #c25802 45%, #fac75c 85%, #fde396 100%);
}

.eternity-card.gradient.gold h3 {
  background: linear-gradient(135deg, #950505 0%, #ffd744 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.eternity-card.gradient.blue {
  background: radial-gradient(circle at top right, #6ac7f0 0%, #1483c9 45%, #004061 75%, #00162d 100%);
}

.eternity-card.gradient.blue h3 {
  background: linear-gradient(135deg, #8edfff 0%, #227fde 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.eternity-card.gradient.teal {
  background: radial-gradient(circle at top right, #2affb0 0%, #00a07a 45%, #00353f 80%, #001e26 100%);
}

.eternity-card.gradient.teal h3 {
  background: linear-gradient(135deg, #62ffdd 0%, #00cdb5 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

@media (max-width: 768px) {
  .discover-grid.top-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 12px;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .discover-grid.top-row::-webkit-scrollbar {
    display: none;
  }

  .eternity-card.gradient {
    flex: 0 0 auto !important;
    width: 50vw !important;
    min-width: 120px;
    max-width: 90vw;
    scroll-snap-align: start;
    margin-bottom: 20px !important;
  }
}
