/* CrimeNewsTV Broadcast Desk Stylesheet */
:root {
  --navy: #102c4c;
  --deep: #091e36;
  --darkest: #040e1b;
  --gold: #c29b53;
  --gold-light: #e0be7e;
  --gold-glow: rgba(194, 155, 83, 0.35);
  --paper: #f6f3eb;
  --paper-card: #ffffff;
  --paper-elevated: #faf7f0;
  --red: #9b3d32;
  --red-bright: #c0392b;
  --line: #dcd4c6;
  --line-subtle: #eae3d6;
  --muted: #5d554b;
  --text-dark: #102033;
  --shadow-sm: 0 2px 6px rgba(9, 30, 54, 0.06);
  --shadow-md: 0 6px 18px rgba(9, 30, 54, 0.09);
  --shadow-lg: 0 12px 28px rgba(9, 30, 54, 0.15);
  --radius-sm: 3px;
  --radius-md: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font: 17px/1.6 "Source Sans 3", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* Accessibility Skip Link */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: #ffffff;
  color: var(--deep);
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  z-index: 1000;
  border: 2px solid var(--gold);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* Site Masthead & Header */
.site-masthead {
  background: var(--deep);
  padding: 0.6rem 1.3rem;
  border-bottom: 1px solid rgba(194, 155, 83, 0.2);
}

.site-masthead-art {
  display: block;
  max-width: 560px;
  margin: auto;
}

.site-masthead img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

/* Navigation */
.desk-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  background: var(--gold);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.desk-nav a {
  text-decoration: none;
  color: var(--deep);
  padding: 0.15rem 0.35rem;
  transition: color 0.15s ease;
}

.desk-nav a:hover {
  color: var(--red);
}

.desk-nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* Broadcast Hero & Thematic Wallpaper */
.broadcast-hero {
  position: relative;
  background-color: var(--darkest);
  /* Thematic Wallpaper: Courtroom Archival Evidence Sketch blended with deep navy noir gradients and scanlines */
  background-image:
    radial-gradient(ellipse 90% 70% at 75% 25%, rgba(194, 155, 83, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 15% 85%, rgba(16, 44, 76, 0.85) 0%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0px, rgba(0, 0, 0, 0.18) 2px, transparent 2px, transparent 4px),
    linear-gradient(135deg, rgba(4, 14, 27, 0.94) 0%, rgba(9, 30, 54, 0.88) 50%, rgba(4, 14, 27, 0.96) 100%),
    url("01_Photos/ShareImages/black-white-news-courthouse-evidence-sketch.png");
  background-size: auto, auto, auto, cover, cover;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat, no-repeat;
  color: var(--paper);
  padding: 2.8rem 1.3rem 4rem;
  border-bottom: 6px solid var(--gold);
}

.broadcast-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(194, 155, 83, 0.08), transparent 75%);
}

.hero-inner,
.catalog {
  max-width: 1200px;
  margin: auto;
  position: relative;
}

/* Desk Intro */
.desk-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-bottom: 1px solid rgba(194, 155, 83, 0.35);
  padding-bottom: 1.8rem;
  margin-bottom: 2.5rem;
}

/* Live Badge Pill */
.broadcast-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(155, 61, 50, 0.25);
  border: 1px solid rgba(194, 155, 83, 0.5);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #e74c3c;
  border-radius: 50%;
  box-shadow: 0 0 8px #e74c3c;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px #e74c3c; }
  50% { transform: scale(1.3); opacity: 0.75; box-shadow: 0 0 12px #ff6b6b; }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 0.5rem;
}

.broadcast-hero .eyebrow {
  color: var(--gold);
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 0.98;
  margin: 0 0 0.8rem;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

h1 span {
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0 0.2em;
  margin-left: 0.15em;
  letter-spacing: -0.02em;
  font-size: 0.78em;
  background: rgba(194, 155, 83, 0.1);
  box-shadow: 0 0 12px rgba(194, 155, 83, 0.2);
}

.desk-intro p:not(.eyebrow) {
  margin: 0;
  color: #ede7dc;
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(194, 155, 83, 0.4);
  background: rgba(9, 30, 54, 0.6);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hero-jump:hover {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
}

/* Featured Film Showcase */
.lead-film {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 3rem;
  align-items: center;
  background: rgba(5, 15, 29, 0.7);
  border: 1px solid rgba(194, 155, 83, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.film-visual {
  display: block;
  position: relative;
  background: #020813;
  overflow: hidden;
  border: 1px solid rgba(194, 155, 83, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.film-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.film-visual:hover img {
  transform: scale(1.03);
}

.play-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(194, 155, 83, 0.3);
  transition: all 0.22s ease;
}

.film-visual:hover .play-disc {
  transform: translate(-50%, -50%) scale(1.12);
  background: #ffffff;
  color: var(--red);
  box-shadow: 0 6px 25px rgba(194, 155, 83, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.3);
}

.lead-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.lead-badge {
  background: var(--gold);
  color: var(--deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

.lead-category {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ede7dc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
}

.lead-copy h2 {
  font: 700 clamp(1.45rem, 2.3vw, 2.1rem) / 1.35 "Libre Baskerville", Georgia, serif;
  margin: 0 0 1rem;
  color: #ffffff;
}

.feature-publisher {
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.video-metadata {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.lead-copy .video-metadata {
  color: #cfc6b8;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.88rem;
}

.lead-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.watch-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  background: var(--gold);
  color: var(--deep);
  border: 1px solid var(--gold);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 4px 4px 0 #796036;
  letter-spacing: 0.02em;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.watch-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #796036;
  background: var(--gold-light);
}

/* Duration Chip Overlays */
.duration-chip {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(4, 14, 27, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.lead-duration {
  bottom: 0.9rem;
  right: 0.9rem;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
}

.thumb-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(9, 30, 54, 0.9);
  color: var(--gold-light);
  border: 1px solid rgba(194, 155, 83, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

/* Catalog Section */
.catalog {
  padding: 3.5rem 0 5rem;
}

.catalog-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 1.2rem;
}

.catalog-heading h2 {
  font: 700 clamp(1.8rem, 3vw, 2.6rem) / 1.25 "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  margin: 0;
}

.catalog-heading > p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 450px;
  margin: 0;
  line-height: 1.5;
}

/* Edition Selector */
.edition-selector {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.edition-selector button {
  position: relative;
  padding: 0.9rem 0.85rem;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--navy);
  min-height: 82px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.edition-selector button span {
  display: block;
  font-size: 0.92rem;
}

.edition-selector small {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper-elevated);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line-subtle);
  border-radius: 2px;
}

.edition-selector button:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.edition-selector button[aria-pressed="true"] {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: inset 0 -4px 0 var(--gold), var(--shadow-md);
  transform: translateY(-2px);
}

.edition-selector button[aria-pressed="true"] small {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  border-color: rgba(194, 155, 83, 0.4);
}

/* Investigation Controls (Search & Filter) */
.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr) auto;
  gap: 1.2rem;
  align-items: flex-end;
  padding: 1.6rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.catalog-controls label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.catalog-controls input,
.catalog-controls select {
  display: block;
  width: 100%;
  border: 1.5px solid #a69c8e;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  color: var(--navy);
  border-radius: 0;
  margin-top: 0.4rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.catalog-controls input:focus,
.catalog-controls select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 44, 76, 0.15);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--red);
  min-height: 48px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 0.5rem;
  transition: color 0.15s ease;
}

.text-button:hover {
  color: var(--red-bright);
}

.text-button:disabled {
  opacity: 0.4;
  cursor: default;
  text-decoration: none;
}

.catalog-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 1.5rem;
}

.catalog-status p {
  margin: 0;
  font-weight: 600;
}

/* Video Editions & Grid */
.video-edition {
  margin-bottom: 3.2rem;
}

.edition-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 0.9rem 0;
  margin-bottom: 1.5rem;
}

.edition-header h3 {
  font: 700 1.35rem "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  margin: 0;
}

.edition-header > span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-subtle);
  border-radius: 2px;
}

.edition-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

/* Video Card Design */
.video-card {
  background: var(--paper-card);
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.video-card > a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.video-thumb {
  position: relative;
  background: var(--darkest);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card a:hover .video-thumb img {
  transform: scale(1.04);
}

.play-mini {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(4, 14, 27, 0.45);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(1.5px);
}

.play-mini .play-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.video-card a:hover .play-mini {
  opacity: 1;
}

.video-card a:hover .play-mini .play-icon {
  transform: scale(1.1);
}

.card-copy {
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-copy .eyebrow {
  margin: 0 0 0.4rem;
}

.card-copy h3 {
  font: 700 1.05rem / 1.45 "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.publisher {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep);
  margin: auto 0 0.2rem;
}

.card-copy .video-metadata {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.2rem 0 0;
}

/* Empty State */
.empty-state {
  background: #ede6d8;
  border-left: 6px solid var(--red);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.empty-state h3 {
  font: 700 1.6rem "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.8rem;
}

.empty-state p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Load More */
.load-more {
  display: block;
  margin: 2rem auto 0;
  padding: 0.85rem 1.8rem;
  min-height: 48px;
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 4px 4px 0 var(--gold);
  transition: transform 0.18s, box-shadow 0.18s;
}

.load-more:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--gold);
}

/* Footer */
.ccc-footer {
  background: var(--deep);
  color: var(--paper);
  text-align: center;
  padding: 1.8rem 1.3rem;
  border-top: 5px solid var(--gold);
  font-size: 0.9rem;
}

.ccc-footer span {
  color: var(--gold);
  padding: 0 0.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1220px) {
  .catalog {
    margin-inline: 1.3rem;
  }
}

@media (max-width: 960px) {
  .edition-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lead-film {
    gap: 2rem;
    grid-template-columns: 1.2fr 1fr;
  }
  .edition-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .desk-intro {
    display: block;
  }
  .hero-jump {
    display: inline-block;
    margin-top: 1.2rem;
  }
  .lead-film {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }
  .catalog-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .catalog-controls {
    grid-template-columns: 1fr;
  }
  .catalog-controls .text-button {
    justify-self: start;
  }
  .catalog-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .edition-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desk-nav {
    font-size: 0.76rem;
    gap: 0.4rem 1rem;
  }
  .site-masthead img {
    max-height: 85px;
  }
}

@media (max-width: 480px) {
  .edition-cards {
    grid-template-columns: 1fr;
  }
  .edition-selector {
    grid-template-columns: 1fr;
  }
  .edition-header h3 {
    font-size: 1.15rem;
  }
  .broadcast-hero {
    padding-top: 2rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  .card-copy h3 {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}
