/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* STP Tube Finder v2460 */
.tf-app { --tf-a: #E8344E; --tf-b: #6E45E2; --tf-card: var(--surface, #fff); --tf-ink: var(--ink, #16233F); --tf-mut: var(--ink-3, #5A6684); --tf-line: var(--line, #D5DBE7);
  font-size: 17px; line-height: 1.5; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tf-app h2 { font-size: 22px; margin: 0; }
.tf-hero { padding: 22px 16px 16px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, rgba(232, 52, 78, .14), rgba(110, 69, 226, .14)); }
.tf-hi { margin: 0 0 4px; font-size: clamp(24px, 4.5vw, 34px); font-weight: 700; line-height: 1.2; }
.tf-sub { margin: 0 0 14px; color: var(--tf-mut); }
.tf-search { display: flex; max-width: 680px; margin: 0 auto; background: var(--tf-card); border: 2px solid var(--tf-line); border-radius: 40px; overflow: hidden; }
.tf-search:focus-within { border-color: var(--tf-b); }
.tf-search input { flex: 1; min-width: 0; border: 0; padding: 13px 18px; font: inherit; font-size: 18px; background: none; color: var(--tf-ink); outline: 0; }
.tf-mic { border: 0; background: none; font-size: 20px; padding: 0 10px; cursor: pointer; color: var(--tf-ink); }
.tf-go { border: 0; padding: 0 22px; font: inherit; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--tf-a), var(--tf-b)); cursor: pointer; }
.tf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.tf-chip { border: 1px solid var(--tf-line); background: var(--tf-card); color: var(--tf-ink); border-radius: 20px; padding: 7px 14px; font: inherit; font-size: 15px; min-height: 42px; cursor: pointer; white-space: nowrap; }
.tf-chip.on { background: var(--tf-ink); color: var(--tf-card); border-color: var(--tf-ink); }
.tf-nokey { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFF6DC; border: 1px solid #E8C766; color: #3D2F00; }
.tf-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tf-tab { flex: none; padding: 10px 16px; border-radius: 12px; font: inherit; font-weight: 700; background: var(--tf-card); color: var(--tf-ink); border: 1px solid var(--tf-line); cursor: pointer; min-height: 44px; }
.tf-tab.on { background: linear-gradient(90deg, var(--tf-a), var(--tf-b)); color: #fff; border-color: transparent; }
.tf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tf-head select { font: inherit; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--tf-line); background: var(--tf-card); color: var(--tf-ink); min-height: 42px; max-width: 100%; }
.tf-cats { justify-content: flex-start; margin-top: 10px; }
.tf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 10px; }
.tf-tile { text-align: left; background: var(--tf-card); color: var(--tf-ink); border: 1px solid var(--tf-line); border-radius: 16px; padding: 14px; font: inherit; font-weight: 700; cursor: pointer; }
.tf-tile.on { border: 2px solid var(--tf-b); }
.tf-tile em { display: block; font-size: 30px; font-style: normal; line-height: 1.2; }
.tf-tile small { display: block; font-weight: 400; color: var(--tf-mut); font-size: 14px; }
.tf-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tf-list .tf-chip { white-space: normal; text-align: left; }
.tf-status { margin: 0; color: var(--tf-mut); min-height: 1.5em; }
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tf-vid { position: relative; background: var(--tf-card); border-radius: 14px; overflow: hidden; border: 1px solid var(--tf-line); display: flex; flex-direction: column; }
.tf-vid > button.tf-open { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; }
.tf-vid > button.tf-open:focus-visible { outline: 3px solid var(--tf-b); outline-offset: -3px; }
.tf-th { aspect-ratio: 16 / 9; position: relative; background: #222; }
.tf-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-th .tf-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 13px; padding: 1px 6px; border-radius: 6px; }
.tf-th .tf-rank { position: absolute; left: 8px; top: 8px; background: var(--tf-a); color: #fff; font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.tf-th .tf-ccb { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.tf-t { padding: 10px 12px 2px; font-weight: 600; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.tf-m { padding: 0 12px 10px; color: var(--tf-mut); font-size: 14px; }
.tf-heart { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 18px; cursor: pointer; }
.tf-heart.on { background: var(--tf-a); }
.tf-empty { grid-column: 1 / -1; color: var(--tf-mut); margin: 0; }
.tf-easy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 14px; background: var(--tf-card); border: 1px solid var(--tf-line); }
.tf-easy .tf-chip { min-height: 44px; }
.tf-kbhelp { margin: 0; font-size: 15px; color: var(--tf-mut); }
.tf-credit { margin: 0; font-size: 14px; color: var(--tf-mut); text-align: center; }
.tf-credit a { color: inherit; }
.tf-player { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tf-player[hidden] { display: none; }
.tf-pbox { width: min(960px, 100%); background: var(--tf-card); color: var(--tf-ink); border-radius: 14px; overflow: hidden; max-height: 100%; overflow-y: auto; }
.tf-pframe { aspect-ratio: 16 / 9; background: #000; }
.tf-pframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.tf-ptitle { margin: 0; padding: 12px 14px 4px; font-weight: 700; }
.tf-pacts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 8px 14px 14px; }
/* Make it easier */
.tf-app.tf-bigger { font-size: 21px; }
.tf-app.tf-bigger .tf-chip, .tf-app.tf-bigger .tf-tab { font-size: 19px; }
.tf-app.tf-bigger .tf-t { font-size: 20px; }
.tf-app.tf-bigger .tf-m, .tf-app.tf-bigger .tf-tile small { font-size: 17px; }
.tf-app.tf-bigger .tf-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.tf-app.tf-contrast { --tf-card: #000; --tf-ink: #fff; --tf-mut: #fff; --tf-line: #fff; --tf-a: #FFE600; --tf-b: #FFE600; background: #000; color: #fff; }
.tf-app.tf-contrast .tf-hero { background: #000; border: 2px solid #fff; }
.tf-app.tf-contrast .tf-tab.on, .tf-app.tf-contrast .tf-go, .tf-app.tf-contrast .tf-rank { background: #FFE600; color: #000; }
.tf-app.tf-contrast .tf-chip.on { background: #FFE600; color: #000; border-color: #FFE600; }
.tf-app.tf-kbonly *:focus { outline: 4px solid var(--tf-b) !important; outline-offset: 2px; }
html[data-theme="dark"] .tf-app { --tf-card: #1B2236; --tf-ink: #EEF1F8; --tf-mut: #AAB3C8; --tf-line: #3A4560; color: var(--tf-ink); }
html[data-theme="dark"] .tf-app .tf-hero { background: linear-gradient(135deg, rgba(232, 52, 78, .22), rgba(110, 69, 226, .26)); }
[data-theme=dark] .tf-nokey { background: #2E2710; border-color: #6B5A1C; color: #F6E7B0; }
@media (max-width: 600px) {
  .tf-hero { padding: 16px 10px 12px; }
  .tf-go { padding: 0 14px; }
  .tf-search input { padding: 12px 12px; font-size: 17px; }
  .tf-grid { grid-template-columns: 1fr; }
  .tf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tf-soon { grid-column: 1 / -1; padding: 16px; border-radius: 14px; border: 1px dashed var(--tf-line); background: var(--tf-card); }
.tf-soon p { margin: 0 0 12px; }
.tf-pick { position: relative; display: inline-flex; }
.tf-pick select { appearance: none; -webkit-appearance: none; border: 1px solid var(--tf-line); background: var(--tf-card); color: var(--tf-ink); border-radius: 20px; padding: 7px 30px 7px 14px; font: inherit; font-size: 15px; min-height: 42px; cursor: pointer; }
.tf-pick::after { content: '\25BE'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--tf-ink); font-size: 13px; }
.tf-pick.on select { background: var(--tf-ink); color: var(--tf-card); border-color: var(--tf-ink); }
.tf-pick.on::after { color: var(--tf-card); }
.tf-app.tf-bigger .tf-pick select { font-size: 19px; }
.tf-app.tf-contrast .tf-pick.on select { background: #FFE600; color: #000; }
.tf-status:empty { display: none; }
@media (max-width: 600px) {
  .tf-hero .tf-chips { display: grid; grid-template-columns: 1fr 1fr; }
  .tf-hero .tf-chip, .tf-hero .tf-pick, .tf-hero .tf-pick select { width: 100%; font-size: 14px; padding-left: 10px; padding-right: 10px; }
  .tf-hero .tf-pick select { padding-right: 24px; text-align: left; }
  .tf-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .tf-cats .tf-chip { flex: none; }
  .tf-easy { display: grid; grid-template-columns: 1fr 1fr; }
  .tf-easy b { grid-column: 1 / -1; }
  .tf-easy .tf-chip { width: 100%; white-space: normal; font-size: 14px; }
}
/* v2760b: Pick dates (From / To) and the YouTube date note */
.tf-dates { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tf-dates[hidden] { display: none; }
.tf-dates label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.tf-dates input { border: 1px solid var(--tf-line); background: var(--tf-card); color: var(--tf-ink); border-radius: 12px; padding: 6px 10px; font: inherit; font-size: 14px; min-height: 40px; }
.tf-ytnote { margin: 10px 0 0; font-size: 14px; opacity: .85; }

.tf-res:empty { display: none; }
.tf-res { margin-top: 10px; }
.tf-res .tf-soon { border: 2px solid #e8344e; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; }
.tf-res .tf-soon p { margin: 0; }
@media (max-width: 600px) {
  .app-intro .lead, .tf-hi, .tf-sub { display: none; }
  .tf-hero { padding: 10px 8px 8px; }
  .tf-hero .tf-chips { gap: 6px; margin-top: 8px; }
  .tf-hero .tf-chip, .tf-hero .tf-pick select { min-height: 38px; font-size: 13px; padding-top: 4px; padding-bottom: 4px; }
  .tf-res .tf-soon .btn { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  .tf-search input { font-size: 16px; min-height: 40px; }
  .tf-search .tf-go { font-size: 15px; min-height: 40px; }
  .tf-search .tf-go { padding-left: 14px; padding-right: 14px; }
  .tf-hero .tf-chip, .tf-hero .tf-pick select { font-size: 12px; min-height: 34px; }
  .tf-res .tf-soon p { font-size: 14px; }
  .tf-res .tf-soon .btn { font-size: 15px; min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
  .tf-tab { font-size: 14px; }
}
.tf-nokey { display: none !important; }
