/* ════════════════════════════════════════════
   FILM COLLECTOR ARCHIVE — Stylesheet
   Black & white / Courier New / Editorial
   ════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:         #000000;
  --white:         #ffffff;
  --gray:          #444444;
  --gray-light:    #f7f7f7;
  --border:        1px solid #000000;
  --sidebar-width: 320px;
  --font:          'Courier New', Courier, monospace;
  --content-max:   740px;
}

html { font-size: 18px; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  display: flex;
}

/* ── SCROLLBAR ───────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--black); }

/* ══════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════ */

#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  border-right: var(--border);
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: var(--black);
  z-index: 100;
  border-right: 1px solid #333;
}

/* Logo */

#logo-link {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}

#logo {
  width: 100%;
  display: block;
}


/* Navigation */

#main-nav ul {
  list-style: none;
}

#main-nav ul li {
  border-bottom: 1px solid #333;
}

#main-nav ul li:first-child {
  border-top: 1px solid #333;
}

#main-nav ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  transition: background 0.1s, color 0.1s;
}

#main-nav ul li a i {
  font-size: 15px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

#main-nav ul li a:hover {
  background: var(--white);
  color: var(--black);
}

#main-nav ul li a.active {
  background: var(--white);
  color: var(--black);
}

/* Search */

#social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-label {
  font-size: 17px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--white);
  padding-left: 10px;
}

#social-links ul {
  list-style: none;
}

#social-links ul li {
  border-bottom: 1px solid #333;
}


#social-links ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  transition: opacity 0.15s;
}

#social-links ul li a i {
  font-size: 15px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

#social-links ul li a:hover {
  opacity: 0.7;
}


#search-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--white);
  padding: 11px 10px;
}

.search-label i {
  font-size: 15px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

#search-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #555;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  background: transparent;
  color: var(--white);
  border-radius: 0;
  caret-color: var(--white);
}

#search-input:focus {
  border: 2px solid var(--white);
}

#search-results {
  display: none;
  flex-direction: column;
  border: 1px solid #555;
  border-top: none;
  max-height: 320px;
  overflow-y: auto;
}

#search-results.active {
  display: flex;
}

.search-result-item {
  display: block;
  padding: 10px 10px;
  text-decoration: none;
  color: var(--white);
  border-bottom: 1px solid #333;
  font-family: var(--font);
  background: var(--black);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--white);
  color: var(--black);
}

.search-result-item:hover .search-result-meta {
  color: var(--black);
}

.search-result-title {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  display: block;
}

.search-result-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  display: block;
  margin-top: 3px;
}

.search-no-results {
  padding: 12px 10px;
  font-size: 11px;
  color: #aaa;
  font-family: var(--font);
  background: var(--black);
}

.search-clear-btn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-align: left;
}

.search-clear-btn:hover {
  opacity: 0.75;
}

/* ══════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════ */

#content {
  margin-left: var(--sidebar-width);
  padding: 32px 64px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#view {
  flex: 1;
}

/* Home page — make the layout fill the full available height */
#view.view-home {
  display: flex;
  flex-direction: column;
}

#view.view-home .home-layout {
  flex: 1;
}

/* Match the top 32px gap so the line ends at the same distance from the footer */
#view.view-home + #content-footer {
  margin-top: 32px;
}

/* ── PAGE HEADER ─────────────────────────── */

.page-header {
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: var(--border);
}

.page-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray);
  margin-bottom: 10px;
  display: block;
}

.page-title {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
}

.page-subtitle {
  margin-top: 12px;
  font-size: 15px;
  color: #222;
  line-height: 1.7;
}

/* ── SECTION HEADERS ─────────────────────── */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: var(--border);
  padding-bottom: 10px;
  margin-bottom: 0;
}

.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: normal;
  color: var(--black);
}

.view-all-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.view-all-link:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* ══════════════════════════════════════════
   REVIEW LIST ITEMS
   ══════════════════════════════════════════ */

.review-list {
  list-style: none;
}

.review-item {
  border-bottom: var(--border);
  padding: 22px 0;
}

.review-item:first-child {
  border-top: var(--border);
}

.review-item-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
}

.review-item-title {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.25;
  grid-column: 1;
}

.review-item-title a {
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.review-item-title a:hover {
  border-bottom-color: var(--black);
}

.review-item-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
  padding-top: 3px;
}

.review-item-subtitle {
  font-size: 14px;
  color: #333;
  grid-column: 1;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.review-item-excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: #222;
  grid-column: 1;
  margin-top: 10px;
}

.review-item-footer {
  grid-column: 1 / -1;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: var(--border);
  padding: 3px 7px;
  display: inline-block;
}


/* ══════════════════════════════════════════
   SINGLE REVIEW
   ══════════════════════════════════════════ */

.review-single {
  max-width: var(--content-max);
}

.back-link {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-decoration: none;
  color: var(--black);
  border-bottom: var(--border);
  padding-bottom: 2px;
  margin-bottom: 40px;
}

.back-link:hover {
  color: var(--gray);
  border-bottom-color: var(--gray);
}

.review-single-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: var(--border);
}

.review-single-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gray);
  display: block;
  margin-bottom: 16px;
}

.review-single-title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.review-single-subtitle {
  font-size: 16px;
  color: #222;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.review-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  align-items: center;
}

.review-single-meta .rating {
  margin-left: 0;
}

.review-single-body {
  font-size: 18px;
  line-height: 1.9;
  color: #000;
  max-width: var(--content-max);
}

.review-single-body p {
  margin-bottom: 22px;
}

.review-single-body h2 {
  font-size: 13px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 36px 0 16px;
  border-bottom: var(--border);
  padding-bottom: 8px;
}

.review-single-body strong {
  font-weight: bold;
}

.review-single-body em {
  font-style: italic;
}

/* ══════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════ */

.home-welcome {
  margin-bottom: 60px;
  max-width: var(--content-max);
}

.home-welcome p {
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  margin-bottom: 20px;
}

.home-welcome p:last-child {
  margin-bottom: 0;
}

.home-signature {
  font-style: italic;
}

#contact-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#contact-thanks {
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--black);
}

#other-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.other-links-label {
  font-size: 17px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--white);
  padding-left: 10px;
}

#other-links ul {
  list-style: none;
}

#other-links ul li {
  border-bottom: 1px solid #333;
}

#other-links ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  transition: opacity 0.15s;
}

#other-links ul li a i {
  font-size: 15px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

#other-links ul li a:hover {
  opacity: 0.7;
}

.contact-toggle {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  cursor: pointer;
  color: var(--white);
  padding: 11px 10px;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}

.contact-toggle:hover {
  opacity: 0.6;
}

.contact-toggle i {
  font-size: 15px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.contact-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.contact-form.open {
  display: flex;
}

.contact-input,
.contact-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--white);
  background: transparent;
  border: 1px solid #888;
  padding: 10px 12px;
  outline: none;
  border-radius: 0;
  caret-color: var(--white);
}

.contact-input:focus,
.contact-textarea:focus {
  border: 2px solid var(--white);
}

.contact-textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #666;
  font-style: italic;
}

.contact-buttons {
  display: flex;
  gap: 12px;
}

.contact-send,
.contact-cancel {
  font-family: var(--font);
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.1s, color 0.1s;
}

.contact-send,
.contact-cancel {
  background: transparent;
  color: var(--white);
  border: 1px solid #888;
}

.contact-send:hover,
.contact-cancel:hover {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--content-max);
}

.about-photo {
  width: 100%;
  max-width: 600px;
  display: block;
  border: var(--border);
}

/* Extend Welcome header line and empty state to mirror the 32px gap the NEWS line has from the vertical border */
.home-main > .page-header {
  margin-right: -16px;
}

.home-main .empty-state {
  margin-right: -16px;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 48px;
  align-items: stretch;
  min-height: calc(100vh - 64px);
}

.home-main {
  min-width: 0;
}

.home-news-panel {
  border-left: var(--border);
  padding-left: 32px;
}

.news-panel-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retro-characters {
  width: 100%;
  overflow: hidden;
  height: 320px;
}

.retro-characters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  filter: grayscale(100%) contrast(1.4) brightness(1.2);
  display: block;
}

.news-subsections {
  display: flex;
  flex-direction: column;
}

.news-subsection {
  margin-bottom: 40px;
}

.news-subsection + .news-subsection {
  margin-top: 8px;
}

.news-subsection-header {
  font-family: var(--font);
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--black);
  padding-bottom: 14px;
  border-bottom: var(--border);
  margin-bottom: 0;
}

.news-subsection-content {
  font-family: var(--font);
  color: #222;
}

.news-more {
  padding: 16px 0 0;
}

.news-more-link {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--black);
  text-decoration: none;
  text-align: center;
  padding: 12px;
  border: var(--border);
  transition: background 0.15s, color 0.15s;
}

.news-more-link:hover {
  background: var(--black);
  color: var(--white);
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 0;
  border-bottom: var(--border);
}

.news-subsection-content .news-item:first-child {
  padding-top: 0;
}


.news-source {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--black);
  font-family: var(--font);
  font-weight: bold;
}

.news-title {
  font-family: var(--font);
  font-size: 16px;
  font-weight: bold;
  color: var(--black);
  text-decoration: none;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.news-title:hover {
  border-bottom-color: var(--black);
}

.news-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  font-family: var(--font);
}

.news-loading {
  font-family: var(--font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
}

.feed-timestamp {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: 10px;
}

.feed-refresh {
  padding: 32px 0;
  max-width: var(--content-max);
}

.feed-refresh-btn {
  font-family: var(--font);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--black);
  background: transparent;
  border: var(--border);
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.feed-refresh-btn:hover {
  background: var(--black);
  color: var(--white);
}

.full-news-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 0;
  border-bottom: var(--border);
  max-width: var(--content-max);
}

.full-news-item:first-child {
  padding-top: 0;
}

.home-latest {
  margin-top: 48px;
}

.home-latest .page-header {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-latest .page-title {
  font-size: 24px;
}

.home-sections {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.home-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: var(--border);
}

.home-links-title {
  font-size: 21px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.home-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-links-list a {
  font-size: 16px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.home-links-list a:hover {
  border-bottom-color: var(--black);
}

/* ══════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════ */

.empty-state {
  padding: 48px 32px;
  border: var(--border);
  text-align: center;
  margin-top: 0;
}

.empty-state p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #bbb;
}

/* ══════════════════════════════════════════
   SEARCH RESULTS PAGE
   ══════════════════════════════════════════ */

.search-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: var(--border);
}

.search-header .search-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray);
  margin-bottom: 8px;
  display: block;
}

.search-header h2 {
  font-size: 23px;
  font-weight: normal;
}

.search-header h2 em {
  font-style: normal;
  border-bottom: 2px solid var(--black);
}

.search-count {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  margin-top: 10px;
  display: block;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

#content-footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
}

/* ══════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   RESPONSIVE — tablet
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 1fr 360px;
    gap: 32px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — mobile
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  html { font-size: 16px; }

  body { flex-direction: column; }

  /* ── Sidebar ── */
  #sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    border-right: none;
    border-bottom: var(--border);
    padding: 20px 20px;
    flex-direction: column;
    gap: 20px;
    z-index: auto;
  }

  :root { --sidebar-width: 0px; }

  #logo { width: 50%; }

  /* ── Content ── */
  #content {
    margin-left: 0;
    padding: 24px 20px 40px;
  }

  /* ── Home layout — stack columns ── */
  .home-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-height: auto;
  }

  #view.view-home {
    display: block;
  }

  #view.view-home + #content-footer {
    margin-top: 40px;
  }

  .home-main > .page-header {
    margin-right: 0;
  }

  .home-main .empty-state {
    margin-right: 0;
  }

  /* ── News panel — remove left border when stacked ── */
  .home-news-panel {
    border-left: none;
    border-top: var(--border);
    padding-left: 0;
    padding-top: 32px;
  }

  .news-panel-icon {
    display: none;
  }

  /* ── Page headers ── */
  .page-title {
    font-size: 24px;
  }

  /* ── Review items ── */
  .review-item-inner {
    grid-template-columns: 1fr;
  }

  .review-item-date {
    grid-column: 1;
    grid-row: auto;
  }

  /* ── Single review ── */
  .review-single-body {
    font-size: 16px;
  }

  /* ── Full news pages ── */
  .full-news-item {
    max-width: 100%;
  }

  /* ── About photo ── */
  .about-photo {
    max-width: 100%;
  }

  /* ── Footer ── */
  #content-footer {
    margin-top: 40px;
  }
}
