main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;

  background-image: url("../img/whatsnext/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.album-center-square {
  width: min(95vw, 1800px);
  height: min(85vh, 950px);

  background-color: #FFD84D;
  margin: auto;
  position: relative;

  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: clamp(20px, 2vw, 40px);

  padding: clamp(20px, 2vw, 40px);
  box-sizing: border-box;

  overflow: hidden;
}

.album-info {
  position: relative;
  top: auto;
  left: auto;

  width: 100%;
  max-width: 420px;
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.album-frame {
  display: inline-block;
  padding: 8px;
  border-style: solid;
  border-width: 10px;
  border-image-source: linear-gradient(to bottom, #000080, #1084d0);
  border-image-slice: 1;
}

.album-cover {
  display: block;
  width: 100%;
  height: auto;
  border-style: solid;
  border-width: 10px;
  border-image-source: linear-gradient(to bottom, #000080, #1084d0);
  border-image-slice: 1;
}

.album-text {
  margin-top: 20px;
}

.album-title {
  font-family: PixelifySans;
  color: rgb(0,0,0);
  font-size: 3.5rem;
  margin-bottom: 6px;
  font-size: clamp(2rem, 3vw, 3.5rem);
}

.album-artist {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: rgba(0,0,0);
  font-weight: bold;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.album-release {
  font-size: 1rem;
  font-style: italic;
  color: rgb(23, 23, 23);
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.middle-column {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2vh, 25px);
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.win-window {
  position: relative;
  left: auto;
  transform: none;

  width: 100%;
  background: #C0C0C0;

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

  display: flex;
  flex-direction: column;
}
.presave-window {
  flex: 3;
  min-height: 180px;
}

.tracklist-window {
  flex: 5;
  min-height: 220px;
}


.win-titlebar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;

  font-family: sans-serif;
  font-weight: bold;
  font-size: 14px;

  padding: 4px 6px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.win-buttons {
  display: flex;
  gap: 4px;
}

.win-btn {
  width: 16px;
  height: 16px;

  background: #C0C0C0;

  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;

  color: black;
  font-size: 12px;
  line-height: 14px;
  text-align: center;

  cursor: default;
}

.win-content {
  flex: 1;
  background: #FFFFFF;
  border-top: 2px solid #808080;
  padding: 15px;
  overflow-y: auto;
}

.stream-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stream-buttons .btn {
  display: block;
  padding: 8px 12px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  border: 2px solid #808080;
  border-top-color: #FFFFFF;
  border-left-color: #FFFFFF;
  border-right-color: #404040;
  border-bottom-color: #404040;
  cursor: pointer;

  color: white;
  font-family: sans-serif;
  transition: all 0.2s;
}

.stream-buttons .spotify { background: #1DB954; }
.stream-buttons .apple { background: #ff4e6b; }
.stream-buttons .soundcloud { background: #ff5500; }
.stream-buttons .bandcamp { background: #629AA9; }
.stream-buttons .amazon { background: #FF9900; }

.stream-buttons .btn:hover {
  filter: brightness(1.2);
}

.tracklist-content {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: black;
  line-height: 1.5;
  padding-left: 15px;
}

.tracklist-content ol {
  padding-left: 20px;
  margin: 0;
}

.tracklist-content li {
  margin-bottom: 6px;
}

.tracklist-content li em {
  font-style: italic;
  color: #333;
}

.nav-window {
  position: relative;
  top: auto;
  left: auto;
  transform: none;

  width: 100%;

  flex: 2;        
  min-height: 100px;

  display: flex;
  flex-direction: column;

  background: #C0C0C0;

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

  min-height: 0;    
}

.nav-window .win-content {
  flex: 1;
  background: #FFFFFF;
  border-top: 2px solid #808080;
  padding: 15px;

  display: flex;
  flex-direction: row;
  justify-content: flex-start; 
  gap: 10px;
}

.nav-buttons .btn {
  display: inline-block;
  padding: 6px 12px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  border: 2px solid #808080;
  border-top-color: #FFFFFF;
  border-left-color: #FFFFFF;
  border-right-color: #404040;
  border-bottom-color: #404040;
  cursor: pointer;

  color: black;
  font-family: sans-serif;
  transition: all 0.2s;
  background: #C0C0C0;
}

.nav-buttons .btn:hover {
  filter: brightness(1.2);
}

.right-column {
  position: relative;
  top: auto;
  right: auto;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;

  display: flex;
}

.artist-note-window {
  width: 100%;
    flex: 1;
  min-height: 0;
  color: black;
}

a {
  color: black;
  text-decoration: underline;
}

.scroll-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FFD84D;
  overflow: hidden;
  white-space: nowrap;

  height: clamp(24px, 3vh, 40px);

  display: flex;
  align-items: center;
  border-bottom: 2px solid #000;
  z-index: 15;
}

.scroll-banner span {
  display: inline-block;
  padding-left: 100%;

  animation: scrollText 15s linear infinite;

  font-weight: bold;
  color: black;
  font-family: sans-serif;

  font-size: clamp(0.7rem, 1vw, 1rem);

  font-style: italic;
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* CREDITS */

.credits-window {
  flex: 6; 
  min-height: 300px; 
  display: flex;
  flex-direction: column;
  min-height: 0;   
}

.credits-window .win-content {
  flex: 1;
  overflow-y: auto;
  max-height: none;
}

.credits-list {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: black;
}

.credit-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.credit-pic {
  width: 32px;
  height: 32px;
  background-color: #ccc;
  border: 1px solid #888;
  margin-right: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

/* LYRICS */

.lyrics-window {
  width: 100%;
  min-width: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #C0C0C0;
  color: black;

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

  overflow: hidden;
}

.lyrics-window .win-content {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  padding: 15px;
  overflow-y: auto;
  overflow-x: hidden;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: black;
}

.lyrics-window .win-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: inherit;
  line-height: 1.5;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.social-buttons .btn {
  display: block;
  padding: 8px 12px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  border: 2px solid #808080;
  border-top-color: #FFFFFF;
  border-left-color: #FFFFFF;
  border-right-color: #404040;
  border-bottom-color: #404040;
  cursor: pointer;
  font-family: sans-serif;
  transition: all 0.2s;
  color: white;
}

.social-buttons .btn:hover { filter: brightness(1.2); }

.social-buttons .instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-buttons .twitter { background: #1DA1F2; }
.social-buttons .discord { background: #5865F2; }
.social-buttons .tiktok { background: #000000; }

/* MOBILE SUPPORT */

@media (max-width: 900px) {

  .album-center-square {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;

    gap: 20px;
    padding: 20px;
  }

  .middle-column {
    height: auto;
  }

  .right-column {
    height: auto;
  }

  .presave-window,
  .tracklist-window,
  .nav-window,
  .artist-note-window {
    height: auto;
    min-height: unset;
  }

  .win-content {
    max-height: none;
  }

  .album-info {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* center album cover and text */
  }

  .album-cover {
    width: 70%;      /* scales down the cover on smaller screens */
    max-width: 300px; /* optional cap for very small screens */
    height: auto;
  }

  .album-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    text-align: center;
  }

  .album-artist {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    text-align: center;
  }

  .album-release {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    text-align: center;
  }

  .nav-window .win-content {
    flex-wrap: wrap;
  }

  .nav-buttons .btn {
    flex: 1 1 auto;
    text-align: center;
  }

}

@media (max-width: 900px) {
  .lyrics-window {
    min-height: 200px;    /* ensures visible window on smaller screens */
  }

  .lyrics-window .win-content {
    font-size: 0.95rem;
    padding: 10px;
  }
}

@media (max-width: 600px) {
  .lyrics-window .win-content {
    font-size: 0.9rem;
    padding: 8px;
  }
}

.navbarLink {
  color: white;
  text-decoration: none;
  font-weight: bold;
}