.animation-main { flex: 1; padding-bottom: 76px; }
.animation-main:focus { outline: none; }
.animation-main [hidden] { display: none !important; }
.animation-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 48px; padding-block: 64px 68px; }
.animation-hero h1 { font-size: clamp(38px, 4.3vw, 64px); }
.animation-intro { padding-bottom: 7px; color: var(--muted); font-size: 14px; line-height: 2; }
.animation-note { display: inline-flex; gap: 10px; align-items: center; margin-top: 23px; color: var(--ink); font-size: 12px; }
.animation-note > span { color: var(--accent); font-size: 11px; }
.animation-section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding-block: 25px; }
.animation-section-heading > div { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: baseline; }
.animation-section-heading h2 { font-size: 21px; font-weight: 600; }
.animation-section-heading span, .animation-section-heading > p { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.video-card { display: flex; flex-direction: column; height: 100%; border-bottom: 1px solid var(--line); }
.video-poster { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #e8e8df; }
.video-poster::before { content: ''; position: absolute; inset: 14%; border: 1px solid #c0cabe; transform: rotate(-6deg); background: #dbe0d3; }
.video-poster::after { content: ''; position: absolute; inset: 17%; border: 1px solid #b0bead; background: #d2dbcc; transform: rotate(5deg); }
.video-poster img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-play { display: grid; place-items: center; position: absolute; z-index: 2; top: 50%; left: 50%; width: 48px; height: 48px; padding-left: 3px; transform: translate(-50%, -50%); border: 1px solid #ffffff70; border-radius: 50%; background: #193b31d9; color: #fff; font-size: 14px; transition: background .2s; }
.video-duration { position: absolute; bottom: 12px; right: 12px; z-index: 2; border-radius: 3px; padding: 4px 7px; background: #193b31e8; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.video-card:hover .video-poster img { transform: scale(1.035); }
.video-card:hover .video-play { background: var(--accent); }
.video-card:hover h3 { color: var(--accent); }
.video-card-copy { display: flex; flex-direction: column; flex: 1; padding-block: 20px 18px; min-width: 0; }
.video-card h3 { font-size: 22px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.video-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.video-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 11px; }
.video-card-meta > span:last-child { color: var(--ink); }
.library-state { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 310px; border: 1px solid var(--line); padding: 46px; background: #eeeee5; }
.library-state-copy { max-width: 570px; }
.library-state h2 { margin-bottom: 14px; font-family: var(--serif); font-size: clamp(23px, 2.1vw, 30px); font-weight: 500; line-height: 1.6; }
.library-state p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.library-state img { width: min(34%, 280px); height: auto; }
.library-state .eyebrow { margin-bottom: 17px; color: var(--accent); font-size: 10px; }
.library-loading { padding-block: 80px; text-align: center; color: var(--muted); font-size: 14px; }
.library-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 18px; padding: 11px 20px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font: 13px/1.5 var(--sans); cursor: pointer; }
.library-action:hover { background: #285444; }
.library-action:focus-visible, .video-player:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.library-state .library-action { margin-top: 24px; }
.library-action:disabled { opacity: .55; cursor: wait; }
.detail-back { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; margin-block: 29px 21px; font-size: 13px; }
.detail-back:hover { color: var(--accent); }
.detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.detail-heading h1 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.03em; overflow-wrap: anywhere; }
.detail-heading > div { min-width: 0; }
.detail-heading h1:focus { outline: none; }
.video-screen { display: grid; place-items: center; background: #11251f; border: 1px solid #11251f; width: 100%; }
.video-player { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 74svh; object-fit: contain; background: #11251f; }
.playback-status { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding: 16px 20px; background: #e8eadf; border: 1px solid var(--line); border-top: 0; font-size: 13px; line-height: 1.7; }
.playback-status[data-state="error"] { background: #f3e7da; }
.playback-status .library-action { min-height: 40px; padding: 8px 17px; }
.video-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; border-bottom: 1px solid var(--line); padding-block: 27px 33px; }
.detail-description { max-width: 780px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 2; }
.video-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.video-tags li { border: 1px solid var(--line); padding: 5px 10px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.video-facts { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 22px; margin: 0; }
.video-facts div { min-width: 62px; }
.video-facts dt { color: var(--muted); font-size: 11px; }
.video-facts dd { margin: 7px 0 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.animation-page .site-footer { padding-block: 27px; }
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-details { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 760px) {
  .animation-hero { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 38px 42px; }
  .animation-intro br { display: none; }
  .animation-note { margin-top: 16px; }
  .library-state { min-height: 270px; padding: 30px; }
  .library-state img { width: 30%; }
  .detail-heading { flex-wrap: wrap; align-items: start; gap: 18px; }
}
@media (max-width: 540px) {
  .animation-main { padding-bottom: 40px; }
  .animation-hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .animation-intro { font-size: 13px; }
  .animation-section-heading { padding-block: 20px; }
  .animation-section-heading > div { gap: 8px; }
  .animation-section-heading > div > span { font-size: 9px; }
  .animation-section-heading h2 { font-size: 18px; }
  .animation-section-heading > p { flex-shrink: 0; font-size: 10px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .video-card h3 { font-size: 21px; }
  .library-state { flex-direction: column-reverse; align-items: start; gap: 6px; padding: 22px; }
  .library-state img { width: 150px; align-self: center; }
  .library-state h2 { font-size: 23px; }
  .library-state p { font-size: 13px; }
  .detail-back { margin-top: 16px; margin-bottom: 17px; }
  .detail-heading h1 { font-size: 29px; line-height: 1.5; }
  .video-details { padding-block: 22px; }
  .video-facts { gap: 20px; }
  .playback-status { padding: 13px; }
  .animation-page .site-footer { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-poster img, .video-play { transition: none; }
}
