body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: #f4f6fa;
    color: #23272e;
}

.sidebar {
    position: fixed;
    width: 230px;
    height: 100%;
    background: #fff;
    border-right: 1px solid #e6e8eb;
    padding: 36px 22px;
    box-shadow: 2px 0 6px 0 rgba(50,50,60,0.04);
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.8em;
    letter-spacing: 0.5px;
}

.sidebar nav a {
    display: block;
    color: #23272e;
    text-decoration: none;
    margin: 18px 0;
    font-weight: 500;
    opacity: 0.86;
    border-left: 4px solid transparent;
    padding-left: 9px;
    transition: all 0.2s;
}

.sidebar nav .active {
    font-weight: bold;
    color: #0066cc;
    border-left: 4px solid #0066cc;
    background: #f0f4ff;
    opacity: 1;
}

.main {
    margin-left: 260px;
    padding: 48px 38px 32px 38px;
    max-width: 820px;
    min-height: 100vh;
}

.intro h1 {
    margin-bottom: 0.2em;
    font-size: 2.2em;
}

.note-small-italic {
    font-size: 0.98em !important;
    font-style: italic !important;
    color: #e60000 !important; /* Will make it bright red for debugging */
}

audio {
    width: 100%;
    margin: 32px 0 24px 0;
    border-radius: 9px;
    box-shadow: 0 4px 14px 0 rgba(50,50,60,0.08);
    background: #fff;
}

.transcript {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(50,50,60,0.06);
    padding: 24px 22px;
    margin-bottom: 34px;
    line-height: 1.7;
    font-size: 1.12em;
    min-height: 180px;
    border: 1px solid #f1f2f4;
    max-height: 340px;
    overflow-y: auto;
}

.transcript-line {
    display: flex;
    align-items: baseline;
    gap: 0.8em;
    padding: 10px 0 10px 6px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.transcript-line:last-child {
    border-bottom: none;
}

.transcript-line .timestamp {
    color: #98a2b6;
    font-size: 0.93em;
    min-width: 56px;
    cursor: pointer;
    font-family: monospace;
    opacity: 0.7;
}

.transcript-line .speaker {
    font-weight: 600;
    color: #0066cc;
    min-width: 90px;
}

.transcript-line .text {
    flex: 1;
    color: #23272e;
}

.transcript-line.active {
    background: #eef5ff;
    border-radius: 6px;
    font-weight: 600;
}

.comments-section {
    margin-top: 38px;
    background: #fff;
    border-radius: 10px;
    padding: 24px 22px;
    border: 1px solid #f1f2f4;
    box-shadow: 0 1px 5px 0 rgba(50,50,60,0.04);
    max-width: 620px;
}

.comments-section h2 {
    margin-top: 0;
    font-size: 1.35em;
}

#comments {
    margin-bottom: 22px;
}
.comment {
    margin-bottom: 15px;
    padding-bottom: 7px;
    border-bottom: 1px solid #f4f4f4;
    font-size: 1em;
}

#comment-form textarea {
    width: 100%;
    height: 66px;
    resize: vertical;
    font-size: 1em;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    padding: 7px;
    background: #f9f9fb;
}

#comment-form input[type="text"] {
    width: 74%;
    padding: 7px;
    margin-bottom: 11px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    background: #f9f9fb;
}
#comment-form button {
    padding: 9px 28px;
    border: none;
    background: #0066cc;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 7px;
}
/* make sure .jump-comments works for <a> and <button> */
.jump-comments {
  display: inline-block;
  text-decoration: none;
  color: #0b63b8;
  font-weight: 600;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  font-size: 1rem;
}

/* a more visible, accessible variant */
.visible-btn {
  padding: 8px 12px;
  border-radius: 6px;
  background: #eef6ff;
  border: 1px solid #d7eafc;
  color: #0b63b8;
  box-shadow: 0 1px 2px rgba(11,63,120,0.04);
}

/* focus/hover affordances */
.visible-btn:hover, .visible-btn:focus {
  background: #e6f0ff;
  outline: none;
  box-shadow: 0 4px 12px rgba(11,63,120,0.08);
}
/* Force modern button appearance and make it look like the other cards' buttons */
#jump-to-comments,
.jump-comments.visible-btn {
  -webkit-appearance: none; /* reset Safari/Chrome native look */
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #d7ecff !important;
  border: 1px solid #d7eafc !important;
  color: #064b78 !important;
  box-shadow: 0 4px 12px rgba(11,63,120,0.08);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

/* hover / focus (accessible) */
#jump-to-comments:hover,
.jump-comments.visible-btn:hover,
#jump-to-comments:focus,
.jump-comments.visible-btn:focus {
  background: #c3e6ff !important;
  box-shadow: 0 10px 30px rgba(6,75,120,0.18);
  outline: none;
}

/* make sure focus is visible for keyboard users */
#jump-to-comments:focus-visible {
  box-shadow: 0 0 0 3px rgba(11,99,184,0.12), 0 8px 20px rgba(11,63,120,0.12);
}

#audio-visualizer {
    background: #222;
    border-radius: 8px;
    margin-bottom: 16px;
    display: block;
}

/* --- Hamburger Menu Button Styles --- */

/* Style for a transparent button with black lines */
.menu-button {
  display: none;
  position: absolute; 
  top: 15px;
  left: 15px;
  z-index: 1000;
  background: transparent; /* Changed from #333 */
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* Styles for the three lines of the icon */
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 25px;
  height: 2px; /* Made the lines thinner (was 3px) */
  background-color: #333; /* Changed from white to dark grey/black */
  position: relative;
  transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  transition: transform 0.3s ease;
}

.menu-icon::before {
  transform: translateY(-8px);
}

.menu-icon::after {
  transform: translateY(8px);
}

/* --- Responsive Styles for Mobile --- */
/* This media query applies styles only on screens 768px or narrower */
@media (max-width: 768px) {
  .sidebar {
    position: fixed; /* Keep it fixed in the viewport */
    top: 0;
    left: 0;
    height: 100%;
    width: 250px; /* Or your desired width */
    background-color: #f8f8f8; /* Give it a background */
    z-index: 900;
    transform: translateX(-100%); /* Move it off-screen to the left */
    transition: transform 0.3s ease-in-out; /* Add smooth animation */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  }

  /* This class will be added by JavaScript to show the menu */
  .sidebar.active {
    transform: translateX(0); /* Move it on-screen */
  }

  .main {
    margin-left: 0; /* Adjust main content if necessary */
  }

  /* Show the hamburger button on mobile */
  .menu-button {
    display: block;
  }
}