.video-page { min-width: 0; overflow-x: clip; background: #f6f6f6; }
.video-frame { width: 100%; max-width: 1440px; min-width: 0; margin-inline: auto; overflow: visible; background: #f6f6f6; }
.video-header { position: relative; height: 239px; z-index: 20; border: 1px solid transparent; }
.video-header::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none; border-bottom: 1px solid var(--bg-color); background-color: #fff; background-image: linear-gradient(#ffddd5 1px, transparent 1px), linear-gradient(90deg, #ffddd5 1px, transparent 1px); background-size: 68.7px 68.7px; background-position: -1px 57px; }
.video-header .top-logo { left: 112px; top: 38px; width: 338px; height: 58px; }
.video-header .top-nav { left: 634px; top: 51px; width: 683px; }
.video-search { position: absolute; left: 376px; top: 158px; display: flex; width: 570px; height: 40px; }
.video-search input { min-width: 0; width: 100%; padding: 5px 14px; border: 1px solid #d3d3d3; border-radius: 5px 0 0 5px; background: var(--panel); color: var(--text-1); font: inherit; }
.video-search button { display: grid; place-items: center; flex: 0 0 84px; border: 1px solid #d3d3d3; border-radius: 0 5px 5px 0; margin-left: -1px; background: var(--bg-color); cursor: pointer; }
.video-search button img { width: 28px; height: 28px; }
.video-content { min-height: 785px; padding: 40px 113px 80px; }
.video-list { display: grid; grid-template-columns: repeat(3, 333px); gap: 48px; }
.video-card[hidden], .video-empty[hidden] { display: none; }
.video-thumbnail { position: relative; display: block; width: 333px; height: 175px; overflow: hidden; border-radius: 10px; background: #d9d9d9; }
.video-thumbnail > img { width: 100%; height: 100%; object-fit: cover; }
.video-preview { position: absolute; inset: 0; pointer-events: none; }
.video-preview iframe { position: absolute; top: 50%; width: 100%; height: 200px; transform: translateY(-50%); border: 0; }
.video-card h2 { margin: 15px 0 0; font-size: 22.22px; line-height: 27px; font-weight: 600; }
.video-title:hover { text-decoration: underline; }
.video-page :focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.video-page .video-search input:focus { position: relative; z-index: 1; outline: 2px solid var(--primary); outline-offset: -2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.video-empty { font-size: 20px; }
.video-dialog { position: fixed; inset: 0; width: min(960px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 18px; border: 0; border-radius: 12px; background: #fff; color: var(--text-1); box-shadow: 0 24px 80px #0006; }
.video-dialog::backdrop { background: #000c; }
.video-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.video-dialog-heading h2 { font-size: 20px; line-height: 1.4; }
.video-close { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--panel); color: var(--text-1); font-size: 32px; cursor: pointer; }
.video-player { aspect-ratio: 16 / 9; background: #000; }
.video-player iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.video-fallback { margin-top: 14px; font-size: 14px; }
.video-page.video-modal-open { overflow: hidden; }
.video-page .footer { isolation: isolate; background: transparent; }
.video-page .footer::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none; background-color: #fffdfb; background-image: linear-gradient(#ffddd5 1px, transparent 1px), linear-gradient(90deg, #ffddd5 1px, transparent 1px); background-position: 16px 1px; background-size: 83px 83px; }
.video-page .footer .copyright { left: 50%; width: 100vw; transform: translateX(-50%); }
@media (min-width: 768px) and (max-width: 1439px) {
  .video-header .top-logo { left: 7.85%; width: 23.47%; }
  .video-header .top-nav { left: 44.1%; width: 47.43%; }
  .video-search { left: 26.18%; width: 39.58%; }
  .video-content { padding-inline: 7.85%; }
  .video-list { grid-template-columns: repeat(auto-fit, minmax(280px, 333px)); }
  .video-page .footer { min-width: 0; }
  .video-page .footer::before { background-position: 8px 0; background-size: 68px 68px; }
}
@media (max-width: 767px) {
  .video-header { height: 180px; }
  .video-page .footer::before { background-position: -1px -1px; background-size: 42px 42px; }
  .video-header::before { background-size: 38px 38px; }
  .video-header .top-logo { left: 28px; top: 15px; width: 180px; height: 31px; }
  .video-header .top-nav { left: auto; right: 18px; top: 56px; width: 220px; }
  .video-search { left: 24px; top: 112px; width: calc(100% - 48px); }
  .video-search button { flex-basis: 64px; }
  .video-content { min-height: calc(100svh - 180px); padding: 32px 24px 64px; }
  .video-list { grid-template-columns: minmax(0, 333px); justify-content: center; }
  .video-thumbnail { width: 100%; height: auto; aspect-ratio: 333 / 175; }
  .video-card h2 { font-size: 20px; line-height: 1.3; }
  .video-dialog { width: calc(100vw - 24px); padding: 12px; }
  .video-dialog-heading h2 { font-size: 16px; }
  .video-player { min-height: 200px; }
}
