/* Compact North Pole TV app shell, built from the approved mini-series palette and artwork. */

.app-page { min-height: 100vh; color: var(--ink); background: #03151e; }
.app-shell { width: min(100%, 900px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--cream); box-shadow: 0 0 80px rgba(0,0,0,.42); }
.app-header { min-height: 68px; display: flex; align-items: center; padding: 0 24px; color: #fff; background: rgba(5,27,39,.98); border-bottom: 1px solid rgba(255,255,255,.12); }
.app-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.app-brand { flex: 0 0 auto; }
.app-brand img { width: 92px; height: 52px; object-fit: contain; object-position: left center; }
.tv-wordmark { display: inline-flex; align-items: baseline; gap: .2em; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); color: #fff; font-family: Georgia, serif; font-size: 1.08rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.tv-wordmark em { color: #ffcf62; font-size: .78em; letter-spacing: .05em; }
.app-header nav { display: flex; align-items: center; gap: .35rem; padding: .25rem; border-radius: 99px; background: rgba(255,255,255,.08); }
.app-header nav a { padding: .58rem .9rem; border-radius: 99px; color: #c5d4d6; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.app-header nav a:hover, .app-header nav a.is-active { color: var(--ink); background: #ffcf62; }

.compact-hero { position: relative; min-height: 235px; display: flex; align-items: flex-end; padding: 34px clamp(22px, 6vw, 52px); isolation: isolate; color: #fff; background: url("assets/images/locations/Santa%20Workshop%20Ext_01.png") center 55% / cover; }
.compact-hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(3,21,30,.94), rgba(3,21,30,.58) 65%, rgba(3,21,30,.22)), linear-gradient(transparent 48%, rgba(3,21,30,.82)); }
.compact-hero-copy { max-width: 620px; }
.compact-hero-copy > p { margin: 0 0 .45rem; color: #c8d8da; font-size: .67rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.compact-hero h1 { max-width: none; margin: 0 0 .55rem; font-size: clamp(3.3rem, 8vw, 5.6rem); line-height: .85; }
.compact-hero-copy > span { display: block; max-width: 520px; color: #f0f5f5; font-size: .98rem; line-height: 1.55; }

.compact-library { padding: 28px clamp(18px, 5vw, 42px) 44px; }
.library-topline { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 18px; }
.mini-kicker { margin: 0 0 .25rem; color: var(--red); font-size: .65rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.library-topline h2 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: .95; }
.library-total { flex: 0 0 auto; color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.filter-bar { display: flex; gap: .45rem; margin: 0 0 24px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .42rem; min-height: 39px; padding: .58rem .8rem; border: 1px solid #ddcfb9; border-radius: 99px; color: var(--ink); background: #fff; cursor: pointer; font-size: .76rem; font-weight: 900; }
.filter-bar button:hover, .filter-bar button.is-active { border-color: var(--red); color: #fff; background: var(--red); }
.filter-bar button span { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: rgba(7,31,46,.1); font-size: .65rem; }
.filter-bar button.is-active span { background: rgba(255,255,255,.2); }

.video-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
.video-card { min-width: 0; color: var(--ink); text-decoration: none; transition: transform .2s ease; }
.video-card:hover { transform: translateY(-4px); }
.video-card[hidden] { display: none; }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 15px; background: var(--ink); box-shadow: 0 12px 25px rgba(2,23,33,.18); }
.video-thumb::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3,18,26,.5)); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .35s ease; }
.video-card:hover .video-thumb img { transform: scale(1.035); }
.card-play { position: absolute; z-index: 2; left: 10px; bottom: 9px; display: grid; place-items: center; width: 34px; height: 34px; padding-left: 2px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; color: #fff; background: rgba(181,17,34,.94); box-shadow: 0 6px 16px rgba(0,0,0,.3); font-size: .72rem; }
.duration { position: absolute; z-index: 2; right: 8px; bottom: 8px; padding: .22rem .38rem; border-radius: 5px; color: #fff; background: rgba(2,15,22,.84); font-size: .64rem; font-weight: 900; }
.new-badge { position: absolute; z-index: 2; top: 8px; right: 8px; padding: .3rem .52rem; border: 1px solid rgba(255,255,255,.75); border-radius: 99px; color: #fff; background: var(--red); box-shadow: 0 5px 14px rgba(0,0,0,.25); font-size: .57rem; font-weight: 900; letter-spacing: .11em; line-height: 1; text-transform: uppercase; }
.video-card-copy { display: block; padding: .72rem .1rem 0; }
.video-card-copy small { display: block; color: var(--red); font-size: .59rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.video-card-copy strong { display: block; margin-top: .26rem; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.08; }
.video-card-copy > span { display: none; }
.library-empty { padding: 42px 20px; border: 1px solid #eadac0; border-radius: 22px; text-align: center; background: #fff; }
.library-empty[hidden] { display: none; }
.library-empty > span { color: var(--gold); font-size: 1.6rem; }
.library-empty h3 { margin: .5rem 0; font-size: 2rem; }
.library-empty p { margin: 0; color: var(--muted); }

.compact-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 22px clamp(18px, 5vw, 42px); color: #b9cacc; background: #041923; font-size: .73rem; }
.compact-footer p { margin: 0; }
.compact-footer a { color: #ffcf62; text-underline-offset: 4px; }
.compact-footer > div { display: flex; justify-content: flex-end; gap: 1rem; }

.watch-page .app-shell { color: #fff; background: var(--ink); }
.compact-watch { padding: 26px clamp(18px, 5vw, 42px) 34px; background: radial-gradient(circle at 85% 0, #154c59, transparent 35%), var(--ink); }
.back-link { display: inline-block; margin-bottom: 18px; color: #c4d4d6; font-size: .76rem; font-weight: 900; text-decoration: none; }
.video-shell.watch-player { box-sizing: border-box; position: relative; width: 100%; aspect-ratio: var(--video-aspect, 16 / 9); margin: 0; overflow: hidden; border: 6px solid #e6bb5d; border-radius: 24px; background: #000; box-shadow: 0 20px 45px rgba(0,0,0,.42), 0 0 0 2px #6e4812; }
.video-shell.watch-player.is-portrait { width: min(100%, 430px); margin-inline: auto; }
.video-shell iframe, .video-shell video { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.video-shell video { object-fit: contain; }
.player-poster { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.big-play { width: 74px; height: 74px; }
.video-shell.is-playing .big-play { opacity: 0; pointer-events: none; }
.watch-copy { padding: 22px 2px 0; }
.watch-copy h1 { max-width: none; margin: .25rem 0 .45rem; font-size: clamp(2.7rem, 7vw, 4.4rem); line-height: .9; }
.watch-copy > p:last-child { max-width: 620px; margin: 0; color: #bed0d2; line-height: 1.55; }
.watch-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); }
.share-link { color: #c4d4d6; font-size: .75rem; font-weight: 900; text-underline-offset: 4px; }
.share-button { padding: .6rem 0; border: 0; background: none; cursor: pointer; }
.next-episode { color: #fff; font-size: .78rem; font-weight: 900; text-decoration: none; }
.next-episode span { color: #ffcf62; }
.compact-related { padding: 30px clamp(18px, 5vw, 42px) 42px; color: var(--ink); background: var(--cream); }
.compact-related .library-topline > a { color: var(--red); font-size: .75rem; font-weight: 900; }
.related-library { grid-template-columns: repeat(4, 1fr); gap: 18px 12px; }
.related-library .video-card-copy strong { font-size: .95rem; }

@media (max-width: 700px) {
  .app-shell { box-shadow: none; }
  .app-header { min-height: 62px; padding: 0 14px; }
  .app-identity { gap: 8px; }
  .app-brand img { width: 72px; height: 48px; }
  .tv-wordmark { padding-left: 8px; font-size: .9rem; }
  .app-header nav a { padding: .48rem .66rem; font-size: .63rem; }
  .compact-hero { min-height: 205px; padding: 26px 20px; background-position: 60% 55%; }
  .compact-hero h1 { font-size: clamp(3.4rem, 15vw, 4.7rem); }
  .compact-hero-copy > span { max-width: 340px; font-size: .88rem; line-height: 1.45; }
  .compact-library { padding: 22px 14px 34px; }
  .library-topline { margin-bottom: 14px; }
  .filter-bar { margin-right: -14px; margin-bottom: 17px; }
  .video-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .video-thumb { border-radius: 12px; }
  .card-play { left: 7px; bottom: 7px; width: 29px; height: 29px; font-size: .62rem; }
  .video-card-copy { padding-top: .55rem; }
  .video-card-copy small { font-size: .52rem; }
  .video-card-copy strong { font-size: .98rem; }
  .compact-footer { align-items: flex-start; flex-direction: column; padding: 20px 16px; }
  .compact-footer > div { justify-content: flex-start; }
  .compact-watch { padding: 18px 14px 28px; }
  .video-shell.watch-player { border-width: 4px; border-radius: 17px; }
  .big-play { width: 62px; height: 62px; }
  .watch-copy h1 { font-size: 2.8rem; }
  .watch-meta { align-items: flex-start; flex-direction: column; }
  .compact-related { padding: 25px 14px 34px; }
  .related-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .app-header nav a { padding-inline: .5rem; }
  .compact-hero h1 { font-size: 3.25rem; }
  .video-card-copy strong { font-size: .9rem; }
  .compact-footer > div { flex-direction: column; gap: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .video-card:hover, .video-card:hover .video-thumb img { transform: none; }
}
