/* ============================================================
   FILMOGRAPHY PAGE
   ============================================================ */

/* Filter bar */
.filter-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}

.filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 32px;
  border-bottom: 2px solid transparent;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  background: none;
  cursor: pointer;
}

.filter-tab:hover {
  color: var(--charcoal);
}

.filter-tab.active {
  color: var(--charcoal);
  border-bottom-color: var(--gold);
}

/* Featured projects */
.featured-projects {
  padding: 80px 0;
  background: var(--cream-light);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.featured-card {
  background: var(--cream);
  overflow: hidden;
  border-radius: 14px;
  transition: transform var(--dur) var(--ease);
}

.featured-card:hover { transform: translateY(-4px); }

.featured-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-dark);
}

.featured-card-main .featured-card-img {
  aspect-ratio: 4/3;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;   /* show face in all featured cards */
  transition: transform 0.7s var(--ease);
}

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

.featured-placeholder {
  position: absolute;
  inset: 0;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.featured-placeholder span {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--panel-dark);
  color: var(--gold);
  padding: 6px 12px;
}

.featured-card-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.featured-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.featured-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.1;
}

.featured-role {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
}

.featured-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--charcoal-soft);
  margin-top: 4px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--charcoal);
}

.meta-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

/* Credits table */
.credits-section {
  padding: 100px 0;
  background: var(--cream-light);
}

.credits-table-wrap {
  margin-top: 56px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.credits-table thead tr {
  background: var(--charcoal);
  color: var(--cream-light);
}

.credits-table th {
  padding: 14px 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.credits-table th:first-child { padding-left: 28px; }

.credits-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--dur);
}

.credits-table tbody tr:hover {
  background: var(--cream);
}

.credits-table tbody tr[data-category="hidden"] {
  display: none;
}

.credits-table td {
  padding: 16px 20px;
  color: var(--charcoal-soft);
  vertical-align: middle;
}

.credits-table td:first-child {
  padding-left: 28px;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.td-title {
  font-family: var(--font-display);
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--charcoal) !important;
}

.td-note {
  font-size: 11px !important;
  color: var(--gold) !important;
  font-weight: 500 !important;
}

/* Type badges */
.type-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.type-tv   { background: rgba(184,147,90,0.15); color: #8B6914; }
.type-film { background: rgba(28,28,28,0.08);   color: var(--charcoal-soft); }
.type-prod { background: rgba(100,80,60,0.1);   color: #6B4F2E; }

/* Responsive */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card-main { grid-column: span 2; }
  .featured-card-main .featured-card-img { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card-main { grid-column: span 1; }
  .filter-tab { padding: 16px 20px; }
  .credits-table td, .credits-table th { padding: 12px 14px; }
  .credits-table td:first-child, .credits-table th:first-child { padding-left: 16px; }
}
