/* Download controls: geometry, colours, icons and expanding panel are taken
   from the user's counter-strike16.com download-cs assets/wordpress.css 1.7.1.
   Scoped selectors preserve the portal layout and unrelated site controls. */
.atlas10-template :is(.csi-download-actions,.atlas10-downloads,.download-actions,.net-download-links,.atlas11-dual-actions){display:flex;flex-wrap:wrap;gap:18px;align-items:stretch}
.atlas10-template .csi-download-actions{margin:24px 0}
.atlas10-template a.csi-download-button{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-start;flex:1 1 250px;width:auto;min-width:0;max-width:330px;min-height:72px;height:auto;margin:0;padding:13px 16px;padding-inline-start:84px;overflow:hidden;border:0;border-radius:20px;background:#ff8500;color:#fff;text-align:start;text-decoration:none;box-shadow:0 0 5px 1px #db5e00cc,0 10px 25px #ff750033;line-height:1.25;transform:none;font-family:"Segoe UI",Tahoma,Arial,sans-serif}
.atlas10-template a.csi-download-torrent{background:#128a43;color:#fff;box-shadow:0 0 5px 1px #056730cc,0 10px 25px #078b4133}
.atlas10-template a.csi-download-button:before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:66px;background:#e36a00 url('reference-buttons/direct.webp') center/35px auto no-repeat;z-index:2;transition:width .5s ease}
.atlas10-template a.csi-download-torrent:before{background-color:#0b6d35;background-image:url('reference-buttons/torrent.webp');background-size:44px auto}
.atlas10-template .csi-download-copy{display:block;min-width:0;transition:opacity .2s ease}
.atlas10-template .csi-download-copy strong{display:block;font-size:20px;font-weight:800;line-height:1.2;overflow-wrap:anywhere;text-shadow:0 1px 2px #0005;color:#fff;letter-spacing:normal}
.atlas10-template .csi-download-copy small{display:block;font-size:13px;font-weight:400;line-height:1.4;margin-top:4px;color:#fff;letter-spacing:normal}
.atlas10-template a.csi-download-button:hover{filter:none;color:#fff;transform:none}
.atlas10-template a.csi-download-button:focus-visible{outline:3px solid #ffd299;outline-offset:5px}
.atlas10-template a.csi-download-button:is(:hover,:focus-visible):before{width:100%}
.atlas10-template a.csi-download-button:is(:hover,:focus-visible) .csi-download-copy{opacity:0}
.atlas10-template .net-download-links>a.csi-download-button{flex-basis:100%;width:100%;max-width:none}
.atlas10-template .atlas11-dual-actions>a.csi-download-button{flex-basis:100%;width:100%;max-width:none}
.atlas10-template .net-source-action+.csi-download-actions{margin-top:18px}
/* Keep the reference icon on the left while preserving Arabic/Hebrew text direction. */
html[dir=rtl] .atlas10-template a.csi-download-button{padding-left:84px;padding-right:16px;direction:ltr;text-align:left;justify-content:flex-start}
html[dir=rtl] .atlas10-template a.csi-download-button:before{left:0;right:auto;inset-inline-start:0;inset-inline-end:auto}
html[dir=rtl] .atlas10-template .csi-download-copy{direction:rtl;unicode-bidi:plaintext;text-align:left}

/* Permanent 178px language rail, matching the reference's right-hand list.
   Space is reserved so the rail never covers text or the navigation. */
.atlas10-template .csi-language-rail{color:#e6edf5;font:14px/1.3 "Segoe UI",Tahoma,Arial,sans-serif;direction:ltr}
.atlas10-template .csi-language-rail *{box-sizing:border-box}
.atlas10-template .csi-language-rail details{padding:0;border:0;border-radius:0;background:transparent}
.atlas10-template .csi-language-rail summary{display:flex;gap:10px;align-items:center;cursor:pointer;list-style:none;color:#fff;font-weight:700}
.atlas10-template .csi-language-rail summary::-webkit-details-marker{display:none}
.atlas10-template .csi-language-rail summary>b{margin-left:auto;padding:3px 6px;border-radius:5px;background:#ff9e2f;color:#21180d;font-size:11px}
.atlas10-template .csi-language-globe{font-size:26px;line-height:1;color:#ffb253}
.atlas10-template .csi-language-heading{display:flex;gap:9px;justify-content:space-between;align-items:center;padding:8px 8px 13px;border-bottom:1px solid #ffffff15;margin-bottom:6px;color:#e6edf5}
.atlas10-template .csi-language-heading strong{font-size:12px;line-height:1.4;max-width:125px;overflow-wrap:anywhere}
.atlas10-template .csi-language-heading>span{font-size:11px;font-weight:800;color:#ffb253}
.atlas10-template .csi-language-rail ul{list-style:none;padding:0;margin:0}
.atlas10-template .csi-language-rail li{display:block;width:100%;padding:0;margin:0}
.atlas10-template .csi-language-rail li:before{display:none}
.atlas10-template .csi-language-rail li>a{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:6px 8px;border-radius:10px;color:#e6edf5;text-decoration:none;font-size:14px;line-height:1.2}
.atlas10-template .csi-language-rail li>a>span:last-child{min-width:0;overflow-wrap:anywhere}
.atlas10-template .csi-language-rail li>a:hover{background:#ffffff12;color:#fff}
.atlas10-template .csi-language-rail li>a[aria-current=page]{background:#ff9c2020;color:#ffc77f;box-shadow:inset 2px 0 #ff9e2f}
.atlas10-template .csi-language-rail img,.atlas10-template .csi-language-code{display:block;width:24px;height:24px;min-width:24px;min-height:24px;flex:0 0 24px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px #ffffff1a;object-fit:cover}
.atlas10-template .csi-language-code{display:grid;place-items:center;background:#2c3139;color:#dce3ec;font:700 10px/1 Arial,sans-serif}
.atlas10-template .csi-language-rail a:focus-visible,.atlas10-template .csi-language-rail summary:focus-visible{outline:2px solid #ffc77f;outline-offset:-2px}
@media(min-width:1280px){
  body.atlas10-template{padding-right:200px}
  .atlas10-template .csi-language-rail{position:fixed;right:10px;top:10px;z-index:80;width:178px;max-height:calc(100dvh - 20px);overflow:auto;padding:8px;background:rgba(58,66,77,.96);border:1px solid #ffffff1f;border-radius:14px;box-shadow:0 16px 34px #0006;backdrop-filter:blur(8px);scrollbar-width:thin;scrollbar-color:#78808d transparent}
  .atlas10-template.admin-bar .csi-language-rail{top:42px;max-height:calc(100dvh - 52px)}
  .atlas10-template .csi-language-rail summary{display:none}
  .atlas10-template .csi-language-rail details:not([open])>.csi-language-drawer-content{display:block}
  .atlas10-template .atlas10-tools .atlas10-language{display:none}
}
/* The original viewport rules used the full width. Account for the rail
   when a laptop viewport has only ~1,000px left for the actual portal. */
@media(min-width:1280px) and (max-width:1479px){
  .atlas10-template .atlas10-top{flex-wrap:wrap;gap:13px;padding:16px 20px 10px}
  .atlas10-template .atlas10-primary{flex-basis:100%;order:3;justify-content:flex-start;gap:7px}
  .atlas10-template .atlas10-primary>a{flex:1;max-width:none;padding:9px 12px}
  .atlas10-template .atlas10-tools{margin-inline-start:auto}
  .atlas10-template .atlas10-columns{display:block}
  .atlas10-template .atlas10-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}
  .atlas10-template .atlas10-sidebar>.net-block{margin:0}
  .atlas10-template .atlas10-sidebar>.net-block:last-child{grid-column:1/-1}
}
@media(max-width:1279px){
  .atlas10-template .csi-language-rail{position:relative;border-bottom:1px solid #ffffff18;background:#34383f;padding:0 16px}
  .atlas10-template .csi-language-rail summary{min-height:48px;padding:10px 0;font-size:13px}
  .atlas10-template .csi-language-heading{display:none}
  .atlas10-template .csi-language-rail nav{max-height:55vh;overflow:auto;overscroll-behavior:contain;padding:5px 0 14px}
  .atlas10-template .csi-language-rail ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
  .csi-portal-enhanced .csi-language-rail details[open]{position:fixed;inset:0 0 0 auto;width:min(410px,100vw);z-index:99990;background:#34383f;padding:18px 16px;box-shadow:-16px 0 70px #0009;overflow-y:auto}
  .csi-portal-enhanced .csi-language-rail details[open] summary{padding:3px 0 18px;border-bottom:1px solid #ffffff20;margin-bottom:12px}
  .csi-portal-enhanced .csi-language-rail details[open] summary:after{content:'×';font-size:26px;font-weight:400}
  .csi-portal-enhanced .csi-language-rail details[open] nav{max-height:none;padding-bottom:20px}
  .csi-portal-enhanced .csi-language-rail details[open] ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csi-portal-enhanced.admin-bar .csi-language-rail details[open]{top:32px}
  body.csi-language-open{overflow:hidden}
}
@media(max-width:782px){.csi-portal-enhanced.admin-bar .csi-language-rail details[open]{top:46px}}
@media(max-width:600px){
  .atlas10-template :is(.csi-download-actions,.atlas10-downloads,.download-actions,.net-download-links,.atlas11-dual-actions){gap:14px}
  .atlas10-template a.csi-download-button{flex-basis:100%;width:100%;max-width:none}
  .atlas10-template .csi-language-rail ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Click-to-load, on-page video: local poster remains visible until requested. */
.atlas10-template .csi-portal-video{margin:32px 0;padding:26px;border:1px solid #484b50;border-radius:14px;background:#292b2f;overflow:hidden}
.atlas10-template .csi-portal-video header{margin-bottom:18px}
.atlas10-template .csi-video-eyebrow{display:block;color:#ffb353;font-size:11px;line-height:1.4;font-weight:800;letter-spacing:.12em;margin-bottom:9px}
.atlas10-template .csi-portal-video h2{font-size:clamp(23px,2.4vw,31px);line-height:1.25;color:#f2f2f4;margin:0}
.atlas10-template .csi-portal-video figure{margin:0}
.atlas10-template .csi-video-frame{aspect-ratio:16/9;width:100%;min-width:0;background:#111;border:1px solid #594321;border-radius:12px;overflow:hidden;position:relative}
.atlas10-template .csi-video-frame iframe{display:block;width:100%;height:100%;border:0}
.atlas10-template .csi-video-launch{display:block;width:100%;height:100%;position:relative;padding:0;border:0;background:#111;color:#fff;cursor:pointer}
.atlas10-template .csi-video-launch img{width:100%;height:100%;object-fit:cover;display:block}
.atlas10-template .csi-video-shade{position:absolute;inset:0;background:linear-gradient(transparent 40%,#000b)}
.atlas10-template .csi-video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#f00;color:#fff;width:78px;height:56px;border-radius:12px;display:grid;place-items:center;box-shadow:0 8px 30px #0008}
.atlas10-template .csi-video-play svg{width:31px;height:31px;fill:currentColor;stroke:none}
.atlas10-template .csi-video-launch>strong{position:absolute;inset-inline:16px;bottom:20px;font-size:clamp(14px,2vw,20px);line-height:1.4;text-align:center;color:#fff;text-shadow:0 2px 5px #000}
.atlas10-template .csi-video-launch:hover img{filter:brightness(.9)}
.atlas10-template .csi-video-launch:focus-visible{outline:3px solid #fff;outline-offset:-5px}
.atlas10-template .csi-portal-video figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-top:12px;color:#b6bbc3;font-size:13px}
.atlas10-template .csi-video-stop{border:1px solid #5e626b;border-radius:7px;padding:8px 12px;min-height:40px;background:#34373d;color:#fff;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}
.atlas10-template .csi-video-noscript{font-size:13px;color:#b6bbc3}
@media(max-width:600px){.atlas10-template .csi-portal-video{margin:24px 0;padding:16px}.atlas10-template .csi-video-launch>strong{bottom:10px}.atlas10-template .csi-video-play{width:64px;height:46px}}
@media(prefers-reduced-motion:reduce){.atlas10-template a.csi-download-button:before,.atlas10-template .csi-download-copy{transition:none}}
@media print{.csi-language-rail{display:none!important}body.atlas10-template{padding-right:0!important}.csi-video-launch{display:none!important}.csi-video-frame{display:none!important}}
