

/* ===================== */
/* CSS */
/* ===================== */

body {
margin: 0;
background: #121212;
color: #aaaaaaa6;
font-family: 'JetBrains Mono', monospace;
}

/* HERO */


.hero {
  background: #cfcfcfdd;
  text-align: center;
  padding: 20px;
  cursor: pointer;
}

.hero {
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.hero img {
width: 450px;
height: 450px;
object-fit: cover;
}



.hero h1 {
letter-spacing: 36px;
color: #777;
font-weight: lighter;
font-size: 28px;
}

.hero h2 {
  letter-spacing: 36px;
  color: #777;
  font-weight: lighter;
  font-size: 18px;
}

/* HEADER */
.archive-header {
display: flex;
align-items: center;
gap: 20px;
padding: 40px 60px 0;
}

.archive-title {
font-size: 11px;
letter-spacing: 2px;
color: #666;
}

.archive-line {
flex: 1;
height: 1px;
background: #222;
}

/* GRID */
.grid {
  column-count: 2;
  column-gap: 100px;
  padding: 80px 100px;
}


.card {
  break-inside: avoid;
  margin-bottom: 80px;

  position: relative;
  perspective: 800px;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card img {
  transition: transform 0.25s ease;
  transform-origin: center;
}

.card {
  position: relative;
  perspective: 800px;
}

.card img {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.player {
  position: relative;
  z-index: 2;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

/* PLAYER */
.player {
display: flex;
align-items: center;
gap: 10px;
font-size: 10px;
margin-top: 8px;
opacity: 0.6;
}

.player:hover {
opacity: 1;
}

.btn {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}

.btn::before {
content: "";
width: 6px;
height: 6px;
background: #aaa;
display: inline-block;
clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.player.playing .btn::before {
clip-path: none;
background: none;
background-image: linear-gradient(
  to right,
  #aaa 0 2px,
  transparent 2px 4px,
  #aaa 4px 6px
);
}

.line {
flex: 1;
height: 1px;
background: #333;
}

/* FOOTER */
.footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 40px 100px;
border-top: 1px solid #111;
font-size: 11px;
}

/* соцсети В СТРОКУ */
.footer-left {
display: flex;
gap: 20px;
}

.footer a {
color: #666;
text-decoration: none;
transition: 0.2s;
}

.footer a:hover {
color: #aaa;
}

.footer-right span {
cursor: pointer;
color: #666;
transition: 0.2s;
}

.footer-right span:hover {
color: #aaa;
}

/* GALLERY */
.gallery {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.95);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: 0.3s;
}

.gallery.active {
opacity: 1;
pointer-events: all;
}

.gallery-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.gallery-close {
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  z-index: 10000;
  transition: 0.2s;
}

.gallery-close:hover {
  color: #fff;
}

/* WIN98 */
.win98 {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0,0,0,0.4);
opacity: 0;
pointer-events: none;
transition: 0.2s;
z-index: 9999;
}

.win98.active {
opacity: 1;
pointer-events: all;
}

.win98-window {
width: 320px;
background: #c0c0c0;
color: #000;
font-size: 11px;
font-family: Tahoma, sans-serif;

border-top: 2px solid #fff;
border-left: 2px solid #fff;
border-right: 2px solid #404040;
border-bottom: 2px solid #404040;
}

.win98-header {
background: #000080;
color: #fff;
padding: 3px 6px;
display: flex;
justify-content: space-between;
font-weight: bold;
}

.win98-body {
display: flex;
gap: 10px;
padding: 12px;
}



.win98-footer {
padding: 10px;
display: flex;
justify-content: center;
}

.win98-btn,
.downloads-ok {
padding: 3px 18px;
background: #c0c0c0;

border-top: 2px solid #fff;
border-left: 2px solid #fff;
border-right: 2px solid #000;
border-bottom: 2px solid #000;

cursor: pointer;
}

/* эффект нажатия */
.win98-btn:active,
.downloads-ok:active {
border-top: 2px solid #000;
border-left: 2px solid #000;
border-right: 2px solid #fff;
border-bottom: 2px solid #fff;
}

.downloads-body {
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: #c0c0c0;
  border: 2px solid;
  border-top-color: #808080;
  border-left-color: #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.win98-icon {
width: 24px;
height: 24px;

border: 1px solid #000;
background: #c0c0c0;

display: flex;
align-items: center;
justify-content: center;

font-weight: lighter;
font-family: "MS Sans Serif", Tahoma, sans-serif;
}

.win98-window,
.win98-window * {
font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
font-size: 11px;
}

.download-item {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
cursor: pointer;
border-bottom: 1px solid #dcdcdc;
}

.download-item:hover {
background: #000080;
color: #fff;
}

.download-item img {
width: 16px;
height: 16px;
image-rendering: pixelated;
}

.progress-bar {
width: 200px;
height: 16px;
border: 1px solid #000;
background: #fff;
}

.progress-fill {
height: 100%;
width: 0%;
background: #000080;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  cursor: default;
  border-bottom: 1px solid #dcdcdc;
}

/* левая часть */
.download-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* иконка папки */
.download-left img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

/* кнопка справа */
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 2px;
  background: #c0c0c0;
}

.download-btn img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}

/* hover как в винде */
.download-item:hover {
  background: #000080;
  color: #fff;
}

.download-item:hover .download-btn {
  background: #000080;
  border-color: #fff;
}

.download-item:hover .download-btn img {
  filter: invert(1);
}

/* ===================== */
/* TABLET */
/* ===================== */

/* ===================== */
/* PHONE (до 768px) */
/* ===================== */

@media (max-width: 768px) {

  .hero {
    padding: 15px;
  }

  .hero img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .hero h1 {
    font-size: 14px;
    letter-spacing: 6px;
  }

  .hero h2 {
    font-size: 11px;
    letter-spacing: 4px;
  }

  .archive-header {
    padding: 20px;
  }

  .grid {
    column-count: 1;
    padding: 30px 15px;
    column-gap: 0;
  }

  .card {
    margin-bottom: 30px;
  }

  .footer {
    flex-direction: column;
    gap: 15px;
    padding: 25px 15px;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .gallery-img {
    max-width: 95%;
    max-height: 95%;
  }

  .player {
    font-size: 9px;
  }
}


/* ===================== */
/* TABLET (769px–1100px) */
/* ===================== */

@media (min-width: 769px) and (max-width: 1100px) {

  .hero img {
    width: 360px;
    height: auto;
  }

  .hero h1 {
    font-size: 20px;
    letter-spacing: 16px;
  }

  .hero h2 {
    font-size: 14px;
    letter-spacing: 12px;
  }

  .archive-header {
    padding: 30px 40px 0;
  }

  .grid {
    column-count: 2;
    column-gap: 40px;
    padding: 60px 40px;
  }

  .card {
    margin-bottom: 50px;
  }

  .footer {
    padding: 30px 40px;
  }

  .gallery-img {
    max-width: 75%;
    max-height: 75%;
  }
}

.win98,
.gallery {
  position: fixed;
  z-index: 9999;
}