/* ==========================
   VARIABLES
========================== */
:root {
  --text-main: #ffffff;
  --text-dim: #aaa;
  --text-light: #bbb;
  --glass: rgba(255,255,255,0.06);
  --glass-hover: rgba(255,255,255,0.10);
  --glass-strong: rgba(255,255,255,0.15);
  --accent: rgba(26,108,181,0.25);
  --accent-border: #1A6CB5;
  --border: rgba(255,255,255,0.15);
  --blur: blur(12px);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.45);
  --transition: 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-card: 18px;
  --text-muted: rgba(255,255,255,0.35);
}

/* ==========================
   RESET
========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
}

li {
  padding: 3px 0;
  font-size: 13px;
  color: #ddd;
}

/* ==========================
   BACKGROUND
========================== */
html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding-top: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text-main);
  user-select: none;
  position: relative;
  background: url('../img/back.jpg') center/cover no-repeat;
  background-attachment: scroll;
}


/* ==========================
   TYPOGRAPHY
========================== */
h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  margin-bottom: 6px;
}

strong {
  color: var(--text-main);
  font-weight: 600;
}

a.link {
  color: var(--accent-border);
  text-decoration: none;
  transition: opacity var(--transition);
}

a.link:hover {
  opacity: 0.75;
}

/* ==========================
   LAYOUT
========================== */
main {
  max-width: 950px;
  margin: 30px auto;
  padding: 28px;
  border-radius: var(--radius-card);
  background: rgba(0,0,0,0.35);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
}

section {
  margin-bottom: 28px;
}

section:last-child {
  margin-bottom: 0;
}

/* ==========================
   HEADER
========================== */
header {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  border-radius: var(--radius-card);
  background: rgba(0,0,0,0.25);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C0C0C0;
  text-shadow: 0 0 20px rgba(192, 192, 192, 0.6), 0 0 40px rgba(192, 192, 192, 0.2);
}

/* ==========================
   NAVIGATION
========================== */
nav {
  margin-top: 12px;
}

nav a {
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 6px;
  padding: 6px 12px;
  border-radius: 10px;
  transition: var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--text-main);
  background: var(--glass-strong);
}

nav a:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

/* ==========================
   ALBUM GRID
========================== */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

/* ==========================
   ALBUM CARD
========================== */
.album {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition),
              background var(--transition);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}

.album:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
  background: var(--glass-hover);
}

.album:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 3px;
}

.album img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: transform var(--transition);
}

.album:hover img {
  transform: scale(1.05);
}

.album h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 6px 0 2px;
  color: var(--text-main);
}

.album p {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* ==========================
   BUTTON
========================== */
.download-btn {
  display: inline-block;
  padding: 7px 12px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  transition: var(--transition);
  cursor: pointer;
}

.download-btn:hover {
  background: var(--glass-strong);
  transform: scale(1.05);
}

.download-btn:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 2px;
}

.download-btn:active {
  transform: scale(0.97);
}

/* ==========================
   NEWS
========================== */
.aboutme h2 {
  color: var(--text-main);
}

.news {
  padding: 18px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition);
}

.news:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
}

.news h3 {
  margin-bottom: 10px;
}

.news p {
  margin-bottom: 4px;
}

.news ul {
  margin: 4px 0 10px 0;
}

/* ==========================
   POPULAR MINI ALBUMS
========================== */
.popular-albums {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.album-mini {
  text-align: center;
  width: 120px;
}

.album-mini img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform var(--transition);
}

.album-mini img:hover {
  transform: scale(1.05);
}

.album-mini p {
  font-size: 11px;
  margin-top: 5px;
  margin-bottom: 0;
  color: var(--text-light);
}

/* ==========================
   UPDATE HISTORY
========================== */
.update-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update {
  padding: 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: background var(--transition);
}

.update:hover {
  background: var(--glass-hover);
}

.update-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.update-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 10px;
}

.update ul {
  margin: 0;
}

.update li {
  font-size: 13px;
  color: #ccc;
  padding: 2px 0;
}

/* ==========================
   FOOTER
========================== */
footer {
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: #666;
}

/* ==========================
   SCROLLBAR
========================== */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .albums {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 600px) {
  main {
    margin: 10px;
    padding: 16px;
  }
  nav a {
    font-size: 12px;
    padding: 5px 8px;
  }
  h2 {
    font-size: 16px;
  }
}

/* ==========================
   COLLECTION DOWNLOAD
========================== */
.collection-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--accent-border);
}

.collection-info p {
  margin-bottom: 4px;
  color: var(--text-light);
  font-weight: 500;
}

.download-btn-big {
  font-size: 14px;
  padding: 10px 20px;
  font-weight: 600;
  border-color: var(--accent-border);
}

.collection-info p:first-child {
  margin-bottom: 4px;
  color: var(--text-dim);
}

/* ==========================
   OLD VERSIONS
========================== */
.version-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: background var(--transition);
}

.version-row:hover {
  background: var(--glass-hover);
}

.version-tag {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 800;
  min-width: 60px;
}

.version-date {
  font-size: 13px;
  color: var(--text-dim);
  flex: 1;
}

/* ==========================
   RESPONSIVE ADDITIONS
========================== */
@media (max-width: 600px) {
  .collection-download {
    flex-direction: column;
    align-items: flex-start;
  }
}

.album-detail-wrap {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: flex-start;
}

.album-cover-big {
  width: 280px;
  height: 280px;
  object-fit: cover;
  display: block;
}

.album-info-col {
  flex: 1;
}

.album-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.album-artist {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.album-meta {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.album-meta li span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.tracklist h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.tracklist ol {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .album-detail-wrap {
    flex-direction: column;
  }

  .album-cover-big {
    width: 100%;
    height: auto;
  }
}

.album-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.album-link:hover img {
  opacity: 0.8;
}

.album-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.download-btn-cover {
  width: 100%;
  text-align: center;
  padding: 9px 0;
  font-size: 13px;
  border-color: var(--accent-border);
  letter-spacing: 0.5px;
}

.download-btn-cover:hover {
  background: var(--accent);
}

.download-hint {
  width: 280px;
  font-size: 12px;
  color: var(--text-dim);
}
