/* === Custom Fonts === */
@font-face { 
  font-family: 'ComicRelief'; 
  src: url('../fonts/en/ComicRelief-Regular.ttf') 
  format('truetype'); 
  font-weight: 400; 
  font-style: normal; 
} 

@font-face { 
  font-family: 'ComicRelief'; 
  src: url('../fonts/en/ComicRelief-Bold.ttf') 
  format('truetype'); 
  font-weight: 700; 
  font-style: normal; 
} 

:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #06b6d4;
  --text: #e6eef6;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'ComicRelief', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background: var(--bg) url("../images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

.site-header {
  background: linear-gradient(90deg, #071029, #0b1220);
  padding: 0.6rem;
}

.nav {
  display: flex;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.nav a:hover { background: rgba(255,255,255,0.03); }


main#content {
  max-width: var(--max-width);
  margin: 1rem auto;
  padding: 1rem;
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.thumb { background: var(--card); padding: 0.5rem; border-radius: 8px; }

.wall-thumb { width: 100%; height: auto; border-radius: 6px; display: block; }

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.6rem;
  background: var(--accent);
  color: #042;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

@media (max-width:600px) {
  .nav { overflow: auto; padding-bottom: 0.5rem; }
  .bgm-player { flex-direction: column; align-items: flex-start; }
}


#play-pause {
  background: var(--accent);
  color: #042;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  background: rgba(11,18,32,0.85);
  padding: 1rem;
  text-align: center;
  color: var(--text);
  font-size: 0.9rem;
}

.site-footer .copyright {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}
#bgm-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(11,18,32,0.7);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 1rem auto;
}

#bgm-player button {
  background: var(--accent);
  color: #042;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
}

#bgm-player button:hover {
  background: rgba(6,182,212,0.8);
}

#volume {
  width: 90px;
  accent-color: var(--accent);
  cursor: pointer;
}

#progress-container {
  flex: 1;
  height: 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden; /* ensures rounded corners clip the bar */
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 8px 0 0 8px; /* rounded left edge only */
}
