:root {
  --ink: #171722;
  --cream: #f7f1df;
  --paper: #fffaf0;
  --orange: #ef8c3a;
  --yellow: #f4c84a;
  --pink: #df7694;
  --blue: #55a9b7;
  --green: #7d9b63;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 250, 240, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
}

.yt-search {
  width: min(42vw, 540px);
  height: 42px;
  display: flex;
  margin: 0 auto;
}

.yt-search input {
  width: 100%;
  border: 1.5px solid #aaa;
  border-right: 0;
  border-radius: 22px 0 0 22px;
  padding: 0 18px;
  background: #fff;
  outline: none;
}

.yt-search button {
  width: 64px;
  border: 1.5px solid #aaa;
  border-radius: 0 22px 22px 0;
  background: #f4f1dc;
  cursor: pointer;
  font-size: 20px;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  font-size: 11px;
  font-weight: 800;
}

.language-picker select {
  height: 36px;
  border: 1.5px solid #aaa;
  border-radius: 18px;
  background: #fff;
  padding: 0 28px 0 10px;
  color: var(--ink);
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Black Ops One", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 800;
}

.navlinks a { padding: 29px 2px 25px; border-bottom: 4px solid transparent; }
.navlinks a.active { border-bottom-color: var(--orange); }

.sound-toggle {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.sound-icon {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
}

.hero {
  min-height: 530px;
  display: grid;
  grid-template-columns: 48% 52%;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}

.hero-copy {
  padding: 82px 5vw 70px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow span {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--orange);
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}

h1, h2 {
  margin: 0;
  font-family: "Black Ops One", sans-serif;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(48px, 5.4vw, 82px); }
h1 em { color: var(--orange); font-style: normal; -webkit-text-stroke: 2px var(--ink); }

.hero-description {
  max-width: 520px;
  margin: 24px 0 28px;
  line-height: 1.7;
  font-weight: 600;
  color: #55514a;
}

.hero-actions { display: flex; gap: 12px; }

.primary-button, .secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 150ms ease;
  box-shadow: 4px 4px 0 var(--ink);
}

.primary-button { background: var(--yellow); }
.secondary-button { background: white; }
.primary-button:hover, .secondary-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.play { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 9px; }

.hero-art {
  position: relative;
  min-height: 530px;
  background: linear-gradient(135deg, #9cc6bc 0 55%, #81a89c 55%);
  border-left: 2px solid var(--ink);
}

.sun {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  right: 11%;
  top: 38px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 12px #efb53e;
}

.mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: var(--green);
  clip-path: polygon(0 56%, 15% 22%, 29% 58%, 45% 10%, 60% 54%, 75% 20%, 100% 64%, 100% 100%, 0 100%);
  border-top: 2px solid var(--ink);
}

.creature {
  position: absolute;
  width: 190px;
  height: 240px;
  bottom: 20px;
  border: 3px solid var(--ink);
  border-radius: 90px 90px 35px 35px;
  display: grid;
  place-items: center;
  z-index: 3;
}

.creature-left { left: 14%; background: #dc7892; transform: rotate(-7deg); }
.creature-right { right: 13%; width: 170px; height: 220px; background: #5ba3b1; transform: rotate(8deg); }
.ear { position: absolute; width: 62px; height: 75px; top: -32px; background: inherit; border: 3px solid var(--ink); border-radius: 80% 20% 70% 30%; z-index: -1; }
.left-ear { left: 5px; transform: rotate(-25deg); }
.right-ear { right: 5px; transform: rotate(115deg); }
.face { font-family: "Black Ops One", sans-serif; font-size: 32px; margin-top: 20px; }
.floating-label {
  position: absolute;
  right: 4%;
  bottom: 34%;
  z-index: 5;
  padding: 12px 14px;
  background: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Black Ops One", sans-serif;
  text-align: center;
  transform: rotate(5deg);
}

.feed { padding: 72px 5vw 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-heading h2, .creators h2 { font-size: clamp(36px, 4vw, 58px); }

.search-wrap {
  width: 260px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: white;
  padding: 0 12px;
  box-shadow: 3px 3px 0 #d6cfbe;
}
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; }

.filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.filter.active { background: var(--ink); color: white; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  border: 2px solid var(--ink);
  background: white;
  overflow: hidden;
  transition: 180ms ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--ink); }
.video-link { display: block; }
.thumbnail {
  height: 210px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.thumbnail-pink { background: #d998b0; }
.thumbnail-yellow { background: #e4ba50; }
.thumbnail-blue { background: #70b3be; }
.thumbnail-green { background: #91ad75; }
.thumbnail-orange { background: #df9056; }
.thumbnail-purple { background: #9b89ad; }
.thumbnail::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  right: -35px;
  bottom: -70px;
}
.thumb-creature {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 58% 58% 42% 42%;
  background: var(--cream);
  font-family: "Black Ops One", sans-serif;
  font-size: 24px;
  z-index: 2;
  transform: rotate(-3deg);
  box-shadow: 6px 6px 0 rgba(23, 23, 34, 0.15);
}
.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  background: var(--ink);
  color: white;
  border-radius: 3px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
}
.card-body { padding: 16px; }
.card-category { color: #77705f; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.card-body h3 { margin: 7px 0 14px; font-size: 17px; line-height: 1.25; }
.card-meta { display: flex; justify-content: space-between; border-top: 1px solid #ded8c9; padding-top: 12px; color: #77705f; font-size: 11px; font-weight: 700; }
.empty-state { text-align: center; padding: 40px; border: 2px dashed #aaa18e; }

.creators { padding: 70px 5vw; background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.creators p:not(.eyebrow) { max-width: 650px; line-height: 1.7; font-weight: 600; }
.creators .primary-button { background: white; margin-top: 10px; }

footer {
  min-height: 130px;
  padding: 30px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: white;
}
footer p { max-width: 430px; text-align: right; color: #cbc8c1; font-size: 12px; }
.footer-brand .brand-mark { color: var(--ink); }

@media (max-width: 900px) {
  .navlinks { display: none; }
  .topbar .brand { min-width: 0; }
  .topbar .brand > span:last-child { display: none; }
  .yt-search { width: min(65vw, 480px); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 58px; }
  .hero-art { min-height: 420px; border-left: 0; border-top: 2px solid var(--ink); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .topbar { height: 68px; }
  .language-label { display: none; }
  .language-picker { margin-left: 8px; }
  .language-picker select { max-width: 82px; }
  .brand { font-size: 11px; }
  .brand-mark { width: 36px; height: 36px; }
  .sound-label { display: none; }
  .hero-copy { padding: 48px 20px 54px; }
  h1 { font-size: 44px; }
  h1 em { -webkit-text-stroke: 1px var(--ink); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-art { min-height: 350px; }
  .sun { width: 170px; height: 170px; }
  .creature { width: 150px; height: 200px; }
  .creature-right { width: 130px; height: 180px; }
  .feed { padding: 54px 20px 64px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .search-wrap { width: 100%; }
  .video-grid { grid-template-columns: 1fr; }
  .thumbnail { height: 220px; }
  .creators { padding: 54px 20px; }
  footer { align-items: flex-start; flex-direction: column; gap: 20px; }
  footer p { text-align: left; }
}

/* Animal Company VR-inspired base-camp theme */
:root {
  --ink: #19241b;
  --cream: #e8edd3;
  --paper: #f4f1dc;
  --orange: #ef9b45;
  --yellow: #f2ce62;
  --pink: #a8c89d;
  --blue: #78aeb2;
  --green: #5c8d48;
}

body {
  background:
    radial-gradient(circle at 15% 15%, rgba(91, 141, 72, 0.09) 0 2px, transparent 3px) 0 0 / 24px 24px,
    var(--paper);
}

.topbar {
  background: rgba(244, 241, 220, 0.96);
  box-shadow: 0 4px 0 rgba(25, 36, 27, 0.08);
}

.brand-mark {
  border-radius: 12px 12px 18px 18px;
  background: #79b94f;
  color: white;
  text-shadow: 1px 1px 0 var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}

.brand b {
  color: #6da344;
  font-size: 10px;
  vertical-align: top;
}

.navlinks a.active { border-bottom-color: #75b84a; }
.sound-icon { background: #dceabf; }

.hero {
  background:
    linear-gradient(90deg, rgba(232, 237, 211, 0.97), rgba(232, 237, 211, 0.8)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(25, 36, 27, 0.04) 18px 20px);
}

h1 em {
  color: #75b84a;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 #dca64d;
}

.eyebrow span { background: #75b84a; }
.primary-button { background: #77ad4d; color: white; }
.secondary-button { background: #fffdf2; }

.hero-art {
  background:
    linear-gradient(rgba(92, 141, 72, 0.08), rgba(25, 36, 27, 0.28)),
    repeating-linear-gradient(90deg, #85b9ad 0 54px, #78aba2 54px 58px);
  border-left-width: 3px;
}

.game-banner {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 8;
  width: 90%;
  height: auto;
  max-height: 72%;
  object-fit: contain;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #101827;
  transform: translate(-50%, -50%);
  filter: drop-shadow(8px 10px 0 rgba(25, 36, 27, 0.32));
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 210px;
  bottom: -30px;
  background: #355d39;
  border: 3px solid var(--ink);
  border-radius: 80% 20% 70% 30%;
  z-index: 1;
  transform-origin: bottom;
}

.hero-art::before { left: -35px; transform: rotate(28deg); }
.hero-art::after { right: -25px; transform: rotate(-28deg) scaleX(-1); }

.sun {
  width: 190px;
  height: 190px;
  right: 8%;
  top: 48px;
  background: #e7c45e;
  box-shadow: inset 0 0 0 10px #d5a84a, 0 0 0 8px rgba(244, 241, 220, 0.35);
}

.mountains {
  height: 155px;
  background: #557a48;
  clip-path: polygon(0 65%, 14% 32%, 28% 58%, 43% 17%, 58% 55%, 74% 25%, 100% 67%, 100% 100%, 0 100%);
}

.creature-left {
  left: 12%;
  bottom: 18px;
  background: #d6a36d;
  border-radius: 78px 78px 28px 28px;
  transform: rotate(-5deg);
}

.creature-right {
  right: 13%;
  bottom: 30px;
  background: #9b7fa8;
  border-radius: 72px 72px 28px 28px;
}

.ear {
  width: 58px;
  height: 58px;
  top: -24px;
  border-radius: 48% 48% 18% 18%;
  background: inherit;
}

.face { font-size: 36px; color: var(--ink); }
.floating-label { background: #75b84a; color: white; }

.feed { background: rgba(244, 241, 220, 0.72); }
.search-wrap, .filter, .video-card { border-color: var(--ink); }
.filter.active { background: #557a48; }

.thumbnail { border-bottom-width: 3px; }
.thumbnail-pink { background: #b4cf9f; }
.thumbnail-yellow { background: #dfbe68; }
.thumbnail-blue { background: #89b6bb; }
.thumbnail-green { background: #87a96d; }
.thumbnail-orange { background: #dc9957; }
.thumbnail-purple { background: #a79bb1; }

.thumbnail::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 48px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-8deg);
}

.thumb-creature {
  width: 112px;
  height: 112px;
  background: #f3eccb;
  border-radius: 55% 55% 42% 42%;
  box-shadow: 7px 7px 0 rgba(25, 36, 27, 0.16);
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-link::after {
  content: var(--watch-label, "Watch video");
  display: block;
  margin: -10px 16px 12px;
  color: #c00;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.video-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.player-open { overflow: hidden; }
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.player-modal[hidden] { display: none; }
.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 12, 0.88);
  backdrop-filter: blur(5px);
}
.player-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.45);
  padding: 14px;
}
.player-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.player-close {
  position: absolute;
  right: -16px;
  top: -16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #f2ce62;
  font-size: 28px;
  line-height: 34px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.player-dialog h3 {
  margin: 12px 4px 2px;
  font-size: 18px;
}

.fan-notice[hidden] { display: none; }
.fan-notice {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}
.fan-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 13, 0.82);
  backdrop-filter: blur(6px);
}
.fan-notice-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 32px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #f4f1dc;
  box-shadow: 9px 9px 0 #19241b;
}
.fan-notice-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: #79b94f;
  color: #fff;
  font-family: "Black Ops One", sans-serif;
  box-shadow: 3px 3px 0 var(--ink);
}
.fan-notice-dialog h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.05;
}
.fan-notice-dialog > p:not(.eyebrow) {
  margin: 0 0 22px;
  color: #4b5148;
  font-weight: 600;
  line-height: 1.65;
}
.fan-notice-dialog .primary-button { width: 100%; }
.fan-notice-open { overflow: hidden; }

.creators {
  background:
    linear-gradient(135deg, #72a34e, #93bb62);
  color: var(--ink);
}

.creators .primary-button { color: var(--ink); background: #f8efc7; }
.creator-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.archive-settings {
  max-width: 720px;
  margin-top: 38px;
  padding: 22px;
  border: 2px solid rgba(25, 36, 27, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
}
.archive-settings h3 { margin: 0 0 8px; font-size: 18px; }
.archive-settings p { margin: 8px 0 14px; }
.archive-settings a { color: #173c26; font-weight: 800; text-decoration: underline; }
.archive-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.archive-controls input {
  flex: 1 1 260px;
  min-width: 0;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0 14px;
}
.archive-controls button:disabled, .load-more:disabled { opacity: 0.6; cursor: wait; }
.archive-status { font-weight: 700; }
.load-more { display: flex; margin: 28px auto 0; }
.load-more[hidden] { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
footer { background: #1b2a20; }
.footer-brand .brand-mark { color: white; }

/* YouTube-style channel presentation */
.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: none;
  padding: 0 24px;
}

.topbar .brand {
  min-width: 260px;
}

.topbar .navlinks {
  display: none;
}

.hero {
  min-height: 390px;
  grid-template-columns: 42% 58%;
  background: #f4f1dc;
  border-bottom: 1px solid #cfcfcf;
}

.hero-copy {
  padding: 52px 5vw;
}

.hero-art {
  min-height: 390px;
  border-left: 0;
  background: #17231b;
}

.game-banner {
  width: 92%;
  height: 78%;
  object-fit: cover;
  border: 0;
  border-radius: 4px;
  filter: none;
  background: #111827;
}

.hero-art::before,
.hero-art::after,
.hero-art .sun,
.hero-art .mountains,
.hero-art .creature,
.hero-art .floating-label {
  display: none;
}

.feed {
  padding-top: 48px;
  background: #fff;
}

.thumbnail {
  height: auto;
  aspect-ratio: 16 / 9;
}

.video-card {
  border: 0;
  background: transparent;
}

.video-card:hover {
  transform: none;
  box-shadow: none;
}

.video-card .thumbnail {
  border: 0;
  border-radius: 12px;
}

.card-body {
  padding: 12px 2px 18px;
}

.card-meta {
  border-top: 0;
  padding-top: 0;
}

.search-wrap {
  display: none;
}

.filters {
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

.filter {
  border: 0;
  background: #efefef;
  border-radius: 8px;
}
