:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
}

button,
select,
a {
  font: inherit;
}

.video-library-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.video-library-header {
  text-align: center;
  margin-bottom: 24px;
}

.brand-link {
  display: inline-block;
  margin-bottom: 12px;
  color: #243a7a;
  font-weight: 700;
  text-decoration: none;
}

.video-library-header h1,
.video-heading h2,
.video-catalogue h2 {
  margin-top: 0;
}

.video-library-header p,
.video-heading p {
  color: #59647a;
}

.video-library-panel,
.video-catalogue {
  background: #ffffff;
  border: 1px solid #e1e6f0;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(31, 45, 80, 0.08);
}

.video-library-panel {
  padding: 22px;
}

.video-library-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.field-group {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.field-group select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd3e1;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
}

.status-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef3ff;
  color: #243a7a;
}

.video-heading {
  margin-bottom: 14px;
}

.video-heading p {
  margin-bottom: 0;
}

.video-frame {
  overflow: hidden;
  border-radius: 14px;
  background: #0c111b;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c111b;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.video-actions button,
.video-actions a,
.video-card-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #243a7a;
  cursor: pointer;
  text-decoration: none;
}

.video-actions button,
.video-card-button {
  background: #243a7a;
  color: #ffffff;
}

.video-actions a {
  color: #243a7a;
  background: #ffffff;
}

.video-notes {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #e1e6f0;
}

.video-notes-header {
  margin-bottom: 18px;
}

.video-notes-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  color: #172033;
}

.video-notes-header p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #59647a;
  line-height: 1.6;
}

.video-notes-content {
  display: grid;
  gap: 14px;
}

.product-notes-card {
  overflow: clip;
  border: 1px solid #dce3ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 45, 80, 0.06);
}

.product-notes-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #f8faff 0%, #eef3ff 100%);
  user-select: none;
}

.product-notes-summary::-webkit-details-marker {
  display: none;
}

.product-notes-summary::marker {
  content: "";
}

.product-notes-summary:focus-visible {
  outline: 3px solid rgba(36, 58, 122, 0.24);
  outline-offset: -3px;
}

.product-title-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(36, 58, 122, 0.16);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(31, 45, 80, 0.1);
}

.product-title-icon-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #243a7a;
  font-size: 1.25rem;
  font-weight: 800;
}

.product-title-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background: #ffffff;
}

.product-title-icon.has-image .product-title-icon-fallback {
  visibility: hidden;
}

.product-notes-title {
  min-width: 0;
  flex: 1;
  color: #172033;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.35;
}

.product-notes-chevron {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #243a7a;
}

.product-notes-chevron::before,
.product-notes-chevron::after {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.product-notes-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.product-notes-card[open] .product-notes-chevron::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.product-notes-body {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid #e3e8f1;
}

.product-tier {
  padding: 16px;
  border: 1px solid #e3e8f1;
  border-radius: 14px;
  background: #fbfcff;
}

.product-tier-without-heading {
  padding-top: 14px;
}

.product-tier h4 {
  margin: 0 0 13px;
  color: #243a7a;
  font-size: 1.02rem;
}

.product-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #ffffff;
}

.product-feature-marker {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #243a7a;
  box-shadow: 0 0 0 4px #e8edfb;
}

.product-feature-copy {
  min-width: 0;
}

.product-feature-copy h5 {
  margin: 0 0 5px;
  color: #172033;
  font-size: 0.96rem;
  line-height: 1.4;
}

.product-feature-copy p {
  margin: 0;
  color: #59647a;
  font-size: 0.93rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.product-notes-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.product-visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #243a7a;
  border-radius: 11px;
  background: #243a7a;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.product-visit-link:hover {
  background: #1b2e64;
  box-shadow: 0 8px 18px rgba(36, 58, 122, 0.2);
  transform: translateY(-1px);
}

.product-visit-link:focus-visible {
  outline: 3px solid rgba(36, 58, 122, 0.28);
  outline-offset: 3px;
}

.product-visit-link-arrow {
  font-size: 1.05em;
}

.video-notes-error {
  margin: 0;
  padding: 14px;
  border: 1px solid #ead3d3;
  border-radius: 12px;
  background: #fff7f7;
  color: #8c3030;
}

.video-catalogue {
  margin-top: 24px;
  padding: 22px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.video-catalogue-card {
  overflow: hidden;
  border: 1px solid #e1e6f0;
  border-radius: 14px;
  background: #ffffff;
}

.video-catalogue-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9edf5;
}

.video-catalogue-card-body {
  padding: 15px;
}

.video-catalogue-card h3 {
  margin: 0 0 8px;
}

.video-catalogue-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #59647a;
}

.video-card-button {
  width: 100%;
}

@media (max-width: 700px) {
  .video-library-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .video-library-controls {
    grid-template-columns: 1fr;
  }

  .video-library-panel,
  .video-catalogue {
    padding: 15px;
    border-radius: 14px;
  }

  .video-notes {
    margin-top: 22px;
    padding-top: 22px;
  }

  .product-notes-summary {
    min-height: 72px;
    gap: 11px;
    padding: 12px;
  }

  .product-title-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .product-notes-body {
    padding: 12px;
  }

  .product-tier {
    padding: 12px;
  }

  .product-feature-list {
    grid-template-columns: 1fr;
  }

  .product-notes-actions {
    justify-content: stretch;
  }

  .product-visit-link {
    width: 100%;
  }
  
}
