.files-page { min-height: 100vh; }
.files-header { background: rgba(7,7,7,.94); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px); }
.desktop-nav .is-current, .mobile-menu .is-current { color: var(--yellow); }
.files-main { min-height: calc(100vh - 130px); padding-top: 82px; }

/* Compact download page header */
.files-hero { padding: 34px max(28px,calc((100vw - 1380px)/2)) 30px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg,#0d0d0d 0%,#090909 100%); }
.files-hero-inner { max-width:1380px; display:flex; align-items:flex-end; justify-content:space-between; gap:36px; }
.files-hero-copy { min-width:0; }
.files-hero h1 { margin:5px 0 7px; font-size:clamp(34px,3.2vw,52px); line-height:1; letter-spacing:-.035em; text-transform:uppercase; }
.files-hero p { max-width:720px; margin:0; color:#999; font-size:15px; line-height:1.5; }
.files-hero-meta { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px 9px; margin:0 0 3px; color:#727272; font-size:10px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }

.files-browser { padding:40px max(28px,calc((100vw - 1380px)/2)) clamp(90px,9vw,140px); }
.files-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; margin-bottom:30px; }
.files-kicker { color:var(--yellow); font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.files-toolbar h2 { margin:8px 0 0; font-size:clamp(32px,4vw,58px); line-height:1; text-transform:uppercase; }
.files-search { width:min(100%,390px); height:52px; display:flex; align-items:center; gap:11px; padding:0 16px; border:1px solid var(--border); border-radius:13px; background:#0d0d0d; transition:border-color .2s ease, background .2s ease; }
.files-search:focus-within { border-color:rgba(255,213,31,.75); background:#111; }
.files-search svg { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:#777; stroke-width:2; }
.files-search input { width:100%; border:0; outline:0; color:#fff; background:transparent; font:inherit; }
.files-search input::placeholder { color:#6d6d6d; }
.file-filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:34px; }
.file-filter { min-height:38px; padding:0 14px; border:1px solid var(--border); border-radius:999px; color:#a4a4a4; background:#0b0b0b; cursor:pointer; font:inherit; font-size:12px; font-weight:900; text-transform:uppercase; transition:.2s ease; }
.file-filter:hover { border-color:#666; color:#fff; }
.file-filter.is-active { border-color:var(--yellow); color:#111; background:var(--yellow); }
.files-status { min-height:20px; margin-bottom:18px; color:#676767; font-size:12px; }
.files-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.file-card { position:relative; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:18px; background:linear-gradient(150deg,#101010,#090909); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.file-card:hover { transform:translateY(-3px); border-color:rgba(255,213,31,.46); box-shadow:0 16px 38px rgba(0,0,0,.26); }
.file-preview { position:relative; aspect-ratio:16/9; display:grid; place-items:center; overflow:hidden; border-bottom:1px solid rgba(255,255,255,.08); background:#0b0b0b; }
.file-preview img, .file-preview video { width:100%; height:100%; object-fit:cover; display:block; }
.file-preview img { transition:transform .25s ease; }
.file-card:hover .file-preview img { transform:scale(1.025); }
.file-preview video { background:#000; pointer-events:none; }
.file-video-indicator { position:absolute; left:50%; top:50%; z-index:2; width:50px; height:50px; display:grid; place-items:center; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,.26); border-radius:50%; color:#111; background:rgba(255,213,31,.94); box-shadow:0 8px 28px rgba(0,0,0,.38); font-size:18px; line-height:1; pointer-events:none; }
.file-video-indicator span { transform:translateX(1px); }
.file-type-icon { width:70px; height:70px; display:grid; place-items:center; border:1px solid rgba(255,213,31,.28); border-radius:18px; color:var(--yellow); background:rgba(255,213,31,.055); font-size:16px; font-weight:1000; letter-spacing:.03em; }
.file-type-badge { position:absolute; top:13px; left:13px; z-index:3; padding:7px 9px; border:1px solid rgba(255,255,255,.16); border-radius:7px; color:#fff; background:rgba(6,6,6,.76); backdrop-filter:blur(10px); font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.file-card-body { padding:20px; }
.file-title { margin:0 0 9px; overflow-wrap:anywhere; font-size:20px; line-height:1.12; }
.file-description { min-height:42px; margin:0 0 18px; color:#8d8d8d; font-size:13px; line-height:1.55; }
.file-meta { display:flex; flex-wrap:wrap; gap:7px 10px; margin-bottom:18px; color:#626262; font-size:10px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.file-actions { display:flex; gap:8px; }
.file-download, .file-open { min-height:42px; display:inline-flex; align-items:center; justify-content:center; padding:0 14px; border-radius:9px; font-size:11px; font-weight:900; text-transform:uppercase; transition:.2s ease; }
.file-download { flex:1; color:#111; background:var(--yellow); }
.file-download:hover { background:#ffe05a; }
.file-open { border:1px solid var(--border); color:#ccc; background:#0b0b0b; }
.file-open:hover { border-color:#777; color:#fff; }
.files-empty { max-width:720px; margin:48px auto 0; padding:56px 28px; border:1px dashed rgba(255,255,255,.18); border-radius:18px; text-align:center; background:#0a0a0a; }
.files-empty-icon { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 18px; border-radius:50%; color:#111; background:var(--yellow); font-size:28px; font-weight:900; }
.files-empty h3 { margin:0 0 9px; font-size:22px; text-transform:uppercase; }
.files-empty p { margin:0; color:#777; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media(max-width:980px){
  .files-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .files-toolbar{align-items:stretch;flex-direction:column}
  .files-search{width:100%;max-width:none}
  .files-hero-inner{align-items:flex-start;flex-direction:column;gap:14px}
  .files-hero-meta{justify-content:flex-start}
}
@media(max-width:620px){
  .files-main{padding-top:72px}
  .files-hero{padding:24px 22px 22px}
  .files-hero h1{font-size:34px}
  .files-hero p{font-size:14px}
  .files-hero-meta{gap:5px 7px;white-space:normal}
  .files-browser{padding:34px 22px 90px}
  .files-grid{grid-template-columns:1fr}
  .file-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;scrollbar-width:none}
  .file-filters::-webkit-scrollbar{display:none}
  .file-filter{flex:0 0 auto}
  .file-actions{flex-direction:column}
  .file-open{width:100%}
}
