:root{--bg:#0f0f0f;--panel:#212121;--chip:#272727;--text:#f1f1f1;--muted:#aaa;--red:#f00}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font-family:Roboto,Arial,sans-serif}
body.player-open{overflow:hidden}
header{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:24px;padding:10px 20px;background:var(--bg);border-bottom:1px solid #303030}
.logo{display:flex;align-items:center;gap:8px;color:var(--text);text-decoration:none;font-weight:700;font-size:20px;letter-spacing:-.5px}
.brand-logo-img{width:28px;height:28px;object-fit:contain;border-radius:6px;display:block;flex:none}
#searchForm{flex:1;max-width:640px;margin:0 auto;display:flex;height:44px}
#searchForm input{flex:1;min-width:0;background:#121212;border:1px solid #303030;border-right:0;border-radius:24px 0 0 24px;color:var(--text);padding:0 18px;font-size:16px;outline:none;transition:border-color .18s}
#searchForm:focus-within input,#searchForm:focus-within button{border-color:#555}
#searchForm button{width:64px;display:grid;place-items:center;background:#282828;border:1px solid #303030;border-radius:0 24px 24px 0;cursor:pointer;color:var(--text);transition:background .18s,border-color .18s}
#searchForm button:hover{background:#3a3a3a}
#searchForm button:focus-visible{outline:2px solid #f1f1f1;outline-offset:2px}
#searchForm button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#downloadsButton{position:relative;display:flex;align-items:center;gap:8px;flex:none;padding:9px 14px;border:1px solid #383838;border-radius:22px;background:#202020;color:var(--text);font-size:14px;font-weight:600;cursor:pointer}
#downloadsButton:hover{background:#303030}
#downloadsButton svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
main{flex:1;padding:24px}
#status{color:var(--muted);text-align:center;margin:32px auto;display:flex;align-items:center;justify-content:center;min-height:64px}
.circle-spinner{
  width:44px;
  height:44px;
  border:3px solid rgba(255,255,255,.12);
  border-top-color:#ff0033;
  border-radius:50%;
  animation:circleSpin .8s linear infinite;
  margin:20px auto;
}
.circle-spinner.circle-spinner-sm{
  width:26px;
  height:26px;
  border-width:2.5px;
  margin:12px auto;
}
@keyframes circleSpin{
  to{transform:rotate(360deg)}
}
.feed-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px}
.feed-heading h1{font-size:20px;font-weight:600;margin:0}
#pullRefresh{font-size:12px;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;opacity:0;transition:opacity .2s,transform .2s}
#pullRefresh.visible{opacity:1;transform:translateY(0)}
#pullRefresh.active{color:#ff7a7a}
#grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px 16px}
#loadMore{height:1px}
.card .thumb{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#222;cursor:pointer}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.dur{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.8);padding:2px 5px;border-radius:4px;font-size:12px;font-weight:500}
.meta{padding:10px 4px}
.meta h3{margin:0 0 4px;font-size:15px;line-height:1.35;font-weight:500;cursor:pointer;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.meta p{margin:0 0 10px;color:var(--muted);font-size:13px}
.dl{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#ff3030,#d90000);color:#fff;border:1px solid #ff4b4b;border-radius:22px;padding:9px 17px;font-weight:700;font-size:14px;cursor:pointer;box-shadow:0 3px 12px #f002;transition:transform .16s,box-shadow .16s,background .16s}
.dl svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dl:hover{background:linear-gradient(135deg,#ff4848,#e00000);transform:translateY(-1px);box-shadow:0 5px 16px #f004}
.dl:active{transform:translateY(0)}
.dl:focus-visible{outline:2px solid #fff;outline-offset:3px}
.overlay{position:fixed;inset:0;display:flex;align-items:stretch;justify-content:center;z-index:50;padding:0}
.overlay[hidden]{display:none}
#playerModal{background:#0f0f0f}

/* Quality Selection PiP Popup over playing video / feed */
#dlModal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:80;
  padding:16px;
}
#dlModal[hidden]{display:none}
#dlModal .modal{
  position:relative;
  width:min(100%,390px);
  max-height:85vh;
  padding:20px 22px 24px;
  background:rgba(26,26,29,.95);
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  box-shadow:0 24px 60px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  overflow:hidden;
  animation:pipPopIn .2s cubic-bezier(0.16,1,0.3,1);
}
@keyframes pipPopIn{
  from{transform:scale(.94) translateY(8px);opacity:0}
  to{transform:scale(1) translateY(0);opacity:1}
}
#dlModal h2{
  margin:0 36px 14px 0;
  font-size:16px;
  font-weight:600;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  letter-spacing:-.2px;
}
#dlModal .close{
  position:absolute;
  right:14px;
  top:14px;
  width:30px;
  height:30px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#bbb;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:13px;
  transition:all .15s ease;
}
#dlModal .close:hover{
  background:rgba(255,255,255,.2);
  color:#fff;
}
#dlModal .tabs{
  display:flex;
  gap:6px;
  margin-bottom:12px;
  background:rgba(255,255,255,.06);
  padding:4px;
  border-radius:12px;
}
#dlModal .tab{
  flex:1;
  text-align:center;
  background:transparent;
  color:#aaa;
  border:0;
  border-radius:8px;
  padding:7px 10px;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  transition:all .15s ease;
}
#dlModal .tab.on{
  background:rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
}
#dlModal .opts{
  display:grid;
  gap:6px;
  max-height:260px;
  overflow-y:auto;
  padding-right:2px;
  scrollbar-width:thin;
  scrollbar-color:#444 transparent;
}
#dlModal .opts[hidden],.opts[hidden]{
  display:none !important;
}
#dlModal .opt{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(255,255,255,.05);
  color:#eee;
  border:1px solid rgba(255,255,255,.07);
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-size:13.5px;
  font-weight:500;
  transition:all .15s ease;
}
#dlModal .opt:hover{
  background:rgba(255,0,51,.15);
  border-color:rgba(255,0,51,.5);
  color:#fff;
}
#dlModal .opt small{
  color:#888;
  font-size:12px;
}
#dlModal #prog{
  margin-top:10px;
  font-size:12.5px;
  color:#71dda0;
  text-align:center;
}

/* Chrome-style Downloads Flyout Tab / PiP Panel */
#downloadsModal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  z-index:75;
  padding:64px 20px 20px;
}
#downloadsModal[hidden]{display:none}
.downloads-screen{
  position:relative;
  width:min(100%,430px);
  height:auto;
  max-height:min(580px,calc(100dvh - 84px));
  border-radius:18px;
  background:rgba(22,22,25,.96);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 24px 64px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.07);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  padding:16px 18px 20px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  animation:pipFlyoutIn .22s cubic-bezier(0.16,1,0.3,1);
}
@keyframes pipFlyoutIn{
  from{transform:translateY(-12px) scale(.98);opacity:0}
  to{transform:translateY(0) scale(1);opacity:1}
}
.downloads-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 0 12px;
  border-bottom:1px solid rgba(255,255,255,.1);
  flex:none;
}
.downloads-header h2{
  margin:0;
  font-size:17px;
  font-weight:600;
  color:#fff;
  letter-spacing:-.3px;
}
.downloads-header p{margin:3px 0 0;font-size:11px;color:#888;display:block}
.downloads-header-actions{display:flex;align-items:center;gap:8px}
.downloads-header-actions .close{
  position:static;
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#bbb;
  font-size:13px;
  border:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:all .15s ease;
}
.downloads-header-actions .close:hover{
  background:rgba(255,255,255,.18);
  color:#fff;
}
.clear-history-btn{
  display:inline-flex;
  align-items:center;
  padding:5px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#ccc;
  font-size:11.5px;
  font-weight:500;
  cursor:pointer;
  transition:all .18s ease;
}
.clear-history-btn:hover:not(:disabled){
  border-color:#ff4444;
  background:#381c1c;
  color:#ff9999;
}
.clear-history-btn:disabled{
  opacity:.35;
  cursor:default;
  border-color:transparent;
}
#downloadsList{
  display:grid;
  gap:10px;
  padding:12px 2px 2px 0;
  overflow-y:auto;
  flex:1;
  scrollbar-width:thin;
  scrollbar-color:#444 transparent;
}
#downloadsList::-webkit-scrollbar{width:5px}
#downloadsList::-webkit-scrollbar-thumb{background:#444;border-radius:3px}
.downloads-empty{
  display:grid;
  place-items:center;
  gap:4px;
  min-height:150px;
  color:var(--muted);
  text-align:center;
}
.downloads-empty p{
  margin:0;
  color:var(--text);
  font-size:14.5px;
  font-weight:600;
}
.downloads-empty span{
  font-size:12.5px;
  color:#888;
}
.download-item{
  padding:11px 13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  transition:background .15s ease,border-color .15s ease;
}
.download-item:hover{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.12);
}
.download-item-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.download-item-heading h3{
  margin:0 0 3px;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  color:#f0f0f0;
  display:-webkit-box;
  -webkit-line-clamp:1;
  line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.download-item-heading p{
  margin:0;
  color:#888;
  font-size:11px;
}
.download-item-meta{
  display:flex;
  align-items:center;
  gap:6px;
  flex:none;
}
.remove-download{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#777;
  font-size:12px;
  cursor:pointer;
  transition:all .15s ease;
}
.remove-download:hover{
  background:#381c1c;
  color:#ff6666;
}
.download-state{
  flex:none;
  padding:4px 8px;
  border-radius:10px;
  background:#303030;
  color:#ccc;
  font-size:10.5px;
}
.download-state.is-running{background:#33280e;color:#ffd36a}
.download-state.is-queued{background:#18283b;color:#7dd3fc;border:1px solid rgba(125,211,252,.25)}
.download-state.is-done{background:#143324;color:#71dda0}
.download-state.is-error{background:#3a1d1d;color:#ff9a9a}
.fair-usage-notice{
  display:flex;
  align-items:flex-start;
  gap:9px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:9px 12px;
  font-size:11.5px;
  color:#9ca3af;
  margin-bottom:14px;
  line-height:1.45;
}
.fair-usage-notice strong{color:#e5e7eb}
.fair-usage-icon{flex:none;font-size:13px;line-height:1.3}
.download-item.is-queued .bar i{
  width:100% !important;
  background:linear-gradient(90deg, #0284c7, #38bdf8, #818cf8);
  opacity:0.6;
  animation:queuePulse 2s infinite ease-in-out;
}
@keyframes queuePulse{
  0%,100%{opacity:0.3}
  50%{opacity:0.8}
}
.download-item .bar{
  height:4px;
  margin:9px 0 7px;
  border-radius:3px;
  background:rgba(255,255,255,.1);
}
.download-item-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:11px;
  color:#888;
}
.download-file,.retry-download{
  flex:none;
  padding:5px 11px;
  border:1px solid #484848;
  border-radius:14px;
  background:#292929;
  color:#fff;
  font-size:11px;
  text-decoration:none;
  cursor:pointer;
}
.download-file:hover,.retry-download:hover{
  border-color:#888;
  background:#383838;
}
.watch-screen{position:relative;width:100%;height:100%;overflow:auto;background:var(--bg);scrollbar-width:none}
.watch-header{position:relative;width:100%;min-height:56px;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--bg);border-bottom:1px solid #272727;z-index:25}
.watch-header-left{display:flex;align-items:center;gap:14px}
.watch-search-form{flex:1;max-width:520px;display:flex;height:40px;background:#121212;border:1px solid #303030;border-radius:24px;overflow:hidden;margin:0 16px}
.watch-search-form:focus-within{border-color:#1c62b9}
.watch-search-form input{flex:1;padding:0 16px;background:transparent;border:0;color:#fff;font-size:14px;outline:0}
.watch-search-form button{width:56px;background:#222;border:0;border-left:1px solid #303030;color:#aaa;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s}
.watch-search-form button:hover{background:#2c2c2c;color:#fff}
.watch-search-form button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}
.back-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  min-width:40px;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:all .18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 2px 8px rgba(0,0,0,.3);
  flex-shrink:0;
}
.back-button:hover{
  background:rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.3);
  transform:scale(1.06);
}
.back-button:active{
  transform:scale(0.94);
}
.back-button svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.extracting-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px 12px;
  gap:10px;
  text-align:center;
}
.extracting-state p{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#fff;
  letter-spacing:-.2px;
}
.extracting-state span{
  font-size:12px;
  color:#888;
}
.badge-res{
  display:inline-block;
  margin-left:6px;
  padding:1px 5px;
  border-radius:4px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.3px;
  vertical-align:middle;
}
.badge-16k{background:linear-gradient(135deg,#ff0077,#7928ca,#00dfd8);color:#fff}
.badge-8k{background:linear-gradient(135deg,#e02424,#9900ef);color:#fff}
.badge-4k{background:linear-gradient(135deg,#ff0055,#ff5500);color:#fff}
.badge-2k{background:#2563eb;color:#fff}
.badge-hd{background:#374151;color:#e5e7eb}
.watch-title{display:flex;align-items:center;gap:12px}
.watch-content{width:100%;max-width:1240px;margin:0 auto;padding:16px 20px 40px}
.player{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100vh - 140px);background:#000;border-radius:12px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.6)}
.player iframe,#playerIframe{display:block;width:100%;height:100%;border:0;background:#000}
.pbar{display:flex;gap:16px;align-items:center;justify-content:flex-end;padding:12px 0 22px;border-bottom:1px solid #303030}
.related-section{padding-top:20px}
.related-section h2{margin:0 0 14px;font-size:19px}
.related-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.related-card{min-width:0;padding:0;overflow:hidden;border:0;border-radius:10px;background:#181818;color:#fff;text-align:left;cursor:pointer}
.related-card:hover{background:#272727}
.related-thumb{display:block;aspect-ratio:16/9;background:#000}
.related-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.related-title{display:-webkit-box;overflow:hidden;padding:9px 10px 11px;font-size:14px;font-weight:500;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.err{color:#ff6b6b}
.app-footer{padding:26px 20px 30px;border-top:1px solid #222;text-align:center;color:#777;font-size:13px;background:transparent}
.app-footer p{margin:0;letter-spacing:.2px}
.app-footer strong{color:#ccc;font-weight:600}
@media(max-width:700px){
  header{gap:10px;padding:10px 12px}
  .logo span{display:none}
  #searchForm{height:40px}
  #searchForm button{width:52px}
  #downloadsButton{gap:6px;padding:8px 10px;font-size:12px}
  main{padding:12px}
  .watch-header{padding:9px 12px;gap:10px}
  .watch-search-form{display:none}
  .watch-title{gap:8px}
  .watch-title h1{font-size:15px}
  .watch-header-spacer{display:none}
  .back-button{padding:8px}
  .watch-content{margin:0;padding:0 0 24px}
  .player{border-radius:0}
  .player-controls{padding:40px 8px 8px}
  .player-control-row{gap:5px;padding:3px 5px;min-height:38px}
  .control-group{gap:3px}
  .player-control-row button{width:32px;height:32px;font-size:16px}
  .player-control-row #volumeBar{width:48px}
  .player-control-row #fullscreenButton svg{width:20px;height:20px}
  .player-control-row .video-time{font-size:11px}
  .player-settings{bottom:46px}
  .pbar{padding:10px 12px 16px}
  .pbar .dl{padding:8px 12px;font-size:13px}
  .related-section{padding:14px 12px}
  .related-videos{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .related-title{font-size:12px;padding:7px}
  #downloadsModal{padding:54px 10px 10px;justify-content:center;align-items:flex-start}
  .downloads-screen{width:100%;max-height:calc(100dvh - 72px);padding:14px}
  #dlModal{padding:12px}
  #dlModal .modal{width:100%;padding:16px}
}
@media(max-width:420px){
  #downloadsButton span:not(#downloadsBadge),#pDownloadsButton span{display:none}
  #downloadsButton,#pDownloadsButton{width:38px;height:38px;justify-content:center;padding:0}
  #pGetAppButton{padding:7px 10px;font-size:12px}
  .download-state{font-size:10px;padding:4px 7px}
  .watch-title .logo{display:none}
}

#appDownloadModal{z-index:80}



.header-actions{display:flex;align-items:center;gap:10px;flex:none}
.header-btn{position:relative;display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #383838;border-radius:22px;background:#202020;color:var(--text);font-size:14px;font-weight:600;cursor:pointer;transition:background .18s,border-color .18s}
.header-btn:hover{background:#303030;border-color:#505050}
.app-highlight-btn{background:linear-gradient(135deg,#ff3333,#cc0000);border-color:#ff4b4b;color:#fff}
.app-highlight-btn:hover{background:linear-gradient(135deg,#ff4848,#e00000);border-color:#ff6666}



/* App Download Modal */
.app-modal{position:relative;width:min(100%,480px);background:#1e1e1e;border:1px solid #333;border-radius:18px;padding:24px;box-shadow:0 12px 40px rgba(0,0,0,.7);margin:auto}
.app-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.app-modal-header h2{font-size:20px;font-weight:700;margin:0;color:#fff}
.app-modal-desc{color:#aaa;font-size:13.5px;line-height:1.45;margin:0 0 20px}
.app-cards-grid{display:flex;flex-direction:column;gap:12px}
.app-card{display:flex;align-items:center;gap:16px;background:#282828;border:1px solid #383838;border-radius:14px;padding:14px 16px;text-decoration:none;color:#fff;transition:transform .16s,background .16s,border-color .16s}
.app-card:hover{background:#303030;border-color:#555;transform:translateY(-2px)}
.app-card-icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;flex:none}
.android-icon{background:rgba(61,220,132,.15);color:#3ddc84}
.win-icon{background:rgba(0,120,214,.15);color:#0078d6}
.app-card-content{flex:1;min-width:0}
.app-card-content h3{margin:0 0 4px;font-size:15px;font-weight:600}
.app-card-content p{margin:0 0 6px;font-size:12px;color:#aaa;line-height:1.35}
.app-download-tag{font-size:12px;font-weight:700;color:#ff4b4b}
.app-card:hover .app-download-tag{color:#ff7070}

/* YouTube Shorts Shelf */
.shorts-shelf{
  grid-column:1/-1;
  margin:6px 0 16px;
  padding:16px 0 20px;
  border-top:1px solid #282828;
  border-bottom:1px solid #282828;
}
.shorts-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.shorts-icon-svg{
  width:24px;
  height:24px;
  flex:none;
}
.shorts-header h2{
  font-size:18px;
  font-weight:700;
  color:#fff;
  margin:0;
  letter-spacing:-.3px;
}
.shorts-carousel{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:10px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.shorts-carousel::-webkit-scrollbar{
  height:6px;
}
.shorts-carousel::-webkit-scrollbar-thumb{
  background:#383838;
  border-radius:3px;
}
.short-card{
  flex:0 0 168px;
  max-width:175px;
  scroll-snap-align:start;
  background:#181818;
  border:1px solid #2a2a2a;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  cursor:pointer;
  transition:transform .18s,border-color .18s,box-shadow .18s;
}
.short-card:hover{
  transform:translateY(-3px);
  border-color:#444;
  box-shadow:0 8px 24px rgba(0,0,0,.5);
}
.short-thumb{
  position:relative;
  width:100%;
  aspect-ratio:9/16;
  background:#000;
  overflow:hidden;
}
.short-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.shorts-badge{
  position:absolute;
  top:8px;
  left:8px;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(4px);
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:2px 6px;
  border-radius:4px;
  letter-spacing:.4px;
}
.short-meta{
  padding:10px 10px 12px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.short-meta h4{
  font-size:13px;
  font-weight:600;
  line-height:1.35;
  margin:0 0 4px;
  color:#f1f1f1;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
}
.short-meta p{
  font-size:11px;
  color:#888;
  margin:0 0 10px;
}
.short-dl{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 10px;
  background:#242424;
  border:1px solid #383838;
  border-radius:16px;
  color:#eee;
  font-size:11.5px;
  font-weight:600;
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.short-dl:hover{
  background:#ff0000;
  border-color:#ff3333;
  color:#fff;
}
@media(max-width:700px){
  .short-card{
    flex:0 0 138px;
    max-width:145px;
  }
}



