* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #ddd;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: 100vh;
  image-rendering: crisp-edges;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('weapon.png') center / cover no-repeat;
  filter: grayscale(100%) brightness(0.7);
  animation: dramatic-pulse 16s ease-in-out infinite;
  z-index: -2;
}

@keyframes dramatic-pulse {
  0%, 100% { filter: grayscale(100%) brightness(0.5) contrast(0.9); }
  50%      { filter: grayscale(100%) brightness(1.6) contrast(1.6); }
}

.page-container {
  position: relative;
  z-index: 1;
  max-width: 1020px;
  width: 94%;
  margin: 3rem auto;
  padding: 3rem 2.5rem;
  border: 4px solid #888;
  background: rgba(0,0,0,0.82);
  animation: border-pulse 5s ease-in-out infinite;
}

@keyframes border-pulse {
  0%, 100% { border-color: #666; }
  50% { border-color: #ccc; }
}

.header-flex {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.banner {
  flex: 1;
  max-width: 70%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid #777;
  animation: dramatic-pulse 14s ease-in-out infinite;
}

.music-player {
  padding: 1.5rem;
  border: 1px solid #555;
  background: rgba(15,15,15,0.8);
}

.music-player.small {
  flex: 0 0 30%;
  padding: 1rem;
}

.music-player .player-header {
  text-align: center;
  margin-bottom: 1rem;
}

.music-player .player-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.music-player .now-playing {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.music-player.small .now-playing {
  font-size: 1rem;
}

.music-player .progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: 0.8rem;
}

.music-player.small .progress-container {
  font-size: 0.85rem;
  gap: 0.6rem;
}

.music-player .progress-bar {
  flex: 1;
  height: 8px;
  background: #333;
  position: relative;
  border: 1px solid #555;
}

.music-player.small .progress-bar {
  height: 6px;
}

.music-player .progress-fill {
  background: #888;
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
}

.music-player .player-controls {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.music-player.small .player-controls {
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.music-player .player-controls button {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  background: #444;
  border: 1px solid #666;
  color: #ddd;
  cursor: pointer;
  transition: background 0.3s;
}

.music-player.small .player-controls button {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.music-player .player-controls button:hover {
  background: #555;
}

.music-player .player-controls button:active {
  background: #666;
}

h1 {
  font-size: 2.4rem;
  margin: 0.5em 0;
  text-align: center;
}

p {
  text-align: center;
}

.box {
  margin-bottom: 4rem;
  padding: 2.5rem;
  border: 1px solid #666;
  background: rgba(10,10,10,0.75);
}

.about-media {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.img-square {
  width: 320px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #777;
}

.img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.75) contrast(1.1);
  transition: filter 0.4s ease;
}

.img-square img:hover {
  filter: grayscale(70%) brightness(1.1) contrast(1.2);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
}

.gallery .img-square {
  width: 100%;
  aspect-ratio: 1;
}

.interesting-details details {
  margin: 1.6rem 0;
}

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: rgba(30,30,30,0.6);
  border: 1px solid #555;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(220,220,220,0.12);
  transition: left 0.5s ease;
  z-index: -1;
}

summary:hover::before {
  left: 0;
}

summary:hover {
  background: rgba(50,50,50,0.5);
}

.quotes-section .interesting-details {
  max-width: 760px;
  margin: 0 auto;
}

.fortune-section {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  padding: 1rem;
  border: 1px dashed #555;
}

footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #555;
  font-size: 0.95rem;
}

.anime-left, .anime-right {
  position: fixed;
  bottom: -60px;
  width: 200px;
  filter: grayscale(100%);
  z-index: 10;
  pointer-events: none;
}

.anime-left  { left: 0; transform: scaleX(-1); }
.anime-right { right: 0; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-in;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border: 2px solid #aaa;
  transform-origin: center center;
  cursor: grab;
  transition: transform 0.3s ease-out;
}

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .header-flex { flex-direction: column; }
  .banner { max-width: 100%; }
  .music-player.small { flex: none; max-width: 100%; }
}

@media (max-width: 680px) {
  .page-container { width: 96%; padding: 2rem 1.5rem; margin: 2rem auto; }
  .about-media { flex-direction: column; align-items: center; gap: 2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .anime-left, .anime-right { width: 160px; bottom: -70px; }
  .music-player { padding: 1.5rem; }
}