/* 關鍵字先生：影片區塊（課程卡片、篩選列、播放器、方案、登入、帳號）的樣式。
   由 scripts/build-course-css.py 從予安的 styles.css 轉出來，全部限定在 .yt 底下。 */
.yt {
  --bg: #FFFFFF;
  --fg: #0F0F0F;
  --fg-2: #606060;
  --layer: rgba(0,0,0,.05);
  --layer-2: rgba(0,0,0,.1);
  --line: rgba(0,0,0,.1);
  --raised: #FFFFFF;
  --chip-on-bg: #0F0F0F;
  --chip-on-fg: #FFFFFF;
  --brand: #F74D67;          
  --brand-strong: #D62E4B;   
  --brand-fg: #FFFFFF;
  --badge-bg: rgba(0,0,0,.8);
  --font: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', sans-serif;
  --thumb-font: "Noto Serif TC", "Songti TC", serif;
}
* {box-sizing: border-box; }
[hidden] {display: none !important; }
.yt {background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; margin: 0; }
.yt button {font-family: inherit; color: inherit; }
.yt a {color: inherit; text-decoration: none; }
.yt svg.i {width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.yt svg.f {fill: currentColor; stroke: none; }
:focus-visible {outline: 2px solid var(--brand); outline-offset: 2px; }
.yt.app {container-type: inline-size; container-name: app; position: relative; min-height: 100vh; }
.yt .icon-btn {width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; flex: none; }
.yt .icon-btn:hover {background: var(--layer); }
.yt .logo {display: flex; align-items: center; gap: 6px; padding: 0 8px 0 4px; white-space: nowrap; }
.yt .logo-mark {width: 28px; height: 28px; display: block; }
.yt .logo-text {font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.yt .avatar {width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--layer); }
.yt .avatar.me {display: grid; place-items: center; background: #5E7C6B; color: #fff; font-size: 14px; font-weight: 500; }
.yt .empty {padding: 48px 0; text-align: center; color: var(--fg-2); font-size: 16px; line-height: 24px; }
.yt .fine a:hover {color: var(--fg); text-decoration: underline; }
.yt .fine a {color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.yt .fbar {position: sticky; top: 56px; z-index: 10; background: var(--bg); display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; }
.yt .fsearch {flex: 1 1 320px; position: relative; min-width: 0; display: block; }
.yt .fsearch svg {position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; color: var(--fg-2); pointer-events: none; }
.yt .fsearch input {width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px 0 40px; font: inherit; font-size: 15px; background: var(--bg); color: var(--fg); }
.yt .fsearch input:focus, .yt .fsel select:focus {outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.yt .fsels {display: flex; gap: 12px; flex: none; }
.yt .fsel {position: relative; flex: none; display: block; }
.yt .fsel select {appearance: none; -webkit-appearance: none; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 38px 0 14px; font: inherit; font-size: 14px; font-weight: 500; background: var(--bg); color: var(--fg); cursor: pointer; }
.yt .fsel select:hover {background: var(--layer); }
.yt .fsel svg {position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; pointer-events: none; stroke-width: 2; }
.yt .fcount {display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14px; color: var(--fg-2); }
.yt .fcount button {border: 0; background: none; padding: 0; font-size: 14px; font-weight: 500; color: var(--brand-strong); cursor: pointer; }
.yt .chip {flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--layer); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.yt .chip:hover {background: var(--layer-2); }
.yt .chip.on {background: var(--chip-on-bg); color: var(--chip-on-fg); }
.yt .promo {display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin: 4px 0 24px; border-radius: 12px; background: var(--layer); border: 1px solid var(--brand); }
.yt .promo-t {flex: 1; min-width: 220px; }
.yt .promo-t h2 {margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 26px; }
.yt .promo-t p {margin: 0; color: var(--fg-2); font-size: 14px; line-height: 20px; }
.yt .btn {height: 36px; padding: 0 16px; border-radius: 18px; border: 0; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.yt .btn-brand {background: var(--brand-strong); color: var(--brand-fg); }
.yt .btn-brand:hover {filter: brightness(1.08); }
.yt .btn-dark {background: var(--chip-on-bg); color: var(--chip-on-fg); }
.yt .btn-soft {background: var(--layer); }
.yt .btn-soft:hover {background: var(--layer-2); }
.yt .btn-white {background: #fff; color: #0F0F0F; }
.yt .btn-lg {height: 44px; border-radius: 22px; padding: 0 24px; font-size: 15px; }
.yt .grid {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 16px; }
.yt .card {cursor: pointer; min-width: 0; }
.yt .thumb {position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #222; max-width: 100%; }
.yt .thumb img {width: 100%; height: 100%; object-fit: cover; display: block; }
.yt .card .thumb::after {content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 5px rgba(128,128,128,.55); opacity: 0; transition: opacity .15s; pointer-events: none; }
@media (hover: hover) {
.yt .card:hover .thumb::after {opacity: 1; }
}
.yt .card:focus-visible {outline: none; }
.yt .card:focus-visible .thumb::after {opacity: 1; }
.yt .dur {position: absolute; right: 8px; bottom: 8px; background: var(--badge-bg); color: #fff; font-size: 12px; font-weight: 500; line-height: 18px; padding: 0 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.yt .badges {position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 6px; }
.yt .lock {width: 26px; height: 26px; border-radius: 6px; background: var(--badge-bg); color: #fff; display: grid; place-items: center; }
.yt .lock svg {width: 16px; height: 16px; stroke-width: 2; }
.yt .free, .yt .new {background: var(--brand-strong); color: #fff; font-size: 12px; font-weight: 500; line-height: 22px; padding: 0 8px; border-radius: 4px; }
.yt .card-info {display: flex; gap: 12px; padding-top: 12px; }
.yt .card-info .avatar {width: 36px; height: 36px; }
.yt .card-t {font-size: 16px; font-weight: 500; line-height: 22px; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt .meta {color: var(--fg-2); font-size: 14px; line-height: 20px; }
.yt .watch {display: grid; grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; padding-top: 24px; max-width: 1754px; }
.yt .player {position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; max-width: 100%; }
.yt .player > img {width: 100%; height: 100%; object-fit: cover; display: block; }
.yt .big-play {position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.yt .big-play span {width: 68px; height: 48px; border-radius: 14px; background: var(--brand); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.yt .gate {position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: #fff; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px; }
.yt .gate .gl {width: 52px; height: 52px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.yt .gate h3 {margin: 4px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.yt .gate p {margin: 0; font-size: 14px; line-height: 20px; opacity: .85; }
.yt .gate .row {display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.yt .gate .btn-soft {background: rgba(255,255,255,.18); color: #fff; }
.yt .w-title {font-size: 20px; line-height: 28px; font-weight: 700; margin: 12px 0 0; }
.yt .owner {display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.yt .owner .avatar {width: 40px; height: 40px; }
.yt .owner-n {font-size: 16px; font-weight: 500; line-height: 22px; }
.yt .owner-s {font-size: 12px; color: var(--fg-2); line-height: 18px; }
.yt .owner .sp {flex: 1; }
.yt .desc {background: var(--layer); border-radius: 12px; padding: 12px; margin-top: 12px; font-size: 14px; line-height: 20px; cursor: pointer; }
.yt .desc b {font-weight: 500; }
.yt .desc .txt p {margin: 0 0 20px; }
.yt .desc .txt p:last-child {margin-bottom: 0; }
.yt .desc.clamp .txt {display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yt .desc .more {font-weight: 500; margin-top: 4px; }
.yt .upnext h3 {font-size: 16px; font-weight: 500; margin: 0 0 12px; }
.yt .cmp {display: flex; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.yt .cmp .thumb {width: 168px; flex: none; border-radius: 8px; }
.yt .cmp .badges {left: 4px; top: 4px; gap: 4px; }
.yt .cmp .lock {width: 22px; height: 22px; }
.yt .cmp .lock svg {width: 14px; height: 14px; }
.yt .cmp .free, .yt .cmp .new {font-size: 11px; line-height: 18px; padding: 0 6px; }
.yt .cmp .dur {right: 4px; bottom: 4px; }
.yt .cmp-t {font-size: 14px; font-weight: 500; line-height: 20px; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt .cmp .meta {font-size: 12px; line-height: 18px; }
.yt .pl {display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; padding-top: 24px; align-items: start; }
.yt .pl-hero {position: sticky; top: 80px; border-radius: 16px; padding: 24px; color: #fff; }
.yt .pl-hero .thumb {margin-bottom: 20px; }
.yt .pl-hero h1 {font-size: 28px; line-height: 38px; font-weight: 700; margin: 0 0 12px; }
.yt .pl-hero .by {display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.yt .pl-hero .by .avatar {width: 24px; height: 24px; }
.yt .pl-hero .st {font-size: 12px; line-height: 18px; opacity: .75; margin: 8px 0 16px; }
.yt .pl-hero .ds {font-size: 14px; line-height: 20px; opacity: .9; margin: 16px 0 0; }
.yt .pl-row {display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 0; border-radius: 12px; cursor: pointer; }
.yt .pl-row:hover {background: var(--layer); }
.yt .pl-row .n {width: 24px; flex: none; text-align: center; color: var(--fg-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.yt .pl-row .thumb {width: 160px; flex: none; border-radius: 8px; }
.yt .pl-row .badges {left: 4px; top: 4px; gap: 4px; }
.yt .pl-row .lock {width: 22px; height: 22px; }
.yt .pl-row .lock svg {width: 14px; height: 14px; }
.yt .pl-row .free, .yt .pl-row .new {font-size: 11px; line-height: 18px; padding: 0 6px; }
.yt .pl-row .dur {right: 4px; bottom: 4px; }
.yt .pl-row .cmp-t {font-size: 16px; line-height: 22px; }
.yt .sgrid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; padding-top: 24px; }
.yt .stack {position: relative; padding-top: 10px; }
.yt .stack::before {content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 10px; border-radius: 10px 10px 0 0; background: var(--layer-2); }
.yt .stack .cnt {position: absolute; right: 8px; bottom: 8px; background: var(--badge-bg); color: #fff; font-size: 12px; font-weight: 500; line-height: 18px; padding: 0 6px; border-radius: 4px; display: flex; align-items: center; gap: 4px; }
.yt .stack .cnt svg {width: 14px; height: 14px; }
.yt .h1 {font-size: 36px; line-height: 50px; font-weight: 700; margin: 24px 0 0; }
.yt .center {max-width: 880px; margin: 0 auto; padding-top: 40px; }
.yt .center h1 {font-size: 28px; line-height: 38px; font-weight: 700; margin: 0 0 8px; text-align: center; }
.yt .center .lead {text-align: center; color: var(--fg-2); font-size: 16px; line-height: 22px; margin: 0 0 32px; }
.yt .plans {display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yt .plan {border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; position: relative; background: var(--raised); }
.yt .plan.best {border: 2px solid var(--brand); }
.yt .plan .tag {position: absolute; top: -12px; left: 24px; background: var(--brand-strong); color: #fff; font-size: 12px; font-weight: 500; line-height: 24px; padding: 0 10px; border-radius: 12px; }
.yt .plan h2 {margin: 0; font-size: 18px; font-weight: 500; }
.yt .price {font-size: 36px; font-weight: 700; line-height: 44px; font-variant-numeric: tabular-nums; }
.yt .price small {font-size: 16px; font-weight: 400; color: var(--fg-2); }
.yt .plan .eq {color: var(--fg-2); font-size: 14px; margin-top: -12px; }
.yt .plan ul {list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; line-height: 20px; }
.yt .plan li {display: flex; gap: 8px; }
.yt .plan li svg {width: 20px; height: 20px; color: var(--brand); }
.yt .plan .btn {width: 100%; margin-top: auto; }
.yt .fine {text-align: center; color: var(--fg-2); font-size: 12px; line-height: 18px; margin-top: 20px; }
.yt .auth {max-width: 448px; margin: 40px auto 0; border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px 32px; background: var(--raised); }
.yt .auth .logo {justify-content: center; margin-bottom: 20px; }
.yt .auth h1 {font-size: 24px; line-height: 32px; font-weight: 500; margin: 0; text-align: center; }
.yt .auth .sub {text-align: center; color: var(--fg-2); font-size: 14px; margin: 8px 0 24px; }
.yt .gbtn {width: 100%; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.yt .gbtn:hover {background: var(--layer); }
.yt .gbtn svg {width: 20px; height: 20px; }
.yt .or {display: flex; align-items: center; gap: 12px; color: var(--fg-2); font-size: 13px; margin: 20px 0; }
.yt .or::before, .yt .or::after {content: ""; flex: 1; height: 1px; background: var(--line); }
.yt .field {display: grid; gap: 6px; margin-bottom: 16px; }
.yt .field label {font-size: 14px; font-weight: 500; }
.yt .field .in {position: relative; }
.yt .field input {width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--bg); color: var(--fg); }
.yt .field input:focus {outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.yt .field .eye {position: absolute; right: 4px; top: 4px; }
.yt .auth .links {display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; font-size: 14px; }
.yt .auth .links a, .yt .auth .alt a {color: var(--brand-strong); font-weight: 500; cursor: pointer; }
.yt .auth .btn {width: 100%; }
.yt .auth .alt {text-align: center; font-size: 14px; margin-top: 20px; color: var(--fg-2); }
.yt .sent {text-align: center; display: grid; gap: 12px; justify-items: center; }
.yt .sent .gl {width: 56px; height: 56px; border-radius: 50%; background: rgba(247,77,103,.12); color: var(--brand-strong); display: grid; place-items: center; }
.yt .acct {max-width: 720px; margin: 0 auto; padding-top: 32px; display: grid; gap: 16px; }
.yt .acct h1 {font-size: 28px; line-height: 38px; font-weight: 700; margin: 0 0 8px; }
.yt .box {border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; background: var(--raised); }
.yt .box h2 {font-size: 16px; font-weight: 500; margin: 0 0 16px; }
.yt .kv {display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 16px; font-size: 14px; line-height: 20px; }
.yt .kv dt {color: var(--fg-2); }
.yt .kv dd {margin: 0; }
.yt .pill.ending {background: rgba(224,120,0,.14); color: #B45309; }
.yt .pill {display: inline-block; background: rgba(40,160,90,.14); color: #1E8A4C; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px; }
.yt .box .row {display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.yt .box .hint {color: var(--fg-2); font-size: 12px; line-height: 18px; margin: 12px 0 0; }
.toast {position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0F0F0F; color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,.3); max-width: calc(100% - 32px); }
@container app (max-width: 1800px) {
.yt .grid {grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container app (max-width: 1500px) {
.yt .grid {grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container app (max-width: 1100px) {
.yt .watch {grid-template-columns: minmax(0, 1fr); }
.yt .pl {grid-template-columns: minmax(0, 1fr); }
.yt .pl-hero {position: static; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.yt .pl-hero .thumb {margin: 0; grid-row: span 4; }
.yt .sgrid {grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container app (max-width: 1000px) {
.yt .grid {grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yt .fbar {flex-wrap: wrap; }
.yt .fsearch {flex-basis: 100%; }
}
@container app (max-width: 792px) {
.yt .logo-text {font-size: 17px; }
.yt .watch {padding-top: 0; gap: 16px; }
.yt .watch .player {margin: 0 -16px; border-radius: 0; max-width: none; }
.yt .pl-hero {grid-template-columns: minmax(0, 1fr); padding: 20px; }
.yt .pl-hero .thumb {margin-bottom: 16px; grid-row: auto; }
.yt .plans {grid-template-columns: minmax(0, 1fr); gap: 24px; }
.yt .h1 {font-size: 28px; line-height: 38px; }
}
@container app (max-width: 640px) {
.yt .grid {grid-template-columns: minmax(0, 1fr); gap: 24px; }
.yt .sgrid {grid-template-columns: minmax(0, 1fr); gap: 24px; }
.yt .card-t {font-size: 14px; line-height: 20px; }
.yt .meta {font-size: 12px; line-height: 18px; }
.yt .fbar {position: static; flex-wrap: wrap; gap: 8px; padding: 8px 0 16px; }
.yt .fsearch {flex-basis: 100%; }
.yt .fsels {flex: 1 1 100%; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.yt .fsel select {padding: 0 32px 0 12px; }
.yt .fsel svg {right: 10px; }
.yt .promo {padding: 16px; }
.yt .cmp .thumb, .yt .pl-row .thumb {width: 150px; }
.yt .pl-row .cmp-t {font-size: 14px; line-height: 20px; }
.yt .pl-row .n {display: none; }
.yt .auth {border: 0; padding: 12px 0 0; margin-top: 8px; background: none; }
.yt .center {padding-top: 24px; }
.yt .box {padding: 16px; }
.yt .kv {grid-template-columns: minmax(0, 1fr); gap: 2px; }
.yt .kv dd {margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
* {transition: none !important; }
}
.yt .player video {width: 100%; height: 100%; display: block; background: #000; }
.yt .player .soon {position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; background: rgba(0,0,0,.6); font-size: 16px; }
.yt .msg {border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.yt .msg.err {background: rgba(204,0,0,.08); color: #B00020; }
.yt .msg.info {background: var(--layer); color: var(--fg); }
.yt .msg.ok {background: rgba(40,160,90,.12); color: #1E7A45; }
.yt .field .hint {font-size: 12px; color: var(--fg-2); }
.yt .btn[disabled], .yt .gbtn[disabled] {opacity: .5; cursor: default; }
.yt .skip {position: absolute; left: -9999px; }
.yt .skip:focus {left: 16px; top: 8px; z-index: 99; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.yt .card[hidden] {display: none; }
.yt .player .ctrl, .yt .player .big-play {display: none; }
.yt .player.enh .ctrl {display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 4px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; transition: opacity .25s; }
.yt .player.enh:not(.started) .ctrl {opacity: 0; pointer-events: none; }
.yt .player.enh:not(.started) .big-play {display: grid; }
.yt .player.enh.playing.idle .ctrl {opacity: 0; pointer-events: none; }
.yt .player.enh.playing.idle {cursor: none; }
.yt .player video {cursor: pointer; }
.yt .player:fullscreen {border-radius: 0; }
.yt .player:fullscreen video {object-fit: contain; }
.yt .bar {position: relative; height: 4px; margin: 0 2px 4px; background: rgba(255,255,255,.25); cursor: pointer; touch-action: none; transition: height .1s; }
.yt .bar::before {content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -6px; }
.yt .bar:hover, .yt .bar.drag {height: 6px; }
.yt .bar .buf, .yt .bar .played {position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.yt .bar .buf {background: rgba(255,255,255,.45); }
.yt .bar .played {background: var(--brand); }
.yt .bar .knob {position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .1s; }
.yt .bar:hover .knob, .yt .bar.drag .knob, .yt .bar:focus-visible .knob {transform: scale(1); }
.yt .bar .tip {position: absolute; bottom: 14px; transform: translateX(-50%); background: rgba(28,28,28,.9); color: #fff; font-size: 12px; font-weight: 500; padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; pointer-events: none; }
.yt .ctrl-row {display: flex; align-items: center; gap: 2px; height: 44px; }
.yt .ctrl-row .sp {flex: 1; }
.yt .cbtn {width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; padding: 0; }
.yt .cbtn:hover {background: rgba(255,255,255,.12); }
.yt .cbtn svg {width: 26px; height: 26px; }
.yt .cbtn[data-p="toggle"] svg:last-child, .yt .player.playing .cbtn[data-p="toggle"] svg:first-child {display: none; }
.yt .player.playing .cbtn[data-p="toggle"] svg:last-child {display: block; }
.yt .cbtn[data-p="mute"] svg:last-child, .yt .player.muted .cbtn[data-p="mute"] svg:first-child {display: none; }
.yt .player.muted .cbtn[data-p="mute"] svg:last-child {display: block; }
.yt .cbtn.speed {width: auto; min-width: 44px; padding: 0 8px; border-radius: 22px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.yt .vol {display: flex; align-items: center; }
.yt .vol input {width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #fff; cursor: pointer; }
.yt .vol:hover input, .yt .vol:focus-within input {width: 64px; opacity: 1; margin-right: 8px; }
.yt .time {font-size: 13px; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
@media (hover: none) {
.yt .vol input {display: none; }
}
@container app (max-width: 640px) {
.yt .cbtn[data-p="back"], .yt .cbtn[data-p="fwd"] {display: none; }
.yt .cbtn {width: 40px; height: 40px; }
.yt .time {font-size: 12px; padding: 0 4px; }
}
.yt .modal {border: 0; padding: 0; border-radius: 16px; width: calc(100% - 32px); max-width: 760px; max-height: calc(100% - 32px); overflow-y: auto; background: var(--bg); color: var(--fg); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.yt .modal::backdrop {background: rgba(0,0,0,.6); }
.yt .modal-x {position: absolute; top: 8px; right: 8px; }
.yt .modal-body {padding: 32px 24px 24px; outline: none; }
.yt .modal-body h2 {font-size: 24px; line-height: 32px; font-weight: 700; margin: 0 40px 8px; text-align: center; }
.yt .modal-body .lead {text-align: center; color: var(--fg-2); font-size: 15px; line-height: 22px; margin: 0 0 28px; }
.yt .modal-body .fine {margin-top: 16px; }
.yt .linkish {border: 0; background: none; padding: 0; margin-left: 8px; font: inherit; font-weight: 500; color: var(--brand-strong); cursor: pointer; }
@container app (max-width: 640px) {
.yt .modal {width: 100%; max-width: none; max-height: 92%; margin: auto 0 0; border-radius: 16px 16px 0 0; }
.yt .modal-body {padding: 28px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.yt .modal-body h2 {font-size: 20px; line-height: 28px; }
.yt .modal-body .lead {margin-bottom: 24px; }
.yt .modal .plan {padding: 20px; gap: 12px; }
.yt .modal .plan ul {display: none; }
.yt .modal .plans {gap: 20px; }
}
.yt .doc {max-width: 720px; margin: 0 auto; padding: 32px 0 16px; font-size: 15px; line-height: 1.8; }
.yt .doc h1 {font-size: 28px; line-height: 38px; font-weight: 700; margin: 0 0 4px; }
.yt .doc-date {color: var(--fg-2); font-size: 13px; margin: 0 0 24px; }
.yt .doc h2 {font-size: 18px; line-height: 26px; font-weight: 700; margin: 32px 0 8px; }
.yt .doc p {margin: 0 0 12px; }
.yt .doc ul, .yt .doc ol {margin: 0 0 12px; padding-left: 1.4em; display: grid; gap: 6px; }
.yt .doc a {color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.yt .doc b {font-weight: 700; }
.yt .doc-contact {margin-top: 32px !important; padding: 16px; border-radius: 12px; background: var(--layer); }
.yt .doc-nav {display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 14px; }
.yt .box.admin.warn {border-color: #E0A100; background: rgba(224,161,0,.08); }
.yt .fail-list {margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 13px; line-height: 19px; }
.yt .fail-list span {color: var(--fg-2); word-break: break-all; }
.yt .prog {position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.35); }
.yt .prog b {display: block; height: 100%; width: 0; background: var(--brand); }
.yt .resume {position: absolute; left: 12px; bottom: 64px; display: flex; align-items: center; gap: 12px; background: rgba(28,28,28,.9); color: #fff; font-size: 13px; padding: 6px 6px 6px 12px; border-radius: 8px; z-index: 2; }
.yt .resume button {border: 0; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: 500; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.yt .resume button:hover {background: rgba(255,255,255,.26); }
.yt .stats {max-width: 960px; margin: 0 auto; padding-top: 32px; }
.yt .stats h1 {font-size: 28px; line-height: 38px; font-weight: 700; margin: 0 0 8px; }
.yt .stats .hint {color: var(--fg-2); font-size: 13px; line-height: 20px; margin: 0 0 16px; }
.yt .chips-row {display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.yt .chips-row .chip {display: inline-flex; align-items: center; }
.yt .stat-tiles {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.yt .stat-tiles div {border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.yt .stat-tiles b {font-size: 26px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.yt .stat-tiles span {color: var(--fg-2); font-size: 13px; }
.yt .table-wrap {overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.yt .stat-table {width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.yt .stat-table th {text-align: left; font-weight: 500; color: var(--fg-2); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.yt .stat-table td {padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.yt .stat-table tr:last-child td {border-bottom: 0; }
.yt .stat-table td a:hover {text-decoration: underline; }
.yt .stat-table .num {text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.yt .stat-table th:not(:first-child) {text-align: right; }
.yt .stat-table small {color: var(--fg-2); margin-left: 4px; }
.yt .tag-free {margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--brand-strong); border: 1px solid var(--brand); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
@container app (max-width: 640px) {
.yt .stat-tiles {grid-template-columns: minmax(0, 1fr); }
.yt .stat-table {min-width: 560px; }
}
.yt .soon-page {min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; text-align: center; }
.yt .soon-page h1 {font-size: 28px; line-height: 38px; font-weight: 700; margin: 12px 0 0; }
.yt .soon-page p {margin: 0; font-size: 16px; line-height: 24px; color: var(--fg); }
.yt .soon-page .soon-sub {color: var(--fg-2); font-size: 14px; }
.yt .soon-page .soon-sub a {color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.yt .soon-login {font-size: 13px; color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }
.yt .hist {margin-top: 24px; }
.yt .hist h2 {font-size: 20px; line-height: 28px; font-weight: 700; margin: 0 0 16px; }
.yt .admin-tabs {margin: 4px 0 20px; }
.yt .stat-tiles.six {grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yt .stat-tiles.six b {font-size: 22px; line-height: 28px; }
.yt .admin-filter {position: static; padding: 0 0 8px; }
.yt .members td {font-size: 13px; line-height: 19px; }
.yt .members th {text-align: left !important; }
.yt .members th.num {text-align: right !important; }
.yt .members .m-email {font-weight: 500; word-break: break-all; }
.yt .members .m-sub {color: var(--fg-2); font-size: 12px; }
.yt .members .m-stripe {margin-left: 8px; font-size: 12px; color: var(--fg-2); text-decoration: underline; }
.yt .tag-test {margin-left: 6px; font-size: 11px; color: var(--fg-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.yt .pill.st-none, .yt .pill.st-ended {background: var(--layer); color: var(--fg-2); }
.yt .pill.st-ending {background: rgba(224,120,0,.14); color: #B45309; }
.yt .pill.st-pastdue {background: rgba(204,0,0,.1); color: #B00020; }
@container app (max-width: 900px) {
.yt .stat-tiles.six {grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yt .members {min-width: 860px; }
}
.yt { font-family: var(--font); color: var(--fg); font-size: 14px; line-height: normal; }
.yt.app { min-height: 0; }
