/* Fonts served from this site (no requests to Google). The Burmese font is only downloaded when
   the phone has none of its own; Poppins is cut down to the letters of the logo. */
@font-face { font-family: "Noto Sans Myanmar"; font-weight: 400 700; font-display: swap;
  src: local("Noto Sans Myanmar"), local("NotoSansMyanmar-Regular"),
       url("/static/fonts/noto-sans-myanmar.woff2") format("woff2");
  unicode-range: U+1000-109F, U+200C-200D, U+25CC, U+A92E, U+A9E0-A9FE, U+AA60-AA7F, U+116D0-116E3; }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap;
  src: url("/static/fonts/poppins-800-logo.woff2") format("woff2"); }

/* eroburma — dark navy tube layout */
:root {
  /* dark: a black site with the navy kept for the top bar only */
  --bg: #060606;
  --bg-hdr: #0d0d0e;     /* panels: side menu, pop-ups, the 18+ card */
  --bg-2: #161617;
  --bg-3: #232325;
  --line: #262628;
  --text: #e6e6e8;
  --dim: #9b9ba1;
  --faint: #6c6c73;
  --accent: #2f7dff;
  --accent-hi: #5a98ff;
  --bg-top: #0c1324;     /* the top bar and the shades used inside it */
  --top-line: #1c2843; --top-in: #060a14; --top-3: #18233f;
  --strong: #fff;        /* headings and highlighted words */
  --bg-in: #0f0f10;      /* text boxes */
  --bg-nav: #060606;
  --seen: #8a8a90;
  --good: #46c37b;
  --ok-text: #9be3b4; --ok-line: #1f6b3a; --ok-bg: #12351f;
  --warn-text: #ffd88a; --warn-line: #7a5b12; --warn-bg: #33280c;
  --bad-text: #ffb3b8; --bad-line: #7a2a30; --bad-bg: #3a1518;
  --shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
  --font: Arial, "Helvetica Neue", Helvetica, "Noto Sans Myanmar", "Padauk", sans-serif;
}

/* The site follows the phone's or computer's own light / dark setting; there is no switch. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f9;
    --bg-hdr: #ffffff;
    --bg-2: #e8ecf4;
    --bg-3: #d9e0ec;
    --line: #d3dae6;
    --text: #1d2637;
    --dim: #57647d;
    --faint: #8490a6;
    --accent: #2470f5;
    --accent-hi: #1557d0;
    --strong: #0a1120;
    --bg-in: #ffffff;
    --bg-nav: #ffffff;
    --bg-top: #ffffff; --top-line: #d3dae6; --top-in: #ffffff; --top-3: #d9e0ec;
    --seen: #7b879d;
    --good: #16894a;
    --ok-text: #14693a; --ok-line: #9fd3b4; --ok-bg: #e6f6ec;
    --warn-text: #7a5300; --warn-line: #e3c779; --warn-bg: #fdf4d8;
    --bad-text: #b3202b; --bad-line: #e9a9ae; --bad-bg: #fdecec;
    --shadow: rgba(20, 30, 55, .18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.4 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
html[lang="my"] body { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 12px; }
main.wrap { flex: 1; padding-top: 14px; padding-bottom: 30px; }

/* ---------- logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font: 800 25px/1 "Poppins", Arial, sans-serif; letter-spacing: -1px; color: var(--strong);
}
.logo-ic { width: 32px; height: 32px; flex: none; }
.logo em { font-style: normal; color: var(--accent); }
.gate-box .logo { font-size: 30px; }
.gate-box .logo-ic { width: 38px; height: 38px; }

/* ---------- header ---------- */
.hdr { --line: var(--top-line); --bg-in: var(--top-in); --bg-3: var(--top-3); background: var(--bg-top); border-bottom: 1px solid var(--line); }
.hdr-in {
  max-width: 1560px; margin: 0 auto; padding: 9px 12px;
  display: flex; align-items: center; gap: 12px;
}
.search { flex: 1; display: flex; max-width: 460px; margin-left: auto; min-width: 0; }
.search input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px;
  background: var(--bg-in); color: var(--text);
  border: 1px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px;
  font: inherit; font-size: 16px;
}
.search input:focus { outline: none; border-color: var(--accent); }
.search button {
  width: 46px; border: 0; border-radius: 0 3px 3px 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.search button:hover { background: var(--accent-hi); }
.search { position: relative; }
.sg {
  position: absolute; z-index: 70; top: calc(100% + 4px); left: 0; right: 0; padding: 6px 0;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 14px 40px var(--shadow);
}
.sg b { display: block; padding: 4px 14px 6px; font: 700 11px/1.5 var(--font); letter-spacing: .6px; text-transform: uppercase; color: var(--faint); }
html[lang="my"] .sg b { font-size: 12px; letter-spacing: 0; }
.sg a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text); font-size: 15px; }
.sg a small { color: var(--faint); font-size: 12px; }
.sg a:hover, .sg a.on { background: var(--bg-3); color: var(--strong); }
.found-tags { margin: 0 0 14px; }
.found-tags a small { color: var(--faint); margin-left: 3px; }
.lang {
  font: 700 12px/1 Arial, sans-serif; color: var(--dim);
  border: 1px solid var(--line); border-radius: 3px; padding: 7px 8px;
}
.lang:hover { color: var(--strong); border-color: var(--dim); }

.nav { background: var(--bg-nav); border-bottom: 1px solid var(--line); }
.nav-in {
  max-width: 1560px; margin: 0 auto; padding: 0 6px;
  display: flex; align-items: center; overflow-x: auto; scrollbar-width: none;
}
.nav-in::-webkit-scrollbar { display: none; }
.nav a {
  padding: 10px 10px; white-space: nowrap; font-size: 15px; font-weight: 700;
  color: var(--text); border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--strong); }
.nav a.on { border-bottom-color: var(--accent); color: var(--strong); }
.nav a.tag { font-size: 13px; font-weight: 400; color: var(--dim); }
.nav a.tag:hover, .nav a.tag.on { color: var(--strong); }
.nav .sep { width: 1px; height: 16px; background: var(--line); margin: 0 6px; flex: none; }

.search-tgl { display: none; }
@media (max-width: 560px) {
  /* one compact row: logo ... search icon, lang. The search box drops down when the icon is tapped. */
  .hdr-in { flex-wrap: wrap; gap: 4px 6px; padding: 7px 8px; }
  .logo { font-size: 21px; gap: 6px; }
  .logo-ic { width: 26px; height: 26px; }
  .search-tgl {
    display: grid; place-items: center; width: 38px; height: 34px; margin-left: auto; padding: 0;
    border: 0; border-radius: 3px; background: none; color: var(--text); cursor: pointer;
  }
  .hdr.s-open .search-tgl { background: var(--bg-3); color: var(--strong); }
  .search { display: none; order: 3; flex-basis: 100%; max-width: none; margin: 3px 0 2px; }
  .hdr.s-open .search { display: flex; }
  .lang { padding: 6px 7px; }
  .nav a { padding: 9px 9px; }
  .wrap { padding: 0 8px; }
  main.wrap { padding-top: 10px; }
}

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.sec-head h1, .sec-head h2 { font-size: 17px; font-weight: 700; margin: 0; color: var(--strong); }
.sec-head h1 em { font-style: normal; color: var(--accent-hi); }
.sec-head small { font-size: 12px; font-weight: 400; color: var(--faint); margin-left: 6px; }
.sorter { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.sorter a { padding: 5px 12px; font-size: 12px; color: var(--dim); }
.sorter a + a { border-left: 1px solid var(--line); }
.sorter a.on { background: var(--bg-3); color: var(--strong); }

/* ---------- video grid ---------- */
.grid { display: grid; gap: 14px 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card { min-width: 0; }
.thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg-2); border-radius: 3px;
}
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb video { opacity: 0; transition: opacity .15s; }
.thumb video.on { opacity: 1; }
.thumb::after { /* preview progress bar */
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--accent);
}
.thumb.previewing::after { width: 100%; transition: width 6s linear; }
.dur {
  position: absolute; right: 4px; bottom: 4px; z-index: 1;
  padding: 1px 4px; border-radius: 2px;
  background: rgba(0, 0, 0, .8); color: #fff;
  font: 700 11px/1.4 Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.cnt {   /* how many videos / photos a post holds */
  position: absolute; left: 4px; bottom: 4px; z-index: 1; display: flex; align-items: center; gap: 3px;
  padding: 1px 5px; border-radius: 2px; background: rgba(0, 0, 0, .8); color: #fff;
  font: 700 11px/1.4 Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.cnt svg:not(:first-child) { margin-left: 5px; }
.card .title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 5px; font-size: 13px; line-height: 1.35; color: var(--text);
}
html[lang="my"] .card .title { line-height: 1.6; }
.card .title:visited { color: var(--seen); }          /* already-watched titles look dimmer, like a real tube */
.card:hover .title { color: var(--accent-hi); }
.dur .hd { margin-right: 4px; color: #5a98ff; font-weight: 700; }   /* sits on the dark time label in both modes */
.stats { display: flex; gap: 10px; margin-top: 2px; font-size: 11.5px; color: var(--faint); }
.stats span { display: inline-flex; align-items: center; gap: 3px; }

/* ---------- pager ---------- */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 34px 0 10px; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center;
  border-radius: 3px; font: 700 15px/1 Arial, var(--font);
}
.pager a { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
.pager a:hover { background: var(--bg-3); border-color: var(--accent); color: var(--strong); }
.pager .cur { background: var(--accent); color: #fff; }
.pager .gap { color: var(--faint); min-width: 20px; padding: 0; }
.pager .step { padding: 0 16px; font-size: 14px; }
.pager .next { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .next:hover { background: var(--accent-hi); }
@media (max-width: 560px) { .pager .far { display: none; } }
.empty { color: var(--dim); text-align: center; padding: 60px 0; }
.empty a { color: var(--accent-hi); }

/* ---------- watch page ---------- */
.watch { max-width: 1100px; margin: 0 auto; }
.related-sec { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 10px; }
/* related: always 2 per row on phones, 4 per row from tablet/laptop up (8 videos = 4 rows / 2 rows) */
.related-sec .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .related-sec .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more-grid { margin-top: 14px; }
.more-btn {
  display: block; width: fit-content; margin: 24px auto 0; padding: 11px 26px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--bg-2);
  font: 700 14px var(--font); color: var(--text); cursor: pointer;
}
.more-btn:hover { border-color: var(--accent); color: var(--strong); }
.player { background: #000; margin: 0 -12px; }
@media (max-width: 560px) { .player { margin: 0 -8px; } }
@media (min-width: 700px) { .player { margin: 0; } }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
/* the rest of a post: its other videos and its photos, one under the other */
.post-media { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.post-media.lead { margin-top: 0; }
.post-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 92vh; margin: 0 auto; border-radius: 4px; background: var(--bg-3); }
@media (max-width: 699px) { .post-photo { max-width: none; width: calc(100% + 24px); margin: 0 -12px; border-radius: 0; max-height: none; } }
@media (max-width: 560px) { .post-photo { width: calc(100% + 16px); margin: 0 -8px; } }
.vtitle { font-size: 19px; line-height: 1.35; margin: 0 0 12px; color: var(--strong); font-weight: 700; }
html[lang="my"] .vtitle { line-height: 1.7; }
.vbar { display: flex; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 13px; }
.vbar span + span::before { content: "·"; margin: 0 7px; color: var(--faint); }
.vtags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; }
.vtags .lbl { color: var(--faint); font-size: 12px; margin-right: 2px; }
.vtags a { padding: 6px 12px; font-size: 12.5px; line-height: 1.3; border-radius: 999px; background: var(--bg-2); color: var(--text); }
.vtags a:hover { background: var(--bg-3); color: var(--strong); }
.vtags.parts a { min-width: 34px; padding: 6px 10px; text-align: center; border-radius: 6px; }
.vtags.parts a.on { background: var(--accent); color: #fff; }
.vtags.parts a.next { background: none; box-shadow: inset 0 0 0 1px var(--accent); color: var(--strong); }
.desc { color: var(--dim); font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; margin: 14px 0 0; }

/* ---------- categories ---------- */
.taglist {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.taglist a {
  display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px;
  background: var(--bg-2); border-radius: 3px;
}
.taglist a:hover { background: var(--bg-3); color: var(--strong); }
.taglist small { color: var(--faint); }

/* ---------- age gate ---------- */
.gate {
  position: relative; min-height: 100vh; padding: 16px; display: grid; place-items: center;
  background: radial-gradient(70% 55% at 50% 0%, rgba(47, 125, 255, .16), transparent 70%), var(--bg);
}
.gate-box {
  width: 100%; max-width: 420px; padding: 14px 28px 26px; text-align: center;
  background: var(--bg-hdr); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 24px 70px var(--shadow);
}
.gate-18 {
  width: 60px; height: 60px; margin: 22px auto 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--strong); font: 800 20px/1 "Poppins", Arial, sans-serif;
  background: rgba(47, 125, 255, .12); border: 2px solid var(--accent);
}
.gate-box h1 { font-size: 21px; line-height: 1.4; color: var(--strong); margin: 16px 0 8px; text-wrap: balance; }
.gate-box p { color: var(--dim); font-size: 14px; margin: 0; text-wrap: pretty; }
.gate-box form { margin: 24px 0 0; }
.gate-box .btn { padding: 14px; border-radius: 6px; font-size: 16px; }
.gate-exit { display: inline-block; margin-top: 6px; padding: 10px 12px; color: var(--dim); font-size: 13px; }
.gate-exit:hover { color: var(--strong); text-decoration: underline; }
@media (max-width: 560px) {
  .gate { padding: 24px; }
  .gate-box { max-width: 330px; padding: 10px 18px 14px; }
  .gate-box .langs { margin: 0 -8px 6px 0; }
  .gate-box .langs a { padding: 2px 9px; font-size: 11px; }
  .gate-box .logo { font-size: 23px; }
  .gate-box .logo-ic { width: 28px; height: 28px; }
  .gate-18 { width: 44px; height: 44px; margin-top: 14px; font-size: 15px; }
  .gate-box h1 { font-size: 17px; margin: 10px 0 4px; }
  .gate-box p { font-size: 12.5px; }
  .gate-box form { margin-top: 16px; }
  .gate-box .btn { padding: 11px; font-size: 14.5px; }
  .gate-exit { margin-top: 2px; padding: 8px 12px; font-size: 12px; }
}
.btn {
  display: block; width: 100%; padding: 13px 14px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--accent); color: #fff; font: 700 15px/1.3 var(--font);
}
.btn:hover { background: var(--accent-hi); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--dim); font-weight: 400; }
.btn.ghost:hover { color: var(--strong); border-color: var(--dim); }
.rta-badge, .rta span {
  display: inline-block; padding: 0 4px; border: 1px solid currentColor; border-radius: 2px;
  font: 700 10px/1.5 Arial, sans-serif; margin-right: 3px;
}
.langs { display: flex; justify-content: flex-end; gap: 2px; margin: 0 -14px 14px 0; }
.langs a { padding: 4px 10px; border-radius: 20px; font-size: 12px; color: var(--dim); }
.langs a:hover { color: var(--strong); }
.langs a.on { background: var(--bg-3); color: var(--strong); }
.hdr-langs { margin: 0; flex: none; }
@media (max-width: 479px) {
  .hdr-langs a { padding: 3px 8px; font-size: 11px; }
}
/* the smallest phones (320 px wide): keep the top bar and the video buttons on one row each */
@media (max-width: 359px) {
  .logo { font-size: 18px; gap: 5px; }
  .logo-ic { width: 22px; height: 22px; }
  .hdr-langs a { padding: 3px 6px; }
  .actions { gap: 6px; }
  #share-btn span { display: none; }
}

/* ---------- legal ---------- */
.legal { max-width: 780px; }
.legal h1 { font-size: 20px; color: var(--strong); }
.legal h2 { font-size: 15px; color: var(--strong); margin: 22px 0 6px; }
.legal small { color: var(--faint); }
.legal p, .legal li { color: var(--dim); }
.legal a { color: var(--accent-hi); }
.todo { padding: 8px 12px; border-left: 3px solid #e0a63a; background: var(--bg-2); color: var(--warn-text) !important; }

/* ---------- footer ---------- */
.ftr {
  border-top: 1px solid var(--line); padding: 18px 12px 28px;
  text-align: center; font-size: 13px; color: var(--dim);
}
.ftr a { margin: 0 8px; display: inline-block; }
.ftr a:hover { color: var(--strong); }
.ftr p { margin: 0 8px; display: inline-block; }

/* ---------- card extras ---------- */
.badge-new {
  position: absolute; left: 4px; top: 4px; z-index: 1;
  padding: 0 4px; border-radius: 2px; background: rgba(0, 0, 0, .78); color: #ffd23f;
  font: 700 10px/1.6 Arial, var(--font);
}
.thumb .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: #e5394b; z-index: 1; }
.stats .rt.good { color: var(--good); }

/* ---------- header extras ---------- */
.tg { color: #2aa3e0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 3px; }
.tg:hover { border-color: #2aa3e0; }

/* ---------- watch: actions ---------- */
.player { position: relative; }

/* ---------- custom player ---------- */
.pl { overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pl.idle { cursor: none; }
.pl-tap { position: absolute; inset: 0; z-index: 1; }
.pl-big {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(47, 125, 255, .9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.pl-big svg { width: 30px; height: 30px; }
.pl-big:hover { background: var(--accent); }
.pl.paused .pl-big, .pl.touch:not(.idle) .pl-big { opacity: 1; pointer-events: auto; }
.pl.touch .pl-big { background: rgba(0, 0, 0, .55); box-shadow: none; }
.pl.fresh .pl-big, .pl:not(.touch).paused .pl-big { background: rgba(47, 125, 255, .9); }
.pl.wait .pl-big { opacity: 0; pointer-events: none; }
.pl-spin {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); border-radius: 50%;
  animation: pl-spin .8s linear infinite; display: none; pointer-events: none;
}
.pl.wait .pl-spin { display: block; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

.pl-ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 8px 2px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); transition: opacity .25s;
}
.pl.idle .pl-ui { opacity: 0; pointer-events: none; }
.pl.fresh .pl-ui { display: none; }
.pl-bar { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; margin: 0 4px; }
.pl-track { position: relative; width: 100%; height: 4px; background: rgba(255, 255, 255, .22); transition: height .1s; }
.pl-bar:hover .pl-track, .pl.scrub .pl-track { height: 6px; }
.pl-buf, .pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.pl-buf { background: rgba(255, 255, 255, .35); }
.pl-fill { background: var(--accent); }
.pl-knob {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); transform: scale(0); transition: transform .1s;
}
.pl-bar:hover .pl-knob, .pl.scrub .pl-knob, .pl.touch .pl-knob { transform: scale(1); }
.pl-tip {
  position: absolute; bottom: 20px; transform: translateX(-50%); display: none;
  padding: 2px 6px; border-radius: 2px; background: rgba(0, 0, 0, .85); color: #fff; font: 12px/1.4 Arial, sans-serif;
}
.pl:not(.touch) .pl-bar:hover .pl-tip { display: block; }
.pl-row { display: flex; align-items: center; height: 42px; }
.pl-btn {
  width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
  display: grid; place-items: center; opacity: .9; flex: none;
}
.pl-btn:hover { opacity: 1; color: #fff; }
.pl-btn svg { width: 22px; height: 22px; }
.pl-skip svg { width: 24px; height: 24px; }
.pl-speed { width: auto; padding: 0 8px; font: 700 13px/1 Arial, sans-serif; }
.pl-cc { width: auto; padding: 0 8px; font: 700 13px/1 Arial, sans-serif; opacity: .55; }
.pl-cc.on { opacity: 1; color: var(--accent); }
.pl-qwrap { position: relative; }
.pl-q { width: auto; padding: 0 8px; font: 700 13px/1 Arial, sans-serif; display: flex; align-items: center; white-space: nowrap; }
.pl-q.hd::after {
  content: "HD"; margin-left: 3px; padding: 1px 3px; border-radius: 2px;
  background: var(--accent); font-size: 9px; vertical-align: 2px;
}
.pl-qmenu {
  position: absolute; right: 0; bottom: 44px; min-width: 150px; padding: 4px 0;
  background: rgba(10, 14, 26, .96); border: 1px solid rgba(255, 255, 255, .12); border-radius: 3px;
}
.pl-qmenu button {
  display: block; width: 100%; padding: 9px 14px 9px 30px; border: 0; background: none; cursor: pointer;
  color: #ddd; font: 13px/1.2 Arial, var(--font); text-align: left; white-space: nowrap; position: relative;
}
.pl-qmenu button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pl-qmenu button.on { color: #fff; font-weight: 700; }
.pl-qmenu button.on::before { content: "✓"; position: absolute; left: 11px; color: var(--accent); }
.pl-qmenu b { font-size: 9px; padding: 1px 3px; border-radius: 2px; background: var(--accent); color: #fff; vertical-align: 1px; }
.pl-vol { display: flex; align-items: center; }
.pl-volrange {
  -webkit-appearance: none; appearance: none; width: 0; height: 4px; margin: 0; opacity: 0; cursor: pointer;
  background: linear-gradient(to right, #fff var(--v, 100%), rgba(255, 255, 255, .3) var(--v, 100%));
  transition: width .15s, opacity .15s, margin .15s;
}
.pl-vol:hover .pl-volrange, .pl-volrange:focus { width: 72px; opacity: 1; margin: 0 8px 0 2px; }
.pl-volrange::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.pl-volrange::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.pl.touch .pl-volrange { display: none; }
.pl-time { margin-left: 6px; color: #fff; font: 13px/1 Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-sp { flex: 1; }
@media (max-width: 420px) { .pl-speed { display: none; } }
.pl.fs { width: 100%; height: 100%; margin: 0; background: #000; }
.pl.fs video { height: 100%; aspect-ratio: auto; object-fit: contain; }
.pl.fs .pl-ui { padding: 40px 16px 8px; }

.seek-flash {
  z-index: 2;
  position: absolute; top: 50%; transform: translateY(-50%); padding: 10px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.seek-flash.left { left: 12%; } .seek-flash.right { right: 12%; }
.seek-flash.show { opacity: 1; transition: none; }

/* one row of rounded buttons under the title: like (with the rating %) | dislike, save, share */
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.vote, .vote .seg { display: flex; }
.vote .seg { border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.act {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px;
  border: 0; border-radius: 999px; background: var(--bg-2);
  color: var(--text); font: 700 13px/1 Arial, var(--font); cursor: pointer; white-space: nowrap;
}
.act:hover { color: var(--strong); background: var(--bg-3); }
.seg .act { border-radius: 0; padding: 0 14px; }
.seg .act + .act { box-shadow: inset 1px 0 0 var(--line); padding: 0 15px 0 13px; }
.seg .act.on { color: var(--accent-hi); }
.seg .act[data-vote="-1"].on { color: #e5394b; }
#save-btn.on { color: #e5394b; }
.act.ghost { font-weight: 400; color: var(--faint); background: none; }
.ratepct:empty { display: none; }
@media (max-width: 379px) { .act { padding: 0 12px; gap: 6px; } .seg .act { padding: 0 11px; } }

.share-menu { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.share-menu a, .share-menu button {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: none;
  color: var(--text); font: 700 13px/1 Arial, var(--font); cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { border-color: var(--accent); }
#share-tg { color: #2aa3e0; } #share-viber { color: #a58bf5; } #share-fb { color: #4c8bf5; }

.report-dlg {
  width: min(420px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-top: 3px solid #e5394b;
  border-radius: 4px; background: var(--bg-hdr); color: var(--text);
}
.report-dlg::backdrop { background: rgba(0, 0, 0, .7); }
.report-dlg h3 { margin: 0 0 12px; font-size: 16px; }
.report-dlg label { display: flex; gap: 8px; align-items: center; padding: 7px 0; font-size: 14px; cursor: pointer; }
.report-dlg textarea {
  width: 100%; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-in); color: var(--text); font: 14px var(--font); resize: vertical;
}
.report-done { color: var(--good); font-weight: 700; }
.dlg-btns { display: flex; gap: 8px; margin-top: 12px; }
.dlg-btns .btn { margin: 0; padding: 10px; }

/* small pop-up boxes (folder picker, folder name) */
.dlg {
  width: min(380px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-hdr); color: var(--text); box-shadow: 0 24px 70px var(--shadow);
}
.dlg::backdrop { background: rgba(0, 0, 0, .7); }
.dlg h3 { margin: 0 0 12px; font-size: 16px; color: var(--strong); }
.dlg-note { margin: 0 0 12px; color: var(--dim); font-size: 13px; }
/* "Save to folder" menu that drops down from the Save button */
.fpop {
  position: absolute; z-index: 80; width: min(300px, calc(100vw - 16px)); padding: 6px 0;
  background: var(--bg-hdr); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 50px var(--shadow);
}
.fpop h3 { margin: 0; padding: 10px 16px 12px; font-size: 15px; color: var(--strong); border-bottom: 1px solid var(--line); }
.fpop-list { max-height: 46vh; overflow-y: auto; padding: 6px 0; border-bottom: 1px solid var(--line); }
.frow, .fpop-add {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: 0; background: none;
  color: var(--text); font: 15px/1.3 var(--font); text-align: left; cursor: pointer;
}
html[lang="my"] .frow, html[lang="my"] .fpop-add { line-height: 1.6; }
.frow:hover, .fpop-add:hover { background: var(--bg-3); color: var(--strong); }
.frow svg { flex: none; fill: none; stroke: var(--accent-hi); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.frow.on svg { visibility: visible; }
.frow.on { color: var(--strong); }
.frow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow small { color: var(--faint); font-size: 14px; }
.fpop-add { font-weight: 700; margin-top: 6px; }
.fpop-add .ic { flex: none; }
.fpop .fold-new { padding: 10px 12px 6px; }
.fpop .dlg-note { margin: 0; padding: 10px 16px 6px; }
.fold-new { display: flex; gap: 8px; }
.fold-new input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-in); color: var(--text); font: 16px var(--font);
}
.fold-new input:focus { outline: none; border-color: var(--accent); }
.fold-new .btn { width: auto; flex: none; margin: 0; padding: 0 16px; border-radius: 6px; }
.dlg .dlg-btns { margin-top: 16px; }
.dlg .dlg-btns .btn { border-radius: 6px; font-size: 14px; }

/* ---------- saved / history ---------- */
.folders { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding-bottom: 2px; }
.folders::-webkit-scrollbar { display: none; }
.folders:empty { display: none; }
.fchip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; max-width: 220px;
  border: 0; border-radius: 999px; background: var(--bg-2); color: var(--text); font: 13px/1 var(--font); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fchip small { color: var(--faint); font-size: 11px; }
.fchip:hover { background: var(--bg-3); color: var(--strong); }
.fchip.on { background: var(--accent); color: #fff; font-weight: 700; }
.fchip.on small { color: rgba(255, 255, 255, .8); }
.fchip.add { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); }
.fold-tools { display: flex; gap: 6px; margin: 0 0 12px; }
.qfold {
  position: absolute; top: 4px; right: 38px; z-index: 2; display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer;
}
.qfold svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.qfold:hover { background: rgba(0, 0, 0, .9); }
.local-note { color: var(--faint); font-size: 12px; margin: -4px 0 14px; }
.sorter-btn {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 3px; background: transparent;
  color: var(--dim); font: 12px var(--font); cursor: pointer;
}
.sorter-btn:hover { color: var(--strong); border-color: var(--dim); }

@media (hover: hover) and (pointer: fine) { #share-fb { display: none; } }

/* ---------- accounts and uploads ---------- */
.card-form { max-width: 400px; margin: 4vh auto 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.card-form.wide { max-width: 620px; margin-top: 0; }
.form h1, .form h2 { font-size: 18px; margin: 0 0 12px; color: var(--strong); } .form h2 { font-size: 15px; }
.form label { display: block; margin: 14px 0 5px; font-weight: 700; font-size: 13px; }
.form input[type=text], .form input[type=password], .form textarea, .form input[type=file] {
  width: 100%; padding: 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-in); color: var(--text); font: 15px var(--font);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { margin-top: 16px; }
.form-hint { color: var(--dim); font-size: 12px; margin: 5px 0 0; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px !important; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--dim); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--strong); }
.form-alt { color: var(--dim); font-size: 13px; margin: 16px 0 0; } .form-alt a, .empty a { color: var(--accent-hi); }
.form-check { display: flex !important; gap: 9px; align-items: flex-start; font-weight: 400 !important; color: var(--dim); }
.form-check input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.form-trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-err, .form-ok { padding: 9px 12px; border-radius: 4px; font-size: 13px; margin: 0 0 12px; }
.form-warn { padding: 9px 12px; border-radius: 4px; font-size: 13px; margin: 0 0 12px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); }
.form-warn a, .acc-email a { color: var(--accent-hi); }
.form input[type=email] { width: 100%; padding: 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-in); color: var(--text); font: 15px var(--font); }
.form input.code-in { font-size: 22px; letter-spacing: 6px; text-align: center; }
.form .btn + .btn { margin-left: 8px; }
.form-quiet { background: none; border: 0; padding: 0 20px; margin-top: 0; }
.acc-email { margin: 0 0 6px; overflow-wrap: anywhere; }
.form-err { background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad-text); }
.form-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-text); }
.btn.small { padding: 6px 12px; font-size: 13px; margin-top: 0; }
.btn.danger { background: transparent; border: 1px solid var(--bad-line); color: var(--bad-text); } .btn.danger:hover { background: #7a2a30; border-color: #7a2a30; color: #fff; }
/* new post: the files picked so far */
.up-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.up-list li { display: flex; align-items: center; gap: 10px; padding: 7px 6px 7px 10px; background: var(--bg-in); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.up-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.up-list small { flex: none; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.up-list button { flex: none; width: 26px; height: 26px; border: 0; border-radius: 4px; background: none; color: var(--dim); font: 18px/1 Arial, sans-serif; cursor: pointer; }
.up-list button:hover { background: var(--bg-3); color: var(--strong); }
.up-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form label.up-pick { display: inline-block; width: auto; flex: none; margin: 0; cursor: pointer; }
.up-count { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.up-count b { color: var(--text); }
.up-count.full, .up-count.full b { color: var(--warn-text); }
.up-count.flash { animation: up-flash .5s; }
@keyframes up-flash { 50% { opacity: .25; } }
.up-pick + input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.up-pick:has(+ input:focus-visible) { border-color: var(--accent); color: var(--strong); }
.form.busy .up-pick, .form.busy .up-list button { visibility: hidden; }
/* new post: section and tags as tick pills */
.up-pills { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.up-pills legend { padding: 0; margin: 0 0 6px; font-weight: 700; font-size: 13px; }
.form .up-pills label { display: block; margin: 0; font-weight: 400; cursor: pointer; }
.up-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.up-pills span { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-in); color: var(--text); font-size: 13px; line-height: 1.3; user-select: none; }
.up-pills input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.up-pills input:focus-visible + span { border-color: var(--accent); }
.up-pills input:disabled + span { opacity: .4; cursor: default; }
.form.busy .up-pills { pointer-events: none; opacity: .6; }
.up-progress { height: 10px; background: var(--bg-3); border-radius: 5px; overflow: hidden; margin-top: 16px; }
.up-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.nav a.acct { color: var(--accent-hi); }
.mine { display: flex; flex-direction: column; gap: 8px; }
.mine-row { display: flex; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; flex-wrap: wrap; }
.mine-thumb { width: 112px; aspect-ratio: 16 / 9; background: var(--bg-3); border-radius: 4px; overflow: hidden; flex: none; }
.mine-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mine-info { flex: 1; min-width: 150px; } .mine-info b { display: block; overflow-wrap: anywhere; }
.mine-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 12px; margin-top: 4px; }
.mine-reason { color: var(--bad-text); font-size: 13px; margin: 6px 0 0; }
.mine-acts { display: flex; gap: 6px; align-items: center; }
.chip { padding: 1px 8px; border-radius: 10px; font-size: 12px; border: 1px solid var(--line); }
.chip.ok { border-color: var(--ok-line); color: var(--ok-text); } .chip.wait { border-color: var(--warn-line); color: var(--warn-text); } .chip.bad { border-color: var(--bad-line); color: var(--bad-text); }
details.confirm summary { list-style: none; cursor: pointer; } details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] summary { display: none; }
.prof { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; }
.prof h1 { margin: 0; font-size: 20px; color: var(--strong); } .prof p { margin: 2px 0 0; color: var(--dim); font-size: 13px; }
.prof-info { min-width: 0; }
.prof h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.rank { font: 700 10.5px/1 var(--font); letter-spacing: .4px; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; border: 1px solid currentColor; }
.rank.bronze { color: #c07a3e; } .rank.silver { color: #98a3b3; } .rank.gold { color: #d9a514; }
.prof .prof-stats { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 5px; font-size: 13.5px; }
.prof-stats b { color: var(--strong); font-weight: 700; }
.prof-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.prof-row form { margin: 0; } .prof-row .btn { width: auto; display: inline-block; }
.prof-pic { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-3); overflow: hidden; display: grid; place-items: center; flex: none; color: var(--strong); font: 700 28px Arial, sans-serif; }
.prof-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-pic.wait { outline: 2px dashed var(--warn-line); outline-offset: 2px; }
.prof-pic.tiny { width: 26px; height: 26px; font-size: 13px; }
.vviews { margin: 10px 0 0; color: var(--dim); font-size: 13px; } .vviews b { color: var(--text); }
.byline { display: inline-flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13px; margin: 8px 0 2px; }
.byline b { color: var(--text); } .byline:hover b { color: var(--accent-hi); }

/* ---------- comments ---------- */
.comments { margin: 26px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 860px; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.cm-form textarea { flex: 1; resize: vertical; min-height: 44px; }
.cm-form .btn { width: auto; margin: 0; flex: none; }
.cm-login { color: var(--dim); font-size: 13px; margin: 0 0 14px; } .cm-login a { color: var(--accent-hi); }
.cm { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cm.waiting { opacity: .7; }
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.cm-head b { color: var(--text); font-size: 13px; }
.cm p { margin: 3px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--text); }
.cm-del { background: none; border: 0; color: var(--faint); font-size: 18px; cursor: pointer; padding: 0 6px; line-height: 1; }
.cm-del:hover { color: var(--bad-text); }

/* ---------- shell: header buttons, account menu, side menu ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.hdr-in { max-width: none; }
.search { max-width: 520px; margin: 0 auto; }
.hdr-r { display: flex; align-items: center; gap: 8px; flex: none; }
.ibtn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; flex: none;
  border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer;
}
.ibtn:hover { background: var(--bg-3); color: var(--strong); }
.menu-btn { margin-left: -6px; }
.guest-btn { width: 34px; height: 34px; border: 1px solid var(--line); color: var(--accent-hi); }
.hbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 3px;
  background: var(--accent); border: 1px solid var(--accent); color: #fff; font: 700 13px/1 var(--font); white-space: nowrap;
}
.hbtn:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.hbtn.ghost { background: none; border-color: var(--line); color: var(--text); }
.hbtn.ghost:hover { background: none; border-color: var(--dim); color: var(--strong); }
.lang { height: 34px; display: inline-grid; place-items: center; padding: 0 9px; }
.prof-pic.sm { width: 34px; height: 34px; font-size: 15px; }
.prof-pic.md { width: 42px; height: 42px; font-size: 18px; }
.prof-pic.guest { color: var(--dim); }

.am { position: relative; }
.am > summary { display: block; list-style: none; cursor: pointer; border-radius: 50%; }
.am > summary::-webkit-details-marker { display: none; }
.am > summary:hover .prof-pic, .am[open] > summary .prof-pic { box-shadow: 0 0 0 2px var(--accent); }
.am-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 260px; max-width: calc(100vw - 16px);
  padding: 6px 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 14px 40px var(--shadow);
}
.am-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.am-me, .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.am-me { padding: 8px 14px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.am-me > span:last-child, .who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.am-me b, .who b { color: var(--strong); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-me small, .who small { color: var(--dim); font-size: 12px; }
a.am-me:hover small, a.who:hover small { color: var(--accent-hi); }

/* one row of a menu: icon + words (side menu and account menu) */
.sl {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 16px;
  border: 0; border-left: 3px solid transparent; background: none; color: var(--text);
  font: 14px/1.3 var(--font); text-align: left; cursor: pointer;
}
html[lang="my"] .sl { line-height: 1.6; }
.sl .ic { flex: none; color: var(--dim); }
.sl:hover { background: var(--bg-3); color: var(--strong); }
.sl.on { background: var(--bg-2); border-left-color: var(--accent); color: var(--strong); font-weight: 700; }
.sl.on .ic, .sl:hover .ic { color: var(--accent-hi); }
.sl.sub { padding-top: 7px; padding-bottom: 7px; font-size: 13px; color: var(--dim); }
.sl.sub.on { color: var(--strong); }
.sl.more { padding-left: 19px; color: var(--dim); font-size: 13px; }

.side {
  display: flex; flex-direction: column; width: 240px; background: var(--bg-hdr); border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent;
}
.side-top { display: none; align-items: center; gap: 6px; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.side-me { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.side-btns { display: flex; gap: 8px; margin-top: 12px; }
.side-btns .btn { flex: 1 1 auto; width: auto; margin: 0; padding-left: 8px; padding-right: 8px; text-align: center; white-space: nowrap; }
.side-btns .btn.ghost { color: var(--text); }
.side-nav { flex: 1; padding: 0 0 10px; }
.side h3 { margin: 16px 19px 4px; font: 700 11px/1.5 var(--font); letter-spacing: .6px; text-transform: uppercase; color: var(--faint); }
.side-foot { border-top: 1px solid var(--line); padding: 6px 0 max(10px, env(safe-area-inset-bottom)); }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.page { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* phones and tablets: the side menu slides in over the page */
@media (max-width: 1099px) {
  .side {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(290px, 86vw);
    transform: translateX(-102%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s;
  }
  .side-top { display: flex; }
  body.sb-open { overflow: hidden; }
  body.sb-open .side { transform: none; visibility: visible; transition: transform .2s ease; }
  body.sb-open .scrim { opacity: 1; pointer-events: auto; }
}
/* wide screens: the side menu stays next to the page; the menu button folds it away */
@media (min-width: 1100px) {
  .hdr { position: sticky; top: 0; z-index: 30; }
  .hdr-in { height: 56px; padding: 0 16px; }
  .side { position: fixed; z-index: 20; top: 57px; bottom: 0; left: 0; }
  .side ~ .nav, .side ~ .page { margin-left: 240px; }
  body.sb-off .side { display: none; }
  body.sb-off .side ~ .nav, body.sb-off .side ~ .page { margin-left: 0; }
  .scrim { display: none; }
  body:not(.sb-off) .wrap > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1500px) { body:not(.sb-off) .wrap > .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1900px) { body:not(.sb-off) .wrap > .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .side, .scrim { transition: none !important; } }

/* heart on a thumbnail: save without opening the video (mouse only; phones save on the video page) */
.card { position: relative; }
.qsave {
  position: absolute; top: 4px; right: 4px; z-index: 2; display: none; place-items: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer;
}
.qsave svg { fill: none; stroke: currentColor; stroke-width: 2; }
.qsave.on { display: grid; color: #e5394b; }
.qsave.on svg { fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .qsave, .qsave:focus-visible { display: grid; }
  .qsave:hover { background: rgba(0, 0, 0, .9); }
}

/* "log in first" panel (Saved page without an account) */
.join {
  max-width: 380px; margin: 8vh auto; padding: 28px 22px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
}
.join-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-3); color: var(--accent-hi); }
.join p { margin: 14px 0 4px; color: var(--dim); }

@media (max-width: 699px) { .wide-only { display: none !important; } }
@media (min-width: 700px) { .narrow-only { display: none !important; } }
.side-btns .btn { border: 1px solid transparent; font-weight: 700; }
.side-btns .btn.ghost { border-color: var(--line); }
html[lang="my"] .side h3 { font-size: 12px; line-height: 2; letter-spacing: 0; }

/* ---------- ads (filled by static/ads.js) ---------- */
.ad-slot { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 250px; margin: 18px auto; overflow: hidden; }
.ad-slot.ad-top { min-height: 100px; margin: 0 auto 14px; }
@media (min-width: 760px) { .ad-slot.ad-top { min-height: 90px; } }
.ad-slot:empty { min-height: 0; margin: 0; }
.ad-slot ins, .ad-over ins, .ad-sticky ins { display: block; }
.ad-card { overflow: hidden; }
.ad-card:empty { display: none; }
/* the network's card takes the look of ours: light text on the dark page */
.ad-card a, .ad-card a * { color: var(--text) !important; text-decoration: none; }
.ad-card img { border-radius: 3px; }
.ad-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .88); border-top: 1px solid var(--line);
}
body.ad-low .page { padding-bottom: 62px; }
@media (min-width: 760px) { body.ad-low .page { padding-bottom: 102px; } }
.ad-x {
  position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(0, 0, 0, .8); color: #fff;
  font: 700 18px/1 var(--font); cursor: pointer;
}
.ad-sticky .ad-x { top: -17px; right: 8px; width: 28px; height: 28px; font-size: 15px; }
/* over the player: the once-a-visit cover, the ad on pause, the video ad */
.ad-over { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(0, 0, 0, .86); overflow: hidden; }
.ad-roll { position: absolute; inset: 0; z-index: 9; background: #000; cursor: pointer; }
.ad-roll video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ad-tag, .ad-skip { position: absolute; z-index: 2; padding: 6px 10px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 12px/1.2 var(--font); border-radius: 3px; }
.ad-tag { left: 8px; top: 8px; }
.ad-skip { right: 8px; top: 8px; border: 1px solid rgba(255, 255, 255, .6); font-size: 14px; padding: 10px 14px; }
button.ad-skip { cursor: pointer; }
/* the same ads when they come through this site (visitors whose VPN blocks the ad network) */
.more-pic { display: block; line-height: 0; }
.more-pic img { display: block; max-width: 100%; height: auto; }
.more-card { display: block; text-decoration: none; }
.more-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.more-card .title { display: block; margin-top: 6px; }
.more-card small { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; }
