/* Album track contrast: the legacy blue panel used white text.
   The redesign uses a light card, so reset inherited text colour as well. */
body.ed-redesign .album__content {
    color: var(--ed-ink, #202a40);
}
body.ed-redesign .album__content .ed-track__title,
body.ed-redesign .album__content .ed-yt-track__title {
    color: var(--ed-ink, #202a40);
}
body.ed-redesign .album__content .ed-track__title:hover,
body.ed-redesign .album__content .ed-yt-track__title:hover {
    color: var(--ed-navy, #101d45);
}

/* Corrections to the installed EveryDisc theme. No backend or JS changes.
   Scope full-page forms separately: production may use email or username. */
body.ed-redesign .main .panel {
    width: 100%;
    max-width: 520px;
    margin: 36px auto 52px;
    overflow: hidden;
}
body.ed-redesign .main .panel-heading {
    padding: 22px 28px;
    font-size: 24px;
    line-height: 1.3;
}
body.ed-redesign .main .panel-body { padding: 28px; }
body.ed-redesign .main .form-horizontal .form-group {
    display: block;
    margin: 0 0 20px;
}
body.ed-redesign .main .form-horizontal [class*="col-md-"] {
    width: 100%;
    float: none;
    margin-left: 0;
    padding: 0;
}
body.ed-redesign .main .form-horizontal .control-label {
    display: block;
    margin-bottom: 7px;
    padding: 0;
    text-align: left;
    color: var(--ed-ink);
    font-size: 14px;
    font-weight: 600;
}
body.ed-redesign .main .form-horizontal .form-control {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 5px;
}
body.ed-redesign .main .form-horizontal .checkbox { margin: 0; }
body.ed-redesign .main .form-horizontal .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--ed-ink);
    font-size: 14px;
    cursor: pointer;
}
body.ed-redesign .main .form-horizontal .checkbox label::before,
body.ed-redesign .main .form-horizontal .checkbox label::after { content: none !important; }
body.ed-redesign .main .form-horizontal input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block !important;
    position: static !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 18px;
    box-sizing: border-box;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
    clip: auto !important;
    clip-path: none;
    border: 1px solid #768094 !important;
    border-radius: 3px;
    background: white no-repeat center / 14px 14px;
}
body.ed-redesign .main .form-horizontal input[type="checkbox"]:checked {
    border-color: var(--ed-orange) !important;
    background-color: var(--ed-orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.ed-redesign .main .form-horizontal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}
body.ed-redesign .main .form-horizontal .btn-primary {
    background: var(--ed-orange);
    color: white;
    cursor: pointer;
}
body.ed-redesign .main .form-horizontal .btn-primary:hover { background: #d8471b; }
body.ed-redesign .main .form-horizontal .btn-link {
    padding-inline: 10px;
    background: transparent;
    color: var(--ed-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.ed-redesign .main .form-horizontal .form-group:last-child > [class*="col-md-"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
body.ed-redesign .main .form-horizontal .has-error .form-control { border-color: #b1312b; }
body.ed-redesign .main .form-horizontal .help-block {
    display: block;
    margin-top: 7px;
    color: #b1312b;
    font-size: 13px;
    line-height: 1.5;
}
body.ed-redesign .main .form-horizontal :focus-visible {
    outline: 2px solid var(--ed-navy);
    outline-offset: 3px;
}

/* Flexible metadata columns: large album names cannot collide with the year. */
body.ed-redesign .album__info { min-width: 0; color: var(--ed-ink); }
body.ed-redesign .album__band {
    display: grid;
    grid-template-columns: minmax(120px, .85fr) minmax(0, 1.6fr) minmax(70px, .45fr);
    align-items: start;
    gap: 24px;
}
body.ed-redesign .album__band > div { min-width: 0; width: auto; }
body.ed-redesign .album__band .album__value { overflow-wrap: anywhere; }
body.ed-redesign .album__band .album__label { margin-bottom: 9px; }
body.ed-redesign .album__bottom {
    color: var(--ed-muted, #697386);
    border-top-color: var(--ed-line);
}

/* The original stylesheet made chart titles smaller than useful reading size. */
body.ed-redesign .styled-list__name { font-size: 13px; line-height: 1.45; }
body.ed-redesign .styled-list__title { color: #555e72; font-size: 12px; line-height: 1.45; }
body.ed-redesign .styled-list__title--big { color: var(--ed-navy); font-size: 14px; font-weight: 600; }
body.ed-redesign .styled-list__number { font-size: 13px; }
body.ed-redesign .styled-list__text,
body.ed-redesign .styled-list__rating { font-size: 12px; line-height: 1.5; }
body.ed-redesign .styled-list__info { flex: 1; min-width: 0; gap: 4px; }
body.ed-redesign .styled-list__info > span { overflow-wrap: anywhere; }
body.ed-redesign .styled-list__bottom { display: flex; flex-wrap: wrap; gap: 4px 14px; }
body.ed-redesign .styled-list li > a { padding-block: 11px; }
/* Simple Scrollbar uses negative wrapper margins. Contain them without
   replacing its scrollable content or changing the library's behaviour. */
body.ed-redesign .top-list__item { min-width: 0; overflow: hidden; }

/* Keep biographies aligned with catalogue cards; do not reserve an empty
   photo-sized block for short descriptions. Long text still remains visible. */
body.ed-redesign .band__biography {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1220px;
    height: auto;
    min-height: 0;
    margin: 0 auto 24px;
    padding: 24px;
}
body.ed-redesign .band__biography > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
body.ed-redesign .band__biography > .container > .flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    min-height: 0;
    height: auto;
}
body.ed-redesign .band__biography p { margin: 0; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
body.ed-redesign .band__biography .band__photo {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-width: 240px;
    margin: 0;
}
body.ed-redesign .band__biography .band__photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}
body.ed-redesign .band__biography .band__photo:has(img[src=""]) { display: none; }

@media (max-width: 1050px) {
    body.ed-redesign .album__band { grid-template-columns: minmax(0, 1fr) 80px; gap: 18px; }
    body.ed-redesign .album__band .album__name { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    body.ed-redesign .album__cover { margin-inline: auto; }
    body.ed-redesign .band__biography { width: calc(100% - 24px); padding: 18px; }
    body.ed-redesign .band__biography > .container > .flex { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    body.ed-redesign .band__biography .band__photo { max-width: 100%; }
    body.ed-redesign .main .panel { margin-block: 22px 36px; }
    body.ed-redesign .main .panel-heading { padding: 20px; }
    body.ed-redesign .main .panel-body { padding: 20px; }
}
