* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #202534;
  background: #f3f9fc;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(8, 110, 165, 0.22);
  background: linear-gradient(100deg, #8be0fa 0%, #c5f2ff 52%, #93e8ff 100%);
  box-shadow: 0 4px 18px rgba(20, 74, 99, 0.08);
}

.site-header-inner,
.site-footer-inner {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  min-width: 0;
  gap: 1rem 2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #172c40;
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  display: block;
  flex: 0 0 auto;
}

.site-brand strong {
  color: #087db8;
}

.site-nav,
.site-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-nav a {
  color: #20394c;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.site-nav a:hover,
.site-footer a:hover {
  color: #087db8;
}

.site-nav a:focus-visible,
.site-brand:focus-visible,
.site-footer a:focus-visible,
.site-actions a:focus-visible,
.site-actions button:focus-visible,
.site-actions select:focus-visible {
  outline: 3px solid #075985;
  outline-offset: 3px;
}

.site-actions {
  min-width: 0;
}

.site-search,
.site-language,
.site-ai {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-search {
  gap: 0.35rem;
  border: 1px solid #b2deed;
  background: rgba(255, 255, 255, 0.75);
  color: #36566e;
}

.site-language {
  gap: 0.3rem;
  border: 1px solid #b2deed;
  background: rgba(255, 255, 255, 0.75);
  color: #36566e;
}

.site-language select,
.site-language button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
}

.site-language select {
  max-width: 9rem;
  min-width: 0;
  cursor: pointer;
}

.site-language button {
  padding: 0.2rem 0.35rem;
  color: #087db8;
  cursor: pointer;
  font-weight: 700;
}

.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;
}

.site-search input {
  width: 10rem;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #20394c;
  font: inherit;
  font-size: 0.8rem;
}

.site-search input::placeholder {
  color: #536777;
  opacity: 1;
}

.site-search button {
  border: 0;
  padding: 0.2rem 0.35rem;
  background: transparent;
  color: #087db8;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-ai {
  border: 1px solid #087db8;
  background: #087db8;
  color: #fff;
}

.site-ai:hover {
  background: #066a9c;
  color: #fff;
}

.site-footer {
  border-top: 1px solid #d6eaf2;
  background: #fff;
  color: #536777;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) repeat(2, minmax(8rem, 1fr));
  gap: 1.5rem 2rem;
  padding: 2rem 0 1.25rem;
}

.site-footer-brand p {
  max-width: 22rem;
  margin: 0.65rem 0 0;
  color: #68798a;
  font-size: 0.9rem;
}

.site-footer nav {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer a {
  color: #36566e;
  text-decoration: none;
}

.watch-main {
  flex: 1;
  width: min(100% - 2rem, 72rem);
  margin: clamp(1rem, 3vw, 2rem) auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #d6eaf2;
  border-radius: clamp(0.85rem, 2vw, 1.25rem);
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 74, 99, 0.08);
}

.watch-back {
  margin: 0 0 1.25rem;
}

.watch-back a {
  display: inline-flex;
  max-width: 100%;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #c9e8f4;
  border-radius: 999px;
  background: #f1faff;
  color: #075985;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.watch-back a:hover {
  border-color: #8acde5;
  background: #e5f6fd;
  color: #064e70;
  transform: translateX(-2px);
}

.watch-back a:focus-visible {
  outline: 3px solid #087db8;
  outline-offset: 3px;
}

.watch-back svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.watch-back span {
  overflow-wrap: anywhere;
}

.watch-count {
  display: inline-block;
  margin: 0.25rem 0 0.5rem;
  color: #5c6e7c;
  font-size: 0.9rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.watch-description {
  max-width: 72ch;
  margin: 0 0 0.75rem;
  color: #435665;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  overflow-wrap: anywhere;
}

section {
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.75rem;
  background: #101114;
}

.watch-main a {
  color: #a83227;
  text-underline-offset: 0.2em;
}

.watch-main .watch-back a {
  color: #075985;
}

.watch-main .watch-back a:hover {
  color: #064e70;
}

.site-footer-copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e8f0f3;
  font-size: 0.9rem;
}

@media (max-width: 70rem) {
  .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 0.85rem 1rem;
    padding: 0.75rem 0;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .site-search input {
    width: clamp(8rem, 18vw, 11rem);
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 0.5rem clamp(0.75rem, 2vw, 1.5rem);
  }
}

@media (max-width: 42rem) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem 0.75rem;
    padding: 0.75rem 0;
  }

  .site-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 0.45rem;
    width: 100%;
  }

  .site-language,
  .site-search {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 0.3rem 0.55rem;
  }

  .site-ai {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.15rem 0.4rem;
    width: 100%;
  }

  .site-nav a {
    padding: 0.35rem 0.1rem;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
  }

  .site-search input {
    width: 0;
    flex: 1 1 auto;
  }

  .site-search,
  .site-language,
  .site-ai {
    min-height: 2.45rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
  }

  .site-language select {
    max-width: min(7rem, 55%);
  }

  .watch-main {
    width: min(100% - 1.25rem, 72rem);
    padding: clamp(1rem, 4vw, 1.75rem);
  }

  .watch-back {
    margin-bottom: 1rem;
  }

  video {
    max-height: 60vh;
  }

  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 22rem) {
  .site-header-inner,
  .site-footer-inner {
    width: calc(100% - 1rem);
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    white-space: normal;
  }

  .watch-main {
    width: calc(100% - 1rem);
    padding: 0.9rem;
  }
}
