@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Playwrite+NZ+Guides&display=swap');

:root {
  --shell:        #151515;
  --shell-mid:    #1e1e1e;
  --shell-border: #2e2e2e;
  --body-bg:      #ffffff;
  --body-surface: #f5f5f5;
  --body-border:  #e0e0e0;
  --body-border2: #c8c8c8;
  --text:         #333333;
  --text-strong:  #111111;
  --text-muted:   #777777;
  --accent:       #444444;
  --sec-bg:       #ebebeb;
  --sec-text:     #222222;
  --sec-border:   #aaaaaa;
  --dark-text:    #cccccc;
  --dark-muted:   #777777;
  --font-logo:    'Playwrite NZ Guides', cursive;
  --font-body:    'Lato', sans-serif;
  --max:          1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  background-color: var(--shell);
  /* Blueprint/technical grid + diagonal overlay */
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.012) 30px,
      rgba(255,255,255,0.012) 31px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(255,255,255,0.012) 30px,
      rgba(255,255,255,0.012) 31px
    ),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
em { font-style: italic; }
strong { font-weight: 700; }

/* ── WHITE CONTENT WRAPPER ── */
#site-content {
  background: var(--body-bg);
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  color: var(--text);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text-strong); }
#site-content strong { color: var(--text-strong); }
#site-content hr.styled { border: none; border-top: 1px solid var(--body-border); margin: 1.5rem 0; }

/* ── HEADER ── */
#site-header {
  background: var(--shell);
  border-bottom: 1px solid var(--shell-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo a { font-family: var(--font-logo); font-size: 2rem; color: #e8e8e8; line-height: 1; }
.site-logo a:hover { color: #ffffff; }

.header-social { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.header-social span { font-size: 0.7rem; color: var(--dark-muted); font-weight: 700; }
.header-social a { font-size: 0.7rem; color: var(--dark-muted); }
.header-social a:hover { color: #dddddd; }

/* ── NAV — centered ── */
#site-nav {
  background: var(--shell-mid);
  border-bottom: 2px solid var(--shell-border);
  overflow-x: auto;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner a {
  font-size: 0.82rem;
  font-weight: 400;
  color: #aaaaaa;
  padding: 0.65rem 1.2rem;
  display: block;
  border-right: 1px solid var(--shell-border);
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.nav-inner a:first-child { border-left: 1px solid var(--shell-border); }
.nav-inner a:hover { color: #ffffff; background: rgba(255,255,255,0.07); }
.nav-inner a.active { color: #ffffff; background: rgba(255,255,255,0.12); font-weight: 700; }

/* ── PAGE TITLE ── */
h2.page-title {
  font-size: 1.2rem; font-weight: 900; color: var(--text-strong);
  margin-bottom: 1.25rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--body-border2); letter-spacing: 0.02em;
}
h2.page-title a { color: var(--text-strong); }
h2.page-title a:hover { color: var(--accent); }

/* ── SECTION HEADER BAR ── */
.sec-bar {
  background: var(--sec-bg);
  color: var(--sec-text);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-left: 4px solid var(--sec-border);
  border-bottom: 1px solid var(--body-border);
}
.sec-bar a { color: var(--sec-text); }
.sec-bar a:hover { color: #000; }

/* ── RECORD TABLE (5-wide) ── */
.rec-table { width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; }
.rec-cell {
  text-align: center; vertical-align: top;
  padding: 8px 5px 12px; width: 20%;
  font-size: 0.75rem; color: var(--text); line-height: 1.4;
}
.rec-cell img {
  width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--body-border);
  margin: 0 auto 0.4rem; display: block;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rec-cell img:hover {
  border-color: #888; transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.rec-cell a { color: var(--accent); }
.rec-cell a:hover { color: var(--text-strong); }

/* ── POSTER CELL — 2:3 portrait for film/TV posters ── */
.poster-cell {
  text-align: center; vertical-align: top;
  padding: 2px 2px 8px; width: 20%;
  font-size: 0.75rem; color: var(--text); line-height: 1.4;
}
.poster-cell img {
  width: 100%; max-width: 180px; aspect-ratio: 2/3; object-fit: cover;
  border: 1px solid var(--body-border);
  margin: 0 auto 0.4rem; display: block;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: zoom-in;
}
.poster-cell img:hover {
  border-color: #888; transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.poster-cell a { color: var(--accent); }
.poster-cell a:hover { color: var(--text-strong); }

/* ── CREDIT TABLE (4-wide poster) ── */
.cred-table { width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; }
.cred-cell {
  text-align: center; vertical-align: top;
  padding: 8px 5px 10px; width: 25%;
  font-size: 0.75rem; color: var(--text); line-height: 1.4;
}
.cred-cell img {
  width: 100%; max-width: 150px; height: 180px; object-fit: cover;
  border: 1px solid var(--body-border);
  margin: 0 auto 0.3rem; display: block; transition: border-color 0.15s;
}
.cred-cell img:hover { border-color: #888; }

/* ── TV TABLE (5-wide square) ── */
.tv-table { width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; }
.tv-cell {
  text-align: center; vertical-align: top;
  padding: 7px 4px 9px; width: 20%;
  font-size: 0.72rem; color: var(--text); line-height: 1.3;
}
.tv-cell img {
  width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--body-border);
  margin: 0 auto 0.25rem; display: block; transition: border-color 0.15s;
}
.tv-cell img:hover { border-color: #888; }

/* ── LOGO TABLE ── */
.logo-table { width: 100%; border-collapse: collapse; }
.logo-cell { text-align: center; vertical-align: middle; padding: 14px 10px; width: 25%; }
.logo-cell img {
  max-width: 130px; max-height: 80px; width: auto; height: auto;
  margin: 0 auto; display: block;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.2s;
}
.logo-cell img:hover { filter: grayscale(0%) opacity(1); }

/* ── GENRE GRID — professional ── */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 1.25rem 0;
}

.genre-card {
  background: #fafafa;
  border: 1px solid var(--body-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.genre-card:hover {
  border-color: #999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.genre-card-head {
  background: #2a2a2a;
  color: #eeeeee;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #3a3a3a;
}
.genre-card-head i { font-size: 0.95rem; opacity: 0.65; width: 18px; text-align: center; }

.genre-card-links { list-style: none; padding: 6px 0; }
.genre-card-links li { border-bottom: 1px solid #f0f0f0; }
.genre-card-links li:last-child { border-bottom: none; }

.genre-card-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  padding: 7px 16px;
  font-size: 0.79rem;
  transition: all 0.12s;
  text-decoration: none;
}
.genre-card-links a i {
  width: 17px; text-align: center; color: #aaa;
  font-size: 0.82rem; flex-shrink: 0; transition: color 0.12s;
}
.genre-card-links a:hover {
  background: #f0f0f0;
  color: #111;
  padding-left: 21px;
}
.genre-card-links a:hover i { color: #555; }

/* ── VIDEO / AUDIO ── */
.vid-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  margin-bottom: 1.5rem; border: 1px solid var(--body-border);
}
.vid-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.audio-wrap { border: 1px solid var(--body-border); margin-bottom: 1.5rem; overflow: hidden; }
.audio-wrap iframe { width: 100%; display: block; }

/* ── BIO TEXT ── */
.bio-text { color: var(--text); line-height: 1.78; font-size: 0.93rem; text-align: justify; }
.bio-text p { margin-bottom: 1.1rem; }
.bio-text strong { color: var(--text-strong); }
.bio-text a { color: #555; border-bottom: 1px dotted #bbb; }
.bio-text a:hover { color: #000; border-color: #000; }

/* ── SOCIAL ROW ── */
.social-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--body-border);
}
.social-row img { height: 32px; width: auto; opacity: 0.65; transition: opacity 0.15s; }
.social-row img:hover { opacity: 1; }

/* ── FOOTER ── */
#site-footer {
  background: var(--shell);
  border-top: 1px solid var(--shell-border);
  padding: 2rem 1.5rem;
  margin-top: 0;
  text-align: center;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.25rem 1rem; margin-bottom: 0.75rem;
}
.footer-nav a { font-size: 0.8rem; color: var(--dark-muted); }
.footer-nav a:hover { color: #dddddd; }
.footer-copy { font-size: 0.75rem; color: var(--dark-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  .rec-cell, .tv-cell, .poster-cell { width: 33.33%; }
  .cred-cell { width: 50%; }
  .logo-cell { width: 50%; }
  #site-content { padding: 1.25rem 1rem 3rem; }
}
@media (max-width: 500px) {
  .rec-cell, .cred-cell, .tv-cell, .poster-cell { width: 50%; }
  .nav-inner { justify-content: flex-start; }
}
