/* Kambana OS - Watch */
.app-watch { background: var(--surface); }
.wa {
  position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; color: var(--text); font-size: 14px;
  --wa-card: 230px; --wa-pad: 28px; --wa-shade: var(--surface);
}
.wa button { font-family: inherit; }
.wa-top { position: relative; z-index: 4; flex: none; display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 var(--wa-pad); background: var(--surface); border-bottom: 1px solid var(--line); }
.wa-brand { display: flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.01em; flex: none; }
.wa-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f43f5e, #9a3412); box-shadow: 0 4px 14px -4px rgba(244, 63, 94, .6); }
.wa-tabs { display: flex; gap: 2px; margin-left: 10px; }
.wa-tab { height: 32px; padding: 0 13px; white-space: nowrap; border: 0; border-radius: 16px; background: none; color: var(--text-2); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.wa-tab:hover { color: var(--text); background: var(--hover); }
.wa-tab.on { color: var(--text); background: var(--tile); }
.wa-top-fill { flex: 1; }
.wa-search { display: flex; align-items: center; gap: 7px; width: min(280px, 34vw); height: 34px; padding: 0 12px; border-radius: 17px; background: var(--tile); color: var(--text-2); border: 1px solid transparent; }
.wa-search:focus-within { border-color: var(--accent); background: var(--surface); }
.wa-search-in { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.wa-net { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 600; background: rgba(245, 158, 11, .16); color: #d97706; }
.wa-net[hidden] { display: none; }

.wa-main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 30px; scroll-behavior: auto; }
.wa-main::-webkit-scrollbar { width: 10px; }
.wa-main::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* hero */
.wa-hero, .wa-details { position: relative; min-height: 400px; height: min(56vh, 470px); display: flex; align-items: flex-end; padding: 40px var(--wa-pad) 44px; overflow: hidden; color: #fff; background: var(--wa-bg, #111); }
.wa-hero-bg { position: absolute; inset: 0; }
.wa-hero-img { position: absolute; inset: -40px; background-size: cover; background-position: center 30%; filter: blur(22px) saturate(1.3) brightness(.75); opacity: .9; animation: wa-fade .8s ease; }
.wa-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--wa-shade) 0%, transparent 34%), linear-gradient(90deg, rgba(5, 7, 12, .92) 0%, rgba(5, 7, 12, .6) 45%, rgba(5, 7, 12, .15) 80%); }
.wa-hero-info { position: relative; max-width: 620px; animation: wa-rise .6s var(--ease); }
.wa-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fda4af; }
.wa-hero h1, .wa-details h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 52px); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; margin: 8px 0 10px; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.wa-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-meta span { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); }
.wa-hero p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wa-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.wa-btn { height: 40px; padding: 0 18px 0 15px; border: 0; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .15s var(--ease), background .15s, box-shadow .15s; }
.wa-btn:hover { background: rgba(255, 255, 255, .26); }
.wa-btn.primary { background: #fff; color: #0b0f18; }
.wa-btn.primary:hover { background: #f1f5f9; }
.wa-btn.sm { height: 32px; font-size: 12.5px; padding: 0 13px 0 11px; }
.wa-btn:focus-visible, .wa-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.wa-hero-dots { position: absolute; right: var(--wa-pad); bottom: 22px; display: flex; gap: 5px; }
.wa-hero-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .4); transition: width .3s; }
.wa-hero-dots i.on { width: 20px; background: #fff; }

.wa-notice { display: flex; align-items: center; gap: 12px; margin: 6px var(--wa-pad) 6px; padding: 11px 14px; border-radius: 14px; background: rgba(245, 158, 11, .12); color: var(--text); font-size: 13px; border: 1px solid rgba(245, 158, 11, .25); }
.wa-notice > .ic { color: #d97706; flex: none; }
.wa-notice span { flex: 1; }
.wa-notice b { margin-right: 4px; }
.wa-notice .wa-btn { background: var(--tile); color: var(--text); backdrop-filter: none; }

/* rows */
.wa-row { padding: 10px 0 4px; }
.wa-row-head { display: flex; align-items: baseline; gap: 10px; padding: 0 var(--wa-pad); }
.wa-row-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.005em; }
.wa-row-note { font-size: 12px; color: var(--text-3); }
.wa-track { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 12px var(--wa-pad) 14px; scroll-padding-left: var(--wa-pad); scrollbar-width: none; }
.wa-track::-webkit-scrollbar { display: none; }
.wa-card { flex: 0 0 auto; width: var(--wa-card); border: 0; padding: 0; background: none; color: var(--text); text-align: left; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform .2s var(--ease); outline: none; }
.wa-card-art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #1a2030; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 6px 18px -10px rgba(0, 0, 0, .5); transition: box-shadow .2s; }
.wa-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.wa-card-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.1; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.has-img .wa-card-ph { display: none; }
.wa-card-bar { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.wa-card-bar i { display: block; height: 100%; background: #f43f5e; }
.wa-card-txt { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; min-width: 0; }
.wa-card-txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-card-txt small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-card:hover .wa-card-art img { transform: scale(1.05); }
.wa-card:hover .wa-card-art { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 26px -12px rgba(0, 0, 0, .6); }
.wa-card:focus-visible .wa-card-art, .wa-tv .wa-card:focus .wa-card-art { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent), 0 16px 30px -12px rgba(0, 0, 0, .7); }
.wa-card:focus-visible, .wa-tv .wa-card:focus { transform: scale(1.06); z-index: 2; }
.wa-skel { pointer-events: none; }
.wa-skel .wa-card-art, .wa-skel b, .wa-skel small { background: linear-gradient(90deg, var(--tile), var(--tile-hover), var(--tile)); background-size: 200% 100%; animation: wa-skel 1.4s linear infinite; box-shadow: none; }
.wa-skel b { height: 13px; width: 70%; border-radius: 6px; }
.wa-skel small { height: 10px; width: 40%; border-radius: 5px; }
@keyframes wa-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.wa-h1 { margin: 24px var(--wa-pad) 6px; font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.01em; }
.wa-h1 span { color: var(--text-2); }
.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 16px; padding: 14px var(--wa-pad) 10px; }
.wa-grid .wa-card { width: auto; }
.wa-loading { display: flex; align-items: center; gap: 10px; padding: 20px var(--wa-pad); color: var(--text-2); }
.wa-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 60px 24px 40px; color: var(--text-2); }
.wa-state-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); color: var(--text-2); margin-bottom: 6px; }
.wa-state h2 { margin: 0; color: var(--text); font-size: 20px; }
.wa-state p { margin: 0 0 10px; max-width: 420px; line-height: 1.5; }
.wa-state .wa-btn:not(.primary) { background: var(--tile); color: var(--text); }
.wa-state .wa-btn.primary { background: var(--accent); color: var(--accent-fg); }
.wa-credit { margin: 22px var(--wa-pad) 0; font-size: 11.5px; color: var(--text-3); }

/* details */
.wa-details { height: auto; min-height: min(70vh, 540px); align-items: center; padding-top: 36px; }
.wa-details-in { position: relative; display: flex; gap: 32px; align-items: center; width: 100%; animation: wa-rise .5s var(--ease); }
.wa-poster { position: relative; flex: none; width: clamp(150px, 24%, 280px); aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); }
.wa-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wa-details-txt { min-width: 0; max-width: 680px; }
.wa-back { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border: 0; border-radius: 15px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; margin-bottom: 8px; }
.wa-back:hover { background: rgba(255, 255, 255, .24); }
.wa-back:focus-visible, .wa-tv .wa-back:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.wa-desc { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-height: 9.6em; overflow: auto; }
.wa-prog { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.wa-prog-bar { width: 200px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.wa-prog-bar i { display: block; height: 100%; background: #f43f5e; }
.wa-warn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #fecaca; }

/* player */
.wa-player { position: absolute; inset: 0; z-index: 10; background: #000; color: #fff; outline: none; cursor: none; }
.wa-player.show-ui, .wa-player.paused { cursor: auto; }
.wa-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.wa-p-status { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255, 255, 255, .85); font-size: 14px; pointer-events: none; }
.wa-p-status[hidden] { display: none; }
.wa-p-status.err { pointer-events: auto; background: rgba(0, 0, 0, .6); text-align: center; padding: 20px; }
.wa-p-status.err b { max-width: 420px; font-size: 16px; }
.wa-p-status .spinner { width: 34px; height: 34px; border-width: 3px; }
.wa-p-top, .wa-p-bottom { position: absolute; left: 0; right: 0; z-index: 2; padding: 16px 22px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.wa-player.show-ui .wa-p-top, .wa-player.show-ui .wa-p-bottom, .wa-player.paused .wa-p-top, .wa-player.paused .wa-p-bottom { opacity: 1; pointer-events: auto; }
.wa-p-top { top: 0; display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); }
.wa-p-title b { display: block; font-size: 16px; }
.wa-p-title small { color: rgba(255, 255, 255, .7); }
.wa-p-bottom { bottom: 0; padding-top: 40px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); }
.wa-p-seek { display: flex; align-items: center; gap: 12px; }
.wa-seek { flex: 1; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #f43f5e var(--p, 0%), rgba(255, 255, 255, .3) var(--p, 0%)); cursor: pointer; }
.wa-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(244, 63, 94, .4); }
.wa-seek::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }
.wa-time { font-size: 12.5px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); min-width: 100px; text-align: right; }
.wa-p-ctl { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.wa-p-fill { flex: 1; }
.wa-pbtn { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.wa-pbtn:hover { background: rgba(255, 255, 255, .14); }
.wa-pbtn.big { width: 54px; height: 54px; background: #fff; color: #0b0f18; }
.wa-pbtn.flip .ic { transform: scaleX(-1); }
.wa-pbtn:focus-visible, .wa-tv .wa-pbtn:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); transform: scale(1.08); }
.wa-p-vol { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); }
.wa-vol { width: 100px; accent-color: #f43f5e; }

@keyframes wa-fade { from { opacity: 0; } to { opacity: .9; } }
@keyframes wa-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* TV mode: 10-foot sizes */
.wa.wa-tv { font-size: 18px; --wa-card: 300px; --wa-pad: 56px; }
.wa-tv .wa-top { height: 84px; }
.wa-tv .wa-tab { height: 42px; font-size: 17px; padding: 0 18px; border-radius: 21px; }
.wa-tv .wa-tab:focus { outline: none; background: #fff; color: #0b0f18; }
.wa-tv .wa-search { height: 44px; border-radius: 22px; width: 340px; }
.wa-tv .wa-hero { height: 66vh; padding-bottom: 60px; }
.wa-tv .wa-hero p { font-size: 18px; }
.wa-tv .wa-btn { height: 52px; font-size: 18px; border-radius: 26px; padding: 0 26px 0 22px; }
.wa-tv .wa-btn:focus { outline: none; background: #fff; color: #0b0f18; transform: scale(1.08); box-shadow: 0 0 0 4px var(--accent); }
.wa-tv .wa-row-head h2 { font-size: 23px; }
.wa-tv .wa-card-txt b { font-size: 17px; }
.wa-tv .wa-card-txt small { font-size: 14px; }
.wa-tv .wa-desc { font-size: 18px; }
.wa-tv .wa-pbtn { width: 56px; height: 56px; }
.wa-tv .wa-pbtn.big { width: 72px; height: 72px; }

/* narrow windows / phone */
.wa-narrow { --wa-card: 170px; --wa-pad: 16px; }
.wa-narrow .wa-tabs { margin-left: 0; }
.wa-narrow .wa-brand b { display: none; }
.wa-narrow .wa-search { width: auto; flex: 1; }
.wa-narrow .wa-top-fill { display: none; }
.wa-narrow .wa-hero { min-height: 340px; }
.wa-narrow .wa-details-in { flex-direction: column; align-items: flex-start; gap: 18px; }
.wa-narrow .wa-poster { width: 130px; }
.wa-narrow .wa-p-vol { display: none; }
