/* Judge Entries List Styles */
/* Keep full width when few entries (e.g. "Judged" filter with one result) */
.judge-entries-list-wrapper {
    width: 100%;
}

.judge-entries-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
}

/* Hide messages/notifications/logo for judge role – commented out to show them */
/* .judge #header-messages-dropdown-elem,
.judge #header-notifications-dropdown-elem, */
.judge #site-logo /*,
.judge #header-aside .sub-menu-inner li a.user-link */ {
    display: none !important;
}     

.judge-entries-grid .entry-item h3 {
    display: block;
    height: 62px;
    overflow: hidden;
    line-height: 1.2;
}

.entry-item {
    width: calc(33.333% - 10px);
    margin: 0 5px 10px 5px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.judge-entries-grid .entry-content {padding:1em}


.entry-content h3 {
    margin-bottom: 1em;
}

.entry-content h3 a {
    text-decoration: none;
    color: #012E73;
}

.entry-content h3 a:hover {text-decoration: underline;}

.entry-meta {
    margin: 0.5em 0 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entry-genre {
    display: inline-block;
    padding: 0px 15px;
    border-radius: 5px;
    font-size: 12px;
    color: #555;
    letter-spacing: 0.5px;
    font-weight: 600; 
    font-size: 12px;
}

/* Genre-specific colors - Brand gradient from #012E73 (blue) to #f45c24 (orange) */
.entry-genre.genre-blues {
    background: #e6ecf5;
    color: #012E73;
}

.entry-genre.genre-jazz {
    background: #e8eef7;
    color: #0d3d7a;
}

.entry-genre.genre-spiritual {
    background: #eae8f5;
    color: #2a3a82;
}

.entry-genre.genre-ai {
    background: #ede6f3;
    color: #4a3088;
}

.entry-genre.genre-rock {
    background: #f3e6ef;
    color: #6a2875;
}

.entry-genre.genre-musicaltheatre {
    background: #f5e6ea;
    color: #8a2258;
}

.entry-genre.genre-pop {
    background: #f8e6e6;
    color: #a52040;
}

.entry-genre.genre-acoustic {
    background: #fae8e4;
    color: #c43520;
}

.entry-genre.genre-country {
    background: #fceee6;
    color: #d94a1f;
}

.entry-genre.genre-folk {
    background: #fdf3e6;
    color: #b85c18;
}

.entry-readmore {
    margin-left: auto;
}

.entry-readmore a {
    display: inline-block;
    padding: 8px 16px;
    background: #0055FF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.entry-readmore a:hover {
    background: #0044CB;
    color: white
}

.judging-status {
    margin-top: 1em;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.judging-status hr {
    height: 0;
    margin: 0 0 0.2em 0 !important;
    background-color: rgba(1, 46, 115, 0.3) !important;
    align-self: stretch;
}

.judging-status table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.judging-status th,
.judging-status td {
    padding: 0;
    text-align: center;
    font-size: 10px;
}

/* Checkbox Styling */
.checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.checkbox.checked {
    background-color: #012E73;
    border-color: #012E73;
    position: relative;
}

.checkbox.checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* Debug Query Styles */
.judge-query-debug {
    background: #f5f5f5;
    padding: 15px;
    border: 1px solid #ddd;
    margin: 15px 0;
    font-family: monospace;
}

/* Judging Results Styles */
.judging-results {
    background-color: #B1DEFF;
    background-color: #ffdea8;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 2em;
}

.judging-results h2 {
    /* color: white !important;
    text-shadow: 2px 2px 4px #001f4e; */
}

/* Commendation Banner */
.commendation-banner {
    background-color: #f45c24;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 3px 7px -2px #9f3e18;
    grid-column: 2;
    justify-self: end;
    margin-top: 5px;
}

/* Elimination Message Styling */
.elimination-message {
    margin: 1em 0;
}

.elimination-message p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

.elimination-message p:last-child {
    margin-bottom: 0;
}

.judging-divider {
    border: none;
    border-top: 1px solid #B6D0E5;
    margin-bottom: 20px;
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1em;
    margin-bottom: 1em;
}

.score-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.score-item {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 0;
    border-bottom: 1px dashed #aaa;
}

.score-label {
    font-weight: bold;
    color: var(--bb-headings-color);
    font-size: 14px;
}

.score-value {
    font-weight: bold;
    font-family: var( --e-global-typography-ea1035b-font-family ), Sans-serif;
    font-size: 2em;
    min-width: 40px;
    padding-right: 0.5em;
    text-align: right;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    color: var(--bb-headings-color);
}

/* Maximum score indicator styling */
.max-score {
    font-size: 16px;
    font-weight: normal;
    margin-left: 4px;
}

/* Total Score Styling */
.total-score-item {
    background-color: var(--bb-headings-color);
    color: white;
    grid-column: 1 / -1;
    text-align: center;
    border-radius: 4px;
    padding: 12px 15px !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
}

.total-score-item .score-label {
    font-weight: bold;
    color: white;
    font-size: 16px;
    margin-right: 10px;
}

.total-score-value {
    font-weight: bold;
    font-size: 3em;
    color: white;
    display: flex;
    align-items: baseline;
    font-family: var( --e-global-typography-ea1035b-font-family ), sans-serif;
    padding-top: 0.3em;
}

.total-max-score {
    font-size: 14px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 2px;
}

/* Star Rating Display */
.star-rating {
    display: inline-flex;
    gap: 2px;
    margin: 0 0 1px auto !important;
}

.star-filled {
    color: #FFD700; /* Gold color for filled stars */
}

.star-empty {
    color: #D3D3D3; /* Light gray color for empty stars */
}

.feedback-section {
    margin-top: 20px;
}

.feedback-item {
    margin-bottom: 15px;
}

.feedback-label {
    font-weight: bold;
    color: var(--bb-headings-color);
    margin-bottom: 5px;
}

.feedback-text {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0;
    padding: 15px;
    min-height: 40px;
    font-size: 14px;
}

/* Base Form Styling */
.acf-form-wrapper {
    background-color: #B1DEFF;
    padding: 1em;
    border-radius: 0;
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.acf-form-wrapper .acf-form {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Single entry/lyrics: split layout – #main (entry details) and judging form as siblings, side by side.
   JS moves the form section out of #main and sets .tist-comp-has-form-column gap to 0. */
.single-26-comp-entry .tist-comp-has-form-column,
.single-26-comp-lyrics .tist-comp-has-form-column {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-start;
}

.single-26-comp-entry .tist-comp-has-form-column > main,
.single-26-comp-entry .tist-comp-has-form-column > .site-main,
.single-26-comp-lyrics .tist-comp-has-form-column > main,
.single-26-comp-lyrics .tist-comp-has-form-column > .site-main {
    flex: 1;
    min-width: 0;
    margin-right: 468px;
}

/* Form fixed on the right, below site menu (60px); column scrolls internally if content overflows */
.single-26-comp-entry .tist-comp-judging-form-column,
.single-26-comp-lyrics .tist-comp-judging-form-column {
    flex: 0 0 468px;
    width: 468px;
    box-sizing: border-box;
    position: fixed;
    right: 0;
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
    border-left: 1px solid #FFFFFF;
}

.single-26-comp-entry .tist-comp-judging-form-column .acf-form-wrapper,
.single-26-comp-lyrics .tist-comp-judging-form-column .acf-form-wrapper {
    margin-top: 0;
    padding: 1em;
}

/* Below 1169px: form fixed to bottom 33% of screen, scrollable within itself; main content scrolls above it */
@media (max-width: 1168px) {
    .single-26-comp-entry .tist-comp-has-form-column,
    .single-26-comp-lyrics .tist-comp-has-form-column {
        flex-direction: column;
    }

    .single-26-comp-entry .tist-comp-has-form-column > main,
    .single-26-comp-entry .tist-comp-has-form-column > .site-main,
    .single-26-comp-lyrics .tist-comp-has-form-column > main,
    .single-26-comp-lyrics .tist-comp-has-form-column > .site-main {
        margin-right: 0;
        padding-bottom: 33vh;
    }

    .single-26-comp-entry .tist-comp-judging-form-column,
    .single-26-comp-lyrics .tist-comp-judging-form-column {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        height: 50vh;
        top: 50vh;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        flex: none;
        border: none;
        border-top: 1px solid #000000;
    }
}

/* Form Fields Container */
.acf-form .acf-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent !important;
    border: none !important;
    min-width: 0;
}

/* Common Field Styling */
.acf-form .acf-field {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: 100% !important;
    clear: both !important;
}

/* Label Styling */
.acf-form .acf-label {
    margin-bottom: 8px !important;
}

.acf-form .acf-label label {
    color: #1E3A54;
    font-weight: bold !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
}

/* Number Input Fields */
.acf-form .acf-field[data-type="number"] .acf-input {
    background: white;
    border-radius: 4px;
    padding: 8px 12px;
    width: 80px !important;
}

.acf-form .acf-field[data-type="number"] input {
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: bold;
    color: #1E3A54;
    width: 100%;
    text-align: center;
    padding: 0;
}

/* Range Input Styling */
.acf-form .acf-field[data-type="range"] .acf-input {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
    padding: 0 15px;
    width: 100%;
    min-width: 0;
}

/* acf-range-wrap contains range + number; make it flex and fill */
.acf-form .acf-field[data-type="range"] .acf-range-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.acf-form .acf-field[data-type="range"] input[type="range"] {
    flex: 1 1 0%;
    min-width: 0;
    -webkit-appearance: none; /* Remove default styling */
    appearance: none; /* Remove default styling */
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin: 0;
}

.acf-form .acf-field[data-type="range"] input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #0055FF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.acf-form .acf-field[data-type="range"] input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #0055FF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.acf-form .acf-field[data-type="range"] .acf-range-wrap input[type="number"] {
    flex-shrink: 0;
}

.acf-form .acf-field[data-type="range"] .acf-input-append {
    font-weight: bold;
    font-size: 18px;
    color: #1E3A54;
    min-width: 30px;
    flex-shrink: 0;
    text-align: center;
}

/* Text Area Fields */
.acf-form .acf-field[data-type="textarea"] {
    margin-top: 10px !important;
}

.acf-form .acf-field[data-type="textarea"] .acf-input {
    background: white;
    border-radius: 4px;
    padding: 5px;
}

.acf-form .acf-field[data-type="textarea"] textarea {
    border: none;
    padding: 0;
    min-height: 80px;
    width: 100%;
    background: transparent;
}

/* Submit Button */
.acf-form-submit {
    margin-top: 20px;
}

.acf-form-submit input[type="submit"] {
    background-color: #E36536;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
}

.acf-form-submit input[type="submit"]:hover {
    background-color: #C55529;
}

/* Hide unnecessary elements */
.acf-form-title {
    display: none;
}

/* Remove all conflicting styles */
.acf-form .acf-field:nth-child(1),
.acf-form .acf-field:nth-child(2),
.acf-form .acf-field:nth-child(3),
.acf-form .acf-field:nth-child(4) {
    width: 100% !important;
    clear: both !important;
    float: none !important;
    margin: 0 !important;
}

.acf-true-false .message {
    font-size: 14px;
    line-height: 1;
    background: transparent;
    color: var(--bb-body-text-color);
    position: relative;
    padding: 5px;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .score-grid {
        grid-template-columns: 1fr;
    }
    
    .score-column {
        width: 100%;
    }
    
    .total-score-item {
        margin-top: 5px;
    }
    
    .acf-form .acf-field:nth-child(1),
    .acf-form .acf-field:nth-child(2),
    .acf-form .acf-field:nth-child(3),
    .acf-form .acf-field:nth-child(4) {
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }
    .commendation-banner {
        grid-column: 1;
        justify-self: center;
        margin: 10px auto 0;
    }
}

@media (max-width: 480px) {
    .entry-item {
        width: calc(100% - 30px);
    }
}

/* Custom Judged Field Styling */
.judging-form-title-span {
    padding: 3px 10px 0;
    background: #f45c24;
    border-radius: 5px;
    color: white;
    margin-left: 1em;
    font-size: 12px;
    float: right;
    width: 120px;
    text-align: center;
}

.acf-field[data-name$="_judged"] .acf-label {
    display: none;
}

.acf-field[data-name$="_judged"]::before {
    content: 'Finalise Scores and Comments?';
    display: block;
    font-weight: bold;
    color: #1E3A54;
    margin-bottom: 5px;
}

.acf-field[data-name$="_judged"] .acf-input {
    margin-top: 10px;
}

/* AI Check Result (above Round X title) - minimal: label + status box */
.tist-comp26-ai-check-result-wrapper {
    margin-bottom: 1em;
}

.tist-comp26-ai-check-result {
    font-size: 14px;
}

.tist-comp26-ai-result-label {
    color: #1E3A54;
    font-weight: 600;
    margin-bottom: 6px;
}

.tist-comp26-ai-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 4px;
    font-weight: bold;
}

.tist-comp26-ai-result-clear .tist-comp26-ai-status-row {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.tist-comp26-ai-result-flagged .tist-comp26-ai-status-row {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #6f5300;
}

.tist-comp26-ai-result-detected .tist-comp26-ai-status-row {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* Pending state (request sent, awaiting result) */
.tist-comp26-ai-result-pending .tist-comp26-ai-status-row {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #6f5300;
}

/* Manual resolution – moved to AI category (no API run) */
.tist-comp26-ai-result-manual-ai .tist-comp26-ai-status-row {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

/* Cancelled – request cancelled (no API run) */
.tist-comp26-ai-result-cancelled .tist-comp26-ai-status-row {
    background: #e2e3e5;
    border: 1px solid #6c757d;
    color: #383d41;
}

.tist-comp26-ai-pending-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #6f5300;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tist-comp26-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes tist-comp26-spin {
    to { transform: rotate(360deg); }
}

.tist-comp26-ai-pending-message {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.2;
}

/* Comment quality result (reuses AI check styling) */
.tist-comp26-comment-quality-result-wrapper {
    margin-bottom: 1em;
}

.tist-comp26-comment-quality-feedback {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: inherit;
}

.tist-comp26-comment-quality-encouragement {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #666;
    font-style: italic;
}

/* Request AI Check button (above General Comments) */
/* Commended + Request AI Check on same row */
.tist-comp26-commended-ai-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.tist-comp26-commended-ai-row .acf-field {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

#tist-comp26-ai-check-btn-placeholder {
    flex-shrink: 0;
    margin: 0;
}

.tist-comp26-request-ai-check {
    padding: 3px 15px !important   ;
    font-size: 12px !important;
    background: transparent !important;
    color: inherit !important;
    border: 1px solid currentColor !important;
    border-color: inherit !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.tist-comp26-request-ai-check:hover:not(:disabled) {
    background: #0055FF !important;
    color: #fff !important;
    border-color: #0055FF !important;
}

.tist-comp26-request-ai-check:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Header Layout */
.form-header {
    margin-bottom: 20px;
}

/* Adjust title styling */
.judging-form-round-name {
    color: #1E3A54;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 1em;
    margin-block-end: 1em !important;
}

/* Lyrics form uses judging-form-title on its h2 */
.judging-form-title {
    color: #1E3A54;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: bold;
}

.judging-form-entry-title {
    color: #1E3A54;
    margin: 0;
    font-size: 1.2em !important;
    font-weight: bold;
    line-height: 1.2 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 3px;
}

/* Numerical Fields Layout */
.acf-form .acf-fields {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 0;
    margin-bottom: 20px;
}

/* Style numerical fields */
.acf-form .acf-field[data-name$="_structure"],
.acf-form .acf-field[data-name$="_lyrics"],
.acf-form .acf-field[data-name$="_melody"],
.acf-form .acf-field[data-name$="_xfactor"] {
    border-radius: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    width: 100% !important;
    grid-column: 1 / -1;
}

.acf-form .acf-field[data-name$="_structure"] .acf-label,
.acf-form .acf-field[data-name$="_lyrics"] .acf-label,
.acf-form .acf-field[data-name$="_melody"] .acf-label,
.acf-form .acf-field[data-name$="_xfactor"] .acf-label {
    margin: 0 !important;
    width: 120px;
    flex-shrink: 0;
}

.acf-form .acf-field[data-name$="_structure"] .acf-input,
.acf-form .acf-field[data-name$="_lyrics"] .acf-input,
.acf-form .acf-field[data-name$="_melody"] .acf-input,
.acf-form .acf-field[data-name$="_xfactor"] .acf-input {
    flex: 1;
    min-width: 0;
}

.acf-form .acf-field[data-name$="_structure"] input[type="number"],
.acf-form .acf-field[data-name$="_lyrics"] input[type="number"],
.acf-form .acf-field[data-name$="_melody"] input[type="number"],
.acf-form .acf-field[data-name$="_xfactor"] input[type="number"] {
    font-weight: bold;
    font-size: 18px;
    width: 60px;
    flex-shrink: 0;
}

/* Style commendation field */
.acf-form .acf-field[data-name$="_commended"] {
    border-radius: 4px !important;
    padding: 0px !important;
    margin: 10px 0 !important;
    display: flex;
    align-items: center;
    background: #f8f9fa;
}

.acf-form .acf-field[data-name$="_commended"] .acf-label {
    margin: 0 !important;
    width: 120px;
}

.acf-form .acf-field[data-name$="_commended"] .acf-input {
    display: flex;
    align-items: center;
}

.acf-form .acf-field[data-name$="_commended"] .acf-true-false {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Style text areas */
.acf-form .acf-field[data-name$="_comments"],
.acf-form .acf-field[data-name$="_liked"],
.acf-form .acf-field[data-name$="_improvement"] {
    grid-column: 1 / -1;
}

.acf-form .acf-field[data-name$="_comments"] textarea,
.acf-form .acf-field[data-name$="_liked"] textarea,
.acf-form .acf-field[data-name$="_improvement"] textarea {
    background: white;
    border-radius: 5px;
    height: 100px; /* ~5 lines at default line-height */
    padding: 5px;
    width: 100%;
    resize: vertical; /* Keep draggable vertically */
}

.acf-switch.-on {
    background: #00b000 !important;
    border-color: #007cba;
}

/* Style judged field */
.acf-form .acf-field[data-name$="_judged"] {
    grid-column: 1 / -1;
    margin-top: 10px !important;
}

/* Inline validation errors for feedback fields */
.acf-form .tist-comp-field-error {
    color: #b32d2e;
    font-size: 13px;
    margin-top: 6px;
    background: #fcf0f1;
    border-left: 3px solid #b32d2e;
    border-radius: 2px;
    padding: 12px 10px 14px;
    line-height: 1.2;
}

.acf-form .acf-field.tist-comp-field-invalid textarea {
    border-color: #b32d2e;
    box-shadow: 0 0 0 1px #b32d2e;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .acf-form .acf-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Prevent form overflow on mobile */
    .single-26-comp-entry .acf-form-wrapper {
        overflow-x: hidden;
    }

    .single-26-comp-entry .acf-form .acf-field[data-name$="_structure"] .acf-label,
    .single-26-comp-entry .acf-form .acf-field[data-name$="_lyrics"] .acf-label,
    .single-26-comp-entry .acf-form .acf-field[data-name$="_melody"] .acf-label,
    .single-26-comp-entry .acf-form .acf-field[data-name$="_xfactor"] .acf-label {
        width: 80px;
    }
}

/* Pagination Styles */
.judge-entries-pagination {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
}

.judge-entries-pagination .pagination-link,
.judge-entries-pagination .pagination-current {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    width: 3em;
}

.judge-entries-pagination .pagination-current {
    background: #0055FF;
    color: #fff;
    border-color: #0055FF;
}

.judge-entries-pagination .pagination-link:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.judge-entries-pagination .pagination-link.prev,
.judge-entries-pagination .pagination-link.next {
    background: #f5f5f5;
}

.judge-entries-pagination .pagination-link.prev:hover,
.judge-entries-pagination .pagination-link.next:hover {
    background: #e5e5e5;
}

/* Filter Controls */
.judge-entries-filters {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.judge-entries-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.judge-entries-filters .filter-group label {
    font-weight: 500;
    color: #333;
}

.judge-filter {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    min-width: 150px;
}

.judge-filter:focus {
    outline: none;
    border-color: #0055FF;
    box-shadow: 0 0 0 2px rgba(0,85,255,0.1);
}

/* Judge Progress Tracker Widget */
.judge-progress-widget-wrapper {
    margin-bottom: 24px;
}

.judge-progress-widget {
    padding: 5px 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.judge-progress-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

.judge-progress-bar-track {
    height: 12px;
    background: #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.judge-progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.judge-progress-bar-fill.judge-progress--on-track {
    background: #2e7d32;
}

.judge-progress-bar-fill.judge-progress--behind {
    background: red;
}

.judge-progress-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.judge-progress-count {
    color: #666;
}

.judge-progress-status {
    font-weight: 600;
}

.judge-progress-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.judge-progress-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.judge-progress-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.judge-progress-legend--behind .judge-progress-legend-swatch {
    background: red;
}

.judge-progress-legend--on .judge-progress-legend-swatch {
    background: #2e7d32;
}

/* Judge Progress – help icon & tooltip */
.judge-progress-help-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 4px;
    cursor: help;
}

.judge-progress-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: #0055FF;
    border-radius: 50%;
    line-height: 1;
}

.judge-progress-help-wrap:hover .judge-progress-help-icon,
.judge-progress-help-wrap:focus .judge-progress-help-icon {
    color: #012E73;
    background: #e6ecf5;
}

.judge-progress-help-wrap:focus {
    outline: none;
}

.judge-progress-help-wrap:focus-visible .judge-progress-help-icon {
    outline: 2px solid #0055FF;
    outline-offset: 2px;
}

.judge-progress-help-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: 240px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #333;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.judge-progress-help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.judge-progress-help-wrap:hover .judge-progress-help-tooltip,
.judge-progress-help-wrap:focus .judge-progress-help-tooltip {
    visibility: visible;
    opacity: 1;
}

/* ===========================================
   Songs & Lyrics Archive Styles
   =========================================== */

/* CSS Custom Properties for easy Elementor customization */
.tist-songs-archive,
.tist-lyrics-archive {
    --archive-bg: #ffffff;
    --archive-border: rgba(255,255,255, 0);
    --archive-header-bg: #012E73;
    --archive-header-text: #ffffff;
    --archive-row-hover: #f0f2f5;
    --archive-text: #012E73;
    --archive-text-muted: #6b7280;
    --archive-link: #012E73;
    --archive-link-hover: #0055FF;
    --archive-accent: #0055FF;
}

/* Archive Container */
.tist-songs-archive,
.tist-lyrics-archive {
    margin-bottom: 2rem;
}

/* Archive Filters */
.archive-filters {
    margin: 0;
    padding: 1em 0;
}

.archive-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.archive-filters label {
    font-weight: 600;
    color: var(--archive-text);
    font-size: 14px;
    display: none
}

.archive-filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--archive-border);
    border-radius: 6px;
    background: var(--archive-bg);
    font-size: 14px;
    color: var(--archive-text);
    cursor: pointer;
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.archive-filter-select:focus {
    outline: none;
    border-color: var(--archive-accent);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.clear-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #0055FF;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.clear-filter-btn:hover {
    background: #0044CB;
    color: white;
}

/* Table Wrapper */
.songs-table-wrapper,
.lyrics-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: none;
    background: var(--archive-bg);
}

/* Archive Table */
.songs-archive-table,
.lyrics-archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: none;
    margin-bottom: 0;
}

.songs-archive-table thead,
.lyrics-archive-table thead {
    background: var(--archive-header-bg);
    border-bottom: 1px solid 1px solid transparent;
}

.songs-archive-table th,
.lyrics-archive-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--archive-header-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--archive-border);
    white-space: nowrap;
}

.songs-archive-table td,
.lyrics-archive-table td {
    padding: 14px 16px;
    color: var(--archive-text);
    border-bottom: 1px solid rgba(178, 199, 214, 0.1);
    vertical-align: middle;
    line-height: 1.2em;
}

.songs-archive-table tbody tr:last-child td,
.lyrics-archive-table tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors */
.songs-archive-table tbody tr:nth-child(even),
.lyrics-archive-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.03);
}

.songs-archive-table tbody tr:hover,
.lyrics-archive-table tbody tr:hover {
    background: var(--archive-row-hover);
}

/* Column widths */
.col-avatar {
    width: 50px;
    min-width: 50px;
    padding: 0px !important;
    text-align: center;
    margin-left: 10px;
}

.col-avatar img,
.col-avatar .archive-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.col-avatar a:hover img,
.col-avatar a:hover .archive-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.col-title {
    min-width: 200px;
}

.col-genre {
    min-width: 100px;
}

.col-date {
    min-width: 110px;
    white-space: nowrap;
}

/* Progress column */
.col-progress {
    white-space: nowrap;
    min-width: 160px;
}

.entry-progress {
    display: flex;
    gap: 10px;
    align-items: center;
}

.progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.progress-label {
    font-size: 10px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Dashed separator between R2 and SF to mark the semi-final threshold */
.entry-progress .progress-stage:nth-child(2) {
    border-right: 1px dashed #bbb;
    padding-right: 10px;
}

/* Progress ticks: green = round complete / results released; orange = R2 judged, awaiting release */
.entry-progress .checkbox.checked.complete {
    background-color: #28a745;
    border-color: #28a745;
}

.entry-progress .checkbox.checked.pending {
    background-color: #f45c24;
    border-color: #f45c24;
}

/* Title links */
.songs-archive-table .col-title a,
.lyrics-archive-table .col-title a {
    color: var(--archive-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.songs-archive-table .col-title a:hover,
.lyrics-archive-table .col-title a:hover {
    color: var(--archive-link-hover);
}

/* Genre badge in table */
.songs-archive-table .genre-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1; 
}

/* Genre colors - Brand gradient from #012E73 (blue) to #f45c24 (orange) */

/* 1. Blues - Deep brand blue */
.genre-badge.genre-blues {
    background: #e6ecf5;
    color: #012E73;
}

/* 2. Jazz - Lighter blue */
.genre-badge.genre-jazz {
    background: #e8eef7;
    color: #0d3d7a;
}

/* 3. Spiritual - Blue-indigo */
.genre-badge.genre-spiritual {
    background: #eae8f5;
    color: #2a3a82;
}

/* 4. AI - Indigo-purple */
.genre-badge.genre-ai {
    background: #ede6f3;
    color: #4a3088;
}

/* 5. Rock - Purple-magenta */
.genre-badge.genre-rock {
    background: #f3e6ef;
    color: #6a2875;
}

/* 6. Musical Theatre - Magenta-pink */
.genre-badge.genre-musicaltheatre {
    background: #f5e6ea;
    color: #8a2258;
}

/* 7. Pop - Pink-coral */
.genre-badge.genre-pop {
    background: #f8e6e6;
    color: #a52040;
}

/* 8. Acoustic - Coral-orange */
.genre-badge.genre-acoustic {
    background: #fae8e4;
    color: #c43520;
}

/* 9. Country - Brand orange */
.genre-badge.genre-country {
    background: #fceee6;
    color: #d94a1f;
}

/* 10. Folk - Amber-gold */
.genre-badge.genre-folk {
    background: #fdf3e6;
    color: #b85c18;
}

/* Comment links */
.comment-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--archive-accent);
    color: #fff !important;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-link:hover {
    background: var(--archive-link-hover);
    transform: scale(1.1);
}

.no-comments {
    color: var(--archive-text-muted);
}

/* Genre Sections Layout */
.genre-section {
    margin-bottom: 2.5rem;
}

.genre-section:last-child {
    margin-bottom: 0;
}

.genre-section-title {
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--archive-border);
}

.genre-section-title .genre-badge {
    font-size: 16px;
    padding: 6px 16px;
    border-radius: 6px;
}

/* Archive Pagination */
.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.0;
    padding: 1rem;
}

.archive-pagination .pagination-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--archive-bg);
    border: 1px solid var(--archive-border);
    border-radius: 6px;
    color: var(--archive-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.archive-pagination .pagination-link:hover {
    background: var(--archive-accent);
    border-color: var(--archive-accent);
    color: #fff;
}

.archive-pagination .pagination-info {
    color: var(--archive-text-muted);
    font-size: 14px;
}

/* No entries message */
.no-entries {
    padding: 2rem;
    text-align: center;
    color: var(--archive-text-muted);
    border-radius: 8px;
    border: 1px solid var(--archive-border);
}

/* Search box styles */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-group {
    flex: 1;
    min-width: 250px;
}

.archive-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 0;
}

.archive-search-input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid var(--archive-border);
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
    background: var(--archive-bg);
    color: var(--archive-text);
}

.archive-search-input:focus {
    outline: none;
    border-color: var(--archive-accent);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.archive-search-btn {
    padding: 8px 16px;
    background: var(--archive-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.archive-search-btn:hover {
    background: #003d99;
}

.clear-search-btn {
    padding: 8px 12px;
    background: #0055ff;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.clear-search-btn:hover {
    background: #fecaca;
}

.search-results-info {
    margin: 0 0 1.2em;
    padding: 0.75em 1em;
    background: #012E73;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
}

/* Sortable column headers */
.songs-archive-table th.sortable,
.lyrics-archive-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.songs-archive-table th.sortable a,
.lyrics-archive-table th.sortable a {
    color: var(--archive-header-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.songs-archive-table th.sortable:hover,
.lyrics-archive-table th.sortable:hover {
    background: #7ca8dc;
}

.songs-archive-table th.sortable.sorted,
.lyrics-archive-table th.sortable.sorted {
    background: #7ca8dc;
}

.songs-archive-table th.sortable a:hover,
.lyrics-archive-table th.sortable a:hover {
    color: var(--archive-accent);
}

/* Responsive styles for archive tables */
@media (max-width: 768px) {
    .archive-filters .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .archive-filter-select {
        width: 100%;
    }
    
    .clear-filter-btn {
        justify-content: center;
    }
    
    .songs-archive-table,
    .lyrics-archive-table {
        font-size: 13px;
    }
    
    .songs-archive-table th,
    .lyrics-archive-table th,
    .songs-archive-table td,
    .lyrics-archive-table td {
        padding: 10px 12px;
    }
    
    .col-title {
        min-width: 150px;
    }
    
    .col-artist,
    .col-author {
        min-width: 100px;
    }
    
    .archive-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .songs-archive-table .col-genre,
    .lyrics-archive-table .col-date {
        display: none;
    }
    
    .genre-section-title .genre-badge {
        font-size: 14px;
        padding: 4px 12px;
    }
}

/* ============================================
   Combined Entries Archive Tabs
   ============================================ */

.tist-entries-archive-tabs {
    margin: 0 auto;
    max-width: 100%;
}

.entries-tab-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #ffffff;
}

.entries-tab-btn {
    padding: 5px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #f5f5f5;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    margin-bottom: 0;
    font: 14px system-ui, -apple-system, BlinkMacSystemFont, Poppins, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif !important;
	font-palette: normal !important;
	font-synthesis: weight style small-caps !important;
	font-variant: normal !important;
}

.entries-tab-btn:hover {
    color: #ffffff !important;
}

.entries-tab-btn.active {
    background: #012E73;
    color: white;
    border-color: transparent;
    border-bottom-color: transparent;
    font-weight: bold;
    font: 14px system-ui, -apple-system, BlinkMacSystemFont, Poppins, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif;
	font-palette: normal;
	font-synthesis: weight style small-caps;
	font-variant: normal;
}

.entries-tab-content {
    display: none;
    padding: 0;
}

.entries-tab-content.active {
    display: block;
    /* background: #c2cedb; */
}

/* Remove redundant top margins from nested archives */
.entries-tab-content .tist-songs-archive,
.entries-tab-content .tist-lyrics-archive {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .entries-tab-nav {
        flex-direction: row;
    }
    
    .entries-tab-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 14px;
        text-align: center;
    }
}

/* ============================================================================
   BUDDYBOSS ACTIVITY FEED - COMMENT ACTIVITY STYLES
   ============================================================================ */

.tist-comp-comment-activity .entry-title {
	font-size: 1.1em;
	color: var(--bb-headings-color);
	line-height: inherit;
	margin-left: 0;
	font-weight: bold;
}

.tist-comp-comment-activity .comment-text {
    font-size: inherit;
    color: var(--bb-body-text-color);
    letter-spacing: inherit;
    line-height: inherit;
}

/* ============================================================================
   PRIVATE ENTRY NOTICE
   Shown in place of post content when a visitor lacks access to a
   private_entry-tagged 26-comp-entry or 26-comp-lyrics post.
   ============================================================================ */

.tist-private-entry-notice__entry-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: #1E3A54;
	margin: 0 0 0.75rem;
	line-height: 1.35;
}

.tist-private-entry-notice {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 520px;
	margin: 3rem auto;
	padding: 2.5rem 2rem;
	background: #ffffff;
	/* border: 1px solid #dce3ea; */
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(1, 46, 115, 0.08);
}

.tist-private-entry-notice__icon {
	color: #012E73;
	margin-bottom: 1rem;
	opacity: 0.75;
}

.tist-private-entry-notice__heading {
	font-size: 1.35rem;
	font-weight: 700;
	color: #012E73;
	margin: 0 0 1rem;
	line-height: 1.3;
}

.tist-private-entry-notice__body {
	font-size: 1em; 
	line-height: 1.4;
	margin: 0 0 0.5em;
}

.tist-private-entry-notice__body a {
	color: #0055FF;
	text-decoration: underline;
}

.tist-private-entry-notice__btn {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 0.65rem 1.75rem;
	background-color: #0055FF;
	color: #ffffff !important;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 4px;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.tist-private-entry-notice__btn:hover,
.tist-private-entry-notice__btn:focus {
	background-color: #012E73;
	color: #ffffff !important;
}