/* ========================================
   NEWS LIST PAGE — NEXT Online Cinema
   ======================================== */

/* ============================================
   NEWS HERO — Cinematic Banner
   ============================================ */

.news-hero {
  position: relative;
  min-height: 400px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
  background: var(--bg-primary);
}

.news-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(8,8,12,0) 0%, rgba(8,8,12,0.55) 40%, rgba(8,8,12,1) 100%);
  pointer-events: none;
}

.news-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.news-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,8,12,0.92) 0%, rgba(8,8,12,0.4) 50%, rgba(8,8,12,0.15) 100%);
}

.news-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.news-hero__title {
  font-size: clamp(2.5rem, 5vw, var(--font-size-6xl));
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.0;
  margin-bottom: var(--space-md);
}

.news-hero__desc {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 520px;
}

/* ============================================
   TABS / FILTERS
   ============================================ */

.news-filters {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--bg-primary);
}

.news-filters__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.news-filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-filter-btn:hover {
  color: var(--text-secondary);
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

.news-filter-btn.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   NEWS GRID
   ============================================ */

.news-list-section {
  padding: 0 0 var(--space-4xl);
  background: var(--bg-primary);
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Larger card for featured (first) */
.news-list-grid .news-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.news-list-grid .news-card:first-child .news-card__image {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.news-list-grid .news-card:first-child .news-card__body {
  padding: var(--space-2xl);
}

.news-list-grid .news-card:first-child .news-card__title {
  font-size: var(--font-size-2xl);
  -webkit-line-clamp: 3;
}

.news-list-grid .news-card:first-child .news-card__excerpt {
  -webkit-line-clamp: 3;
  font-size: var(--font-size-base);
}

/* Reuse news-card styles from homepage */
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.news-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.news-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.news-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.news-card__date {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.news-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* ============================================
   LOAD MORE
   ============================================ */

.news-load-more {
  display: flex;
  justify-content: center;
  padding: var(--space-3xl) 0;
}

.news-load-more__btn {
  padding: 14px 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.news-load-more__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.news-load-more__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .news-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .news-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list-grid .news-card:first-child {
    grid-template-columns: 1fr;
  }

  .news-list-grid .news-card:first-child .news-card__image {
    aspect-ratio: 16 / 9;
  }

  .news-list-grid .news-card:first-child .news-card__title {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 768px) {
  .news-hero {
    min-height: 340px;
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-lg);
  }

  .news-hero__title {
    font-size: 2rem;
  }

  .news-hero__desc {
    font-size: var(--font-size-base);
  }

  .news-list-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .news-list-grid .news-card:first-child .news-card__body {
    padding: var(--space-lg);
  }

  .news-list-grid .news-card:first-child .news-card__title {
    font-size: var(--font-size-lg);
  }

  .news-filters__inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-filters__inner::-webkit-scrollbar {
    display: none;
  }

  .news-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .news-hero {
    min-height: 300px;
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-md);
  }

  .news-hero__title {
    font-size: 1.75rem;
  }

  .news-card__body {
    padding: var(--space-md);
  }

  .news-load-more__btn {
    width: 100%;
    justify-content: center;
  }
}
