:root {
  color-scheme: light;
  --ink: #1d2420;
  --muted: #66716b;
  --line: #d7ded8;
  --paper: #f8faf7;
  --panel: #ffffff;
  --green: #2d6a4f;
  --blue: #285f8f;
  --red: #8d3e36;
  --gold: #916b22;
  --shadow: 0 18px 50px rgba(39, 48, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.primary-link,
button,
.watch {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-link,
.watch,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 24px;
}

.intro-copy {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.intro-copy p {
  max-width: 760px;
  margin: 0;
  color: #334039;
  font-size: 18px;
  line-height: 1.55;
}

.intro-copy .thesis {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stats strong {
  font-size: 34px;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.controls {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.summary-bar p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.creator {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.priority {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf4ef;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.why,
.comment {
  margin: 0;
  color: #3e4a43;
  line-height: 1.45;
}

.comment {
  margin-top: auto;
  padding: 12px;
  border-left: 3px solid var(--green);
  background: #f3f7f2;
  color: #26352e;
  font-weight: 700;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ee;
  color: #415047;
  font-size: 12px;
  font-weight: 800;
}

.chip.ring_1 {
  background: #eaf2ec;
  color: var(--green);
}

.chip.ring_2 {
  background: #edf2f8;
  color: var(--blue);
}

.chip.ring_3 {
  background: #f6f0df;
  color: var(--gold);
}

.chip.ring_4 {
  background: #f6e9e7;
  color: var(--red);
}

.actions {
  display: flex;
  gap: 10px;
}

.watch {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

@media (max-width: 820px) {
  .topbar,
  .summary-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .intro,
  .video-list,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }
}
