/* ===== Entertainment Page ===== */

.entertainment-page a { color: var(--accent); text-decoration: none; }
.entertainment-page a:hover { text-decoration: underline; }

/* Header */
.ent-header {
  background: linear-gradient(135deg, #1a1025 0%, #0f1923 100%);
  border-bottom: 3px solid #E50914;
  padding: 1.5rem 1rem;
  text-align: center;
}

.ent-header h1 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.3rem;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.ent-subtitle {
  color: #aaa;
  font-size: 0.95rem;
}

.ent-subtitle-sm {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* Container */
.ent-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Section jump nav */
.ent-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 8px;
}

.ent-jump-nav a {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: #ccc;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.ent-jump-nav a:hover {
  border-color: #E50914;
  color: #fff;
  text-decoration: none;
}

/* Filter buttons */
.ent-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 8px;
}

.ent-filter-btn {
  padding: 0.4rem 1rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.ent-filter-btn:hover {
  border-color: #E50914;
  color: #fff;
}

.ent-filter-btn.active {
  background: #E50914;
  border-color: #E50914;
  color: #fff;
  font-weight: 600;
}

/* Sections */
.ent-section {
  margin-top: 1.5rem;
}

.ent-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Month navigation */
.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.month-btn {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}

.month-btn:hover {
  border-color: #E50914;
  color: #fff;
}

.month-btn.active {
  background: #E50914;
  border-color: #E50914;
  color: #fff;
  font-weight: 600;
}

.month-count {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.2rem;
}

/* Card grid */
.ent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Loading / empty states */
.ent-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.ent-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--danger);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* Individual card */
.ent-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.2s, transform 0.2s;
}

.ent-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.ent-card-poster {
  width: 120px;
  min-height: 180px;
  flex-shrink: 0;
  background: #111;
}

.ent-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ent-card-info {
  flex: 1;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.ent-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.ent-card-season {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ent-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.ent-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ent-card-rating {
  font-size: 0.8rem;
  color: #ffb74d;
  font-weight: 600;
}

.ent-card-overview {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* Provider badges */
.ent-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.ent-badge-netflix { background: #E50914; }
.ent-badge-prime { background: #00A8E1; }
.ent-badge-disney { background: #113CCF; }

/* No-poster fallback */
.ent-no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 2rem;
  background: #1a1a2a;
}

/* Nav override for entertainment page */
.entertainment-page .site-nav {
  margin-bottom: 1.25rem;
}

.entertainment-page .nav-link.active {
  color: #E50914;
  background: rgba(229, 9, 20, 0.15);
}

/* Footer */
.ent-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ent-footer a {
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .ent-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ent-header h1 {
    font-size: 1.2rem;
  }

  .ent-card {
    flex-direction: row;
  }

  .ent-card-poster {
    width: 90px;
    min-height: 135px;
  }

  .ent-card-info {
    padding: 0.5rem 0.75rem;
  }

  .ent-card-title {
    font-size: 0.9rem;
  }

  .ent-card-overview {
    -webkit-line-clamp: 2;
  }

  .ent-container {
    padding: 0.5rem;
  }
}
