/*=============================================================
  ALL PROJECTS REDESIGN — new page, scoped to .ap only.
  Self-contained, same Dark Cinematic + blue accent system as
  the homepage and project-template for visual continuity.
  Order: Featured Showcase -> Project Spotlight -> large Player
  -> Work Library (Option A arrangement + Option C's bigger player).
=============================================================*/

.ap {
  --ap-bg: #0a0b0d;
  --ap-surface: #121417;
  --ap-surface-2: #181b1f;
  --ap-border: rgba(255,255,255,0.08);
  --ap-text: #f3f4f6;
  --ap-text-dim: #9aa1ab;
  --ap-blue: #4f8cff;
  --ap-radius: 14px;
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
.ap * { box-sizing: border-box; }
.ap-container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.ap-header {
  background: rgba(10,11,13,0.9);
  border-bottom: 1px solid var(--ap-border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.ap-nav { width: min(1200px, 92%); margin-inline: auto; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.ap-nav__logo { color: var(--ap-text); font-weight: 800; letter-spacing: 0.08em; text-decoration: none; }
.ap-nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.ap-nav__list a { color: var(--ap-text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.ap-nav__list a:hover, .ap-nav__list a.ap-active { color: var(--ap-blue); }

.ap-eyebrow { color: var(--ap-blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.5rem; }

/* ---------- Buttons ---------- */
.ap-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.ap-btn--primary { background: var(--ap-blue); color: #0a0b0d; }
.ap-btn--primary:hover { background: #6ba0ff; transform: translateY(-1px); }
.ap-btn--ghost { color: var(--ap-text); border-color: var(--ap-border); background: rgba(255,255,255,0.03); }
.ap-btn--ghost:hover { border-color: var(--ap-blue); color: var(--ap-blue); }
.ap-btn--disabled { opacity: 0.5; cursor: not-allowed; font-size: 0.82rem; }

/* ---------- Featured Showcase ---------- */
.ap-showcase { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--ap-border); }
.ap-showcase__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .ap-showcase__inner { grid-template-columns: 1fr; } }
.ap-showcase__title { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.ap-showcase__desc { color: var(--ap-text-dim); line-height: 1.6; margin-bottom: 1.5rem; max-width: 460px; }
.ap-showcase__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.ap-showcase__media { border-radius: var(--ap-radius); overflow: hidden; border: 1px solid var(--ap-border); aspect-ratio: 16/10; }
.ap-showcase__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Project Spotlight ---------- */
.ap-spotlight { padding: 2.5rem 0; background: linear-gradient(135deg, rgba(79,140,255,0.08), transparent 60%), var(--ap-surface-2); border-bottom: 1px solid var(--ap-border); }
.ap-spotlight__inner { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.ap-spotlight__logo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 1px solid var(--ap-border); background: var(--ap-surface); padding: 10px; }
.ap-spotlight__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.5rem; }
.ap-spotlight__desc { color: var(--ap-text-dim); max-width: 600px; line-height: 1.6; margin-bottom: 1.25rem; }
.ap-spotlight__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Player (big, Option C sizing) ---------- */
.ap-player { padding: 3rem 0; }
.ap-player__stage {
  width: 100%;
  aspect-ratio: 21/9;
  background: #000;
  border-radius: var(--ap-radius);
  overflow: hidden;
  border: 1px solid var(--ap-border);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}
.ap-player__stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.ap-player__bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ap-border);
}
.ap-player__label { color: var(--ap-text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.25rem; }
.ap-player__title { font-size: 1.2rem; font-weight: 700; margin: 0; }

.ap-player__related { display: flex; gap: 1rem; overflow-x: auto; padding: 1.25rem 0 0.5rem; scrollbar-width: thin; }
.ap-related {
  flex: 0 0 150px; background: var(--ap-surface); border: 1px solid var(--ap-border);
  border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; font-family: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.ap-related:hover { border-color: rgba(79,140,255,0.5); transform: translateY(-2px); }
.ap-related img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ap-related span { display: block; padding: 0.5rem 0.6rem; font-size: 0.78rem; color: var(--ap-text-dim); text-align: left; }

/* ---------- Work Library ---------- */
.ap-library { padding: 1rem 0 4rem; background: var(--ap-surface-2); border-top: 1px solid var(--ap-border); }
.ap-library__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2.5rem; margin-bottom: 1.5rem; }
.ap-section__title { font-size: 1.6rem; font-weight: 800; margin: 0; }

.ap-library__search { display: flex; align-items: center; gap: 0.5rem; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 999px; padding: 0.55rem 1rem; }
.ap-library__search i { color: var(--ap-text-dim); }
.ap-library__search input { background: none; border: none; outline: none; color: var(--ap-text); font-family: inherit; font-size: 0.88rem; width: 200px; }
.ap-library__search input::placeholder { color: var(--ap-text-dim); }

.ap-library__tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ap-chip {
  padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--ap-border);
  background: var(--ap-surface); color: var(--ap-text-dim); font-family: inherit;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all .2s ease;
}
.ap-chip:hover { color: var(--ap-text); }
.ap-chip--active { background: var(--ap-blue); border-color: var(--ap-blue); color: #0a0b0d; }

.ap-library__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }

.ap-card {
  background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius);
  overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.ap-card:hover { transform: translateY(-4px); border-color: rgba(79,140,255,0.4); box-shadow: 0 14px 36px rgba(0,0,0,0.4); }

.ap-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; }
.ap-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ap-card:hover .ap-card__media img { transform: scale(1.06); }

.ap-card__play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(10,11,13,0.65); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease, background .2s ease; cursor: pointer;
}
.ap-card:hover .ap-card__play { opacity: 1; }
.ap-card__play:hover { background: var(--ap-blue); color: #0a0b0d; }

.ap-card__body { padding: 1rem 1.1rem 1.1rem; }
.ap-card__tag { color: var(--ap-blue); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.ap-card__title { font-size: 1rem; font-weight: 700; margin: 0.35rem 0 0.6rem; }
.ap-card__link { color: var(--ap-text-dim); text-decoration: none; font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.ap-card__link:hover { color: var(--ap-blue); }

.ap-library__empty { text-align: center; color: var(--ap-text-dim); padding: 2rem 0; }

/* ---------- Footer ---------- */
.ap-footer { border-top: 1px solid var(--ap-border); padding: 1.5rem 0; background: var(--ap-bg); }
.ap-footer__inner { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.ap-footer__link { color: var(--ap-text-dim); text-decoration: none; font-size: 0.88rem; }
.ap-footer__link:hover { color: var(--ap-text); }
.ap-footer__link--secondary { color: var(--ap-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .ap-player__stage { aspect-ratio: 16/9; }
  .ap-library__search input { width: 120px; }
}
