*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Roboto", sans-serif;
    background: #fff8e1;
    color: #3e2723;
    padding-top: 64px;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #3e2723;
    z-index: 100;
}
.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 1rem;
}
.nav-item {
    margin: 0 1rem;
}
.nav-link {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-link:hover,
.nav-link:focus {
    color: #ffdcdc;
}

.controls {
    background: #fff;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem;
}
.controls-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lang-select {
    padding: 0.5rem 1rem;
    border: 1px solid #b71c1c;
    border-radius: 4px;
    background: #fff8e1;
}
.toggle-label {
    font-size: 0.95rem;
}
.toggle-button {
    width: 40px;
    height: 20px;
    background: #ccc;
    border: none;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}
.toggle-button::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-button[aria-pressed="true"] {
    background: #b71c1c;
}
.toggle-button[aria-pressed="true"]::after {
    transform: translateX(20px);
}
.toggle-button.pulse {
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(183, 28, 28, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0);
    }
}

.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 1rem;
}
.card-title {
    background: #b71c1c;
    color: #fff;
    padding: 0.75rem;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.lyrics[data-lang] {
    display: none;
}
.lyrics h2 {
    text-align: center;
    margin-bottom: 0.75rem;
    background: #b71c1c;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1.25rem;
}
.lyrics p {
    text-align: center;
}
.verse {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.meaning {
    display: none;
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    background: rgba(183, 28, 28, 0.05);
    border-left: 4px solid #b71c1c;
    font-style: italic;
    border-radius: 4px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.02);
    text-align: justify !important;
}
.show-meaning .meaning {
    display: block;
}

.card-image,
.lyrics img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.button-group {
    text-align: center;
    margin-top: 0.5rem;
}
.button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: #b71c1c;
    color: #fff;
    border-radius: 6px;
    transition: transform 0.3s, background 0.3s;
    animation: btnPulse 3s ease-in-out infinite;
}
.button:hover,
.button:focus {
    background: #8e1538;
    transform: scale(1.05);
}
@keyframes btnPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.audio-player {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ==========================
   FAQ Section Headings
   ========================== */
#faq.card h2 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

#faq.card h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-size: 1.5rem;
  font-weight: 600;
}

/* ==========================
   FAQ Section Paragraphs
   ========================== */
#faq.card p {
  margin-bottom: 1em;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
}

/* ==========================
   FAQ Section Links
   ========================== */
#faq.card a {
  color: #0073e6;
  text-decoration: underline;
}

#faq.card a:hover,
#faq.card a:focus {
  text-decoration: none;
}

/* ==========================
   FAQ Section Lists
   ========================== */
/* Unordered Lists */
#faq.card ul {
  margin-left: 1.5em;
  margin-bottom: 1em;
  list-style-type: disc;
}

/* Ordered Lists */
#faq.card ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
  list-style-type: decimal;
}

/* List Items */
#faq.card li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

/* ==========================
   FAQ Section Images
   ========================== */
#faq.card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  border-radius: 4px;
}


.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-left: 4px solid #b71c1c;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-top: 2rem;
}

.author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box__info {
  flex: 1;
}

.author-box__name {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  color: #3e2723;
}

.author-box__bio {
  margin: 0;
  font-size: 0.95rem;
  color: #5d4037;
}

#faq .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
#faq h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #3e2723;
}
#faq h4 {
    font-size: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    color: #5d4037;
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
.scroll-top svg {
    fill: #3e2723;
    width: 28px;
    height: 28px;
}

.site-footer {
  text-align: center;
  padding: 1rem 0;
  color: #5d4037;
}

.footer-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #896e52;
}