body, html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background: white;
}

.slider-container {
  display: flex;
  width: 600vw;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 999;
}

.left {
  left: 20px;
}

.right {
  right: 20px;
}

.arrow-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* "Click on the arrow" image */
.click-prompt {
  position: fixed;
  right: 20px;
  top: calc(50% + 75px); /* lower to fit size */
  width: 180px;           /* was 130px */
  max-width: 35vw;        /* stays responsive on small screens */
  display: none;
  pointer-events: none;
  z-index: 999;
}


.visible-on-load {
  display: block;
}

/* Slide background colors */
#slide1 { background-color: #ffffff; }
#slide1-2 { background-color: #f3ffff;
}
#slide2 { background-color: #fff6ec; }
#slide2-2 { background-color: #f7fff3;
}

#slide3 { background-color: #fafae9; }
#slide3-2 { background-color: #f6f3ff;
}
#slide4 { 
  /* still a flex-column, but start at top instead of center */
  justify-content: flex-start !important;
  /* push everything down so it sits just under the nav-indicator */
  padding-top: 60px; /* tweak this until your title is right below the dots */

  position: relative;
  overflow: auto;
  padding: 20px 0; 
  background-color: #f0fbff; }

/* put a little gap under the title image */
#slide4 .correlations {
  margin-bottom: 30px; 
}

/* remove extra top-margin from the menu & heatmap if you set any before */
/* make the “Choose a genre” container span full width and push its contents right */
#slide4 #correlation-menu-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;  /* ← shift to the right edge */
  padding-right: 40px;        /* ← optional gutter from the arrow */
  margin-bottom: 20px;        /* ← small gap under the select */
}#slide4 #correlation-heatmap {
  margin-top: 0 !important;
}
#slide5 { background-color: #f9f3ff;
}

#slide5-2 { background-color: #fff3f4;
}

#slide6 { background-color: #f3fff4; }

/* Logo image */
.logo {
  width: 500px;
  max-width: 80%;
  margin-bottom: 40px;
}

/* GIF styling */
.party-gif {
  width: 500px;
  max-width: 80%;
  margin: 40px 0;
}

/* Click image inside slide (if used separately) */
.click-img {
  width: 200px;
  max-width: 70%;
  margin-top: 30px;
}

/* Slide indicator bar */
.nav-indicator {
  position: absolute;
  top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  pointer-events: none;
  z-index: 999;
}

.bar {
  width: 60px;
  height: 6px;
  background-color: #ccc;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.bar.active {
  background-color: black;
}

/* Chart containers */
.chart-container {
  display: flex;
  justify-content: center; 
  align-items: center;     
  width: 100%;
  margin: 0 auto;
}

.chart-img {
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: block;
}

.genre-race-title {
  max-width: 1100px;
  width: 40%;
  height: auto;
  display: block;
  margin-top: 40px;
}

.map {
  max-width: 1100px;
  width: 40%;
  height: auto;
  display: block;
  margin-top: 40px;
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.correlation-map {
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: block;
}

.correlations {
  max-width: 1100px;
  width: 40%;
  height: auto;
  display: block;
  margin-top: 40px;
}

.popularity-map {
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: block;
}

.popularity {
  max-width: 1100px;
  width: 40%;
  height: auto;
  display: block;
  margin-top: 40px;
}

.genrify-map {
  max-width: 1200px;
  width: 70%;
  height: auto;
  display: block;
}

.genrify-title {
  max-width: 1100px;
  width: 18%;
  height: auto;
  display: block;
  margin-top: 40px;
}

.genrify-subtitle {
  max-width: 1100px;
  width: 30%;
  height: auto;
  display: block;
  margin-top: 40px;
}

#leftArrow {
  display: none;
}
.tooltip {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
}
/* also in style.css */

#correlation-heatmap {
  /* center and allow horizontal scroll if still too wide */
  width: 100%;
  overflow-x: auto;
}

#correlation-heatmap svg {
  /* scale down to fit inside 90% of the viewport width */
  max-width: 90vw;
  /* and at most 80% of the viewport height */
  max-height: 80vh;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}
/* flex container for heatmap + legend */
#heatmap-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;        /* space between map & legend */
  margin-top: 10px; /* small gap under select bar */
}

/* legend container styling */
#correlation-legend {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #333;
}


#scatter-container {
  width: 80vw;
  height: 70vh;
  margin: 0 auto;
}
/* Base styling for all your dropdowns */
#correlation-select,
#feature-x,
#feature-y {
  appearance: none;             /* remove default native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;       /* white background */
  border: 1px solid #888;       /* subtle gray border */
  border-radius: 10px;           /* rounded corners */
  padding: 8px 12px;            /* space inside */
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}



/* Change border‐color on focus */
#correlation-select:focus,
#feature-x:focus,
#feature-y:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Optionally wrap each in a container to control width */
.select-wrapper {
  display: inline-block;
  position: relative;
}


/* Hide native arrow on IE10/11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  #correlation-select::-ms-expand,
  #feature-x::-ms-expand,
  #feature-y::-ms-expand {
    display: none;
  }
}
.music-character {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.mwg_effect000 {
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.mwg_effect000 .header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid #323232;
  padding: 20px 25px;
  color: #BAB8B9;
}
.mwg_effect000 .header div:nth-child(2) {
  font-size: 26px;
}
.mwg_effect000 .header div:last-child {
  display: flex;
  justify-content: flex-end;
}
.mwg_effect000 .button {
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 24px;
  height: 48px;
  gap: 5px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  width: max-content; 
}
.mwg_effect000 .button1 { background-color: #232323; }
.mwg_effect000 .button2 { border: 1px solid #323232; }
.mwg_effect000 .button img {
  width: 22px;
  height: auto;
  display: block;
}

.mwg_effect000 .medias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1vw;
}

.mwg_effect000 .medias img {
  width: 11vw;
  height: 11vw;
  object-fit: contain;
  border-radius: 4%;
  display: block;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 768px) {
  .mwg_effect000 .header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
  }
  .mwg_effect000 .header div:nth-child(2) {
    display: none;
  }
  .mwg_effect000 .medias {
    gap: 2vw;
  }
  .mwg_effect000 .medias img {
    width: 18vw;
    height: 18vw;
  }
}

#slide2-2 {
  /* stack top to bottom instead of centering */
  justify-content: flex-start !important;
  /* give some breathing room at top */
  padding-top: 60px;
  /* allow internal scrolling if it ever overflows */
  overflow-y: auto;
}

#slide2-2 .genre-race-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  max-width: 600px;
  text-align: center;
  margin: 0 auto 40px;
  color: #333;
}

/* ============ GENRE RACE STYLES =============== */
#slide2-1 .center-title {
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-top: 20rem;
  color: #222;
  width: 100vw;
}

#slide2-1 .main-flex-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  width: 100vw;
  max-width: 1800px;
  margin: 0 auto;
}

#slide2-1 #top-song-box {
  width: 320px;
  min-height: 180px;
  background: #fffbe7;
  border-radius: 16px;
  border: 2px solid #ffe066;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 18px 20px 18px 20px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  color: #444;
  z-index: 20;
  transition: background 0.3s;
  display: flex;
  margin-right: 36px;
  margin-top: 6rem; /* no top margin */
  align-self: flex-start;
}
#slide2-1 #top-song-box h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
  color: #ffbe0b;
  font-family: 'Poppins', Arial, sans-serif;
  letter-spacing: 1px;
  font-weight: 700;
}
#slide2-1 #top-song-box .song-row {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
}
#slide2-1 #top-song-box .label {
  min-width: 120px;
  font-weight: bold;
  color: #3a86ff;
  margin-right: 6px;
  font-family: 'Poppins', Arial, sans-serif;
}
#slide2-1 #top-song-box .value {
  flex: 1;
  color: #222;
  font-family: 'Poppins', Arial, sans-serif;
}
#slide2-1 #top-song-box .emoji {
  margin-right: 7px;
  font-size: 18px;
}
#slide2-1 #top-song-box .album-cover {
  width: 100%;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  object-fit: cover;
  background: #eee;
  display: block;
  max-width: 200px;
  max-height: 200px;
  margin-left: auto;
  margin-right: auto;
}

#slide2-1 .chart-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-right: 40px;
  margin-left: 0;
}

#slide2-1 #genre-race-vis {
  /* D3 will append SVG here */
  width: 981px;
  max-width: 100vw;
  margin: 0 auto;
}
#slide2-1 #genre-race-vis svg {
  display: block;
  background: #fff;
  border: none;
  border-radius: 18px;
  margin: 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}

#slide2-1 #control-panel {
  margin: 24px auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: static;
  width: 960px;
  transform: translate(-30px, -195px);
}

#slide2-1 #togglePlay {
  background: #ffe066;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
#slide2-1 #togglePlay:hover {
  background: #ffbe0b;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
#slide2-1 #togglePlayIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

#slide2-1 #legend-container {
  width: 210px;
  min-width: 140px;
  max-width: 320px;
  background: #f8f8ff;
  border-radius: 14px;
  padding: 18px 35px 14px 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.1rem;
  color: #444;
  margin-left: 0;
  margin-top: 4.5rem;
  align-self: flex-start;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#slide2-1 #legend-container strong {
  font-size: 1.2rem;
  color: #3a86ff;
  font-family: 'Poppins', Arial, sans-serif;
  margin-bottom: 7px;
  display: block;
}
#slide2-1 #legend {
  display: flex;
  flex-direction: column;
  gap: 6px 0;
  width: 100%;
  margin-top: 7px;
}
#slide2-1 .legend-item {
  cursor: pointer;
  font-size: 15px;
  user-select: none;
  padding: 3px 10px;
  border-radius: 7px;
  background: #f4f4f4;
  margin-bottom: 0;
  font-family: 'Poppins', Arial, sans-serif;
  transition: background 0.2s, font-weight 0.2s;
  display: block;
  width: 100%;
}
#slide2-1 .legend-item:hover, #slide2-1 .legend-item.active {
  background: #ffe066;
  font-weight: 700;
}

#slide2-1 .axis path, #slide2-1 .axis line { stroke: #bbb; }
#slide2-1 .decade-tick { cursor: pointer; transition: fill 0.3s ease; }
#slide2-1 .decade-tick.selected-tick text { fill: #ff006e; font-weight: bold; }
#slide2-1 .clickable-text { font-size: 13px; fill: #444; cursor: pointer; user-select: none; transition: fill 0.2s ease; pointer-events: all; font-family: 'Poppins', Arial, sans-serif; }
#slide2-1 .clickable-text:hover { text-decoration: underline; fill: #ffbe0b; }
#slide2-1 .selected { fill: #ff006e; font-weight: bold; }

@media (max-width: 1300px) {
  #slide2-1 .main-flex-row { flex-direction: column; }
  #slide2-1 #top-song-box, #slide2-1 #legend-container { margin: 20px 0; }
  #slide2-1 .chart-column { margin: 0; align-items: center; }
  #slide2-1 #genre-race-vis { width: 98vw; }
  #slide2-1 #control-panel { width: 100vw; }
}

@media (max-width: 850px) {
  #slide2-1 #top-song-box, #slide2-1 #legend-container { max-width: 95vw; }
  #slide2-1 #genre-race-vis { max-width: 98vw; }
}

@media (max-width: 1600px) {
  #slide2-1 {
    transform: scale(0.75);
    transform-origin: top center;
  }
}

@media (max-width: 1200px) {
  #slide2-1 {
    transform: scale(0.65);
    transform-origin: top center;
  }
}

@media (max-width: 1600px) {
  #slide2-3 {
    transform: scale(0.75);
    transform-origin: top center;
  }
}

@media (max-width: 1200px) {
  #slide2-3 {
    transform: scale(0.65);
    transform-origin: top center;
  }
}

#slide6 {
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 12px 44px rgba(40,48,95,0.10);
  padding: 34px 48px 28px 48px;
  justify-content: flex-start;
  background-color: #f3fff4;
  box-sizing: border-box;
}


#slide6-1 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #eaf2fa;
  font-family: 'Poppins', Arial, sans-serif;
  padding: 0;
}
#slide6-1 .intro-card {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 34px #386af31a;
  padding: 54px 36px 38px 36px;
  text-align: center;
  max-width: 480px;
}
#slide6-1 .intro-big {
  font-size: 2.4rem;
  font-weight: 900;
  color: #255fd7;
  margin-bottom: 22px;
  line-height: 1.15;
}
#slide6-1 .highlight {
  color: #34c987;
  background: linear-gradient(90deg, #ffe066 40%, #67e7a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#slide6-1 .intro-small {
  font-size: 1.14rem;
  color: #444a68;
  margin-bottom: 36px;
  line-height: 1.68;
}
#slide6-1 .intro-btn {
  font-size: 1.19rem;
  font-weight: 700;
  background: linear-gradient(90deg,#5289fa 65%,#67e7a6 100%);
  color: #fff;
  border: none;
  padding: 14px 44px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 12px #5289fa22;
}
#slide6-1 .intro-btn:hover {
  background: linear-gradient(90deg,#3260f5 50%,#34c987 100%);
  transform: translateY(-1.5px) scale(1.035);
}

/* ========================
   SLIDE 6-2 PREDICTOR (renamed from #slide6)
======================== */
#slide6-2 .title {
  font-size: 3.04rem;
  font-weight: bolder;
  margin-bottom: 10px;
  margin-top: 4.4rem;
  color: #000000;
  letter-spacing: 0.6px;
  line-height: 1.12;
  text-align: center;
}

#slide6-2 .subtitle {
  font-size: 1.18rem;
  font-weight: 400;
  margin-bottom: 36px;
  color: #535875;
  opacity: 0.97;
  line-height: 1.5;
  text-align: center;
}

#slide6-2 .form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 38px;
  margin-bottom: 20px;
}

#slide6-2 .slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

#slide6-2 .slider-label {
  font-size: 1.04rem;
  color: #385489;
  font-weight: 600;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.01em;
}
#slide6-2 .slider-value {
  font-size: 1rem;
  color: #5289fa;
  margin-left: 6px;
  font-weight: 600;
}
#slide6-2 input[type="range"] {
  width: 100%;
  accent-color: #5289fa;
  background: transparent;
  height: 5px;
  margin: 0;
  cursor: pointer;
  border-radius: 4px;
}
#slide6-2 input[type="range"]:focus {
  outline: none;
  accent-color: #255fd7;
}

#slide6-2 .year-range-row {
  grid-column: 1 / -1;
  margin: 18px 0 0 0;
  padding-bottom: 2px;
}
#slide6-2 .year-range-row .slider-group {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
#slide6-2 .year-range-row .slider-label {
  flex: 1;
}
#slide6-2 .year-range-row .slider-value {
  min-width: 42px;
  display: inline-block;
  text-align: center;
}
#slide6-2 .year-range-row input[type="range"] {
  width: 42%;
  margin: 0 6px;
  min-width: 90px;
}

#slide6-2 .form-actions {
  display: flex;
  justify-content: center;
  margin: 34px 0 0 0;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

#slide6-2 .btn {
  padding: 14px 38px;
  border-radius: 12px;
  background: linear-gradient(90deg, #5289fa 0%, #67e7a6 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 16px #5289fa23;
  transition: background 0.18s, transform 0.14s;
  letter-spacing: 0.01em;
}
#slide6-2 .btn:hover {
  background: linear-gradient(90deg, #3260f5 0%, #33c87c 100%);
  transform: translateY(-2px) scale(1.037);
}
#slide6-2 .genre-card,
#slide6-2 .similar-track-card {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#slide6-2 .genre-card {
  margin: 20px auto 0 auto;
  background: #eef3fe;
  color: #255fd7;
  font-size: 1.23rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px 32px;
  box-shadow: 0 2px 10px #8ca4f125;
  text-align: center;
}

#slide6-2 .similar-track-card {
  margin-top: 20px;
  padding: 10px 14px;
  background: #edfbf7;
  border-radius: 17px;
  min-height: 54px;
  font-size: 1.15rem;
  color: #236d59;
  border: 1px solid #c8f6e4;
  box-shadow: 0 1px 12px #8ce1c11a;
  max-width: 510px;
  text-align: center;
}

#slide6-2 .result-label {
  color: #255fd7;
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 6px;
  display: block;
}
#slide6-2 .spotify-player-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#slide6-2 iframe.spotify-player {
  border-radius: 13px;
  min-width: 340px;
  width: 370px;
  height: 80px;
  border: 0;
}

@media (max-width: 1200px) {
  #slide6-2 {
    padding: 24px 2vw 24px 2vw;
    max-width: 99vw;
  }
}

@media (max-width: 900px) {
  #slide6-2 .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 18px;
  }
  #slide6-2 .year-range-row .slider-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  #slide6-2 {
    padding: 10px 0 0 0;
    border-radius: 0;
  }
  #slide6-2 .form-grid {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
  #slide6-2 .spotify-player-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  #slide6-2 iframe.spotify-player {
    min-width: 220px;
    width: 99vw;
  }
}




/* ============ for the billboard score slide =============== */
.billboard-table, .billboard-user-table {
  font-family: 'Poppins', Arial, sans-serif;
  border-spacing: 0;
  border-radius: 14px;
  background: #fff;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  width: 95%;
  max-width: 420px;
}

.billboard-row, .user-row {
  transition: background 0.18s;
  height: 48px;
  font-size: 1.02em;
}

.billboard-row td, .user-row td {
  padding: 7px 7px 7px 0;
  border-bottom: 1px solid #f2f2f2;
}

.billboard-rank, .user-rank {
  font-weight: 700;
  text-align: right;
  width: 25px;
  color: #facd1e;
  font-size: 1.10em;
}

.billboard-title, .user-title {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.05;
}
.billboard-artist, .user-artist {
  font-size: 0.95em;
  color: #222;
  line-height: 1.05;
}
.billboard-genre {
  font-size: 0.97em;
  font-weight: 600;
  color: #5685f3;
  letter-spacing: 0.02em;
}
.billboard-row.disabled { opacity: 0.43; pointer-events: none; background: #f9f9f9 !important; }

.billboard-cover, .user-cover {
  width: 35px; height: 35px; border-radius: 7px; object-fit: cover;
  margin-right: 6px; box-shadow: 0 2px 7px rgba(0,0,0,0.09);
  background: #ececec;
}

.user-row { min-height: 44px;}
.user-slot:not(.filled) { background: #fafbfc; color: #bbb; cursor: pointer;}
.user-slot.filled { background: #f5faff;}
.user-slot.drag-over { background: #ffe066 !important; }

.center-title {
  font-size: 2.2em;
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 900;
  margin-bottom: 22px;
  margin-top: 18px;
  letter-spacing: -0.03em;
}

#billboard-original, #billboard-user {
  display: inline-block;
  vertical-align: top;
  width: 340px;
  min-width: 260px;
  margin: 0 1vw;
}

@media (max-width: 900px) {
  #billboard-original, #billboard-user { width: 97vw; margin: 12px auto;}
  .center-title { font-size: 1.25em; }
}

.genre-board-row {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 5px auto 13px auto;
  background: #f8f8fd;
  border-radius: 13px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  display: flex; align-items: center;
  padding: 8px 20px 8px 16px;
  font-size: 1.13em;
  min-width: 220px;
  max-width: 350px;
  animation: fadeInUp 0.7s cubic-bezier(.23,.72,.43,.99) forwards;
  opacity: 0;
}
.genre-board-row .genre-emoji { font-size: 1.18em; margin-right: 8px;}
.genre-board-row .genre-label { font-weight: 700; margin-right: 8px;}
.genre-board-row .genre-score { color: #3565d1; font-size: 0.98em;}
.genre-formula { font-size: 0.98em; color: #888; margin-left: 10px; margin-top: 5px;}
.frac { font-family: 'Poppins', Arial, sans-serif; font-size: 1em; margin: 0 2px;}
.sumval { color: #556; margin: 0 2px;}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: translateY(0);}
}

.genre-board-row-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  font-family: 'Poppins', Arial, sans-serif;
  margin: 9px 0;
  padding: 10px 20px;
  background: #24262d;
  color: #f3f3f3;
  border-radius: 13px;
  font-size: 1.13em;
  min-width: 200px;
  max-width: 410px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  animation: fadeInUp 0.7s cubic-bezier(.23,.72,.43,.99) forwards;
  opacity: 0;
}
.genre-rank-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85em;
  height: 1.85em;
  background: #ffe066;
  color: #222;
  font-weight: 900;
  border-radius: 50%;
  margin-right: 5px;
  font-size: 1.1em;
  box-shadow: 0 2px 7px rgba(0,0,0,0.09);
  letter-spacing: -0.02em;
  border: 2px solid #e5b800;
}
.genre-board-row-inline .genre-emoji {
  font-size: 1.17em;
  margin-right: 6px;
}
.genre-board-row-inline .genre-label {
  font-weight: 700;
  margin-right: 10px;
  letter-spacing: 0.01em;
  color: #ffe066;
}
.genre-inline-formula {
  font-size: 1em;
  color: #f3f3f3;
  margin-left: 0;
}
.frac {
  font-family: 'Poppins', Arial, sans-serif;
  color: #a5eaff;
  font-size: 1em;
  margin: 0 2px;
}
.genre-inline-formula b {
  color: #ffe066;
  font-size: 1.11em;
  margin-left: 6px;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to   { opacity: 1; transform: translateY(0);}
}


/* ===============================
   SLIDE 7 — Conclusion Styles
=============================== */
#slide7 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', Arial, sans-serif;
  background: #f6f8fc;
  padding: 0 2vw;
}

#slide7 .conclusion-message {
  max-width: 680px;
  font-size: 1.36rem;
  color: #232f47;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 3.5rem;
  margin-top: 4rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px #cbe2ff23;
  padding: 38px 32px 26px 32px;
}

#slide7 .conclusion-footer {
  font-size: 1.11rem;
  color: #45537b;
  background: #f2f5fb;
  border-radius: 12px;
  padding: 22px 18px 16px 18px;
  box-shadow: 0 2px 12px #e0e8f933;
  font-weight: 600;
  margin-bottom: 3.7rem;
  margin-top: -2rem;
  display: inline-block;
  text-align: center;
  line-height: 1.4;
}
#slide7 .conclusion-footer strong {
  font-weight: 900;
  font-size: 1.28em;
  color: #1849b5;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  #slide7 .conclusion-message {
    font-size: 1.05rem;
    padding: 16px 6vw;
  }
  #slide7 .conclusion-footer {
    font-size: 0.99rem;
    padding: 13px 4vw 10px 4vw;
  }
}