:root {
    /* Legacy variables */
    --secondary-bg-color: #eae4e0;
    --golden-color: #daa520;
    --font-stack: system-ui, sans-serif;

    /*
     * Site Color Palette
     * WCAG-compliant, colorblind-friendly colors
     * Use these throughout the site for consistency
     */

    /* Brand colors */
    --color-blue: #0069d9;
    --color-blue-dark: #0056b3;
    --color-blue-muted: #4572b0;
    --color-link: #1d5a9e;
    --color-link-hover: #14477d;
    --color-gold: #d4a84b;
    --color-teal: #5a8a9a;
    --color-teal-dark: #3d6a78;
    --color-green: #6a9a7a;
    --color-red: #a86a6a;
    --color-orange: #c47f5a;
    --color-purple: #9b6b8c;
    --color-slate: #2d3748;
    --color-charcoal: #1a202c;

    /* Semantic colors */
    --color-success: #6a9a7a;
    --color-warning: #d4a84b;
    --color-danger: #a86a6a;

    /* UI colors */
    --bg-page: #f5f5f5;
    --bg-card: #ffffff;
    --bg-muted: #f8f9fa;
    --border: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #595959;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);

    /* Legacy - to be replaced */
    --primary: #0069d9;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --accent: #17a2b8;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --golden: #daa520;
}

/* Override Bootstrap's .text-secondary to use our WCAG-compliant color */
.text-secondary {
    color: var(--text-secondary) !important;
}

/* Accessibility utility - visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    height: 100%;
}

body {
    font-family: var(--font-stack);
    display: -ms-flexbox;
    display: flex;
    min-height: 100%;
    -ms-flex-align: center;
    align-items: center;
    background-color: #f5f5f5;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


/* Improved accessability for bootstrap buttons */
.btn-primary:focus, .btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}
.btn-primary {
  background-color: #0069d9;
  border-color: #0062cc;
  color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus {
  background-color: #0056b3;
  border-color: #0056b3;
}
.btn-primary:active {
  background-color: #004085;
  border-color: #004085;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}
.btn-outline-primary {
  color: #0056b3;
  border-color: #0056b3;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary.focus {
  color: #ffffff;
  background-color: #0056b3;
  border-color: #0056b3;
}
.btn-outline-primary:active {
  color: #ffffff;
  background-color: #004085;
  border-color: #004085;
}

/* End Improved accessability for bootstrap buttons */

input[type='checkbox'] {
    width: 25px;
    height: 25px;
}
label {
    margin-bottom: 0px;
}

.cursor-pointer {
    cursor: pointer;
}

.underline {
    text-decoration: underline !important;
}

.hidden {
    display: none;
}

@media only screen and (min-width: 500px) {
    .group-invitation {
        margin-left: -100px;
        margin-right: -100px;
    }
}

.full-width {
  width: 100%;
  padding: 15px;
  margin: auto;
}


.link--no-style {
    color: inherit;
}

.start-page--main-title {
    margin-bottom: 3rem;
}
@media only screen and (max-width: 600px) {
    .start-page--main-title {
        font-size: 2.2rem;
        margin-top: 2rem;
    }
}
.start-page--secondary-title {
    font-size: 1.25rem;
}
@media only screen and (max-width: 600px) {
    .start-page--secondary-title {
        font-size: 1.2rem;
    }
}


.form-signin {
  max-width: 335px;
}
@media only screen and (min-width: 500px) {
    .form-signin{
        max-width: 395px;
    }
}

/* Email warning box - make it wider on desktop (now outside form) */
.signup-no-email-warning {
    margin: 2rem auto;
    max-width: 750px;
    padding: 3rem;
    background-color: var(--secondary-bg-color);
}

@media only screen and (max-width: 768px) {
    .signup-no-email-warning {
        max-width: 100%;
    }
}

/* Email warning box list styling */
.signup-no-email-warning ul {
    padding-left: 1.5rem;
}

.signup-no-email-warning ul li {
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}


/* Email warning buttons */
.signup-no-email-warning--buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media only screen and (max-width: 500px) {
    .signup-no-email-warning--buttons {
        flex-direction: column;
    }
    .signup-no-email-warning--buttons .btn {
        width: 100%;
        margin-right: 0 !important;
    }
}


.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 8px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input {
  border-radius: 0;
}
.form-signin input:first-of-type {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}
.form-signin input:last-of-type {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

#signup-name {
    padding: 8px 4px;
}

.optional-settings {
    display: none;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 2px solid gray;
}

#genre-filter-form {
    display: none;
}

.genre-filter-form--checkbox {
    display: flex;
    margin-bottom: 0.5rem;
}

.project-history--filter-selector {
    height: 35px;
    min-width: 100px;
}

.current-album-wrapper {
    padding: 20px 15px;
    margin-top: 2rem;
}
@media only screen and (max-width: 400px) {
    .current-album-wrapper {
        margin-top: 3rem;
    }
}

.album-info-box {
    width: 650px;
    margin: 0 auto;
}

@media only screen and (max-width: 700px) {
    .album-info-box {
        width: 85%;
        font-size: 14px;
    }
}

.album-cover-wrapper {
    max-width: 100%;
}

.album-cover-img {
    max-width: 100%;
    height: auto;
}


.break-word {
    line-break: anywhere;
}


.project-history, .stats {
    padding: 0;
    width: 100%;
}

@media only screen and (max-width: 800px) {
    .project-history {
        padding-top: 2rem;
    }
}

.project--menu--hamburger {
    height: 40px;
    width: auto;
    cursor: pointer;
}


.history--activate-rating {
    cursor: pointer;
}


.rate-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 2rem 20px;
}


.feedback {
  width: 100%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
}

#optional-notes, #optional-listening-notes {
    width: 400px;
}
#optional-notes::placeholder {
    font-size: 14px;
}

@media only screen and (max-width: 500px) {
    #optional-notes, #optional-listening-notes {
        width: 90%
    }
}


.table-narrow {
    width: 40%;
}
@media only screen and (max-width: 800px) {
    .table-narrow {
        width: 100%;
    }
}

.history-table, .stats-table {
    width: 70%;
    max-width: 100%;
    margin: 0 auto;

}
@media only screen and (max-width: 800px) {
    .history-table, .stats-table {
        width: 100%
    }
}

.stats-table--votes {
    word-break: keep-all !important;
}

.history-table--item-number {
    min-width: 55px;
}
@media only screen and (max-width: 950px) {
    .history-table--item-number {
        display: none;
    }
}

.history-table--global-reviews {
    line-height: 1.0;
    margin-top: 0.2rem;
}

.table > tbody > tr > td {
     vertical-align: middle;
     word-break: break-word;
}

.project-history--album-row {
    height: 100px;
}

.album-notes {
    white-space: pre-line;
}

.divider {
    width: 7%;
    margin: 2rem auto;
    border-bottom: 3px solid black;
}

@media only screen and (max-width: 800px) {
    .divider {
        width: 20%
    }
}



.stars {
    display: flex;
    justify-content: center;
    flex-flow: row-reverse;
}
.stars span { float:right; position:relative; }
.stars span input {
    position:absolute;
    top:0px;
    left:0px;
    opacity:0;
}
.stars span input:disabled ~ label {
    opacity: 0.5;
    cursor: not-allowed;
}
.stars span label {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='126.729' height='126.73'%3e%3cpath fill='lightgray' d='M121.215 44.212l-34.899-3.3c-2.2-.2-4.101-1.6-5-3.7l-12.5-30.3c-2-5-9.101-5-11.101 0l-12.4 30.3c-.8 2.1-2.8 3.5-5 3.7l-34.9 3.3c-5.2.5-7.3 7-3.4 10.5l26.3 23.1c1.7 1.5 2.4 3.7 1.9 5.9l-7.9 32.399c-1.2 5.101 4.3 9.3 8.9 6.601l29.1-17.101c1.9-1.1 4.2-1.1 6.1 0l29.101 17.101c4.6 2.699 10.1-1.4 8.899-6.601l-7.8-32.399c-.5-2.2.2-4.4 1.9-5.9l26.3-23.1c3.8-3.5 1.6-10-3.6-10.5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 76%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin-top: auto;
}
.stars span:hover ~ span label,
.stars span:hover label,
.stars span.checked label,
.stars span.checked ~ span label {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='126.729' height='126.73'%3e%3cpath fill='%23d8b11e' d='M121.215 44.212l-34.899-3.3c-2.2-.2-4.101-1.6-5-3.7l-12.5-30.3c-2-5-9.101-5-11.101 0l-12.4 30.3c-.8 2.1-2.8 3.5-5 3.7l-34.9 3.3c-5.2.5-7.3 7-3.4 10.5l26.3 23.1c1.7 1.5 2.4 3.7 1.9 5.9l-7.9 32.399c-1.2 5.101 4.3 9.3 8.9 6.601l29.1-17.101c1.9-1.1 4.2-1.1 6.1 0l29.101 17.101c4.6 2.699 10.1-1.4 8.899-6.601l-7.8-32.399c-.5-2.2.2-4.4 1.9-5.9l26.3-23.1c3.8-3.5 1.6-10-3.6-10.5z'/%3e%3c/svg%3e");
}


.history-stars {
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
  flex-direction: row-reverse;
  position: relative;
}
.history-stars > input {
  display: none;
}

.history-stars > label {
  cursor: pointer;
  width: 40px;
  height: 40px;
  margin-top: auto;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='126.729' height='126.73'%3e%3cpath fill='lightgray' d='M121.215 44.212l-34.899-3.3c-2.2-.2-4.101-1.6-5-3.7l-12.5-30.3c-2-5-9.101-5-11.101 0l-12.4 30.3c-.8 2.1-2.8 3.5-5 3.7l-34.9 3.3c-5.2.5-7.3 7-3.4 10.5l26.3 23.1c1.7 1.5 2.4 3.7 1.9 5.9l-7.9 32.399c-1.2 5.101 4.3 9.3 8.9 6.601l29.1-17.101c1.9-1.1 4.2-1.1 6.1 0l29.101 17.101c4.6 2.699 10.1-1.4 8.899-6.601l-7.8-32.399c-.5-2.2.2-4.4 1.9-5.9l26.3-23.1c3.8-3.5 1.6-10-3.6-10.5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 76%;
  transition: .3s;
}


.history-stars > input:not(:checked) ~ label:hover,
.history-stars > input:not(:checked) ~ label:hover ~ label {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='126.729' height='126.73'%3e%3cpath fill='%23d8b11e' d='M121.215 44.212l-34.899-3.3c-2.2-.2-4.101-1.6-5-3.7l-12.5-30.3c-2-5-9.101-5-11.101 0l-12.4 30.3c-.8 2.1-2.8 3.5-5 3.7l-34.9 3.3c-5.2.5-7.3 7-3.4 10.5l26.3 23.1c1.7 1.5 2.4 3.7 1.9 5.9l-7.9 32.399c-1.2 5.101 4.3 9.3 8.9 6.601l29.1-17.101c1.9-1.1 4.2-1.1 6.1 0l29.101 17.101c4.6 2.699 10.1-1.4 8.899-6.601l-7.8-32.399c-.5-2.2.2-4.4 1.9-5.9l26.3-23.1c3.8-3.5 1.6-10-3.6-10.5z'/%3e%3c/svg%3e");
}



.social-media-shares {
    display: flex;
    justify-content: center;
}
.social-media-link {
    margin: 0.5rem;
}
.social-media-icon {
    height: 30px;
    width: 30px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.social-media-icon-twitter {
    background-image: url(/images/twitter.svg);
}
.social-media-icon-facebook {
    background-image: url(../images/facebook.svg);
}
.social-media-icon-reddit {
    background-image: url(../images/reddit.png);
}
.social-media-icon-link-share {
    cursor: pointer;
    background-image: url(../images/link-share.svg);
}

.social-media-icon-bluesky {
    background-image: url(/images/bluesky-logo.svg);
}

.social-media-shares--copy-feedback {
    text-align: center;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.album-stats--notes-column {
    width: 70%;
}
@media only screen and (max-width: 600px) {
    .album-stats--notes-column {
        width: 60%;
    }
}

.static-album-link-placeholder {
    width: 550px;
    margin: 0 auto;
    border: 1px dotted gray;
    display: none;
    padding: 0.5rem;
}
@media only screen and (max-width: 600px) {
    .static-album-link-placeholder {
        width: 100%;
        word-break: break-all;
    }
}

.static-album--description {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 3rem 0;
}
@media only screen and (max-width: 600px) {
    .static-album--description {
        margin: 1rem 0;
    }
}

.static-album--description--summary {
    white-space: pre-line;
    margin-bottom: 1rem;
}

.static-album--description--column {
    margin: 2rem;
    width: 35%;
}
@media only screen and (max-width: 600px) {
    .static-album--description--column {
        width: 90%;
        margin: 2rem 0;
    }
    .static-album--description--column > p {
        margin-bottom: 0.5rem;
    }
}


.static-album--meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.static-album--meta--column {
    margin: 1rem 3rem 0 3rem;
}

@media only screen and (max-width: 600px) {
    .static-album--meta--column {
        margin: 1rem;
    }
    .static-album--meta {
        flex-direction: column;
    }
}

.static-album--keyword-cloud-list {
  max-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0;
  margin-top: 0.5rem;
  list-style: none;
  margin: 0 auto;
}

.static-album--keyword-cloud-list li a {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: #e0e1e4;
  color: inherit;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
  .static-album--keyword-cloud-list li a:hover {
    background-color: #c6c6c6;
  }
}

.group-invitation-link {
    border: 1px dotted gray;
    padding: 0.5rem;
    margin: 0 auto;
    margin-top: 0.5rem;
    width: 550px;
}
@media only screen and (max-width: 600px) {
    .group-invitation-link {
        width: 100%;
    }
}


.streaming-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.streaming-icon {
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.streaming-icon-spotify {
    background-image: url(../images/spotify-logo-black.svg);
    height: 31px;
    width: 31px;
}
.streaming-icon-spotify-web {
    background-image: url(../images/spotify-logo-black.svg);
    height: 31px;
    width: 31px;
}
.stream-spotify {
    text-decoration: none;
}
.stream-spotify-web {
    margin-left: 1.5rem;
}

.stream-spotify--meta, .stream-spotify--meta:visited {
    text-align: center;
    color: black;
    font-size: 14px;
    display: block;
    line-height: 1;
}

.streaming-icon-youtube {
    background-image: url(../images/yt_icon_mono_light.png);
    height: 38px;
    width: 38px;
}
.streaming-icon-youtube-music {
    background-image: url(../images/youtube-music.png);
    height: 38px;
    width: 38px;
}
.streaming-icon-apple {
    background-image: url(../images/Apple_Music_Icon_blk_sm_073120.svg);
    height: 31px;
    width: 31px;
}
.streaming-icon-tidal {
    background-image: url(../images/tidal.png);
    background-color: black;
    height: 31px;
    width: 31px;
}
.streaming-icon-amazon {
    background-image: url(../images/amazon-icon.png);
    background-color: black;
    height: 31px;
    width: 31px;
}
.streaming-icon-deezer {
    background-image: url(../images/deezer.png);
    height: 31px;
    width: 31px;
}

.streaming-icon-qobuz {
    background-image: url(../images/qobuz.svg);
    height: 31px;
    width: 31px;
}

#wikipedia-summary-button {
    cursor: pointer;
}
#wikipedia-summary {
    width: 40%;
    margin: 2rem auto;
}
#wikipedia-summary > p {
    white-space: pre-line;
}

@media only screen and (max-width: 600px) {
    #wikipedia-summary {
        width: 90%;
    }
}


.group-chat-wrapper {
    background-color: #c6e2fb;
    padding: 1rem;
    max-width: 550px;
    margin: 2rem auto;
}
#group-chat-wrapper {
    display: none;
}
.group-chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}
.group-chat-messages, .group-chat-controls {
    text-align: left;
}
.group-chat-message {
    margin-top: 1rem;
}
.group-chat-message-author {
    font-weight: bold;
}
.group-chat-create-message {
    margin-top: 1rem;
    display: none;
}


#project-stats--rating-by-decade, #project-stats--rating-by-genre, #project-stats--rating-by-origin, #project-stats--controversial-artists {
    display: none;
}
#group-stats--rating-by-decade, #group-stats--rating-by-genre, #group-stats--members, #group-stats--rating-by-origin {
    display: none;
}


.album--reviews-wrapper {
    width: 50%;
    margin: 0 auto;
    margin-top: 4rem;
}
@media only screen and (max-width: 600px) {
    .album--reviews-wrapper {
        width: 100%;
        margin-top: 2rem;
    }
}

.album--review {
    padding: 2rem;
    margin: 2rem 1rem;
    position: relative;
}
@media only screen and (max-width: 600px) {
    .album--review {
        padding: 3rem 2rem;
    }
}
.album--review--link {
    position: absolute;
    top: 5px;
    right: 10px;
}

.album--review--date {
    position: absolute;
    font-size: 11px;
    /* Different line height compared to the link to the right so we need different top value */
    top: 10px;
    left: 10px;
    font-style: italic;
}

@media only screen and (max-width: 600px) {
    .album--review--link {
        top: 3px;
        right: 5px;
    }
    .album--review--date {
        top: 8px;
        left: 5px;
    }
}

.album--review--text {
    white-space: pre-line;
    padding: 1rem 0;
}
.album--review--button {
    margin: 0 auto;
    white-space: pre-line;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.album--review--button img {
    display: block;
}

.link-underlined,
.link-underlined:link,
.link-underlined:visited,
.link-underlined:hover,
.link-underlined:focus,
.link-underlined:active {
  color: inherit !important;
  cursor: pointer;
  text-decoration: underline;
}


.link-unstyled {
  color: inherit !important;
  cursor: pointer;
  text-decoration: none;
}

/* Only remove underline on hover when .no-hover is also present */
.link-unstyled.no-hover:hover,
.link-unstyled.no-hover:focus,
.link-unstyled.no-hover:active {
    text-decoration: none !important;
}


.link-default {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-default:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


.button-unstyled {
  all: unset;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.button-unstyled:hover,
.button-unstyled:focus {
  text-decoration: underline;
  color: inherit;
}


/* SHARE PROJECT PAGE */
.share-page-section {
    padding: 2rem;
    margin-bottom: 5rem;
}
.share-page-section--extra-margin {
    padding: 2rem;
    margin-bottom: 7rem;
}
@media only screen and (max-width: 600px) {
    .share-page-section {
        padding: 0rem;
    }
    .share-page-section--extra-margin {
        padding: 0rem;
    }
}


.share-page-top-albums--image-container {
    display: flex;
}

.share-page-top-albums--image {
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width: 600px) {
    .share-page-top-albums--image-container {
        width: 30%;
    }
}


.share-page-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.share-page-image-container {
    margin: 1rem;
    max-width: 100%;
    display: flex;
}

.share-page-image {
    max-width: 100%;
    height: auto;
}

@media only screen and (max-width: 600px) {
    .share-page-images {
        padding: 0rem;
        margin: 1rem 0;
    }
    .share-page-image-container {
        margin: 0;
        width: 30%;
        border: 1px solid black;
    }
}

.share-page-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.share-page-stats:not(:last-child) {
    margin-bottom: 6rem;
}
@media only screen and (max-width: 600px) {
    .share-page-stats:not(:last-child) {
        margin-bottom: 0;
    }
}

.share-page-stats-column {
    margin: 1rem 3rem 0 3rem;
}

.share-page-album-reviews {
    width: 50%;
    margin: 0 auto;
}


.share-page-album-review {
    padding: 2rem;
    margin: 2rem;
}
@media only screen and (max-width: 600px) {
    .share-page-album-reviews {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .share-page-stats-column {
        width: 100%;
        margin: 1rem;
        margin-bottom: 2rem;
    }
}

#pwa-notification-wrapper {
    display: none;
}

#pwa-notification-wrapper.album-info-box {
    flex-direction: column;
}

.global-stats--meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}
.global-stats--meta--column {
    margin: 1rem 3rem 0 3rem;
}

.global-stats--popular-authors {
    display: flex;
    margin: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}


.stats--controversial--section {
    margin-top: 2rem;
    margin-bottom: 5rem;
}

#donate-bitcoin-info-placeholder, #donate-bitcoin-info-alert-placeholder {
    display: none;
}
.donate-bitcoin-info, .donate-bitcoin-info-alert {
    margin: 1rem 0;
    padding: 1rem 0;
}


.project-notifications {
    z-index: 9;
    position: relative;
}

.project-notifications--icon--wrapper {
    cursor: pointer;
    text-align: end;
}
.project-notifications--icon {
    height: 35px;
    width: auto;
}
@media only screen and (max-width: 700px) {
    .project-notifications--icon {
        height: 27px;
    }
}

.project-notifications--counter {
    position: absolute;
    top: -9px;
    right: -6px;
    height: 22px;
    width: 22px;
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 15px;
    border-radius: 50%;
    text-align: center;
}
@media only screen and (max-width: 700px) {
    .project-notifications--counter {
        height: 18px;
        width: 18px;
        font-size: 12px;
        top: -7px;
        right: -5px;
    }
}

.project-notifications--content {
    padding: 2rem;
    margin: 0.7rem 0;
    border: 1px solid lightgray;
    max-height: 600px;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    background-color: #f5f5f5;
    max-width: 250px;
    width: 250px;
}
.project-notifications--content--item {
    font-size: 0.8rem;
    line-height: 1.4rem;
}
.project-notifications--content--view-all {
    cursor: pointer;
}


/*
 * MENU STUFF
*/
.top-menu-left-hamburger-fixed {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 5;
}

.top-menu-left-hamburger {
    position: absolute;
    top: 15px;
    left: 15px;
}

.top-menu-right {
    position: absolute;
    top: 10px;
    right: 15px;
}


.top-menu-left {
    line-height: 1.3;
    position: absolute;
    top: 5px;
    left: 15px;
}

@media only screen and (max-width: 800px) {
    .top-menu-left, .top-menu-right {
        font-size: 14px;
    }
}

#menuToggle a {
  color: black;
  transition: color 0.3s ease;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 12; /* and place it over the hamburger */
  -webkit-touch-callout: none;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: black;
  border-radius: 3px;
  z-index: 11;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
}

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menu {
  position: absolute;
  width: 250px;
  margin: -100px 0 0 -20px;
  padding: 20px;
  padding-top: 110px;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
  background-color: #f5f5f5;
  z-index: 10;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  text-align: left;
}
@media only screen and (max-width: 700px) {
    #menu {
        width: 170px;
    }
    #menuToggle span {
        width: 28px;
        margin-bottom: 4px;
    }
    #menuToggle input:checked ~ span {
      opacity: 1;
      transform: rotate(45deg) translate(-2px, -1.5px);
    }
    #menuToggle input:checked ~ span:nth-last-child(2) {
      transform: rotate(-45deg) translate(2px, -1.5px);
    }
}

#menu li {
  padding: 10px 0;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul {
  transform: none;
}



/*
 * Single Review
 */
.public-review {
    position: relative;
    width: 50%;
    margin: 3rem auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    padding: 5rem;
}
.public-review--meta--album {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.6rem;
}
.public-review--meta--artist {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.public-review--rating {
    font-size: 1.7rem;
    font-weight: bold;
    margin-top: 1.5rem;
}
.public-review--text {
    font-size: 1rem;
    white-space: pre-line;
}
@media only screen and (max-width: 700px) {
    .public-review {
        width: 90%;
        padding: 3rem;
    }
}
.public-review--right {
    position: absolute;
    top: 5px;
    right: 10px;
}

.public-review--left {
    position: absolute;
    top: 5px;
    left: 10px;
}


.info--streaming-services {
    display: flex;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.info--wikipedia-type {
    display: flex;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
}

#selected-streaming-source-feedback {
    width: 40%;
    margin: 1rem auto;
}
@media only screen and (max-width: 700px) {
    #selected-streaming-source-feedback {
        width: 100%;
    }
}


.missing-source {
    width: 50%;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    align-self: baseline;
    padding-bottom: 3rem;
}
@media only screen and (max-width: 700px) {
    .missing-source {
        width: 80%;
    }
}


.generator-link {
    cursor: pointer;
    color: #007bff;
    display: inline-block;
}
.generator-link:hover {
    color: #0056b3;
    text-decoration: underline;
}



/* DIALOG */
.c2 {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.c2_content {
    max-width: 300px;
    margin: 120px auto 0;
    padding: 30px;
    background: #f5f5f5;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.c2_header {
    position: relative;
    display: flex;
    justify-content: space-between;
}

.c2_title {
    margin: 0;
    flex: 1;
    font-size: 24px;
    text-align: center;
}

.c2_body {
    margin: 10px;
    font-size: 24px;
    text-align: center;
}


.c2_footer {
    margin-top: 20px;
    text-align: center;
}

.c2_overlay {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
/* END DIALOG */

.global-spotify-styles--rating {
    cursor: pointer;
}
.global-spotify-styles--rating:hover {
    text-decoration: underline;
}

.info-page {
    height: 100%;
    width: 40%;
    margin: 0 auto;
}

.info-page--section {
    margin-bottom: 5rem;
}

.info-section--sub-heading {
    border-bottom: 2px solid black;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}



@media only screen and (max-width: 700px) {
    .info-page {
        width: 100%;
        font-size: 0.9rem;
    }
    .info-section--sub-heading {
        border-bottom: 1px solid black;
        margin-bottom: 1rem;
    }
}

.third-party-apps {
    height: 100%;
    width: 50%;
    margin: 0 auto;
}


.third-party-apps--sub-heading {
    border-bottom: 2px solid black;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.third-party-apps--link{
    font-weight: bold;
    margin-top: 1rem;
    word-break: break-all;
}


@media only screen and (max-width: 1024px) {
    .third-party-apps {
        width: 70%;
    }
}

@media only screen and (max-width: 700px) {
    .third-party-apps {
        width: 100%;
        font-size: 0.9rem;
    }
    .third-party-apps--sub-heading {
        border-bottom: 1px solid black;
        margin-bottom: 1rem;
    }
}



/* RIBBON : Common */
.ribbon {
  width: 150px;
  height: 150px;
  overflow: hidden;
  position: absolute;
}
.ribbon span {
  position: absolute;
  display: block;
  width: 225px;
  padding: 15px 0;
  background-color: var(--golden-color);
  box-shadow: 0 5px 10px rgba(0,0,0,.1);
  color: #f9f7f5;
  font: 700 16px/1 'Lato', sans-serif;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  text-transform: uppercase;
  text-align: center;
}


/* RIBBON : Top Right specific */
.ribbon-top-right {
  top: 0px;
  right: 0px;
}
.ribbon-top-right span {
  left: -20px;
  top: 30px;
  transform: rotate(45deg);
}

/* RIBBON : Top Left specific */
.ribbon-top-left {
  top: 0px;
  left: 0px;
}
.ribbon-top-left span {
  right: -25px;
  top: 30px;
  transform: rotate(-45deg);
}

@media only screen and (max-width: 700px) {
    .ribbon {
        width: 120px;
        height: 120px;
    }
    .ribbon span {
        font: 700 13px/1 'Lato', sans-serif;
        padding: 13px 0;
    }

    .ribbon-top-right span {
      left: -35px;
      top: 25px;
    }
}


.project-done {
  background-color: var(--golden-color);
  box-shadow: 0 5px 10px rgba(0,0,0,.1);
  color: #f9f7f5;
  font: 700 20px/1 'Lato', sans-serif;
  padding: 1rem;
  width: 150px;
  margin: 2rem auto;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  text-transform: uppercase;
}


.admin--stats {
    word-break: break-word;
    width: 100%;
    margin: 2rem auto;
}

.analytics-chart-wrapper {
    max-width: 60%;
    margin: 0 auto;
    min-height: 500px;
}
@media only screen and (max-width: 600px) {
    .analytics-chart-wrapper {
        max-width: 90%;
        min-height: 350px;
    }
}

.hall-of-fame--table {
    width: 50%;
    margin: 4rem auto;
}

@media only screen and (max-width: 900px) {
    .hall-of-fame--table {
        width: 100%;
    }
}

.most-favorite-album--table {
    width: 30%;
    margin: 4rem auto;
}

@media only screen and (max-width: 900px) {
    .most-favorite-album--table {
        width: 100%;
    }
}

.line-through {
    text-decoration: line-through;
}

.how-it-works-container {
    padding: 2rem 3rem;
    background-color: var(--secondary-bg-color);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.global-stats-random--reviews {
    width: 50%;
    margin: 0 auto;
}

@media only screen and (max-width: 600px) {
    .global-stats-random--reviews {
        width: 100%;
    }
}


.global-stats-reviews-word {
    width: 70%;
    padding: 2rem;
    margin: 4rem auto;
    text-align: center;
}

.global-stats-reviews-word--form {
    width: 60%;
    max-width: 300px;
    margin: 3rem auto;
}

.global-stats-reviews-word--result {
    max-width: 700px;
    margin: 0 auto;
}
@media only screen and (max-width: 700px) {
    .global-stats-reviews-word {
        width: 100%;
    }

    .global-stats-reviews-word--form {
        width: 90%;
    }
}



.genre-page--header {
    margin-bottom: 2rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
}

.genre-page--header h1 {
    font-size: 2.5rem;
}


.genre-page--albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.genre-page--user-albums-wrapper {
    margin-top: 4rem;
    padding: 4rem 0;
    background-color: var(--secondary-bg-color);
}

.genre-page--album-card {
    text-align: center;
    margin: 3rem 1rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}


.genre-page---album-image {
    transition: transform 0.2s ease-in-out;
    max-width: 100%;
    height: auto;
}

.genre-page--album-image:hover {
    transform: scale(1.02);
}

.genre-page--album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1rem 0;
    padding: 0 1rem;
    max-width: 300px;
    height: 100%; /* or a fixed height if it's not stretching */
}

.genre-page--album-title {
    font-size: 1.1rem;
    margin: 6px 0 4px;
}


.genre-page--album-meta {
    font-size: 0.9rem;
    color: #575757;
    display: flex;
    flex-direction: column;
}

.genre-page--footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}


@media only screen and (max-width: 600px) {

    .genre-page--header h1 {
        font-size: 2.2rem;
    }

    .genre-page--albums {
        margin: 1rem 0;
    }

    .genre-page--album-card {
        margin: 1.5rem 1rem;
    }
}

.genres-page {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}


.genres-page--header {
    margin-bottom: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.genres-page--header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.genres-page--header h2 {
    font-size: 1.5rem;
    color: #575757;
    margin-bottom: 20px;
}


.genres-page--header p {
    font-size: 1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

.genres-page--genres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1800px;
    margin: 0 auto;
}


.genres-page--genre {
    background-color: #fff;
    height: 180px;
    width: 180px;
    display: flex;
    margin: 0.75rem;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.genres-page--genre-link {
    text-decoration: none;
    color: var(--text-primary);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.genres-page--genre-name {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
}
.genres-page--genre-link:hover {
    text-decoration: underline;
    color: var(--text-primary);
}


.genres-page--genre-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

@media only screen and (max-width: 600px) {

    .genres-page {
        padding: 0;
    }
    .genres-page--genres {
        padding: 0rem;
        margin: 0.5rem 0;
    }

    .genres-page--genre {
        height: 100px;
        width: 105px;
        margin: 0.3rem;
    }

    .genres-page--genre-name {
        font-size: 0.75rem;
        hyphens: auto;
    }

    .genres-page--genre-count {
        font-size: 0.65rem;
    }
}




.all-albums {
    width: 70%;
    max-width: 100%;
    margin: 0 auto;
}


@media only screen and (max-width: 800px) {
    .all-albums {
        width: 100%
    }
}

.all-albums--search {
    width: 400px;
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
}

@media (max-width: 800px) {
    .all-albums--search {
        max-width: 600px;
        width: 100%;
    }
}

.all-albums--album-number {
    min-width: 70px;
}


.all-albums--sort-icon {
    font-size: 0.8em;
    margin-left: 0.25em;
    display: inline-block;
    vertical-align: middle;
}

.all-albums th[data-sort-key] {
    white-space: nowrap;
}

@media (max-width: 768px) {
  /* Hide explicitly the genres and styles columns */
  .all-albums th.genres-column,
  .all-albums td.genres-column,
  .all-albums th.styles-column,
  .all-albums td.styles-column {
    display: none;
  }
}



.artist-page--header {
    margin-bottom: 1.5rem;
    margin-top: 3.5rem;
    padding: 1rem;
}

.artist-page--header h1 {
    font-size: 2.5rem;
}


.artist-page--albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.artist-page--user-albums-wrapper {
    margin-top: 4rem;
    padding: 4rem 0;
    background-color: var(--secondary-bg-color);
}

.artist-page--album-card {
    text-align: center;
    margin: 2rem 1rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}


.artist-page---album-image {
    transition: transform 0.2s ease-in-out;
    max-width: 100%;
    height: auto;
}

.artist-page--album-image:hover {
    transform: scale(1.02);
}

.artist-page--album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1rem 0;
    padding: 0 1rem;
    max-width: 300px;
    height: 100%; /* or a fixed height if it's not stretching */
}

.artist-page--album-title {
    font-size: 1.1rem;
    margin: 6px 0 4px;
}


.artist-page--album-meta {
    font-size: 0.9rem;
    color: #575757;
    display: flex;
    flex-direction: column;
}

.artist-page--footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}


@media only screen and (max-width: 600px) {

    .artist-page--header h1 {
        font-size: 2.2rem;
    }

    .artist-page--album-card {
        margin: 1.5rem 1rem;
    }
}

/* ==========================================================================
   LANDING PAGE
   Clean, conversion-focused signup page
   ========================================================================== */

.landing-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-page);
}

.landing-container {
    width: 100%;
    max-width: 420px;
}

.landing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.landing-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.landing-invite {
    background: var(--color-blue);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.landing-invite span {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.85;
}

.landing-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.landing-form-group {
    margin-bottom: 1.25rem;
}

.landing-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.landing-optional {
    font-weight: 400;
    color: var(--text-secondary);
}

.landing-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.landing-form-group input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(72, 120, 168, 0.15);
}

.landing-form-group input::placeholder {
    color: var(--text-secondary);
}

.landing-form .signup-error-placeholder {
    color: var(--color-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.landing-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--color-blue);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.5rem;
}

.landing-submit:hover {
    background: var(--color-blue-dark);
}

.landing-login {
    text-align: center;
    margin-top: 1rem;
}

.landing-login a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.landing-login a:hover {
    color: var(--color-link);
    text-decoration: underline;
}

.landing-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
}

.landing-footer a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.landing-footer a:hover {
    color: var(--color-link);
}

/* No-email warning modal */
.landing-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.landing-modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.landing-modal-content h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.landing-modal-content p {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.landing-modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.landing-btn-primary,
.landing-btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s;
}

.landing-btn-primary {
    background: var(--color-blue);
    color: white;
    border: none;
}

.landing-btn-primary:hover {
    background: var(--color-blue-dark);
}

.landing-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.landing-btn-secondary:hover {
    background: var(--bg-muted);
}

@media (max-width: 480px) {
    .landing-title {
        font-size: 1.5rem;
    }

    .landing-form {
        padding: 1.5rem;
    }

    .landing-footer {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Modern catalog pages (artist, genre, year) */
.catalog-page {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-page);
}

/* Catalog header - used on artist, genre, year pages */
.catalog-header {
    background: var(--color-slate);
    color: white;
    padding: 2rem 1.5rem;
}

.catalog-header .header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.catalog-header .header-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.catalog-header .header-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

.catalog-header .header-nav {
    display: flex;
    gap: 0.75rem;
}

.catalog-header .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.catalog-header .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.catalog-page .page-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Recommendations page */
.recommendations-page--based-on {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
}
.recommendations-page--based-on-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.25rem;
}
.recommendations-page--artist-tag {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}
.recommendations-page--artist-tag:not(:last-child)::after {
    content: ",";
}
.recommendations-page--attribution {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.recommendations-page--attribution a {
    color: var(--color-link);
}
.album-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-size: 0.8rem;
    aspect-ratio: 1;
}
.album-card-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.album-card-reason {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Recommendations page skeleton loading */
@keyframes recommendations-skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}
.recommendations-page--skeleton {
    background: var(--bg-muted);
    border-radius: 4px;
    animation: recommendations-skeleton-pulse 1.5s ease-in-out infinite;
}
.recommendations-page--skeleton-card {
    pointer-events: none;
}
.recommendations-page--skeleton-image {
    aspect-ratio: 1;
    width: 100%;
}
.recommendations-page--skeleton-title {
    height: 1.1rem;
    width: 80%;
    margin-bottom: 0.5rem;
}
.recommendations-page--skeleton-artist {
    height: 0.9rem;
    width: 60%;
    margin-bottom: 0.5rem;
}
.recommendations-page--skeleton-reason {
    height: 0.75rem;
    width: 70%;
}

/* Wikipedia section (temporary - can be removed) */
.artist-page--wikipedia {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 3px solid var(--color-link);
}
.artist-page--wikipedia-text {
    margin: 0 0 0.75rem;
    line-height: 1.6;
    color: var(--text-primary);
}
.artist-page--wikipedia-link {
    font-size: 0.875rem;
    color: var(--color-link);
}
.artist-page--wikipedia-link:hover {
    text-decoration: underline;
}

.catalog-page .catalog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: none;
}

.catalog-page .stat-item {
    text-align: center;
}

.catalog-page .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-link);
}

.catalog-page .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.catalog-hero {
    text-align: center;
    padding: 2rem 1rem 2.5rem;
}
.catalog-hero--title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.catalog-hero--subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}
.catalog-hero--stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.catalog-hero--bio-card {
    max-width: 860px;
    margin: 1.25rem auto 1.5rem;
    padding: 2rem 3rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    text-align: left;
}

@media (max-width: 768px) {
    .catalog-hero {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .catalog-hero--bio-card {
        max-width: none;
        padding: 1.5rem 1.25rem;
        margin: 1rem 0 1.25rem;
    }
}

.catalog-hero--bio {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-line;
}

.catalog-page .section-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 2.5rem 0 1.5rem;
}

.catalog-page .section-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.catalog-page .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.catalog-page .section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.catalog-page .section-subtitle,
.reviews-page .section-subtitle {
    font-size: 0.9rem;
    color: inherit;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .catalog-page .section-header-row {
        gap: 0.5rem;
    }
    .catalog-page .section-line {
        display: none;
    }
    .catalog-page .section-title {
        font-size: 1rem;
    }
}

.catalog-page .album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.catalog-page--user-albums-section {
    margin-top: 5rem;
}

.catalog-page--see-all {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.95rem;
}

.link-arrow-style {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 120ms ease;
}

.link-arrow-style--label {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #888;
    transition: border-color 120ms ease;
}

.link-arrow-style--arrow {
    opacity: 0.75;
    font-size: 0.95em;
    transition: opacity 120ms ease, transform 120ms ease;
}

.link-arrow-style:hover,
.link-arrow-style:focus {
    color: var(--text-primary);
    text-decoration: none;
}

.link-arrow-style:hover .link-arrow-style--label,
.link-arrow-style:focus .link-arrow-style--label {
    border-color: var(--text-primary);
}

.link-arrow-style:hover .link-arrow-style--arrow,
.link-arrow-style:focus .link-arrow-style--arrow {
    opacity: 1;
    transform: translateX(2px);
}

@media (hover: none) {
    .link-arrow-style {
        color: var(--text-primary);
    }
    .link-arrow-style--label {
        border-color: var(--text-primary);
    }
    .link-arrow-style--arrow {
        opacity: 1;
    }
}

.catalog-page--user-albums-section .section-header {
    margin-top: 0;
}

.catalog-page .album-card {
    background: var(--bg-card);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.catalog-page .album-card:hover .album-card-title {
    text-decoration: underline;
}

.catalog-page .album-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.catalog-page .album-card-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-page .album-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-page .album-card-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-page .album-card-meta {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}


.catalog-page .related-artist-section {
    margin-bottom: 2rem;
}

.catalog-page .related-artist-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.catalog-page .empty-state {
    text-align: left;
    padding: 2rem 0;
    color: var(--text-secondary);
}

.catalog-page .empty-state-text {
    color: var(--text-secondary);
    margin: 0;
}

.catalog-page .page-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .catalog-header .header-title {
        font-size: 1.75rem;
    }

    .catalog-header .header-content {
        flex-direction: column;
        text-align: center;
    }

    .catalog-page .catalog-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .catalog-page .stat-value {
        font-size: 1.5rem;
    }

    .catalog-page .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .catalog-page .album-card-info {
        padding: 0.75rem;
    }

    .catalog-page .album-card-title {
        font-size: 0.85rem;
    }
}

/* ===== Reviews Page ===== */
.reviews-page .catalog-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.reviews-page .reviews-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-page .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.reviews-page .hero-stat {
    text-align: center;
}

.reviews-page .hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-slate);
}

.reviews-page .hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews-page .section-header {
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews-page .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

.reviews-page .section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

@media (max-width: 600px) {
    .reviews-page .section-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
        margin-top: 2.5rem;
    }

    .reviews-page .section-title {
        font-size: 1.25rem;
        white-space: normal;
    }

    .reviews-page .section-line {
        width: 60px;
        flex: none;
    }

    .reviews-page .reviews-grid {
        gap: 2rem;
        padding: 0 1rem;
    }

    .reviews-page .section-subtitle,
    .catalog-page .section-subtitle {
        white-space: normal;
    }
}

/* Review Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.review-card-full {
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.review-album-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.review-album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-album-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.review-album-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.review-album-name a:hover {
    color: var(--color-link);
}

.review-artist-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.review-rating-badge {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Truncate reviews only on preview cards (reviews page) */
.review-card-full .review-text {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.review-card-full .review-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.review-expand-btn {
    background: none;
    border: none;
    color: var(--color-link);
    font-size: 0.85rem;
    padding: 0;
    margin: 0 0 0.75rem 0;
    cursor: pointer;
}

.review-expand-btn:hover {
    text-decoration: underline;
}

.review-read-more {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--color-link);
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: 500;
}

.review-read-more:hover {
    text-decoration: underline;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.review-card-full .review-meta {
    margin-top: auto;
}
.review-meta .thumb-up-btn {
    display: inline-block;
    margin: 0;
    padding: 0.25rem;
}

.review-likes {
    color: var(--color-gold);
    font-weight: 500;
}

.review-author-link {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 500;
}

.review-author-link:hover {
    text-decoration: underline;
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.author-card {
    background: var(--bg-card);
    border-radius: 0;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.author-card:hover {
    text-decoration: underline;
}

.author-rank {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.author-thumbs {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.author-label {
    font-size: 0.875rem;
    color: var(--color-link);
    font-weight: 500;
}

/* Explore Links */
.explore-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.explore-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.explore-card:hover {
    text-decoration: underline;
}

.explore-icon {
    width: 48px;
    height: 48px;
    background: var(--color-slate);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.explore-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.explore-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.explore-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .reviews-page .catalog-content {
        padding: 1rem;
    }

    .reviews-page .hero-stats {
        gap: 2rem;
    }

    .reviews-page .hero-stat-value {
        font-size: 2rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explore-links {
        grid-template-columns: 1fr;
    }
}



.year-page--user-albums-wrapper {
    margin-top: 4rem;
    padding: 4rem 0;
    background-color: var(--secondary-bg-color);
}

.year-page--header {
    margin-bottom: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.year-page--header h1 {
    font-size: 2.5rem;
}

.year-page--header h2 {
    font-size: 1.1rem;
    color: #575757;
}


.year-page--header p {
    font-size: 1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

.year-page--albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1800px;
    margin: 0 auto;
}

.year-page--album-card {
    text-align: center;
    margin: 3rem 1rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}


.year-page---album-image {
    transition: transform 0.2s ease-in-out;
    max-width: 100%;
    height: auto;
}

.year-page--album-image:hover {
    transform: scale(1.02);
}

.year-page--album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 1rem 0;
    padding: 0 1rem;
    max-width: 300px;
    height: 100%; /* or a fixed height if it's not stretching */
}


.year-page--album-title {
    font-size: 1.1rem;
    margin: 6px 0 4px;
}


.year-page--album-meta {
    font-size: 0.9rem;
    color: #575757;
    display: flex;
    flex-direction: column;
}

.year-page--footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}


@media only screen and (max-width: 600px) {

    .year-page--header {
        margin-top: 2.5rem;
        padding: 0.5rem;
    }

    .year-page--header h1 {
        font-size: 2.3rem;
    }

    .year-page--header h2 {
        font-size: 1rem;
    }

    .year-page--header p {
        font-size: 0.9rem;
    }

    .year-page--albums {
        padding: 0rem;
        margin: 1rem 0;
    }

    .year-page--album-card {
        margin: 1.5rem 1rem;
    }

}


.years-page {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}


.years-page--header {
    margin-bottom: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.years-page--header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.years-page--header h2 {
    font-size: 1.5rem;
    color: #575757;
    margin-bottom: 20px;
}


.years-page--header p {
    font-size: 1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
}

.years-page--years {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1800px;
    margin: 0 auto;
}


.years-page--year {
    background-color: #fff;
    height: 180px;
    width: 180px;
    display: flex;
    margin: 0.75rem;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
}

.years-page--year-link {
    text-decoration: none;
    color: #575757;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.years-page--year-link:hover {
    text-decoration: underline;
    color: #000;
}


@media only screen and (max-width: 600px) {

    .years-page {
        padding: 0;
    }
    .years-page--genres {
        padding: 0rem;
        margin: 0.5rem 0;
    }

    .years-page--genre {
        height: 90px;
        width: 90px;
        margin: 0.4rem;
    }

    .years-page--genre-name {
        font-size: 0.9rem;
    }
}

.flying-elvis-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.flying-elvis {
  position: absolute;
  top: -100px;
  width: 60px; height: 60px;
  background-image: url('/images/costello.jpg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: calc(0.5 + (var(--i) % 5) * 0.1);
  left: var(--left);
  animation: floatElvis 10s linear infinite;
  animation-delay: var(--delay);
  transform-origin: center;
}

@keyframes floatElvis {
  from {
    transform: translateY(0) rotate(calc(var(--i) * 15deg));
  }
  to {
    transform: translateY(120vh) rotate(calc(360deg + var(--i) * 15deg));
  }
}

.donation-box {
    width: 50%;
    max-width: 700px;
    margin: 0 auto;
}

@media only screen and (max-width: 600px) {
    .donation-box {
        width: 100%;
    }
}


.project-stats-outliers--table {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    width: 55%;
}

@media (max-width: 700px) {
    .project-stats-outliers--table {
        width: 100%;
    }
}

.signup-info {
    margin-bottom: 2rem;
    padding: 3rem;
    display: inline-block;
    background-color: var(--secondary-bg-color);
    max-width: 700px;
}

/* New compact signup info card */
.signup-info-card {
    text-align: left;
    max-width: 100%;
}

.signup-info-card--header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color, #ddd);
}

.signup-info-card--title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.signup-info-card--items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.signup-info-card--item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.signup-info-card--item-number {
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--text-color, #333);
    color: var(--bg-color, #fff);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.signup-info-card--item-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-info-card--item-icon img,
.signup-info-card--icon img {
    display: block;
    color: inherit;
}

.signup-info-card--footer-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.signup-info-card--footer-rows #pwa-notification-wrapper {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #eee);
}

.signup-info-card--footer-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted-text-color, #666);
}

.signup-info-card--item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.signup-info-card--item-desc {
    font-size: 0.85rem;
    color: var(--muted-text-color, #666);
    line-height: 1.4;
}

.signup-info-card--link-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.signup-info-card--link-box span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted-text-color, #666);
}

.signup-info-card--copy-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

@media (max-width: 700px) {
    .signup-info {
        padding: 1.5rem;
    }
    .signup-info-card--link-box {
        flex-direction: column;
        align-items: stretch;
    }

    .signup-info-card--link-box span {
        text-align: center;
        white-space: normal;
        word-break: break-all;
    }

    .signup-info-card--link-box button {
        width: 100%;
    }

    .signup-info-card--footer-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .signup-info-card--footer-row img {
        display: none;
    }

    .signup-info-card--footer-rows #pwa-notification-wrapper {
        border: none;
        background: rgba(0,0,0,0.03);
        border-radius: 0.25rem;
        margin-top: 1rem;
        padding: 1rem 1.25rem;
    }
}





.group-stats--taste-alignments {
    max-width: 800px;
    margin: 0 auto;
}

.group-stats--taste-alignments--album-lists {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
.group-stats--taste-alignments--album-list {
    background: var(--secondary-bg-color);
    padding: 1rem;
    margin-bottom: 1rem;
}

.toggle-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-size: 1rem;
}
.toggle-arrow.open {
    transform: rotate(90deg);
}




.rating-distribution-wrapper {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    width: 35px;
    margin: 0 0.1rem;
}

.rating-distribution {
    width: 35px;
    height: 120px; /* max track height */
    display: flex;
    align-items: flex-end; /* so fill grows from bottom */
    border-radius: 4px;
    overflow: hidden;
}

.rating-distribution--label {
    margin-top: 6px;
    font-size: 0.9rem;
    user-select: none;
}

.rating-distribution--bar-fill {
    width: 100%;
    height: 100%;             /* <-- set full height of container */
    background: linear-gradient(to top, #0d6efd 0%, #3d8bfd 100%);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    transition: transform 0.5s ease;
}

.rating-distribution--tooltip {
    position: absolute;
    top: 103%; /* below the bar */
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #0d6efd;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.rating-distribution-wrapper.active .rating-distribution--tooltip {
    opacity: 1;
}




.share-page--featured-review {
    background: var(--secondary-bg-color);
    padding: 2rem;
    margin: 0 auto;
    max-width: 900px;
    border-radius: 8px;
    border-left: 4px solid var(--golden-color);
    overflow: auto; /* clearfix for the float */
    margin-bottom: 5rem;
}


.share-page--featured-review h4 {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 16px;
    text-align: left;
}


/* Album image - now floated */
.share-page--featured-review--img {
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}


/* Album title and meta */
.share-page--featured-review--title {
    margin-bottom: 0.2rem;
}

.share-page--featured-review--meta {
    margin-bottom: 0.8rem;
    color: #444;
}

/* Review text */
.share-page--featured-review--text {
    line-height: 1.7;
    font-style: italic;
    white-space: pre-line;
    margin-top: -1rem;
}


.share-page--featured-review--text::before {
    content: '"';
    font-size: 3rem;
    line-height: 0;
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    color: rgba(0, 0, 0, 0.15);
    font-family: Georgia, serif;
}


@media (max-width: 700px) {
    .share-page--featured-review {
        padding-top: 1.5rem;
        margin-top: -2rem; /* Usually we want large space here, but for featured review we want it a bit closer to the previous section */
    }


    .share-page--featured-review h4 {
        font-size: 14px;
        padding-bottom: 1rem;
    }

    .share-page--featured-review--img {
        float: none;
        display: block;
        margin: 0 auto 1rem;
        width: 150px;
        height: 150px;
    }
}

.set-featured-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.4;
    margin-left: 0.5rem;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0;
    vertical-align: middle;
}

.set-featured-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.set-featured-icon:focus {
    outline: 2px solid #f0ad4e;
    outline-offset: 2px;
}


/* ==========================================================================
   MODERN PAGE STYLES
   Shared styles for project-share, group-share, group-stats, static-album pages
   ========================================================================== */

/* Base styles for modern pages */
.share-dashboard,
.group-page,
.album-page {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text-primary);
}

.share-dashboard a,
.group-page a,
.album-page a { color: var(--color-link); text-decoration: none; }
.share-dashboard a:hover,
.group-page a:hover,
.album-page a:hover { color: var(--color-link-hover); text-decoration: underline; }

/* Dashboard Header */
.dashboard-header,
.page-header {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow);
    position: relative;
}


.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.header-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.header-subtitle { color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.125rem; }
.header-nav { display: flex; flex-wrap: wrap; }

/* Catalog page header - centered title */
.catalog-page .page-header .header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.catalog-page .page-header .header-title {
    font-size: 1.25rem;
    text-align: center;
}

/* Share dashboard header - title left, links right */
.share-dashboard .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Album page header - title left, links right */
.album-page .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Group page header - keep flex for the nav buttons */
.group-page .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* History page header - title left, links right */
.history-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Back button: arrow icon, absolute top left on all screen sizes */
.album-page .header-content > a.nav-btn,
.catalog-page .page-header .header-content > a.nav-btn,
.share-dashboard .header-content > a.nav-btn,
.group-page .header-content > a.nav-btn,
.history-header .header-content > a.nav-btn {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 1.25rem;
    border: none;
    background: none;
    padding: 0.25rem;
}

.nav-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
}
.nav-btn:hover { background: var(--bg-muted); color: var(--text-primary); text-decoration: none; }

.nav-link {
    color: var(--color-link);
    text-decoration: none;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.dashboard-content,
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.group-page .page-content,
.album-page .page-content { max-width: 1200px; padding: 2rem 1.5rem; }

/* Contributor badge */
.contributor-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--golden);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.hero-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.hero-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; }
.hero-title--complete { color: var(--color-gold); }
.hero-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 2rem; }
.hero-subtitle--compact { margin-bottom: 0.5rem; }
.hero-nav-btn { display: inline-block; margin-bottom: 1.5rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }

.progress-bar-wrapper {
    margin-top: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar-bg {
    height: 6px;
    background: var(--bg-muted);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.group-page .progress-bar-fill,
.group-share .progress-bar-fill {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.highlight-albums-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 4rem;
}

.highlight-albums-row .favorite-album-display {
    min-width: 160px;
}

.favorite-album-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-section > .favorite-album-display {
    margin-top: 3rem;
}
.hero-section > .favorite-album-display + .favorite-album-display {
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .highlight-albums-row {
        flex-direction: column;
        gap: 2rem;
    }
    .highlight-albums-row .favorite-album-display {
        max-width: 100%;
    }
}

.favorite-album-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.favorite-album-link:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.favorite-album-img {
    width: 160px;
    height: 160px;
    border-radius: 4px;
    object-fit: cover;
}

.favorite-album-info {
    text-align: center;
}

.favorite-album-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.favorite-album-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .favorite-album-link {
        padding: 1.25rem 1.5rem;
    }

    .favorite-album-img {
        width: 140px;
        height: 140px;
    }

    .favorite-album-name {
        font-size: 1rem;
    }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.group-page .cards-grid { gap: 1rem; margin-bottom: 1.5rem; }

.card {
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card.span-3 { grid-column: span 3; }
.card.span-4 { grid-column: span 4; }
.card.span-6 { grid-column: span 6; }
.card.span-8 { grid-column: span 8; }
.card.span-12 { grid-column: span 12; }

@media (max-width: 900px) {
    .card.span-3 { grid-column: span 6; }
    .card.span-4 { grid-column: span 6; }
    .card.span-8 { grid-column: span 12; }
}

@media (max-width: 600px) {
    .card.span-3, .card.span-4, .card.span-6, .card.span-8, .card.span-12 { grid-column: span 12; }
    .dashboard-content, .page-content { padding: 1rem; }
    .hero-section { padding: 1.5rem 1rem; }
    .hero-stat-value { font-size: 1.5rem; }
    .card { padding: 1rem; }
    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
        margin: 1rem 0;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-stat-label { font-size: 0.7rem; }

    .share-dashboard .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .share-dashboard .header-nav {
        justify-content: center;
    }
    .share-dashboard .nav-link {
        font-size: 0.8rem;
    }
    .share-dashboard .contributor-badge {
        position: static;
        display: block;
        margin: 0 auto 1.5rem;
    }
    .share-dashboard .progress-bar-wrapper {
        margin-top: 2rem;
    }
    .group-page .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
        margin: 1rem 0;
    }
    .group-page .hero-stat-label {
        font-size: 0.65rem;
    }
    .group-page .hero-progress {
        margin-top: 1.5rem;
    }
    .album-page .header-content,
    .catalog-page .page-header .header-content,
    .history-header .header-content,
    .share-dashboard .header-content,
    .group-page .header-content {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    .album-page .header-content > nav,
    .catalog-page .page-header .header-content > nav,
    .share-dashboard .header-content > nav,
    .group-page .header-content > nav {
        justify-content: center;
        gap: 0.5rem;
    }
    .history-header .header-content > nav {
        justify-content: center;
        gap: 0.2rem;
    }
    /* Back button: adjust position on mobile */
    .album-page .header-content > a.nav-btn,
    .catalog-page .page-header .header-content > a.nav-btn,
    .share-dashboard .header-content > a.nav-btn,
    .group-page .header-content > a.nav-btn,
    .history-header .header-content > a.nav-btn {
        top: 0;
        left: 0.75rem;
    }
}

.card-header { margin-bottom: 1.25rem; background: transparent; border: none; border-bottom: 1px solid var(--border); padding: 0 0 0.75rem 0; }
.card-title { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.75rem 0; }
.card-divider { border-top: 1px solid var(--border); margin: 1.25rem 0; }
.card-title-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; }
.card-title-row .card-title { margin-bottom: 0; }
.rating-history-summary { font-size: 0.7rem; color: var(--text-secondary); }
.rating-history-toggle {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.rating-history-toggle .toggle-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.rating-history-toggle .toggle-label:hover { color: var(--color-link); }
.rating-history-toggle .toggle-label.active {
    color: var(--color-link);
    text-decoration: underline;
}
.card-subtitle { font-size: 0.7rem; color: var(--text-secondary); margin-top: 0.125rem; }

.chart-container { position: relative; height: 200px; }
.chart-container.tall { height: 280px; }
.group-page .chart-container { height: 250px; }
.group-page .header-nav { gap: 0.5rem; }

/* Sparkline chart */
.sparkline-container { position: relative; width: 100%; height: 120px; }
.sparkline-svg { width: 100%; height: 100%; display: block; }
.sparkline-axis-label { font-size: 10px; fill: #6c757d; font-family: system-ui, sans-serif; }
.sparkline-point { cursor: pointer; }
.sparkline-point:hover circle:first-child { r: 6; }
.sparkline-tooltip {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    z-index: 10;
}

/* Mini stat cards */
.mini-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mini-stat {
    background: var(--bg-muted);
    border-radius: 0.375rem;
    padding: 0.875rem;
    text-align: center;
    border: 1px solid var(--border);
}

.mini-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.mini-stat-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; margin-top: 0.25rem; }

/* Album grid */
.album-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Wider album grid sections on share dashboard */
.share-dashboard .cards-grid:has(.album-grid) {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.share-dashboard {
    overflow-x: hidden;
}

/* Old school web style for share dashboard */
.share-dashboard .card {
    border-radius: 0;
    box-shadow: none;
}
.share-dashboard .card-header,
.group-page .card-header {
    border-bottom: none;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
}

.breakdown-stacked {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    grid-column: span 6;
}
.breakdown-stacked .card {
    flex: 1;
}
@media (max-width: 600px) {
    .breakdown-stacked { grid-column: span 12; }
}
.share-dashboard .data-table th,
.group-page .data-table th {
    background: var(--bg-muted);
    color: var(--text-primary);
}
.share-dashboard .favorite-album-link {
    border: none;
    padding: 0.5rem 1rem;
}
.share-dashboard .favorite-album-link:hover {
    box-shadow: none;
    transform: none;
}
.share-dashboard .favorite-album-info {
    text-align: center;
}
.share-dashboard .favorite-album-name {
    font-size: 2.5rem;
    font-weight: 700;
}
.share-dashboard .favorite-album-artist {
    font-size: 1rem;
    color: var(--text-primary);
}
@media (max-width: 600px) {
    .share-dashboard .favorite-album-name {
        font-size: 1.5rem;
    }
}
.share-dashboard .favorite-album-label {
    margin-bottom: 0.5rem;
}
.share-dashboard .hero-section,
.group-page .hero-section {
    border-radius: 0;
    box-shadow: none;
}
.group-page .card {
    border-radius: 0;
    box-shadow: none;
}

/* Hero progress bar */
.hero-progress {
    margin-top: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.hero-progress .progress-bar-container {
    height: 8px;
    border-radius: 0;
}
.hero-progress .progress-bar-fill {
    border-radius: 0;
}
.hero-progress .progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.share-dashboard .cards-grid:has(.album-grid) .card {
    max-width: 1800px;
    margin: 0 auto;
}

.group-share .album-grid { margin-bottom: 0.5rem; }

.album-thumb {
    width: 90px;
    height: 90px;
    border-radius: 0.375rem;
    object-fit: cover;
    transition: transform 0.15s;
    box-shadow: var(--shadow);
}

.album-thumb:hover { transform: scale(1.08); }

@media (max-width: 699px) {
    .share-dashboard .cards-grid:has(.album-grid) {
        padding-left: 0;
        padding-right: 0;
    }
    .share-dashboard .cards-grid:has(.album-grid) .card {
        padding: 0;
    }
    .share-dashboard .album-grid {
        border-radius: 0;
    }
    .share-dashboard .album-thumb {
        border-radius: 0;
    }
}

@media (min-width: 700px) {
    .album-grid { gap: 1rem; }
    .album-thumb { width: 220px; height: 220px; }
    .group-share .album-thumb { width: 220px; height: 220px; }
}

/* Data Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
    background: var(--bg-muted);
}
.data-table td { padding: 0.5rem; border-bottom: 1px solid var(--border); }
.data-table tbody tr:hover { background: var(--bg-muted); }
.data-table .table-artist { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.15rem; }
.data-table .rating { font-weight: 600; }
.data-table .rating.high { color: var(--success); }
.data-table .rating.low { color: var(--danger); }

.group-page .data-table { table-layout: fixed; }
.group-page .data-table th { padding: 0.75rem; }
.group-page .data-table th:first-child { width: 40%; }
.group-page .data-table th:nth-child(2) { width: 30%; }
.group-page .data-table th:nth-child(3) { width: 15%; }
.group-page .data-table th:nth-child(4) { width: 15%; }
.group-page .data-table td { padding: 0.75rem; word-wrap: break-word; overflow-wrap: break-word; }

@media (max-width: 600px) {
    .group-page .data-table th, .group-page .data-table td { padding: 0.5rem; }
    .group-page .data-table th:first-child { width: 45%; }
    .group-page .data-table th:nth-child(2) { width: 25%; }
    .group-page .data-table th:nth-child(3) { width: 15%; }
    .group-page .data-table th:nth-child(4) { width: 15%; }
}

.table-link { color: var(--text-primary); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; }
.table-link:hover { color: var(--color-link); }
.table-link .stats-icon { width: 14px; height: 14px; fill: var(--text-secondary); flex-shrink: 0; }
.table-link:hover .stats-icon { fill: var(--color-link); }
.table-description { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.table-detail { font-size: 0.7rem; color: var(--color-link); margin-top: 0.25rem; }

/* Section headers */
.section-header {
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.group-page .section-header { margin: 2rem 0 1rem; gap: 1rem; }

.section-title { font-size: 1rem; font-weight: 600; margin: 0; }
.group-page .section-title,
.album-page .section-title { font-size: 1.1rem; color: var(--text-primary); white-space: nowrap; }

.section-line { flex: 1; height: 1px; background: var(--border); }
.section-link {
    font-size: 0.75rem;
    color: var(--color-link);
    font-weight: 500;
    white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* Comparison indicator */
.comparison {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
}
.comparison.positive { background: rgba(40, 167, 69, 0.1); color: var(--success); }
.comparison.negative { background: rgba(220, 53, 69, 0.1); color: var(--danger); }
.comparison.neutral { background: rgba(108, 117, 125, 0.1); color: var(--text-secondary); }

/* Social share buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.8; text-decoration: none; }
.share-btn.twitter { background: #1da1f2; color: #fff; }
.share-btn.facebook { background: #4267b2; color: #fff; }

/* Insight box */
.insight-box {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
}
.insight-title { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; text-transform: uppercase; }
.insight-text { font-size: 0.85rem; color: var(--text-secondary); }

.reviews-container {
    max-width: 900px;
    margin: 0 auto;
}

.share-dashboard .review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    box-shadow: none;
}
.group-share .review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    box-shadow: none;
}
.share-dashboard .review-card:last-child,
.group-share .review-card:last-child { margin-bottom: 0; }

.share-dashboard .review-header,
.group-share .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.review-album { font-weight: 600; font-size: 0.9rem; }
.review-album a { color: var(--text-primary); }
.review-album a:hover { color: var(--color-link); }
.share-dashboard .review-meta,
.group-share .review-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
    padding-top: 0;
    border-top: none;
}
.review-rating {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.share-dashboard .review-text,
.group-share .review-text {
    white-space: pre-line;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* All ratings section */
#toggleAllRatingsBtn {
    padding: 0.75rem 2rem;
}
.all-ratings-list {
    margin-top: 1rem;
}

/* Featured review */
.featured-review-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 2rem;
}
.featured-review {
    background: linear-gradient(135deg, #fffdf5, #fff9e6);
    border: 2px solid var(--golden);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.15);
}
.featured-review-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--golden);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.featured-review-img {
    width: 120px;
    height: 120px;
    border-radius: 0.375rem;
    object-fit: cover;
    box-shadow: var(--shadow-hover);
    flex-shrink: 0;
}
.featured-review-content { flex: 1; }
.featured-review-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem; }
.featured-review-meta { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.featured-review-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; white-space: pre-line; }
@media (max-width: 600px) {
    .featured-review { flex-direction: column; align-items: center; text-align: center; }
    .featured-review-img { width: 100px; height: 100px; }
    .featured-review-text { text-align: left; }
}

/* Info Modal - reusable simple modal */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.info-modal.show {
    display: flex;
}
.info-modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    margin: 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.info-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}
.info-modal-close:hover {
    color: var(--text-primary);
}
.info-modal-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.info-modal-title {
    font-size: 1.5rem;
    margin: 0 0 1rem;
}
.info-modal-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.info-hint {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 10px;
    background: var(--border);
    border-radius: 50%;
    text-align: center;
    margin-left: 4px;
    color: var(--text-secondary);
}

/* Milestones */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}
.milestone {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}
.milestone-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 0.5rem;
    color: var(--color-blue);
}
.milestone-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.milestone-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }
.milestone-value { font-size: 1rem; font-weight: 600; color: var(--text-primary); }

/* Simplified milestone grid without icons */
.milestone-grid-simple .milestone { padding: 1.5rem; border-radius: 0; }
.milestone-grid-simple .milestone-value { font-size: 1.25rem; }

/* Mini album list */
.mini-album-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mini-album-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.mini-album-item:last-child { border-bottom: none; }
.mini-album-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-muted);
    border-radius: 50%;
    flex-shrink: 0;
}
.mini-album-info { flex: 1; min-width: 0; }
.mini-album-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-album-name:hover { color: var(--color-link); }
.mini-album-artist {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-album-rating {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* Collapsible lists */
.mini-album-list.collapsible .mini-album-item:nth-child(n+6) { display: none; }
.mini-album-list.collapsible.expanded .mini-album-item:nth-child(n+6) { display: flex; }

.expand-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.expand-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.mini-album-list.expanded + .expand-btn { display: none; }

/* Quick stats list */
.quick-stats-list { display: flex; flex-direction: column; gap: 0.75rem; }
.quick-stat-item { display: flex; justify-content: space-between; align-items: center; }
.quick-stat-label { font-size: 0.85rem; }
.quick-stat-value { font-size: 0.9rem; font-weight: 600; }
.quick-stat-value small { font-weight: 400; color: var(--text-secondary); }

/* Sort controls */
.sort-controls {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.sort-controls span {
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}
.sort-controls span:hover { color: var(--color-link); background: var(--bg-muted); }
.sort-controls .active { color: var(--color-link); background: var(--bg-muted); font-weight: 500; }


/* ==========================================================================
   GROUP-SHARE SPECIFIC STYLES
   ========================================================================== */

/* Agreement tables */
.agreement-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.agreement-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.agreement-table th:nth-child(2),
.agreement-table th:nth-child(3) { text-align: center; width: 60px; }
.agreement-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.agreement-table tr:last-child td { border-bottom: none; }
.agreement-table .album-link {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.agreement-table .album-link:hover { color: var(--color-link); }
.agreement-table .album-artist {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.agreement-table .rating-cell,
.agreement-table .votes-cell {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Alert box */
.alert-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.alert-box.warning { border-color: var(--warning); background: #fffdf5; }
.alert-box.info { border-color: var(--primary); background: #f0f7ff; }
.alert-box.danger { background: #fff5f5; border-color: var(--danger); color: #842029; }
.alert-box.success { background: #f0fff4; border-color: var(--success); color: #0f5132; }
.alert-box h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.alert-box p { font-size: 0.85rem; color: var(--text-secondary); margin: 0.25rem 0; }
.alert-box .btn { display: inline-block; margin-top: 1rem; padding: 0.5rem 1.5rem; background: var(--primary); color: #fff; border-radius: 0.25rem; font-weight: 500; }
.alert-box .btn:hover { background: var(--primary-dark); text-decoration: none; }

.alert-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
    transition: all 0.15s;
}
.alert-btn.primary { background: var(--primary); color: #fff; }
.alert-btn.primary:hover { background: var(--primary-dark); }


/* ==========================================================================
   GROUP-STATS SPECIFIC STYLES
   ========================================================================== */

/* Members list */
.members-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.members-toggle {
    font-size: 0.8rem;
    color: var(--color-link);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.members-toggle:hover { text-decoration: underline; }

.members-names {
    display: none !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.members-names.show { display: flex !important; }

.member-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Invite box */
.invite-box {
    background: linear-gradient(135deg, #f0f7ff, #e8f4f8);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.invite-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.invite-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.invite-url-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 1rem auto;
    max-width: 500px;
}
.invite-url-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
    text-align: left;
    font-family: monospace;
}
.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.copy-btn:hover { background: var(--primary-dark); }
.copy-btn.copied { background: var(--success); }
.invite-or {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

/* Share links */
.share-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}
.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.share-link:hover { background: var(--bg-card); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.share-link svg { width: 20px; height: 20px; fill: var(--text-secondary); }
.share-link:hover svg { fill: var(--text-primary); }

/* Group invite hero (shown when group has 1 member) */
.group-invite-hero {
    text-align: center;
    padding: 0;
}
.group-invite-hero--success {
    background: #d4edda;
    border-bottom: 1px solid #b1dfbb;
    border-radius: 0;
    padding: 3.5rem 2rem;
    margin-bottom: 2.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    text-align: center;
}
.group-invite-hero--success-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #155724;
    margin: 0 0 0.35rem;
}
.group-invite-hero--success-text {
    font-size: 0.9rem;
    color: #1e7e34;
    margin: 0;
}
.group-invite-hero--title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 auto 0.75rem;
    max-width: 560px;
    padding: 0 1rem;
}
.group-invite-hero--subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 auto 2rem;
    max-width: 560px;
    line-height: 1.5;
    padding: 0 1rem;
}
.group-invite-hero--url-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin: 0 auto 1.25rem;
    max-width: 560px;
}
.group-invite-hero--url-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
    text-align: left;
    font-family: monospace;
}
.group-invite-hero--copy-btn {
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.group-invite-hero--copy-btn:hover {
    background: var(--primary-dark);
}
.group-invite-hero--copy-btn.copied {
    background: var(--success);
}
@media only screen and (max-width: 600px) {
    .group-invite-hero--url-box {
        flex-direction: column;
        text-align: center;
    }
    .group-invite-hero--url-text {
        text-align: center;
    }
    .group-invite-hero--copy-btn {
        width: 100%;
    }
}
.group-invite-hero--share-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.group-invite-hero--how-it-works {
    text-align: center;
    margin-top: 3rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 3.5rem 2rem;
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    border-radius: 0;
}
.group-invite-hero--how-it-works h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 auto 1.5rem;
    max-width: 520px;
}
.group-invite-hero--steps {
    display: inline-flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 520px;
    text-align: left;
}
.group-invite-hero--step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.group-invite-hero--step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}
.group-invite-hero--back-link {
    display: inline-block;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.group-invite-hero--back-link:hover {
    text-decoration: underline;
}

/* Invite section */
.invite-section {
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}
.invite-section h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.invite-url {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-muted);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    word-break: break-all;
    margin-top: 0.75rem;
}

/* Action buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.action-btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.action-btn.secondary { background: var(--bg-muted); color: var(--text-secondary); border: 1px solid var(--border); }
.action-btn.secondary:hover { background: var(--bg-card); color: var(--text-primary); }

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}
.tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.15s;
}
.tab-btn:hover { background: var(--bg-muted); }
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Progress stat */
.progress-stat { text-align: center; }
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-muted);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.progress-text { font-size: 0.85rem; color: var(--text-secondary); }


/* ==========================================================================
   STATIC-ALBUM (ALBUM PAGE) SPECIFIC STYLES
   ========================================================================== */

/* Album hero */
.album-hero {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .album-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.album-cover {
    flex-shrink: 0;
}

.album-cover img {
    width: 500px;
    height: 500px;
    border-radius: 0;
    box-shadow: var(--shadow-hover);
}

@media (max-width: 900px) {
    .album-cover img {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 500px) {
    .album-cover img {
        width: 280px;
        height: 280px;
    }
}

.album-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.album-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.album-artist {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.album-artist a { color: var(--color-link); text-decoration: none; }
.album-artist a:hover { text-decoration: underline; }

.album-year {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.album-year a { color: var(--text-secondary); text-decoration: none; }
.album-year a:hover { color: var(--color-link); }

.streaming-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .streaming-links {
        justify-content: center;
    }
}

.streaming-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.streaming-link:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.streaming-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.streaming-link:hover svg {
    fill: var(--text-primary);
}

/* Stats row */
.stats-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .stats-row {
        justify-content: center;
    }
    .stats-row .rating-dist {
        margin-top: 1rem;
    }
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Rating distribution */
.rating-dist {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 90px;
}

.rating-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.rating-bar-fill {
    width: 24px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    min-height: 4px;
}

.rating-bar-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    min-width: 24px;
    text-align: center;
}

.rating-bar {
    cursor: pointer;
    position: relative;
}

.rating-bar-percent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.rating-bar.active .rating-bar-percent {
    opacity: 1;
}

.rating-bar.active .rating-bar-label {
    opacity: 0;
}

/* Genre tags */
.genre-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .genre-tags {
        justify-content: center;
    }
}

.genre-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s;
}

.genre-tag:hover,
.album-page .genre-tag:hover {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
    text-decoration: none;
}

/* Album metadata (genres + styles) */
.album-metadata {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.album-metadata span {
    display: block;
    margin-bottom: 0.2rem;
}

@media (max-width: 768px) {
    .album-metadata {
        text-align: center;
    }
}

/* Style tags (sub-genres) */
.style-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.style-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s;
}

.style-tag:hover {
    background: var(--color-blue);
    color: #fff;
    border-color: var(--color-blue);
    text-decoration: none;
}

/* Album page card styling */
.album-page .card {
    padding: 1.5rem 2.5rem;
    border-radius: 0;
    box-shadow: none;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-line;
}

/* User album badge */
.user-album-badge {
    display: inline-block;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 1.5rem 2.5rem;
    border-radius: 0;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    box-shadow: none;
}

/* Album page reviews */
.album-page .review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2rem 3rem;
    margin-bottom: 0.75rem;
    box-shadow: none;
}
.album-page .review-card:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .album-page .review-card {
        padding: 1.5rem;
    }
}

.album-page .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -2rem -3rem 0.5rem -3rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 600px) {
    .album-page .review-header {
        margin: -1.5rem -1.5rem 0.5rem -1.5rem;
    }
}

.review-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.review-author {
    font-size: 0.7rem;
    color: var(--color-link);
    text-decoration: none;
}

.review-author:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.album-page .review-rating {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.album-page .review-text {
    white-space: pre-line;
    padding: 1rem 0;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}

.thumb-up-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.thumb-up-btn:hover {
    opacity: 1;
}
.thumb-up-btn img {
    width: 20px;
    height: 20px;
}

/* Keywords */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

a.keyword {
    padding: 0.25rem 0.5rem;
    background: var(--bg-page);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

a.keyword:hover {
    background: var(--color-blue);
    color: #fff;
    text-decoration: none;
}

/* Wikipedia link */
.wiki-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-link);
    text-decoration: none;
    margin-top: 0.75rem;
}

.wiki-link img {
    opacity: 0.7;
}

.wiki-link:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.wiki-link:hover img {
    opacity: 1;
}

/* Load more button */
.load-more-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}

/* Album page review controls (sort + filters) */
.static-album--review-controls {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-muted);
}

.static-album--review-controls-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    padding: 0.25rem 0;
}

.static-album--review-controls-label {
    color: var(--text-primary);
    margin-right: 0.25rem;
    min-width: 3.5rem;
}

.static-album--review-controls-row span:not(.static-album--review-controls-label) {
    cursor: pointer;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.static-album--review-controls-row span:not(.static-album--review-controls-label):hover {
    color: var(--color-link);
    text-decoration: underline;
}

.static-album--review-controls-row .active {
    color: var(--color-link);
    font-weight: 500;
    text-decoration: underline;
}

/* ==========================================
   History Page (New)
   ========================================== */
.history-page-new {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-page);
}

/* Hero Section */
.history-hero {
    background: var(--bg-muted);
    color: var(--text-primary);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.history-hero h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.history-hero .hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.history-hero .hero-subtitle strong {
    color: var(--text-primary);
}


.hero-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.hero-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.hero-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.hero-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-secondary);
}

/* Container */
.history-container {
    max-width: min(1200px, 100%);
    margin: 0 auto;
    padding: 1.5rem;
}

/* Stats Pills */
.stats-bar {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-muted);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.stats-bar-minimal {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.stats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pill {
    padding: 0.4rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.pill:hover {
    border-color: var(--color-link);
    color: var(--color-link);
}

.pill.active {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: white;
}

.pill.link {
    background: transparent;
    border-color: transparent;
    color: var(--color-link);
}

.pill.link:hover {
    text-decoration: underline;
}

.pill-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 0.25rem;
}

/* Stats Panels */
.stats-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.stats-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.stats-panel th,
.stats-panel td {
    padding: 0.6rem 1rem;
    text-align: left;
}

.stats-panel th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    background: var(--bg-muted);
}

.stats-panel td {
    border-top: 1px solid var(--border);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.filter-input {
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    background: var(--bg-card);
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    background: var(--bg-card);
    min-width: 130px;
    height: auto;
    align-self: flex-start;
}

/* Table Section */
.table-section {
    margin-bottom: 2rem;
}

.table-section--user-albums {
    padding-bottom: 3.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 2px solid var(--border);
}

.table-section .filter-input {
    margin-bottom: 1rem;
    max-width: 300px;
}

.table-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.table-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

p.table-count {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem;
}

/* Table Wrapper */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
}

/* History Table */
.history-page-new .history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.history-page-new .history-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}

.history-page-new .history-table td {
    padding: 0.6rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.history-page-new .history-table .album-row {
    position: relative;
}

.history-page-new .history-table .album-row:hover {
    background: rgba(0,0,0,0.02);
}

.history-page-new .history-table .current-album-row {
    background: linear-gradient(135deg, rgba(90,138,154,0.08) 0%, rgba(90,138,154,0.04) 100%);
}
.history-page-new .history-table .current-album-row:hover {
    background: linear-gradient(135deg, rgba(90,138,154,0.12) 0%, rgba(90,138,154,0.06) 100%);
}
.history-page-new .current-badge {
    position: absolute;
    top: 3px;
    left: 6px;
    background: var(--color-teal);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.history-page-new .history-table .col-num { width: 50px; text-align: center; position: relative; }
.history-page-new .history-table .col-album { text-align: center; }
.history-page-new .history-table .col-artist { text-align: center; }
.history-page-new .history-table .col-rating { width: 70px; text-align: center; }
.history-page-new .history-table .col-global { width: 60px; text-align: center; position: relative; }
.history-page-new .history-table .col-actions {
    width: 120px;
    text-align: center;
}
.history-page-new .history-table .col-actions .btn-link {
    display: block;
    margin: 0;
}


.history-page-new .col-num .date {
    position: absolute;
    top: 3px;
    left: 6px;
    font-size: 0.7rem;
    font-style: italic;
    color: var(--text-secondary);
    white-space: nowrap;
}

.history-page-new .col-album a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.history-page-new .col-album a:hover {
    color: var(--color-link);
}

.history-page-new .col-album .mobile-artist {
    display: none;
}

.history-page-new .mobile-link {
    display: none;
}

/* Notes Row - separate row below album with visual connector */
.history-page-new .notes-row td {
    padding: 0.75rem 1.5rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    background: var(--bg-page);
    border-left: 3px solid var(--color-teal);
    white-space: pre-line;
    word-break: break-word;
    line-height: 1.5;
    text-align: left;
    border-bottom: 2px solid var(--border);
}

/* Album row without bottom border when followed by notes row */
.history-page-new .album-row.has-notes td {
    border-bottom: none;
}

.history-page-new .col-artist a {
    color: var(--text-primary);
    text-decoration: none;
}

.history-page-new .col-artist a:hover {
    color: var(--color-link);
}

.history-page-new .wiki-icon {
    display: none;
}

@media (max-width: 768px) {
    .history-page-new .wiki-icon {
        display: block;
        position: absolute;
        top: 3px;
        right: 6px;
    }
}

.history-page-new .rating-num {
    display: inline-block;
    min-width: 24px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.history-page-new .btn-rate {
    background: var(--color-blue);
    color: white;
    border: none;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

.history-page-new .btn-rate:hover {
    background: var(--color-blue-dark);
}

.history-page-new .btn-edit {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

.history-page-new .btn-edit:hover {
    color: var(--color-link);
}

.history-page-new .btn-link {
    color: var(--color-link);
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.history-page-new .btn-link:hover {
    text-decoration: underline;
}

.history-page-new .btn-fav {
    background: var(--color-gold);
    color: white;
    border: none;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.history-page-new .btn-fav.mobile-fav {
    display: none;
}

/* Favorite Album Banner */
.history-page-new .favorite-album-banner {
    background: linear-gradient(135deg, var(--color-gold) 0%, #d4a520 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.history-page-new .favorite-album-banner h2 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.history-page-new .favorite-album-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

.history-page-new .favorite-album-banner strong {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.history-page-new .btn-featured {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-left: 0.5rem;
    opacity: 0.5;
}

.history-page-new .btn-featured:hover {
    opacity: 1;
}


/* Rating Row */
.history-page-new .rating-row td {
    background: #fffef8;
    padding: 1rem;
}

.inline-rating {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin-left: 50px;
}

.inline-rating textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.rating-btns {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.rating-btns button {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.rating-btns button:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: white;
}

.rating-btns .btn-cancel {
    width: auto;
    padding: 0 1rem;
    border-radius: 4px;
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.rating-btns .btn-cancel:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
    border-color: var(--border);
}

/* Mobile */
@media (max-width: 768px) {
    .history-page-new {
        overflow-x: hidden;
    }

    .history-hero {
        padding: 1.25rem 1rem;
        padding-top: 4rem;
    }

    .history-hero h1 {
        font-size: 1.25rem;
    }

    .hero-actions {
        top: 0.5rem;
        right: 0.5rem;
    }

    .history-container {
        padding: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-input,
    .filter-select {
        width: 100%;
    }

    .history-page-new .table-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .history-page-new .history-table,
    .history-page-new table.history-table {
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .history-page-new .history-table th,
    .history-page-new .history-table td {
        padding: 0.5rem;
    }

    .history-page-new .history-table thead tr {
        background: var(--bg-muted);
    }

    /* Hide columns on mobile - artist shown below album, actions shown as mobile-link */
    .history-page-new .history-table .col-artist,
    .history-page-new .history-table .col-actions {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .history-page-new .history-table .col-num {
        width: 12% !important;
        padding-left: 0.3rem !important;
        text-align: center !important;
    }

    .history-page-new .history-table .col-album {
        width: 52% !important;
        text-align: center !important;
    }

    .history-page-new .history-table .col-album a {
        display: block !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }

    .history-page-new .history-table .col-rating {
        width: 18% !important;
        text-align: center !important;
    }

    .history-page-new .history-table .col-global {
        width: 18% !important;
        text-align: center !important;
    }

    /* Show artist and links below album name on mobile */
    .history-page-new .col-album .mobile-artist {
        display: block;
        font-size: 0.75rem;
        color: var(--text-primary);
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .history-page-new .mobile-link {
        display: block;
        font-size: 0.7rem;
        margin-top: 3px;
        color: var(--color-link);
    }

    /* Show mobile favorite button, hide desktop one */
    .history-page-new .btn-fav.mobile-fav {
        display: inline-block;
        margin-left: 0;
        margin-top: 5px;
    }

    .history-page-new .btn-fav.desktop-fav {
        display: none;
    }

    /* Mobile favorite banner */
    .history-page-new .favorite-album-banner {
        padding: 1rem;
        margin: 0 -1rem 1rem -1rem;
        border-radius: 0;
    }

    .history-page-new .favorite-album-banner h2 {
        font-size: 1.1rem;
    }

    .history-page-new .favorite-album-banner p {
        font-size: 0.85rem;
    }

    .history-page-new .col-num .date {
        position: absolute;
        top: 3px;
        left: 3px;
        font-size: 0.65rem;
        font-style: italic;
        color: var(--text-secondary);
    }

    .history-page-new .notes-row td {
        padding: 0.5rem;
    }

    .inline-rating {
        margin-left: 0;
        max-width: 100%;
    }

    .rating-btns {
        flex-wrap: wrap;
    }

    .stats-bar {
        margin: 0 -1rem 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .stats-pills {
        justify-content: center;
    }

    .pill-divider {
        display: none;
    }

    .stats-panel {
        margin: 0 -1rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Project Group Page */
.project-group--hero {
    max-width: 640px;
    margin: 2rem auto 2.5rem;
}
.project-group--title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.project-group--subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.project-group--cards {
    max-width: 560px;
    margin: 0 auto;
}

.project-group--card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    text-align: left;
}
.project-group--card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-muted);
}
.project-group--card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}
.project-group--card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}
.project-group--card-body {
    padding: 2.5rem 2.5rem;
}

.project-group--label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.project-group--input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: var(--bg-card);
    color: var(--text-primary);
    box-sizing: border-box;
}
.project-group--input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 105, 217, 0.15);
}
.project-group--hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.project-group--checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.25rem;
}
.project-group--checkbox-row label {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
}

.project-group--checkbox-detail {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}
.project-group--checkbox-option {
    margin-bottom: 0.75rem;
}
.project-group--checkbox-option strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
}
.project-group--checkbox-option span {
    display: block;
}

.project-group--join-toggle {
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.project-group--join-toggle a {
    color: var(--color-link);
    text-decoration: none;
}
.project-group--join-toggle a:hover {
    text-decoration: underline;
}

.project-group--btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}
.project-group--btn.primary {
    background: var(--primary);
    color: #fff;
}
.project-group--btn.primary:hover {
    background: var(--primary-dark);
}

.project-group--divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}
.project-group--divider::before,
.project-group--divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}
.project-group--divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .project-group--hero {
        margin: 1.5rem 1rem 2rem;
    }
    .project-group--cards {
        margin: 0 0.5rem;
    }
    .project-group--card-header,
    .project-group--card-body {
        padding: 1rem;
    }
}

/* ==========================================================================
   Supporter Page
   ========================================================================== */

.supporter-page {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.supporter-page--back-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    z-index: 10;
    opacity: 0.8;
}
.supporter-page--back-link:hover {
    color: #fff;
    opacity: 1;
}

/* Hero Section */
.supporter-page--hero {
    background: var(--color-slate);
    color: #fff;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.supporter-page--hero-content {
    max-width: 600px;
    margin: 0 auto;
}
.supporter-page--title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}
.supporter-page--subtitle {
    font-size: 1.15rem;
    margin: 1rem 0 0;
    opacity: 0.9;
    line-height: 1.5;
}

/* Content Section */
.supporter-page--content {
    background: var(--bg-card);
    padding: 3rem 1.5rem 4rem;
    flex: 1;
}
.supporter-page--text-content {
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
}
.supporter-page--text-content p {
    margin: 0 0 1.25rem;
}
.supporter-page--text-content a {
    color: var(--color-link);
}
.supporter-page--text-content a:hover {
    text-decoration: underline;
}

/* Perks List */
.supporter-page--perks-list {
    margin: 0 0 2rem;
    padding-left: 1.25rem;
}
.supporter-page--perks-list li {
    margin-bottom: 0.6rem;
}
.supporter-page--tier-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.supporter-page--buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 1.5rem;
}
.supporter-page--button-form {
    display: inline-block;
}
input.supporter-page--button {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.supporter-page--button,
.supporter-page--button:visited {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-slate);
    background: var(--bg-card);
    color: var(--color-slate) !important;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.supporter-page--button:hover {
    background: var(--color-slate);
    color: #fff !important;
}
.supporter-page--button-primary,
.supporter-page--button-primary:visited {
    background: var(--color-slate);
    color: #fff !important;
}
.supporter-page--button-primary:hover {
    background: var(--color-charcoal);
    border-color: var(--color-charcoal);
}

/* Bitcoin Info */
.supporter-page--bitcoin-info {
    display: none;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-muted);
    border-radius: 0.25rem;
    text-align: center;
}
.supporter-page--bitcoin-info-visible {
    display: block;
}
.supporter-page--bitcoin-address {
    font-size: 0.85rem;
    word-break: break-all;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.supporter-page--bitcoin-qr {
    max-width: 120px;
}

/* Notes */
.supporter-page--claim-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 0;
}
.supporter-page--no-pressure {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 1.5rem 0 0;
}
.supporter-page--note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 2rem 0 0;
}

/* Responsive */
@media (max-width: 600px) {
    .supporter-page--title {
        font-size: 2rem;
    }
    .supporter-page--hero {
        padding: 3.5rem 1rem 2.5rem;
    }
    .supporter-page--content {
        padding: 2rem 1rem 3rem;
    }
    .supporter-page--text-content {
        font-size: 1rem;
    }
    .supporter-page--buttons {
        flex-direction: column;
    }
    .supporter-page--button {
        text-align: center;
        width: 100%;
    }
    .supporter-page--button-form {
        width: 100%;
    }
}

