/* --- GLOBAL STYLES & THEME --- */
:root {
  --bg-color: #121826;
  --card-bg-color: rgba(30, 41, 59, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --primary-text-color: #F2F4F7;
  --secondary-text-color: #8A94A6;
  --tertiary-text-color: "#060707";
  --added-color: #dc6816; /* dc6816 */
  --added-color-text: "#71360c";
  --accent-color-lighter: #95fef0;
  --accent-color: #00F5D4;
  --accent-color-darker: #060707;
  --accent-glow: rgba(0, 245, 212, 0.3);
  --font-family: 'Poppins', sans-serif;

  /* Dynamic transcript styling variables */
  --transcript-bg-alpha: 0.7;
  --transcript-font-size: 24px;
  --transcript-font-size-number: 24;
  --transcript-vertical-pos: 50%;
  --transcript-height: 100%;
  --transcript-horizontal-margin: 10%;
}

body {
  background-color: var(--bg-color);
  margin: 0;
  font-family: var(--font-family);
  color: var(--primary-text-color);
  overflow-x: hidden;
}

h1,
h2 {
  margin-top: 0;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.glass-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#yt-transcript-player-app {
  padding: 0rem;
  margin: 0em auto;
  max-width: 1400px;
  padding: 1rem;
}

#main-content {
  display: flex;
  flex-direction: column;
  /* gap: 2rem; */
}

#sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

}

footer {
  text-align: center;
  margin-bottom: 2rem;
  position: relative; /* For positioning the settings button */
}

#new-footer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  background-color: var(--card-bg-color);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
}

#footer-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

#footer-text h4,
#footer-text p {
  margin: 0;
  color: var(--primary-text-color);
}

#footer-text h4 {
  font-size: 1rem;
  font-weight: 600;
}

#footer-text p {
  font-size: 0.8rem;
  color: var(--secondary-text-color);
}

/* --- Mobile DESIGN --- */
@media (max-width: 600px) {
  html, body {
   overflow-x: hidden;
  }
  body {
    position: relative
  }

  #yt-transcript-player-app {
    padding: 0rem;
    width: 100%; /* Ensure app container doesn't cause overflow */
    box-sizing: border-box;
  }

  h1 {
    font-size: 1.8rem;
  }
  /* Make player controls more touch-friendly */
  #external-controls {
    padding: 0.75rem 0.5rem; /* Add more vertical space and some horizontal padding */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
  }
  
  .glass-card {
    padding: 0rem;
  }

  /* Make transcript font larger on smaller screens for better readability and clickability */
  #transcript-section {
    /* Adds 3px to the user-selected font size on mobile devices */
    font-size: calc(var(--transcript-font-size) + 3px);
  }
}