/* T10Shorts theme - base (dark) */
:root{
  --t-bg:#08080b; --t-panel:#0e0e13; --t-panel2:#15151b; --t-panel3:#1b1b23; --t-line:#24242c;
  --t-ink:#f5f1e8; --t-dim:#a9a59b; --t-amber:#ffb547; --t-amber-ink:#1a1204; --t-red:#ff4d5e;
  --t-r:14px; --t-hdr:60px;
  color-scheme: dark;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; background:var(--t-bg); }
body{
  margin:0; background:var(--t-bg); color:var(--t-ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Arabic","Noto Naskh Arabic",Tahoma,Arial,sans-serif;
  font-size:16px; line-height:1.6; min-height:100vh; display:flex; flex-direction:column;
  -webkit-font-smoothing:antialiased; overflow-wrap:break-word;
}
img,video,svg{ max-width:100%; height:auto; }
a{ color:var(--t-amber); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3,h4{ color:var(--t-ink); line-height:1.3; margin:0 0 .5em; }
p{ margin:0 0 1em; }
:focus-visible{ outline:2px solid var(--t-amber); outline-offset:2px; }
.t10t-skip{ position:absolute; inset-inline-start:-9999px; top:8px; z-index:200; background:var(--t-amber); color:var(--t-amber-ink); padding:8px 14px; border-radius:8px; }
.t10t-skip:focus{ inset-inline-start:8px; text-decoration:none; }
.t10t-muted{ color:var(--t-dim); }
[hidden]{ display:none !important; }

/* ---------------------------------------------------------- header */
.t10t-header{
  position:sticky; top:0; z-index:50; background:rgba(8,8,11,.92);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border-bottom:1px solid var(--t-line);
}
.t10t-header-in{ max-width:1400px; margin:0 auto; min-height:var(--t-hdr); padding:8px 14px; display:flex; align-items:center; gap:14px; }
.t10t-brand{ display:flex; align-items:center; color:var(--t-ink); font-weight:800; font-size:20px; letter-spacing:-.01em; flex:none; }
.t10t-brand:hover{ text-decoration:none; }
.t10t-brand-text{ background:linear-gradient(90deg,var(--t-ink),var(--t-amber)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.t10t-logo{ max-height:38px; width:auto; }
.t10t-nav{ flex:1; min-width:0; }
.t10t-menu{ list-style:none; margin:0; padding:0; display:flex; gap:4px; }
.t10t-menu a{ display:block; padding:8px 12px; border-radius:10px; color:var(--t-dim); font-weight:600; font-size:15px; }
.t10t-menu a:hover, .t10t-menu .current-menu-item > a{ color:var(--t-ink); background:var(--t-panel2); text-decoration:none; }
.t10t-tools{ display:flex; align-items:center; gap:8px; margin-inline-start:auto; }
.t10t-tool{
  all:unset; box-sizing:border-box; width:40px; height:40px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--t-ink); -webkit-tap-highlight-color:transparent;
}
.t10t-tool:hover{ background:var(--t-panel2); }
.t10t-tool:focus-visible{ outline:2px solid var(--t-amber); outline-offset:2px; }
.t10t-nav-toggle{ display:none; }

.t10t-upload-btn{
  display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; background:var(--t-amber);
  color:var(--t-amber-ink) !important; font-weight:800; font-size:14px; white-space:nowrap;
}
.t10t-upload-btn:hover{ text-decoration:none; filter:brightness(1.07); }
.t10t-login-link{ color:var(--t-ink); font-weight:700; padding:8px 10px; border-radius:10px; font-size:14px; }
.t10t-login-link:hover{ background:var(--t-panel2); text-decoration:none; }

.t10t-user{ position:relative; }
.t10t-user-btn{ all:unset; cursor:pointer; display:block; border-radius:50%; border:2px solid var(--t-line); line-height:0; }
.t10t-user-btn:hover{ border-color:var(--t-amber); }
.t10t-user-btn:focus-visible{ outline:2px solid var(--t-amber); outline-offset:2px; }
.t10t-hdr-avatar{ width:34px; height:34px; border-radius:50%; object-fit:cover; background:var(--t-panel3); display:block; }
.t10t-user-menu{
  position:absolute; inset-inline-end:0; top:calc(100% + 8px); min-width:200px; background:var(--t-panel); border:1px solid var(--t-line);
  border-radius:14px; box-shadow:0 16px 40px rgba(0,0,0,.6); padding:6px; z-index:60;
}
.t10t-user-menu a{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; color:var(--t-ink); font-weight:600; font-size:14px; }
.t10t-user-menu a:hover{ background:var(--t-panel2); text-decoration:none; }

.t10t-langs{ display:flex; gap:2px; background:var(--t-panel2); border-radius:999px; padding:2px; }
.t10t-lang{ padding:4px 10px; border-radius:999px; color:var(--t-dim); font-size:12px; font-weight:800; }
.t10t-lang.is-current{ background:var(--t-amber); color:var(--t-amber-ink); }
.t10t-lang:hover{ text-decoration:none; color:var(--t-ink); }
.t10t-lang.is-current:hover{ color:var(--t-amber-ink); }

.t10t-search-pane{ border-top:1px solid var(--t-line); padding:8px 14px 12px; }
.t10t-search-pane .t10t-global-search-wrap{ margin:0 auto; }

/* ---------------------------------------------------------- layout */
.t10t-content{ flex:1 0 auto; width:100%; }
.t10t-wrap{ max-width:900px; margin:0 auto; padding:24px 16px 56px; }
.t10t-wrap.t10t-wide{ max-width:1400px; }
.t10t-wrap.t10t-wrap-app{ max-width:1100px; padding-top:16px; }
.t10t-h1{ font-size:28px; margin:0 0 16px; }
.t10t-meta{ color:var(--t-dim); font-size:14px; margin-bottom:16px; }
.t10t-hero{ border-radius:var(--t-r); margin-bottom:18px; }
.t10t-entry{ font-size:17px; line-height:1.8; }
.t10t-entry img{ border-radius:10px; }
.t10t-entry blockquote{ margin:1em 0; padding:.6em 1em; border-inline-start:3px solid var(--t-amber); background:var(--t-panel); border-radius:8px; }
.t10t-entry table{ width:100%; border-collapse:collapse; }
.t10t-entry th,.t10t-entry td{ border:1px solid var(--t-line); padding:8px 10px; }
.t10t-404{ text-align:center; padding-top:80px; }

.t10t-post-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.t10t-post-card{ background:var(--t-panel); border:1px solid var(--t-line); border-radius:var(--t-r); overflow:hidden; }
.t10t-post-thumb img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.t10t-post-title{ font-size:17px; margin:12px 14px 6px; }
.t10t-post-title a{ color:var(--t-ink); }
.t10t-post-excerpt{ padding:0 14px 14px; color:var(--t-dim); font-size:14px; }
.t10t-post-excerpt p{ margin:0; }

.navigation.pagination{ margin-top:24px; }
.nav-links{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.page-numbers{ padding:8px 14px; border-radius:10px; background:var(--t-panel); border:1px solid var(--t-line); color:var(--t-ink); font-weight:700; }
.page-numbers.current{ background:var(--t-amber); color:var(--t-amber-ink); border-color:var(--t-amber); }
a.page-numbers:hover{ border-color:var(--t-amber); text-decoration:none; }

/* category grid: same tiles as the plugin grid, without infinite loading */
.t10t-v6.cat-view .video-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; margin:0; padding:0; }
@media (min-width:700px){ .t10t-v6.cat-view .video-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; } }
@media (min-width:1000px){ .t10t-v6.cat-view .video-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (min-width:1280px){ .t10t-v6.cat-view .video-grid{ grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; } }

/* ---------------------------------------------------------- footer */
.t10t-footer{ border-top:1px solid var(--t-line); background:var(--t-panel); color:var(--t-dim); font-size:14px; margin-top:24px; }
.t10t-footer-in{ max-width:1400px; margin:0 auto; padding:28px 16px 18px; display:grid; grid-template-columns:1fr 1fr; gap:24px 40px; }
.t10t-footer-menu{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.t10t-footer a{ color:var(--t-dim); }
.t10t-footer a:hover{ color:var(--t-amber); text-decoration:none; }
.t10t-fcol-co{ display:flex; flex-direction:column; gap:8px; }
.t10t-fco-name{ color:var(--t-ink); font-size:16px; }
.t10t-fco-addr{ font-style:normal; line-height:1.7; }
.t10t-fco-sites{ list-style:none; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.t10t-fco-sites a{ color:var(--t-amber); font-weight:700; }
.t10t-footer-bar{ max-width:1400px; margin:0 auto; padding:14px 16px 24px; border-top:1px solid var(--t-line); display:flex; flex-wrap:wrap; gap:14px 24px; align-items:center; justify-content:space-between; }
.t10t-flang{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.t10t-flang-title{ color:var(--t-ink); font-weight:700; }
.t10t-flang-list{ display:flex; gap:6px; flex-wrap:wrap; }
.t10t-flang-item{ padding:6px 12px; border-radius:999px; background:var(--t-panel2); border:1px solid var(--t-line); font-size:13px; }
.t10t-flang-item.is-current{ background:var(--t-amber); border-color:var(--t-amber); color:var(--t-amber-ink) !important; font-weight:800; }
.t10t-social{ display:flex; gap:14px; }
.t10t-social a{ display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center; border-radius:50%; background:var(--t-panel2); border:1px solid var(--t-line); color:var(--t-ink); }
.t10t-social a:hover{ border-color:var(--t-amber); color:var(--t-amber); }
.t10t-copy{ margin:0; flex-basis:100%; font-size:13px; }
@media (max-width:640px){ .t10t-footer-in{ grid-template-columns:1fr; } }

/* ---------------------------------------------------------- mobile */
@media (max-width:820px){
  .t10t-nav-toggle{ display:inline-flex; }
  .t10t-nav{
    position:absolute; inset-inline:0; top:100%; background:var(--t-panel); border-bottom:1px solid var(--t-line);
    padding:8px 14px 14px; display:none;
  }
  .t10t-nav.is-open{ display:block; }
  .t10t-menu{ flex-direction:column; }
  .t10t-menu a{ padding:12px; }
  .t10t-upload-btn span{ display:none; }
  .t10t-upload-btn{ padding:9px; }
  .t10t-btn-text span{ display:inline; }
  .t10t-btn-text{ padding:8px 14px; }
  .t10t-h1{ font-size:23px; }
  .t10t-brand{ font-size:18px; }
}
@media (max-width:480px){
  .t10t-header-in{ gap:8px; padding:6px 10px; }
  .t10t-langs{ display:none; }
}
@media (prefers-reduced-motion:reduce){ *{ animation-duration:.01ms !important; transition-duration:.01ms !important; } }
