* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================================
   THEME VARIABLES
   ========================================================= */

:root {
  --bg: #f4f4f0;
  --surface: #ffffff;
  --surface-alt: #f1f1ed;

  --text: #111111;
  --text-soft: #555555;
  --text-muted: #777777;

  --border: #111111;
  --border-soft: #bbbbbb;

  --shadow: #111111;

  --input-bg: #ffffff;

  --tag-blue-bg: #dff4fc;
  --tag-blue-border: #8bcce8;
  --tag-blue-text: #24566a;

  --tag-red-bg: #fbe2e2;
  --tag-red-border: #e8a4a4;
  --tag-red-text: #7a3030;
}

html.dark-mode {
  --bg: #111111;
  --surface: #1b1b1b;
  --surface-alt: #242421;

  --text: #f4f4f0;
  --text-soft: #c3c3be;
  --text-muted: #999994;

  --border: #eeeeea;
  --border-soft: #555550;

  --shadow: #000000;

  --input-bg: #1b1b1b;

  --tag-blue-bg: #173744;
  --tag-blue-border: #3f91b2;
  --tag-blue-text: #bde8f8;

  --tag-red-bg: #452525;
  --tag-red-border: #b56b6b;
  --tag-red-text: #ffd0d0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background: var(--bg);
  color: var(--text);

  font-family: Arial, Helvetica, sans-serif;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */

* {
  cursor:
    url("./assets/cursor.png") 0 0,
    auto !important;
}

html.dark-mode * {
  cursor:
    url("./assets/cursor-2.png") 0 0,
    auto !important;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
  width: 100%;
  max-width: 1500px;

  margin: 0 auto;

  padding: 35px;
}

/* =========================================================
   HEADER
   ========================================================= */

.films-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 20px;
  padding: 35px 0 18px;

  background: var(--bg);

  border-bottom: 2px solid var(--border);
}

.header-title {
  flex-shrink: 0;
}

.section-label {
  margin-bottom: 5px;

  color: var(--text-muted);

  font-family: monospace;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 1px;

  text-transform: uppercase;
}

h1 {
  color: var(--text);

  font-size: 38px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: -2px;
}

/* =========================================================
   ARCHIVE NAVIGATION
   ========================================================= */

.archive-actions {
  display: flex;

  align-items: center;

  gap: 5px;

  flex-wrap: wrap;
}

.archive-button {
  height: 34px;

  padding: 0 12px;

  border: 2px solid var(--border);

  background: var(--surface);
  color: var(--text);

  font-family: monospace;

  font-size: 9px;
  font-weight: 900;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.archive-button:hover {
  background: var(--text);
  color: var(--bg);
}

.archive-button:active {
  transform: translateY(1px);
}

.archive-button.active {
  background: var(--text);
  color: var(--bg);
}

/* =========================================================
   LIGHT / DARK MODE
   ========================================================= */

.theme-toggle {
  display: flex;

  align-items: center;

  gap: 7px;

  height: 34px;

  padding: 0 4px;

  border: 0;

  background: transparent;

  color: var(--text);

  font-family: monospace;

  font-size: 9px;
  font-weight: 900;

  cursor: pointer;
}

.theme-toggle-track {
  position: relative;

  display: block;

  width: 40px;
  height: 21px;

  border: 2px solid var(--border);

  border-radius: 999px;

  background: var(--surface);

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle-thumb {
  position: absolute;

  top: 2px;
  left: 2px;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: var(--text);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

html.dark-mode .theme-toggle-track {
  background: var(--text);
}

html.dark-mode .theme-toggle-thumb {
  background: var(--bg);

  transform: translateX(19px);
}

.theme-label {
  min-width: 32px;

  color: var(--text);

  font-size: 8px;
  font-weight: 900;

  text-align: left;
}

/* =========================================================
   FILM CONTROLS
   ========================================================= */

.film-controls {
  width: 100%;

  margin-bottom: 20px;
}

.film-filters {
  display: flex;

  align-items: center;

  gap: 8px;

  width: 100%;
}

.year-filter,
.watch-filter {
  width: 180px;
  height: 40px;

  padding: 0 12px;

  border: 2px solid var(--border);

  outline: none;

  background: var(--input-bg);
  color: var(--text);

  font-family: Arial, Helvetica, sans-serif;

  font-size: 10px;
  font-weight: 900;

  text-transform: uppercase;

  cursor: pointer;
}

.year-filter:hover,
.watch-filter:hover {
  background: var(--text);
  color: var(--bg);
}

.year-filter:focus,
.watch-filter:focus {
  border-width: 3px;
}

.year-filter option,
.watch-filter option {
  background: var(--input-bg);
  color: var(--text);
}

/* =========================================================
   SEARCH
   ========================================================= */

.search-wrap {
  position: relative;

  flex: 1;

  min-width: 180px;
}

.search-input {
  width: 100%;
  height: 40px;

  padding: 0 35px 0 12px;

  border: 2px solid var(--border);

  outline: none;

  background: var(--input-bg);
  color: var(--text);

  font-family: monospace;

  font-size: 10px;
  font-weight: 700;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-width: 3px;

  padding-left: 11px;
}

.search-icon {
  position: absolute;

  top: 50%;
  right: 12px;

  transform: translateY(-50%);

  color: var(--text-muted);

  font-family: monospace;

  font-size: 12px;
  font-weight: 900;

  pointer-events: none;
}

/* =========================================================
   FILM GRID
   ========================================================= */

.films-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));

  gap: 18px;
}

/* =========================================================
   FILM CARD
   ========================================================= */

.film-card {
  display: grid;

  grid-template-columns: 135px minmax(0, 1fr);

  gap: 18px;

  min-height: 225px;

  padding: 15px;

  background: var(--surface);

  border: 2px solid var(--border);

  box-shadow: 5px 5px 0 var(--shadow);

  overflow: hidden;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.film-card:hover {
  transform: translate(-2px, -2px);

  box-shadow: 7px 7px 0 var(--shadow);
}

/* =========================================================
   POSTER
   ========================================================= */

.poster-wrap {
  width: 135px;
  height: 195px;

  background: #deded9;

  border: 2px solid var(--border);

  overflow: hidden;
}

.poster-wrap img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.poster-missing {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 10px;

  color: var(--text-muted);

  font-family: monospace;

  font-size: 8px;
  font-weight: 900;

  text-align: center;
}

/* =========================================================
   FILM INFORMATION
   ========================================================= */

.film-info {
  display: flex;

  flex-direction: column;

  min-width: 0;
}

.film-year {
  display: inline-block;

  width: fit-content;

  margin-bottom: 7px;

  padding: 3px 6px;

  background: var(--surface-alt);

  border: 1px solid var(--border);

  color: var(--text);

  font-family: monospace;

  font-size: 8px;
  font-weight: 900;
}

.film-title {
  margin-bottom: 10px;

  color: var(--text);

  font-size: 21px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: -0.5px;

  text-transform: uppercase;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.film-description {
  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 3;

  overflow: hidden;

  margin-bottom: 4px;

  color: var(--text-soft);

  font-size: 12px;

  line-height: 1.45;
}

.film-description.expanded {
  display: block;

  overflow: visible;
}

/* =========================================================
   DIRECTOR
   ========================================================= */

.film-director-label,
.film-cast-label {
  margin-bottom: 5px;

  color: var(--text-soft);

  font-family: monospace;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

.film-director {
  display: flex;

  flex-wrap: wrap;

  gap: 4px;

  margin-bottom: 10px;

  color: var(--text);

  font-size: 10px;
  font-weight: 700;

  line-height: 1.3;
}

.director-tag {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  padding: 4px 8px;

  border: 1px solid var(--tag-red-border);

  border-radius: 999px;

  background: var(--tag-red-bg);

  color: var(--tag-red-text);

  font-size: 9px;
  font-weight: 600;
}

.director-unavailable {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 600;
}

/* =========================================================
   CAST
   ========================================================= */

.film-cast {
  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2;

  overflow: hidden;

  margin-bottom: 4px;

  color: var(--text);

  font-size: 10px;
  font-weight: 700;

  line-height: 1.3;
}

.film-cast.expanded {
  display: flex;

  flex-wrap: wrap;

  gap: 4px;

  overflow: visible;
}

.cast-tag {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  margin: 0 3px 3px 0;

  padding: 4px 8px;

  border: 1px solid var(--tag-blue-border);

  border-radius: 999px;

  background: var(--tag-blue-bg);

  color: var(--tag-blue-text);

  font-size: 9px;
  font-weight: 600;

  line-height: 1.2;
}

.cast-unavailable {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 600;
}

/* =========================================================
   SEE MORE
   ========================================================= */

.see-more {
  display: inline-block;

  width: fit-content;

  margin-bottom: 10px;

  padding: 0;

  border: 0;

  background: none;

  color: var(--text-muted);

  font-family: monospace;

  font-size: 8px;
  font-weight: 900;

  text-decoration: none;

  text-transform: uppercase;

  cursor: pointer;
}

.see-more:hover {
  color: var(--text);
}

.see-more:focus {
  outline: none;
}

/* =========================================================
   WHERE TO WATCH
   ========================================================= */

.watch-label {
  margin-top: auto;

  margin-bottom: 6px;

  color: var(--text-soft);

  font-family: monospace;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

.watch-options {
  display: flex;

  flex-wrap: wrap;

  gap: 5px;
}

.platform {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 55px;
  height: 22px;

  padding: 0 8px;

  border: 1px solid var(--border);

  font-family: monospace;

  font-size: 8px;
  font-weight: 900;

  text-decoration: none;

  text-transform: uppercase;
}

.platform.highballtv {
  background: #ff69b4;
  color: #fff;
  border-color: #ff69b4;
}

.platform.highballtv:hover {
  background: #ff4fa3;
  color: #fff;
  border-color: #ff4fa3;
}

.platform.netflix {
  background: #e50914;

  color: #fff;

  border-color: #e50914;
}

.platform.juanflix {
  background: #ffd400;

  color: #111;

  border-color: #ffd400;
}

.platform.ccp {
  background: #111;

  color: #fff;

  border-color: #111;
}

.platform.youtube {
  background: #ff0000 !important;

  color: #fff !important;

  border-color: #ff0000 !important;
}

.platform.prime {
  background: #9edcf5;

  color: #16485d;

  border-color: #9edcf5;
}

.platform.appletv {
  background: #c8c8c8;

  color: #111;

  border-color: #c8c8c8;
}

.platform.iwant {
  background: #9b59b6;

  color: #fff;

  border-color: #9b59b6;
}

.platform.viva {
  background: #f47b20;

  color: #fff;

  border-color: #f47b20;
}

.platform.external {
  background: var(--surface);

  color: var(--text);

  border-color: var(--border);

  cursor: pointer;
}

.platform.external:hover {
  background: var(--text);

  color: var(--bg);
}

.platform.youtube:hover {
  background: #cc0000 !important;

  color: #fff !important;

  border-color: #cc0000 !important;
}

.platform.prime:hover {
  background: #7ccbe9;
}

.platform.appletv:hover {
  background: #aaa;
}

.platform.iwant:hover {
  background: #81489a;
}

.platform.viva:hover {
  background: #d96312;
}

.platform.none {
  background: var(--surface-alt);

  color: var(--text-muted);

  border-color: var(--border-soft);

  border-style: dashed;
}

.platform.now-showing {
  background: #22a447;

  color: #fff;

  border-color: #22a447;
}

/* =========================================================
   EMPTY FILMS
   ========================================================= */

.empty-films {
  grid-column: 1 / -1;

  padding: 60px 20px;

  background: var(--surface);

  border: 2px solid var(--border);

  color: var(--text);

  text-align: center;

  font-family: monospace;

  font-size: 11px;
  font-weight: 900;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 5px;

  margin-top: 30px;
}

.pagination button {
  min-width: 32px;
  height: 32px;

  padding: 0 8px;

  border: 2px solid var(--border);

  background: var(--surface);

  color: var(--text);

  font-family: monospace;

  font-size: 9px;
  font-weight: 900;

  cursor: pointer;
}

.pagination button:hover {
  background: var(--text);

  color: var(--bg);
}

.pagination button.active {
  background: var(--text);

  color: var(--bg);
}

.pagination button:disabled {
  opacity: 0.3;

  cursor: not-allowed;
}

/* =========================================================
   CAST / DIRECTORS
   ========================================================= */

.cast-section {
  display: none;
}

.cast-section.active {
  display: block;
}

.cast-section-header {
  margin-bottom: 20px;

  padding-bottom: 15px;

  border-bottom: 2px solid var(--border);
}

.cast-section-header h2 {
  margin-bottom: 6px;

  color: var(--text);

  font-size: 32px;
  line-height: 1;

  font-weight: 900;

  letter-spacing: -1px;
}

.cast-section-header p {
  color: var(--text-soft);

  font-size: 11px;

  line-height: 1.5;
}

.cast-ranking {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

  gap: 10px;
}

.cast-ranking-card {
  display: grid;

  grid-template-columns: 48px minmax(0, 1fr) auto;

  align-items: center;

  gap: 12px;

  min-height: 65px;

  padding: 10px 12px;

  background: var(--surface);

  border: 2px solid var(--border);

  box-shadow: 4px 4px 0 var(--shadow);

  color: var(--text);

  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.25s ease;
}

.cast-ranking-card:hover {
  transform: translate(-2px, -2px);

  box-shadow: 6px 6px 0 var(--shadow);
}

.cast-rank {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  background: var(--text);

  color: var(--bg);

  font-family: monospace;

  font-size: 10px;
  font-weight: 900;
}

.cast-name {
  min-width: 0;

  color: var(--text);

  font-size: 12px;
  font-weight: 800;
}

.cast-film-count {
  padding: 5px 8px;

  border: 1px solid var(--tag-blue-border);

  border-radius: 999px;

  background: var(--tag-blue-bg);

  color: var(--tag-blue-text);

  font-family: monospace;

  font-size: 8px;
  font-weight: 900;

  white-space: nowrap;
}

/* =========================================================
   =========================================================
   FILM DETAILS MODAL
   =========================================================
   ========================================================= */

.film-details-modal {
  position: fixed;

  inset: 0;

  z-index: 1500;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 25px;

  background: rgba(0, 0, 0, 0.62);

  backdrop-filter: blur(3px);
}

.film-details-modal.active {
  display: flex;
}

/* =========================================================
   BIG FILM DETAILS CARD
   ========================================================= */

.film-details-message {
  position: relative;

  width: 100%;

  max-width: 1050px;

  max-height: 90vh;

  padding: 28px;

  background: var(--bg);

  color: var(--text);

  border: 2px solid var(--border);

  box-shadow: 10px 10px 0 var(--shadow);

  overflow-y: auto;

  animation: filmDetailsIn 0.18s ease;
}

@keyframes filmDetailsIn {
  from {
    opacity: 0;

    transform: translateY(8px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =========================================================
   FILM DETAILS HEADER
   ========================================================= */

.film-details-header {
  display: grid;

  grid-template-columns: 210px minmax(0, 1fr);

  gap: 25px;

  padding-bottom: 25px;

  border-bottom: 2px solid var(--border);
}

.film-details-poster {
  width: 210px;
  height: 300px;

  background: #deded9;

  border: 2px solid var(--border);

  overflow: hidden;
}

.film-details-poster img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.film-details-main {
  min-width: 0;

  display: flex;

  flex-direction: column;
}

.film-details-year {
  display: inline-block;

  width: fit-content;

  margin-bottom: 8px;

  padding: 4px 7px;

  background: var(--surface-alt);

  border: 1px solid var(--border);

  color: var(--text);

  font-family: monospace;

  font-size: 9px;
  font-weight: 900;
}

.film-details-title {
  margin-bottom: 15px;

  color: var(--text);

  font-size: 36px;

  line-height: 0.95;

  font-weight: 900;

  letter-spacing: -1.5px;

  text-transform: uppercase;
}

.film-details-meta {
  display: flex;

  flex-wrap: wrap;

  gap: 5px;

  margin-bottom: 15px;
}

/* =========================================================
   DETAIL LABELS
   ========================================================= */

.film-details-label {
  margin-bottom: 5px;

  color: var(--text-soft);

  font-family: monospace;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

/* =========================================================
   SYNOPSIS
   ========================================================= */

.film-details-synopsis {
  color: var(--text-soft);

  font-size: 13px;

  line-height: 1.6;
}

.film-details-full-description {
  color: var(--text-soft);

  font-size: 13px;

  line-height: 1.65;
}

/* =========================================================
   DETAIL BLOCKS
   ========================================================= */

.film-details-block {
  padding: 20px 0;

  border-bottom: 1px solid var(--border-soft);
}

.film-details-block:last-child {
  border-bottom: 0;
}

/* =========================================================
   PEOPLE
   ========================================================= */

.film-details-people-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.film-details-person-group {
  min-width: 0;
}

.film-details-director-tags,
.film-details-cast-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 5px;
}

.film-details-director-tag {
  display: inline-flex;

  align-items: center;

  padding: 5px 9px;

  border: 1px solid var(--tag-red-border);

  border-radius: 999px;

  background: var(--tag-red-bg);

  color: var(--tag-red-text);

  font-size: 10px;

  font-weight: 600;
}

.film-details-cast-tag {
  display: inline-flex;

  align-items: center;

  padding: 5px 9px;

  border: 1px solid var(--tag-blue-border);

  border-radius: 999px;

  background: var(--tag-blue-bg);

  color: var(--tag-blue-text);

  font-size: 10px;

  font-weight: 600;
}

/* =========================================================
   PRODUCTION CREDITS
   ========================================================= */

.film-details-production-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 30px;

  row-gap: 16px;
}

.production-credit {
  min-width: 0;
}

.production-credit-label {
  margin-bottom: 4px;

  color: var(--text-soft);

  font-family: monospace;

  font-size: 10px;
  font-weight: 600;

  text-transform: uppercase;
}

.production-credit-value {
  color: var(--text);

  font-size: 11.5px;

  font-weight: normal;
  font-weight: 400;

  line-height: 1.4;
}

/* =========================================================
   WHERE TO WATCH - POPUP
   ========================================================= */

.film-details-watch {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;
}

.film-details-watch .platform {
  height: 25px;

  min-width: 65px;

  font-size: 9px;
}

/* =========================================================
   AWARDS
   ========================================================= */

.film-details-awards {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.film-award {
  display: grid;

  grid-template-columns: 22px minmax(0, 1fr);

  gap: 8px;

  align-items: start;

  padding: 10px 12px;

  background: var(--surface);

  border: 1px solid var(--border);
}

.film-award-icon {
  color: var(--text);

  font-size: 12px;

  line-height: 1.2;
}

.film-award-content {
  min-width: 0;
}

.film-award-name {
  color: var(--text);

  font-family: monospace;

  font-size: 10px;

  font-weight: 900;

  text-transform: uppercase;
}

.film-award-recipient {
  margin-top: 3px;

  color: var(--text-soft);

  font-size: 10px;

  font-weight: 600;
}

.film-awards-empty {
  padding: 15px;

  border: 1px dashed var(--border-soft);

  color: var(--text-muted);

  font-family: monospace;

  font-size: 9px;

  font-weight: 900;

  text-transform: uppercase;
}

/* =========================================================
   FILM DETAILS CLOSE BUTTON
   ========================================================= */

.film-details-message .developer-close {
  z-index: 5;

  top: 12px;
  right: 14px;

  width: 34px;
  height: 34px;

  background: var(--surface);

  border: 1px solid var(--border);

  color: var(--text);

  line-height: 32px;

  text-align: center;
}

.film-details-message .developer-close:hover {
  background: var(--text);

  color: var(--bg);
}

/* =========================================================
   COMMON FILMS MODAL
   ========================================================= */

.common-films-modal {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.55);
}

.common-films-modal.active {
  display: flex;
}

.common-films-message {
  position: relative;

  width: 100%;

  max-width: 700px;

  max-height: 90vh;

  padding: 25px;

  background: var(--bg);

  border: 2px solid var(--border);

  box-shadow: 8px 8px 0 var(--shadow);

  color: var(--text);

  overflow-y: auto;
}

.common-films-message h2 {
  margin-bottom: 18px;

  color: var(--text);

  font-size: 28px;

  line-height: 1;

  font-weight: 900;

  letter-spacing: -1px;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.developer-close {
  position: absolute;

  top: 10px;
  right: 12px;

  width: 30px;
  height: 30px;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--text);

  font-family: Arial, Helvetica, sans-serif;

  font-size: 25px;

  font-weight: 400;

  line-height: 30px;

  cursor: pointer;
}

.developer-close:hover {
  background: var(--text);

  color: var(--bg);
}

/* =========================================================
   PEOPLE INPUTS
   ========================================================= */

.people-inputs {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px;
}

.person-input-wrap {
  position: relative;

  width: 100%;
}

.people-inputs input,
.filmography-input {
  width: 100%;
  height: 40px;

  padding: 0 12px;

  border: 2px solid var(--border);

  outline: none;

  background: var(--input-bg);

  color: var(--text);

  font-family: monospace;

  font-size: 10px;

  font-weight: 700;

  text-transform: uppercase;
}

.people-inputs input::placeholder,
.filmography-input::placeholder {
  color: var(--text-muted);
}

.people-inputs input:focus,
.filmography-input:focus {
  border-width: 3px;
}

/* =========================================================
   SUGGESTIONS
   ========================================================= */

.person-suggestions {
  position: absolute;

  top: calc(100% + 3px);

  left: 0;
  right: 0;

  z-index: 20;

  display: none;

  max-height: 200px;

  overflow-y: auto;

  background: var(--surface);

  border: 2px solid var(--border);

  box-shadow: 4px 4px 0 var(--shadow);
}

.person-suggestions.active {
  display: block;
}

.person-suggestion {
  display: block;

  width: 100%;

  padding: 9px 10px;

  border: 0;

  border-bottom: 1px solid var(--border-soft);

  background: var(--surface);

  color: var(--text);

  font-family: Arial, Helvetica, sans-serif;

  font-size: 10px;

  font-weight: 700;

  text-align: left;

  cursor: pointer;
}

.person-suggestion:last-child {
  border-bottom: 0;
}

.person-suggestion:hover {
  background: var(--text);

  color: var(--bg);
}

/* =========================================================
   FIND BUTTON
   ========================================================= */

.common-films-submit {
  width: 100%;
  height: 40px;

  margin-top: 10px;

  border: 2px solid var(--border);

  background: var(--text);

  color: var(--bg);

  font-family: monospace;

  font-size: 9px;

  font-weight: 900;

  text-transform: uppercase;

  cursor: pointer;
}

.common-films-submit:hover {
  background: var(--surface);

  color: var(--text);
}

/* =========================================================
   COMMON RESULTS
   ========================================================= */

.common-films-results {
  margin-top: 18px;
}

.common-films-empty {
  padding: 30px 15px;

  border: 2px solid var(--border);

  background: var(--surface);

  color: var(--text-muted);

  font-family: monospace;

  font-size: 10px;

  font-weight: 900;

  text-align: center;
}

.common-film-result {
  display: grid;

  grid-template-columns: 75px minmax(0, 1fr);

  gap: 12px;

  margin-bottom: 10px;

  padding: 8px;

  background: var(--surface);

  border: 1px solid var(--border);

  color: var(--text);
}

.common-film-poster {
  width: 75px;
  height: 105px;

  background: #ddd;

  border: 1px solid var(--border);

  overflow: hidden;
}

.common-film-poster img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.common-film-info {
  min-width: 0;
}

.common-film-year {
  color: var(--text-muted);

  font-family: monospace;

  font-size: 8px;

  font-weight: 900;
}

.common-film-title {
  margin: 4px 0 8px;

  color: var(--text);

  font-size: 15px;

  line-height: 1.1;

  font-weight: 900;

  text-transform: uppercase;
}

.common-film-people {
  display: flex;

  flex-wrap: wrap;

  gap: 4px;
}

.common-film-person {
  display: inline-flex;

  align-items: center;

  padding: 4px 8px;

  border: 1px solid var(--tag-blue-border);

  border-radius: 999px;

  background: var(--tag-blue-bg);

  color: var(--tag-blue-text);

  font-size: 9px;

  font-weight: 600;
}

/* =========================================================
   FILMOGRAPHY
   ========================================================= */

.filmography-input {
  display: block;
}

.filmography-result {
  display: grid;

  grid-template-columns: 75px minmax(0, 1fr);

  gap: 12px;

  margin-bottom: 10px;

  padding: 8px;

  background: var(--surface);

  border: 1px solid var(--border);

  color: var(--text);
}

.filmography-poster {
  width: 75px;
  height: 105px;

  background: #ddd;

  border: 1px solid var(--border);

  overflow: hidden;
}

.filmography-poster img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.filmography-info {
  min-width: 0;
}

.filmography-year {
  color: var(--text-muted);

  font-family: monospace;

  font-size: 8px;

  font-weight: 900;
}

.filmography-title {
  margin: 4px 0 8px;

  color: var(--text);

  font-size: 15px;

  line-height: 1.1;

  font-weight: 900;

  text-transform: uppercase;
}

.filmography-role {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  padding: 4px 8px;

  border: 1px solid var(--tag-blue-border);

  border-radius: 999px;

  background: var(--tag-blue-bg);

  color: var(--tag-blue-text);

  font-size: 9px;

  font-weight: 600;
}

.filmography-count {
  margin-bottom: 12px;

  color: var(--text-soft);

  font-family: monospace;

  font-size: 9px;

  font-weight: 900;

  text-transform: uppercase;
}

/* =========================================================
   DEVELOPER MODAL
   ========================================================= */

.developer-modal {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.45);
}

.developer-message {
  position: relative;

  width: 100%;

  max-width: 600px;

  max-height: 85vh;

  padding: 28px;

  background: var(--bg);

  border: 2px solid var(--border);

  box-shadow: 8px 8px 0 var(--shadow);

  color: var(--text);

  overflow-y: auto;
}

.developer-message h2 {
  margin-bottom: 18px;

  color: var(--text);

  font-size: 40px;

  line-height: 1;

  font-weight: 900;
}

.developer-message p {
  margin-bottom: 15px;

  color: var(--text-soft);

  font-size: 11px;

  line-height: 1.55;
}

.developer-message strong {
  color: var(--text);

  font-weight: 900;
}

.copyright-disclaimer {
  padding-top: 15px;

  border-top: 1px solid var(--border-soft);

  color: var(--text-muted) !important;

  font-size: 9px !important;
}

.developer-footer {
  margin-top: 20px;

  padding-top: 10px;

  border-top: 2px solid var(--border);

  color: var(--text-muted);

  font-family: monospace;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1px;
}

/* =========================================================
   FILM DETAILS MOBILE
   ========================================================= */

@media (max-width: 1100px) {
  .films-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .archive-actions {
    width: 100%;
  }

  .film-filters {
    flex-wrap: wrap;
  }

  .search-wrap {
    flex: 1 1 200px;
  }
}

@media (max-width: 850px) {
  .films-grid {
    grid-template-columns: 1fr;
  }

  .film-controls {
    width: 100%;
  }

  .year-filter,
  .watch-filter {
    flex: 1 1 180px;
  }

  .search-wrap {
    flex: 1 1 100%;
  }

  .cast-ranking {
    grid-template-columns: 1fr;
  }

  .film-details-header {
    grid-template-columns: 160px minmax(0, 1fr);

    gap: 18px;
  }

  .film-details-poster {
    width: 160px;
    height: 228px;
  }

  .film-details-title {
    font-size: 30px;
  }
}

@media (max-width: 750px) {
  .film-details-modal {
    padding: 12px;
  }

  .film-details-message {
    max-height: 94vh;

    padding: 20px;

    box-shadow: 6px 6px 0 var(--shadow);
  }

  .film-details-header {
    grid-template-columns: 120px minmax(0, 1fr);

    gap: 15px;

    padding-bottom: 20px;
  }

  .film-details-poster {
    width: 120px;
    height: 172px;
  }

  .film-details-title {
    font-size: 25px;
  }

  .film-details-synopsis {
    font-size: 11px;
  }

  .film-details-people-grid {
    grid-template-columns: 1fr;

    gap: 15px;
  }

  .film-details-production-grid {
    grid-template-columns: 1fr;

    row-gap: 13px;
  }
}

@media (max-width: 650px) {
  .container {
    padding: 20px;
  }

  .archive-actions {
    flex-wrap: nowrap;

    width: 100%;

    overflow-x: auto;

    padding-bottom: 4px;
  }

  .archive-button {
    flex-shrink: 0;
  }

  .theme-toggle {
    flex-shrink: 0;
  }

  .theme-label {
    display: none;
  }

  .film-filters {
    flex-direction: column;

    align-items: stretch;
  }

  .year-filter,
  .watch-filter,
  .search-wrap {
    width: 100%;

    flex: none;
  }

  .film-card {
    grid-template-columns: 100px minmax(0, 1fr);

    gap: 12px;

    padding: 12px;
  }

  .poster-wrap {
    width: 100px;
    height: 145px;
  }

  .film-title {
    font-size: 17px;
  }

  .film-description {
    font-size: 10px;
  }

  .film-cast {
    font-size: 9px;
  }

  .common-films-message {
    padding: 20px;
  }

  .people-inputs {
    grid-template-columns: 1fr;
  }

  .common-film-result,
  .filmography-result {
    grid-template-columns: 65px minmax(0, 1fr);
  }

  .common-film-poster,
  .filmography-poster {
    width: 65px;
    height: 90px;
  }

  .cast-ranking-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .cast-rank {
    width: 34px;
    height: 34px;
  }

  .cast-name {
    font-size: 11px;
  }
}

@media (max-width: 500px) {
  .film-details-header {
    grid-template-columns: 90px minmax(0, 1fr);

    gap: 12px;
  }

  .film-details-poster {
    width: 90px;
    height: 130px;
  }

  .film-details-title {
    font-size: 20px;

    letter-spacing: -0.8px;
  }

  .film-details-year {
    font-size: 8px;
  }

  .film-details-label,
  .production-credit-label {
    font-size: 8px;
  }

  .film-details-cast-tag,
  .film-details-director-tag {
    font-size: 9px;
  }

  .film-details-block {
    padding: 15px 0;
  }

  .film-details-message {
    padding: 16px;
  }

  .film-award {
    padding: 8px 10px;
  }

  .film-award-name {
    font-size: 9px;
  }
}
/* =========================================================
   FILM DETAILS - HIDE SCROLLBAR BUT KEEP SCROLLING
   ========================================================= */

.film-details-message {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.film-details-message::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   FILM DETAILS - HEADER SYNOPSIS
   ========================================================= */

.film-details-header-synopsis {
  margin-top: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
}

.film-details-header-synopsis .film-details-label {
  margin-bottom: 6px;
}

/* =========================================================
   FILM DETAILS - HEADER DIRECTOR + CAST
   ========================================================= */

.film-details-header-people {
  display: grid;

  grid-template-columns:
    minmax(180px, 0.8fr)
    minmax(0, 1.5fr);

  gap: 20px;

  margin-top: 15px;
  padding-top: 15px;

  border-top: 1px solid var(--border-soft);
}

.film-details-header-people .film-details-person-group {
  min-width: 0;
}

.film-details-header-people .film-details-director-tags,
.film-details-header-people .film-details-cast-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 5px;
}

/* =========================================================
   FILM DETAILS - HEADER MOBILE
   ========================================================= */

@media (max-width: 750px) {
  .film-details-header-people {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 500px) {
  .film-details-header-synopsis .film-details-full-description {
    font-size: 11px;
    line-height: 1.55;
  }

  .film-details-header-people {
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
  }
}

/* =========================================================
   PRODUCTION CREDIT TAGS
   ========================================================= */

.production-credit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  margin-top: 8px;
}

.production-credit-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;

  background: rgb(28, 26, 26);
  color: #fff;

  border: 1px solid #777;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
}

.production-credit-empty {
  background: transparent;
  color: var(--text-muted);

  border: 0;

  padding: 0;
  border-radius: 0;
}

html.dark-mode .production-credit-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  background: white !important;
  color: #111;

  border-color: #fff;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
}

.film-details-genre-label {
  margin-top: 14px;
}

.film-details-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.film-details-genre-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  padding: 4px 8px;

  background: #f2c94c;
  color: #111;

  border: 1px solid #f2c94c;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
}

html.dark-mode .production-credit-value {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  padding: 4px 8px;

  background: #ffffff !important;
  color: #111111 !important;

  border: 1px solid #ffffff !important;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
}

/* =========================================================
   CAST AWARDS TABLE
   ========================================================= */

.cast-awards-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.cast-awards-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cast-awards-table th,
.cast-awards-table td {
  padding: 14px 12px;
  text-align: left;

  border-bottom: 1px solid var(--border);
}

.cast-awards-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;

  color: var(--text);
}

.cast-awards-table td {
  font-size: 14px;
  font-weight: 400;

  color: var(--text);
}

.cast-awards-table th:first-child,
.cast-awards-table td:first-child {
  width: 80px;
}

.cast-award-year {
  font-weight: 700 !important;
}

.cast-award-winner {
  margin-bottom: 4px;
}

.cast-award-winner:last-child {
  margin-bottom: 0;
}

/* =========================================================
   CAST AWARDS PAGINATION
   ========================================================= */

.cast-awards-pagination {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 5px;

  margin-top: 20px;
}

.cast-awards-page-button {
  min-width: 34px;
  height: 34px;

  padding: 0 9px;

  background: var(--bg);
  color: var(--text);

  border: 1px solid var(--border);

  cursor: pointer;
}

.cast-awards-page-button:hover {
  background: var(--text);
  color: var(--bg);
}

.cast-awards-page-button.active {
  background: var(--text);
  color: var(--bg);
}

.cast-awards-page-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cast-awards-page-button:disabled:hover {
  background: var(--bg);
  color: var(--text);
}

/* =========================================================
   DEVELOPER POPUP — LATEST UPDATES
   ========================================================= */

.developer-updates {
  margin-top: 20px;
  padding-top: 15px;
  padding-bottom: 15px;

  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);

  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   LATEST UPDATES HEADER — LEFT
   ========================================================= */

.developer-updates-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  margin-bottom: 15px;
}

.developer-updates-header span {
  display: inline-flex;
  align-items: center;

  padding: 6px 9px;

  background: var(--text);
  color: var(--bg);

  font-family: monospace;
  font-size: 9px;
  font-weight: 900;

  line-height: 1;
  letter-spacing: 0.5px;

  text-transform: uppercase;
}

/* =========================================================
   UPDATE LIST
   ========================================================= */

.developer-updates-list {
  display: block;
  width: 100%;
}

/* =========================================================
   INDIVIDUAL UPDATE
   ========================================================= */

.developer-update-item {
  display: grid;

  grid-template-columns: max-content minmax(0, 1fr);

  column-gap: 12px;

  align-items: start;

  margin: 0 0 8px 0;
  padding: 0;
}

.developer-update-item:last-child {
  margin-bottom: 0;
}

/* =========================================================
   VERSION BOX — RED
   ========================================================= */

.developer-update-version {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  padding: 6px 9px;

  background: var(--tag-red-bg);
  color: var(--tag-red-text);

  border: 1px solid var(--tag-red-border);
  border-radius: 0;

  font-family: monospace;
  font-size: 9px;
  font-weight: 900;

  line-height: 1;

  white-space: nowrap;
}

/* =========================================================
   UPDATE TEXT
   ========================================================= */

.developer-update-text {
  display: block;

  margin: 0;
  padding: 0;

  color: var(--text-soft);

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;
  font-weight: 400;

  line-height: 1.55;
}

/* =========================================================
   FILM TAGS
   ========================================================= */

.developer-updates .update-film-tag {
  display: inline-flex;
  align-items: flex-start;
  padding: 4px 7px;

  /* background: var(--tag-red-bg);*/
  color: var(--tag-red-text);

  /*border: 1px solid var(--tag-red-border);
    border-radius: 999px;*/

  font-family: Arial, Helvetica, sans-serif;

  font-size: 11px;
  font-weight: 600;

  line-height: 1.5;

  white-space: nowrap;

  vertical-align: middle;
}

/* =========================================================
   DARK MODE
   ========================================================= */

html.dark-mode .developer-update-version {
  background: var(--tag-red-bg);
  color: var(--tag-red-text);
  border-color: var(--tag-red-border);
}

html.dark-mode .developer-updates-header span {
  background: var(--text);
  color: var(--bg);
}

html.dark-mode .developer-update-text {
  color: var(--text-soft);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .developer-updates {
    margin-top: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .developer-updates-header {
    margin-bottom: 14px;
  }

  .developer-update-item {
    grid-template-columns: 1fr;

    row-gap: 7px;

    margin-bottom: 10px;
  }

  .developer-update-version {
    width: fit-content;
  }

  .developer-update-text {
    font-size: 11px;
    line-height: 1.55;
  }
}

/* =========================================================
   WATCHED SUMMARY
   ========================================================= */

.watched-summary {
  display: flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;
  margin-bottom: 16px;

  font-family: monospace;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.watched-label {
  font-weight: 900;
  letter-spacing: 0.5px;
}

#watchedCount {
  font-weight: 900;
}

.watched-total {
  color: var(--text-soft);
}

/* =========================================================
   FILM CARD
   ========================================================= */

.film-card {
  position: relative;
}

/* =========================================================
   WATCHED CHECKBOX
   ========================================================= */

.watched-checkbox {
  position: absolute;
  top: 12px;
  right: 12px;

  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 5px 8px;

  background: var(--bg);
  color: var(--text);

  border: 1px solid var(--text);

  font-family: monospace;
  font-size: 9px;
  font-weight: 900;

  line-height: 1;

  cursor: pointer;

  user-select: none;
}

/* Hide the browser's default checkbox */
.watched-checkbox input {
  position: absolute;

  opacity: 0;

  width: 0;
  height: 0;
}

/* Custom checkbox */
.watched-checkbox span::before {
  content: "";

  display: inline-block;

  width: 10px;
  height: 10px;

  margin-right: 2px;

  border: 1px solid currentColor;

  vertical-align: -2px;

  box-sizing: border-box;
}

/* Checked state */
.watched-checkbox input:checked + span::before {
  content: "✓";

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--text);
  color: var(--bg);

  font-size: 8px;
  font-weight: 900;
}

/* Hover */
.watched-checkbox:hover {
  opacity: 0.75;
}

/* =========================================================
   DARK MODE
   ========================================================= */

html.dark-mode .watched-checkbox {
  background: var(--bg);
  color: var(--text);

  border-color: var(--text);
}

html.dark-mode .watched-checkbox input:checked + span::before {
  background: var(--text);
  color: var(--bg);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .watched-summary {
    margin-top: 10px;
    margin-bottom: 14px;

    font-size: 9px;
  }

  .watched-checkbox {
    top: 8px;
    right: 8px;

    padding: 5px 7px;

    font-size: 8px;
  }
}

/* =========================================================
   ACTING AWARD BADGES
   ========================================================= */

.cast-award-winner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.cast-award-name {
  display: inline-block;
}

.cast-award-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cast-award-badge {
  width: 18px;
  height: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 2px;

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

/* MAROON = SPECIFIC AWARD WINS */

.cast-award-badge-specific {
  background: #6b1f2b;
  color: #ffffff;
}

/* BLACK = OVERALL ACTING AWARD WINS */

.cast-award-badge-overall {
  background: #000000;
  color: #ffffff;
}

/* =========================================================
   AWARD LEGEND
   ========================================================= */

.cast-awards-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;

  margin-bottom: 15px;
}

.cast-awards-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cast-awards-legend-item .cast-award-badge {
  flex-shrink: 0;
}

.platform.kinema {
  background: #c8a2c8;
  color: #111;
  border-color: #c8a2c8;
}

.platform.kinema:hover {
  background: #b78bb7;
  color: #111;
  border-color: #b78bb7;
}

.platform.amazon {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.platform.amazon:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.platform.alexanderstreet {
  background: #6b1f2b;
  color: #fff;
  border-color: #6b1f2b;
}

.platform.alexanderstreet:hover {
  background: #511620;
  color: #fff;
  border-color: #511620;
}

/* =========================================================
   STREAMING PLATFORM SUMMARY
   ========================================================= */

.platform-summary {
  display: grid;

  grid-template-columns: repeat(6, minmax(0, 1fr));

  gap: 10px;

  margin-bottom: 20px;
}

/* =========================================================
   PLATFORM SUMMARY CARD
   ========================================================= */

.platform-summary-card {
  min-height: 78px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 10px;

  border: 1px solid transparent;

  text-align: center;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.platform-summary-card:hover {
  transform: translateY(-2px);

  opacity: 0.9;
}

/* PLATFORM NAME */

.platform-summary-name {
  font-family: monospace;

  font-size: 10px;

  font-weight: 900;

  line-height: 1.2;

  text-transform: uppercase;
}

/* NUMBER */

.platform-summary-count {
  margin-top: 5px;

  font-family: monospace;

  font-size: 22px;

  font-weight: 900;

  line-height: 1;
}

/* =========================================================
   PLATFORM COLORS
   Same colors as the platform tags
   ========================================================= */

.platform-summary-netflix {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
}

.platform-summary-juanflix {
  background: #f39c12;
  color: #fff;
  border-color: #f39c12;
}

.platform-summary-ccp {
  background: #582103;
  color: #fff;
  border-color: #582103;
}

.platform-summary-youtube {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

.platform-summary-prime {
  background: #00a8e1;
  color: #fff;
  border-color: #00a8e1;
}

.platform-summary-appletv {
  background: #000;
  color: #fff;
  border-color: #000;
}

.platform-summary-iwant {
  background: #9b59b6;
  color: #fff;
  border-color: #9b59b6;
}

.platform-summary-viva {
  background: #f47b20;
  color: #fff;
  border-color: #f47b20;
}

.platform-summary-kinema {
  background: #c8a2c8;
  color: #111;
  border-color: #c8a2c8;
}

.platform-summary-amazon {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.platform-summary-alexanderstreet {
  background: #6b1f2b;
  color: #fff;
  border-color: #6b1f2b;
}

.platform-summary-none {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .platform-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .platform-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 7px;
  }

  .platform-summary-card {
    min-height: 68px;
  }

  .platform-summary-name {
    font-size: 8px;
  }

  .platform-summary-count {
    font-size: 18px;
  }
}
