:root {
  color-scheme: light;
  --canvas: #f4f2e9;
  --canvas-soft: #eef2e9;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --forest-950: #15251a;
  --forest-900: #203426;
  --forest-800: #2d4935;
  --forest-700: #426249;
  --sage-500: #7f9376;
  --sage-200: #d4e0d0;
  --sage-100: #e9efe5;
  --gold-600: #a8791c;
  --gold-500: #c99f3e;
  --gold-200: #ead8ad;
  --ink: #26312a;
  --muted: #667168;
  --line: #d8ded2;
  --danger: #9e3f35;
  --shadow-lg: 0 28px 80px rgba(32, 52, 38, 0.12);
  --shadow-md: 0 16px 42px rgba(32, 52, 38, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --page-width: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 3%, rgba(201, 159, 62, 0.13), transparent 24rem),
    radial-gradient(circle at 95% 23%, rgba(127, 147, 118, 0.18), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--forest-950);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(66, 98, 73, 0.16);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 28px rgba(32, 52, 38, 0.05);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--forest-900);
  text-decoration: none;
}

.brand-link img {
  width: 174px;
  height: 58px;
  display: block;
  object-fit: contain;
}

.brand-link span {
  padding-left: 15px;
  border-left: 1px solid var(--gold-200);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.language-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.language-switcher a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.language-switcher a:hover {
  border-color: var(--sage-200);
  background: var(--sage-100);
  color: var(--forest-800);
}

.language-switcher a[aria-current="page"] {
  border-color: var(--forest-800);
  background: var(--forest-800);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 44px;
  border: 1px solid rgba(66, 98, 73, 0.16);
  border-radius: var(--radius-xl);
  padding: clamp(34px, 6vw, 72px);
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.94), rgba(248, 249, 241, 0.86)),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 310px;
  height: 310px;
  top: -155px;
  right: -75px;
  border: 58px solid rgba(201, 159, 62, 0.1);
}

.hero::after {
  width: 180px;
  height: 180px;
  right: 175px;
  bottom: -135px;
  border: 30px solid rgba(66, 98, 73, 0.08);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-600);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--forest-950);
  font-size: clamp(2.15rem, 6vw, 4.9rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero__lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.home-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  border-radius: 13px;
  padding: 11px 17px;
  background: var(--forest-800);
  box-shadow: 0 9px 24px rgba(32, 52, 38, 0.18);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.home-link::before {
  content: "←";
  font-size: 1rem;
}

.home-link:hover {
  background: var(--forest-700);
  transform: translateY(-1px);
}

.channels {
  display: grid;
  gap: 34px;
  padding-block: 44px 74px;
}

.video-channel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-lg);
}

.channel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(25px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.channel-header__copy {
  max-width: 740px;
}

.channel-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.channel-title-row h2 {
  margin: 0;
  color: var(--forest-950);
  font-size: clamp(1.55rem, 3.3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--gold-200);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fbf4df;
  color: #80601f;
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.channel-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
  box-shadow: 0 0 0 4px rgba(201, 159, 62, 0.12);
}

.channel-header p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.upload-link {
  min-height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest-700);
  border-radius: 13px;
  padding: 11px 17px;
  background: var(--forest-800);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.upload-link:hover {
  background: var(--forest-700);
  transform: translateY(-1px);
}

.channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 0.75fr);
  gap: clamp(22px, 3.5vw, 38px);
  padding: clamp(22px, 4vw, 42px);
}

.video-channel--customer .channel-layout {
  grid-template-columns: minmax(280px, 520px) minmax(270px, 1fr);
}

.video-channel[data-view="state"] .channel-layout {
  grid-template-columns: minmax(0, 1fr);
}

.video-channel[data-view="state"] .player-stage {
  max-width: none;
  min-height: clamp(270px, 32vw, 390px);
  aspect-ratio: auto;
}

.player-column {
  min-width: 0;
}

.player-stage {
  position: relative;
  width: 100%;
  min-height: 310px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.96), transparent 26%),
    linear-gradient(145deg, #f7faf5, #dfe9dc);
  box-shadow: inset 0 1px 0 #fff, 0 16px 38px rgba(53, 64, 51, 0.12);
}

.video-channel[data-view="items"] .player-stage {
  border-color: var(--sage-200);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.96), transparent 26%),
    linear-gradient(145deg, #f7faf5, #dfe9dc);
  box-shadow: inset 0 1px 0 #fff, 0 16px 38px rgba(53, 64, 51, 0.12);
}

.video-channel--company .player-stage {
  aspect-ratio: 16 / 9;
}

.video-channel--customer .player-stage {
  max-width: 520px;
  aspect-ratio: 4 / 5;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #e7efe4;
  object-fit: contain;
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.96), transparent 26%),
    linear-gradient(145deg, #f7faf5, #dfe9dc);
  color: var(--forest-800);
  cursor: pointer;
}

.player-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.player-poster[data-poster-state="ready"] img {
  opacity: 1;
}

.player-poster__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--sage-700);
  font-size: clamp(0.82rem, 2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.22em;
}

.player-poster__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(62px, 9vw, 82px);
  height: clamp(62px, 9vw, 82px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(53, 64, 51, 0.86);
  box-shadow: 0 16px 38px rgba(53, 64, 51, 0.24);
  transform: translate(-50%, -50%);
  transition: background-color 160ms ease, transform 160ms ease;
}

.player-poster__play::before {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
  content: "";
  transform: translate(-35%, -50%);
}

.player-poster:hover .player-poster__play {
  background: var(--forest-700);
  transform: translate(-50%, -50%) scale(1.05);
}

.player-poster[data-playback-state="error"] {
  box-shadow: inset 0 0 0 3px rgba(151, 74, 62, 0.34);
}

.video-state {
  width: min(100% - 40px, 520px);
  display: grid;
  justify-items: center;
  padding: 34px 20px;
  color: var(--forest-900);
  text-align: center;
}

.state-mark {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--gold-200);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 11px rgba(127, 147, 118, 0.08);
}

.state-mark::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--gold-500);
  content: "";
}

.video-state[data-mode="loading"] .state-mark::before {
  width: 23px;
  height: 23px;
  margin: 0;
  border: 3px solid rgba(127, 147, 118, 0.24);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.video-state h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.48rem);
  line-height: 1.25;
}

.video-state p {
  max-width: 460px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.retry-button {
  min-height: 42px;
  margin-top: 20px;
  border: 1px solid var(--sage-200);
  border-radius: 12px;
  padding: 9px 16px;
  background: var(--surface-strong);
  color: var(--forest-800);
  cursor: pointer;
  font-weight: 800;
}

.retry-button:hover {
  background: var(--sage-100);
}

.playback-error {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  margin: 0;
  border: 1px solid rgba(255, 213, 207, 0.36);
  border-radius: 11px;
  padding: 10px 12px;
  background: rgba(82, 22, 18, 0.92);
  color: #fff4f2;
  font-size: 0.82rem;
  text-align: center;
}

.now-playing {
  padding: 22px 4px 2px;
}

.now-playing__label {
  margin: 0 0 6px;
  color: var(--gold-600);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.now-playing h3 {
  margin: 0;
  color: var(--forest-950);
  font-size: 1.32rem;
  line-height: 1.3;
}

.now-playing__summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
  white-space: pre-line;
}

.now-playing__meta {
  min-height: 21px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: #7a827c;
  font-size: 0.76rem;
  font-weight: 700;
}

.now-playing__meta span + span::before {
  margin-right: 16px;
  color: var(--gold-500);
  content: "•";
}

.playlist {
  min-width: 0;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.playlist__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas-soft);
}

.playlist__header h3 {
  margin: 0;
  color: var(--forest-900);
  font-size: 0.92rem;
}

.video-list {
  max-height: 535px;
  overflow: auto;
  padding: 10px;
  overscroll-behavior: contain;
  scrollbar-color: var(--sage-500) transparent;
}

.playlist-item + .playlist-item {
  margin-top: 7px;
}

.playlist-button {
  width: 100%;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.playlist-button:hover {
  border-color: var(--sage-200);
  background: var(--sage-100);
}

.playlist-button.is-active {
  border-color: var(--gold-200);
  background: #fbf5e5;
  box-shadow: inset 3px 0 0 var(--gold-500);
}

.playlist-visual {
  position: relative;
  width: 76px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #f7faf5, #dfe9dc);
}

.playlist-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.playlist-visual[data-poster-state="ready"] img {
  opacity: 1;
}

.playlist-number {
  color: var(--sage-700);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.playlist-copy {
  min-width: 0;
  display: block;
}

.playlist-copy strong,
.playlist-copy small {
  display: block;
}

.playlist-copy strong {
  overflow: hidden;
  color: var(--forest-900);
  font-size: 0.86rem;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: #818a83;
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid rgba(66, 98, 73, 0.18);
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.66);
}

.site-footer__inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--gold-200);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(201, 159, 62, 0.62);
  outline-offset: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 12px;
  }

  .brand-link img {
    width: 140px;
    height: 46px;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .channel-layout,
  .video-channel--customer .channel-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-channel--customer .player-stage {
    margin-inline: auto;
  }

  .video-list {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .page-width {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .site-header__inner {
    min-height: 0;
    gap: 8px;
    padding-block: 10px;
  }

  .brand-link {
    width: 100%;
    justify-content: space-between;
  }

  .brand-link img {
    flex: 0 0 auto;
    width: 106px;
    height: 36px;
  }

  .brand-link span {
    min-width: 0;
    max-width: calc(100% - 126px);
    text-align: right;
  }

  .language-switcher a {
    min-height: 36px;
    padding-inline: 9px;
  }

  .hero {
    margin-top: 20px;
    border-radius: 22px;
    padding: 30px 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .channels {
    gap: 22px;
    padding-block: 26px 48px;
  }

  .video-channel {
    border-radius: 22px;
  }

  .channel-header {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .upload-link {
    width: 100%;
  }

  .channel-layout {
    padding: 15px;
  }

  .player-stage {
    min-height: 270px;
    border-radius: 17px;
  }

  .video-channel--company .player-stage {
    min-height: 0;
  }

  .video-channel[data-view="state"] .player-stage {
    min-height: 270px;
  }

  .video-channel--customer .player-stage {
    max-width: 430px;
  }

  .video-state {
    width: min(100% - 24px, 460px);
    padding: 25px 12px;
  }

  .playlist-button {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .playlist-visual {
    width: 66px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
