:root{--app-font-sans:'DM Sans',sans-serif;--app-font-display:'Space Grotesk',sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;min-width:320px;font-family:var(--app-font-sans);color:#202b3a;background:#f5f1e8;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{cursor:pointer}

.app-shell { min-height: 100dvh; background: #f5f1e8; }
.topbar {
  height: 72px; display: flex; align-items: center; gap: 30px; padding: 0 clamp(18px, 5vw, 76px);
  background: #fbf9f3; border-bottom: 1px solid #e8e2d7; position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; text-decoration: none; color: #202b3a; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; color: #fff; background: #d71945; border-radius: 12px 12px 12px 4px; box-shadow: 4px 4px 0 #f0c4cc; }
.brand-name { font: 700 17px/1 var(--app-font-display); letter-spacing: -.7px; }
.brand-name span { color: #d71945; }
.top-search { width: min(510px, 47vw); height: 42px; margin-left: auto; display: flex; border: 1px solid #ddd7cc; border-radius: 99px; background: #f5f2eb; overflow: hidden; }
.top-search:focus-within { border-color: #d71945; box-shadow: 0 0 0 3px #d7194516; }
.top-search input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 0 18px; color: #202b3a; background: transparent; font-size: 14px; }
.top-search input::placeholder { color: #898982; }
.search-submit { width: 51px; border: 0; background: transparent; color: #45505e; display: grid; place-items: center; }
.search-submit:hover { color: #d71945; }
.region-tag { font: 600 11px var(--app-font-display); color: #777a77; letter-spacing: .08em; }
.page-wrap { max-width: 1320px; padding: 30px clamp(16px, 4.5vw, 64px) 72px; margin: 0 auto; }
.eyebrow { font: 700 10px var(--app-font-display); letter-spacing: .17em; color: #d71945; text-transform: uppercase; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 2px 0 19px; }
.page-heading h1 { font: 700 clamp(23px, 3vw, 31px)/1.14 var(--app-font-display); letter-spacing: -1.2px; margin: 5px 0 0; }
.page-heading p { color: #73756f; font-size: 13px; margin: 7px 0 0; }
.updated-note { color: #73756f; font-size: 11px; display: flex; align-items: center; gap: 6px; white-space: nowrap; padding-bottom: 4px; }
.category-rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 17px; }
.category-rail::-webkit-scrollbar { display: none; }
.topic-pill { border: 1px solid #e1dbcf; border-radius: 999px; background: #fbf9f3; color: #535c65; padding: 9px 15px; white-space: nowrap; font: 600 12px var(--app-font-display); transition: background .18s, color .18s, border-color .18s, transform .18s; }
.topic-pill:hover { transform: translateY(-1px); border-color: #d71945; }
.topic-pill[aria-pressed="true"] { background: #253244; border-color: #253244; color: #fff; }
.content-panel { background: #fffdf8; border: 1px solid #e5dfd4; border-radius: 18px; padding: clamp(13px, 2vw, 22px); box-shadow: 0 12px 32px #302e2410; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.panel-title { display: flex; align-items: center; gap: 9px; }
.live-dot { width: 8px; height: 8px; border-radius: 100%; background: #d71945; box-shadow: 0 0 0 4px #d7194517; }
.panel-title h2 { font: 700 15px var(--app-font-display); margin: 0; letter-spacing: -.3px; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .95fr); gap: 20px; }
.player-column { min-width: 0; }
.player-frame-shell { aspect-ratio: 16/9; background: #18212c; border-radius: 13px; overflow: hidden; position: relative; isolation: isolate; }
.player-frame { width: 100%; height: 100%; background: #18212c; overflow: hidden; position: relative; }
.player-frame iframe { border: 0; display: block; width: 100%; height: 100%; }

.player-placeholder { height: 100%; display: grid; place-content: center; text-align: center; color: #bdc6cf; gap: 10px; }
.placeholder-icon { margin: auto; opacity: .75; }
.player-placeholder p { margin: 0; font-size: 13px; }
.selected-meta { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 15px 2px 3px; }
.selected-meta h3 { font: 700 17px/1.35 var(--app-font-display); letter-spacing: -.4px; margin: 0 0 7px; }
.channel-line { color: #747873; font-size: 12px; display: flex; align-items: center; gap: 7px; }
.channel-badge { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #efe4d5; color: #6c4e39; font: 700 9px var(--app-font-display); }
.player-topic { flex: none; color: #a13c51; background: #f8e9e9; border-radius: 5px; padding: 6px 9px; text-transform: uppercase; font: 700 9px var(--app-font-display); letter-spacing: .08em; }
.results-column { min-width: 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; padding: 1px 0 10px; }
.results-head strong { font: 700 12px var(--app-font-display); }
.results-head span { color: #85867f; font-size: 11px; }
.video-list { display: flex; flex-direction: column; gap: 8px; max-height: 436px; overflow-y: auto; padding-right: 3px; }
.video-card { width: 100%; min-height: 82px; display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 11px; padding: 7px; text-align: left; border: 1px solid transparent; border-radius: 11px; color: inherit; background: transparent; transition: background .16s, border-color .16s, transform .16s; }
.video-card:hover { background: #f7f3eb; transform: translateY(-1px); }
.video-card[aria-current="true"] { background: #f8eceb; border-color: #efd1d3; }
.thumb-wrap { position: relative; overflow: hidden; width: 122px; aspect-ratio: 16/9; border-radius: 7px; background: #e4dfd5; }
.thumb-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; color: white; background: #19233055; transition: opacity .16s; }
.video-card:hover .play-overlay, .video-card[aria-current="true"] .play-overlay { opacity: 1; }
.video-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.video-copy strong { font: 600 12px/1.38 var(--app-font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-copy span { font-size: 10px; color: #777b7b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-loading { display: grid; gap: 9px; }
.skeleton { border-radius: 10px; min-height: 78px; background: linear-gradient(100deg,#eee9df 20%,#f7f3eb 40%,#eee9df 60%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
.state-card { border: 1px dashed #d9d1c4; border-radius: 12px; padding: 27px 18px; display: grid; justify-items: center; text-align: center; color: #727770; gap: 8px; }
.state-card h3 { color: #303d4b; font: 700 14px var(--app-font-display); margin: 0; }
.state-card p { max-width: 330px; margin: 0; font-size: 12px; line-height: 1.6; }
.retry-button, .load-more { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #ded6ca; background: #fbf8f1; color: #273545; border-radius: 8px; padding: 8px 12px; font: 600 11px var(--app-font-display); }
.retry-button:hover, .load-more:hover { border-color: #d71945; color: #bd163c; }
.load-more { width: 100%; margin-top: 10px; }
.feed-error { margin: 26px auto; max-width: 540px; }
.footer-note { display: flex; justify-content: center; gap: 7px; align-items: center; color: #85857f; font-size: 11px; margin-top: 17px; text-align: center; }
.search-context { color: #777b7b; font-size: 11px; margin-top: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .topbar { height: 64px; gap: 12px; padding: 0 16px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .region-tag { display: none; }
  .top-search { width: auto; flex: 1; }
  .page-wrap { padding-top: 24px; }
  .feed-layout { grid-template-columns: 1fr; gap: 17px; }
  .video-list { max-height: 345px; }
}
@media (max-width: 520px) {
  .topbar { gap: 10px; }
  .brand { gap: 7px; flex-shrink: 0; }
  .brand-name { max-width: none; font-size: 13px; line-height: 1.05; white-space: nowrap; }
  .top-search { height: 39px; }
  .top-search input { padding: 0 11px; font-size: 12px; }
  .search-submit { width: 40px; }
  .page-wrap { padding: 19px 13px 48px; }
  .page-heading { align-items: start; flex-direction: column; gap: 7px; margin-bottom: 14px; }
  .updated-note { padding: 0; }
  .topic-pill { padding: 8px 13px; }
  .content-panel { padding: 11px; border-radius: 14px; }
  .player-frame-shell { border-radius: 9px; }
  .selected-meta { padding-top: 12px; }
  .selected-meta h3 { font-size: 14px; }
  .video-card { grid-template-columns: 112px minmax(0,1fr); gap: 9px; min-height: 75px; }
  .thumb-wrap { width: 112px; }
  .video-copy strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}.shield{position:absolute;z-index:5;background:transparent}
.shield.top{top:0;left:0;right:0;height:56px}
.shield.logo{bottom:0;right:46px;width:84px;height:40px}
.msg-note{background:#fbf3e4;border:1px solid #ecdcb8;color:#6b5a2e;border-radius:10px;padding:10px 12px;font-size:12px;margin-bottom:10px}
#player{position:relative}
#player .shield.full{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:999!important;background:transparent!important;cursor:default}
