/* Poster-led cards share the public site's type and neutral palette. */
.content-library { margin: 32px auto 64px; max-width: 1000px; color: #243348; }
.content-library * { box-sizing: border-box; }
.content-library [hidden] { display: none !important; }
.library-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.library-heading h2 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.library-heading p, .library-notice, .library-status { font-size: 13px; color: #6b7889; line-height: 1.7; }
.library-providers { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 12px; }
.library-providers button { min-height: 44px; background: #fff; border: 1px solid #e1e7ee; border-radius: 22px; padding: 10px 14px; color: #536174; font: inherit; font-size: 13px; cursor: pointer; }
.library-providers button[aria-pressed=true] { background: #1374c7; color: #fff; border-color: #1374c7; }
.library-providers small { margin-left: 7px; opacity: .8; }
.library-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 26px 18px; margin-top: 24px; }
.library-card { min-width: 0; }
.library-card > button { background: transparent; border: 0; padding: 0; width: 100%; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.library-card > button:focus-visible, .library-providers button:focus-visible, .library-pagination button:focus-visible { outline: 2px solid #1374c7; outline-offset: 4px; border-radius: 6px; }
.library-poster { position: relative; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: #f2f4f7; display: grid; place-items: center; }
.library-poster:has(img) { background: transparent; }
.library-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.library-poster > span { padding: 16px; overflow-wrap: anywhere; text-align: center; font-size: 15px; font-weight: 600; color: #667589; line-height: 1.6; }
.library-poster > span strong { font-weight: 600; }
.library-poster > span small { display: block; margin-top: 10px; color: #8792a1; font-size: 11px; font-weight: 400; }
.library-card-copy { padding: 12px 0; }
.library-card h3 { font-size: 15px; line-height: 1.5; margin: 6px 0; overflow-wrap: anywhere; letter-spacing: -.01em; }
.library-card small, .library-card p { font-size: 11px; color: #778396; line-height: 1.5; margin: 0; }
.library-card b { display: block; font-size: 11px; color: #1374c7; margin-top: 9px; font-weight: 600; }
.library-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.library-pagination button { min-width: 36px; min-height: 44px; padding: 8px; border: 1px solid #dce5ef; border-radius: 6px; background: #fff; color: #536174; cursor: pointer; font: inherit; font-size: 13px; }
.library-pagination button[aria-current=page] { background: #1374c7; border-color: #1374c7; color: #fff; font-weight: 700; }
.library-pagination button:disabled { opacity: .4; cursor: default; }
.library-status { text-align: center; }
.library-status { min-height: 24px; }
.library-heading p { min-height: 23px; }
.library-providers small { display: inline-block; min-width: 2.5em; font-variant-numeric: tabular-nums; }
.library-skeleton .library-poster { animation: library-pulse 1.2s ease-in-out infinite alternate; }
.library-skeleton i { display: block; height: 13px; margin: 9px 0; background: #edf0f4; border-radius: 4px; }
.library-skeleton i:nth-child(2) { width: 75%; }
.library-skeleton i:last-child { width: 55%; }
.content-library[aria-busy=true] .library-card:not(.library-skeleton) { opacity: .65; }
[data-content-age-slot] { display: block; min-height: 20px; }
@keyframes library-pulse { to { opacity: .5; } }
@media(prefers-reduced-motion:reduce) { .library-skeleton .library-poster { animation: none; } }
.library-status button { border: 0; background: none; color: #1374c7; text-decoration: underline; cursor: pointer; }
@media (max-width: 1000px) { .library-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 600px) {
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .library-heading h2 { font-size: 20px; }
  .library-providers { gap: 7px; }
  .library-providers button { padding: 8px 11px; font-size: 12px; }
  .library-notice { font-size: 12px; }
  .content-library { margin-top: 24px; }
  .library-card h3 { font-size: 14px; }
  .library-poster > span { padding: 12px; font-size: 13px; }
}
.library-expiry{margin:30px 0 14px;padding:22px;border:1px solid #f0dfbf;border-radius:18px;background:linear-gradient(135deg,#fffaf0,#fff)}
.library-expiry-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.library-expiry-heading span{color:#b87918;font-size:10px;font-weight:900;letter-spacing:.14em}
.library-expiry-heading h2{margin:5px 0 0;color:#46351c;font-size:20px}
.library-expiry-heading p,.library-expiry-status{margin:0;color:#8a7658;font-size:12px;line-height:1.6}
.library-expiry-controls{display:flex;gap:7px;margin:16px 0 12px}
.library-expiry-controls button{padding:7px 12px;border:1px solid #ead4aa;border-radius:18px;background:#fff;color:#87672f;font:inherit;font-size:12px;cursor:pointer}
.library-expiry-controls button[aria-pressed=true]{border-color:#bc7d1f;background:#bc7d1f;color:#fff}
.library-expiry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 14px}
.library-expiry-card>button{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.library-expiry-poster{position:relative;aspect-ratio:2/3;overflow:hidden;border-radius:6px;background:#f2f4f7;display:grid;place-items:center}
.library-expiry-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.library-expiry-poster span{padding:12px;overflow-wrap:anywhere;color:#72572c;font-size:13px;font-weight:800}
.library-expiry-poster b{position:absolute;right:6px;bottom:6px;padding:5px 7px;border-radius:5px;background:#bd7418;color:#fff;font-size:11px;line-height:1}
.library-expiry-copy{min-width:0;padding-top:2px}
.library-expiry-copy small,.library-expiry-copy p{display:block;margin:0;color:#8a7658;font-size:11px;line-height:1.5}
.library-expiry-copy h3{display:-webkit-box;overflow:hidden;margin:6px 0;color:#46351c;font-size:14px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.library-expiry-copy p{color:#b16f16;font-weight:800}
@media(max-width:1000px){.library-expiry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.library-expiry{margin-top:24px;padding:17px}.library-expiry-heading h2{font-size:18px}.library-expiry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}}

.library-expiry-poster:has(img){background:transparent}.library-expiry-poster img{border-radius:inherit}.library-expiry-poster span small{display:block;font-size:9px;font-weight:400;margin-top:5px}

.library-services{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.library-service{display:inline-flex;width:28px;height:28px;border-radius:6px;overflow:hidden;background:#fff}.library-service img{display:block;width:100%;height:100%;object-fit:contain}
