/**
 * MoreCore Charts - Public Styles
 */

/* CSS Variables for easy theming */
:root {
    --mcc-primary: #56C96C;
    --mcc-primary-dark: #46b95c;
    --mcc-secondary: #464646;
    --mcc-text: #333;
    --mcc-text-light: #666;
    --mcc-bg: #EFEFEF;
    --mcc-bg-light: #f8f9fa;
    --mcc-border: #ddd;
    --mcc-success: #56C96C;
    --mcc-error: #dc3232;
    --mcc-warning: #996800;
    --mcc-color-1: #56C96C;
    --mcc-color-2: #31C7FF;
    --mcc-color-3: #006CFF;
}

/* Voting Form Container */
.morecore-charts-voting {
    max-width: 800px;
    margin: 0 auto;
    background: var(--mcc-bg);
    font-family: 'PT Sans', sans-serif;
}

.morecore-charts-voting__header {
    background: #fff;
    color: var(--mcc-secondary);
    text-align: center;
    padding: 15px;
    margin-bottom: 0;
}

.morecore-charts-voting__title {
    font-size: 21px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    color: var(--mcc-secondary);
    margin: 0 0 5px;
}

.morecore-charts-voting__subtitle {
    color: #8E8E8E;
    margin: 0;
    font-size: 14px;
}

/* Messages */
.morecore-charts-message {
    padding: 1rem;
    margin: 10px;
    border-radius: 0;
    font-weight: 500;
}

.morecore-charts-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.morecore-charts-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.morecore-charts-message--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Sections */
.morecore-charts-voting__section {
    margin-bottom: 0;
    padding: 10px;
}

.morecore-charts-voting__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    color: var(--mcc-secondary);
    margin: 0 0 10px;
    padding: 0;
    border-bottom: none;
}

.morecore-charts-voting__icon {
    font-size: 1.2rem;
}

/* Song List */
.morecore-charts-voting__songs {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.morecore-charts-voting__song {
    display: block;
    cursor: pointer;
}

.morecore-charts-voting__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.morecore-charts-voting__song-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.morecore-charts-voting__song:hover .morecore-charts-voting__song-content {
    background: #e0e0e0;
    border-color: transparent;
}

.morecore-charts-voting__radio:checked + .morecore-charts-voting__song-content {
    background: rgba(86, 201, 108, 0.35);
    border-color: transparent;
    box-shadow: none;
}

.morecore-charts-voting__song:nth-child(3n+3) .morecore-charts-voting__radio:checked + .morecore-charts-voting__song-content {
    background: rgba(49, 199, 255, 0.35);
}

.morecore-charts-voting__song:nth-child(3n+4) .morecore-charts-voting__radio:checked + .morecore-charts-voting__song-content {
    background: rgba(0, 108, 255, 0.35);
}

/* Position number box */
.morecore-charts-voting__position {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    min-width: 37px;
    height: 37px;
    background: var(--mcc-color-1);
    color: white;
    font-weight: 700;
    font-size: 28px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
}

/* Alternating colors for position */
.morecore-charts-voting__song:nth-child(3n+3) .morecore-charts-voting__position {
    background: var(--mcc-color-2);
}

.morecore-charts-voting__song:nth-child(3n+4) .morecore-charts-voting__position {
    background: var(--mcc-color-3);
}

/* Cover image */
.morecore-charts-voting__cover {
    position: relative;
    width: 37px !important;
    height: 37px !important;
    min-width: 37px;
    max-width: 37px !important;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
    background: var(--mcc-secondary);
    margin-left: 0 !important;
}

/* Override external theme styles for covers */
.mc_content-single .morecore-charts-voting__cover,
.mc_content-single img.morecore-charts-voting__cover:not(#cf_flex_mb_close) {
    width: 37px !important;
    max-width: 37px !important;
    margin-left: 0 !important;
}

.morecore-charts-voting__cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mcc-secondary);
    border: none;
}

/* Song info */
.morecore-charts-voting__song-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.morecore-charts-voting__band {
    font-family: 'PT Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    color: var(--mcc-color-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Alternating colors for band name */
.morecore-charts-voting__song:nth-child(3n+3) .morecore-charts-voting__band {
    color: var(--mcc-color-2);
}

.morecore-charts-voting__song:nth-child(3n+4) .morecore-charts-voting__band {
    color: var(--mcc-color-3);
}

.morecore-charts-voting__title {
    font-weight: 700;
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
    color: var(--mcc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Movement Indicators */
.morecore-charts-voting__movement {
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    padding: 0;
    border-radius: 0;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.morecore-charts-voting__movement--new,
.movement-new {
    background: transparent;
    color: var(--mcc-text);
}

.morecore-charts-voting__movement--up,
.movement-up {
    color: var(--mcc-success);
}

.morecore-charts-voting__movement--down,
.movement-down {
    color: var(--mcc-error);
}

.morecore-charts-voting__movement--same,
.movement-same {
    color: var(--mcc-text-light);
}

.morecore-charts-voting__badge {
    background: var(--mcc-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    padding: 0;
    border-radius: 0;
}

/* Free Choice */
.morecore-charts-voting__free-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.morecore-charts-voting__free-choice-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.morecore-charts-voting__select,
.morecore-charts-voting__input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-family: 'PT Sans', sans-serif;
    border: 1px solid var(--mcc-border);
    border-radius: 0;
    background: #fff;
    transition: border-color 0.2s ease;
}

.morecore-charts-voting__select:focus,
.morecore-charts-voting__input:focus {
    outline: none;
    border-color: var(--mcc-primary);
}

.morecore-charts-voting__select:disabled,
.morecore-charts-voting__input:disabled {
    background: var(--mcc-bg-light);
    opacity: 0.6;
    cursor: not-allowed;
}

.morecore-charts-voting__new-song-fields {
    display: flex;
    gap: 10px;
}

.morecore-charts-voting__new-song-fields .morecore-charts-voting__input {
    flex: 1;
}

/* Song Wish Section */
.morecore-charts-voting__optional {
    font-weight: 400;
    font-size: 12px;
    font-style: normal;
    color: var(--mcc-text-light);
}

.morecore-charts-voting__wish-intro {
    font-size: 14px;
    font-weight: 700;
    color: var(--mcc-secondary);
    margin: 0 0 10px;
}

.morecore-charts-voting__song-wish-fields {
    display: flex;
    gap: 10px;
}

.morecore-charts-voting__song-wish-fields .morecore-charts-voting__input {
    flex: 1;
}

/* Personal Info Section */
.morecore-charts-voting__section--personal {
    background: #fff;
    padding: 10px;
    border-radius: 0;
    margin: 10px;
}

.morecore-charts-voting__section--personal .morecore-charts-voting__section-title {
    margin-bottom: 10px;
}

.morecore-charts-voting__personal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.morecore-charts-voting__field-group {
    display: flex;
    flex-direction: column;
}

.morecore-charts-voting__field-group--full {
    grid-column: 1 / -1;
}

.morecore-charts-voting__field-group .morecore-charts-voting__input {
    max-width: none;
}

@media (max-width: 480px) {
    .morecore-charts-voting__personal-fields {
        grid-template-columns: 1fr;
    }

    .morecore-charts-voting__song-wish-fields {
        flex-direction: column;
    }
}

.morecore-charts-voting__label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--mcc-secondary);
}

.morecore-charts-voting__required {
    color: var(--mcc-error);
}

.morecore-charts-voting__input--email {
    max-width: none;
}

.morecore-charts-voting__hint {
    font-size: 12px;
    color: var(--mcc-text-light);
    margin: 5px 0 10px;
}

/* Consent Section */
.morecore-charts-voting__section--consent {
    background: #fff;
    padding: 10px;
    border-radius: 0;
    margin: 10px;
}

.morecore-charts-voting__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.morecore-charts-voting__checkbox:last-child {
    margin-bottom: 0;
}

.morecore-charts-voting__checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--mcc-primary);
    cursor: pointer;
}

.morecore-charts-voting__checkbox-text {
    font-size: 13px;
    color: var(--mcc-text);
    font-family: 'PT Sans', sans-serif;
}

.morecore-charts-voting__checkbox-text a {
    color: var(--mcc-primary);
    text-decoration: underline;
}

.morecore-charts-voting__checkbox-text a:hover {
    color: var(--mcc-primary-dark);
}

.morecore-charts-voting__checkbox--newsletter {
    padding-top: 10px;
    border-top: 1px solid var(--mcc-border);
}

.morecore-charts-voting__checkbox--newsletter .morecore-charts-voting__checkbox-text {
    color: var(--mcc-text-light);
}

/* Submit */
.morecore-charts-voting__submit {
    text-align: center;
    padding: 10px;
}

.morecore-charts-voting__button {
    display: block;
    width: 100%;
    padding: 16px 10px;
    font-size: 21px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    color: #fff;
    background: #FF0000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    -webkit-box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease;
}

.morecore-charts-voting__button:hover {
    background: #E60000;
    color: #fff;
}

.morecore-charts-voting__button:active {
    transform: none;
}

.morecore-charts-voting__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Response Area */
.morecore-charts-voting__response {
    margin: 0;
    text-align: center;
}

/* Accessibility - Screen Reader Only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading State */
.morecore-charts-voting__form.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.morecore-charts-voting__form.is-loading .morecore-charts-voting__button::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mcc-spin 0.75s linear infinite;
    vertical-align: middle;
}

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

/* Focus styles for accessibility */
.morecore-charts-voting__radio:focus + .morecore-charts-voting__song-content {
    outline: 2px solid var(--mcc-primary);
    outline-offset: 2px;
}

.morecore-charts-voting__input:focus,
.morecore-charts-voting__select:focus,
.morecore-charts-voting__button:focus {
    outline: 2px solid var(--mcc-primary);
    outline-offset: 2px;
}

/* Fieldset reset (for accessibility structure) */
.morecore-charts-voting__section[role="radiogroup"] {
    border: none;
    padding: 0;
    margin: 0 0 2rem;
}

/* =========================
   Chart Display Styles
   ========================= */

.morecore-charts-display {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.morecore-charts-display--empty {
    text-align: center;
    padding: 2rem;
    background: var(--mcc-bg-light);
    border-radius: 8px;
}

.morecore-charts-display__header {
    text-align: center;
    margin-bottom: 2rem;
}

.morecore-charts-display__title {
    font-size: 2rem;
    color: var(--mcc-secondary);
    margin: 0;
}

.morecore-charts-display__week {
    font-size: 1.125rem;
    color: var(--mcc-text-light);
    margin: 0.5rem 0 0;
}

/* Chart List */
.morecore-charts-display__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.morecore-charts-display__entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--mcc-bg);
    border: 1px solid var(--mcc-border);
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.morecore-charts-display__entry:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Position */
.morecore-charts-display__position {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3rem;
}

.morecore-charts-display__position-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mcc-secondary);
}

.morecore-charts-display__movement {
    font-size: 0.75rem;
    font-weight: 600;
}

.movement-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.65rem;
}

.movement-badge--new {
    background: var(--mcc-primary);
    color: #fff;
}

.movement-arrow--up {
    color: var(--mcc-success);
}

.movement-arrow--down {
    color: var(--mcc-error);
}

.movement-arrow--same {
    color: var(--mcc-text-light);
}

/* Cover */
.morecore-charts-display__cover {
    flex-shrink: 0;
}

.morecore-charts-display__cover img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
}

.morecore-charts-display__cover-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mcc-bg-light) 0%, #e5e5e5 100%);
    border: 1px dashed var(--mcc-border);
    border-radius: 4px;
    text-align: center;
}

.morecore-charts-display__cover-placeholder span {
    font-size: 0.6rem;
    color: var(--mcc-text-light);
    line-height: 1.2;
    padding: 0.25rem;
}

/* Info */
.morecore-charts-display__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.morecore-charts-display__band {
    font-weight: 600;
    color: var(--mcc-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.morecore-charts-display__song {
    color: var(--mcc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.morecore-charts-display__stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--mcc-text-light);
}

.stat--new {
    color: var(--mcc-primary);
    font-weight: 600;
}

/* Links */
.morecore-charts-display__links {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.morecore-charts-display__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.morecore-charts-display__link:hover {
    opacity: 0.8;
}

.morecore-charts-display__link--spotify {
    background: #1DB954;
    color: #fff;
}

.morecore-charts-display__link--apple {
    background: #FA233B;
    color: #fff;
}

.morecore-charts-display__link--youtube {
    background: #FF0000;
    color: #fff;
}

.morecore-charts-display__link svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.morecore-charts-display__footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mcc-border);
}

.morecore-charts-display__total-votes {
    font-size: 0.9rem;
    color: var(--mcc-text-light);
    margin: 0;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 600px) {
    .morecore-charts-voting__song-content {
        flex-wrap: wrap;
    }

    .morecore-charts-voting__cover {
        width: 40px;
        height: 40px;
    }

    .morecore-charts-voting__movement {
        order: -1;
        margin-left: auto;
    }

    .morecore-charts-voting__new-song-fields {
        flex-direction: column;
    }

    .morecore-charts-display__entry {
        flex-wrap: wrap;
    }

    .morecore-charts-display__cover img {
        width: 48px;
        height: 48px;
    }

    .morecore-charts-display__links {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--mcc-border);
    }
}

/* =========================
   Charts Widget Styles
   ========================= */

.charts-widget {
    display: block;
    width: 100%;
    background: #212121;
    padding-bottom: 1px;
    color: white;
}

.charts-raster {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.charts-entry {
    margin: 10px;
    align-items: center;
}

.charts-position {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    min-width: 37px;
    height: 37px;
    background: #56C96C;
    color: white;
    font-weight: 700;
    font-size: 28px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
}

.charts-entry-cover {
    position: relative;
    width: 37px;
    height: 37px;
    min-width: 37px;
    background: #464646;
}

.charts-widget .charts-entry:nth-child(3n+3) .charts-position {
    background: #31C7FF;
}

.charts-widget .charts-entry:nth-child(3n+4) .charts-position {
    background: #006CFF;
}

.mc_content-single .charts-widget .charts-entry-cover img:not(#cf_flex_mb_close),
.mc_content-single .charts-table .charts-entry-cover img:not(#cf_flex_mb_close),
.charts-table .charts-entry-cover img:not(#cf_flex_mb_close),
.charts-widget .charts-entry-cover img:not(#cf_flex_mb_close) {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    object-position: center center;
    margin-left: 0 !important;
    margin: 0;
    padding: 0;
    display: block;
}

.charts-songinfo {
    display: flex;
    gap: 10px;
    margin-right: auto;
}

.charts-entry-name {
    display: flex;
    flex-flow: column;
}

.charts-entry-band {
    font-family: 'PT Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    color: #56C96C;
}

.charts-entry-songname {
    font-weight: 700;
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
    margin-bottom: auto;
}

.charts-widget .charts-entry:nth-child(3n+3) .charts-entry-band {
    color: #31C7FF;
}

.charts-widget .charts-entry:nth-child(3n+4) .charts-entry-band {
    color: #006CFF;
}

.charts-change {
    width: 60px;
    text-align: center;
}

.charts-change-new {
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
}

.charts-lastweek {
    font-weight: 700;
    font-size: 21px;
    font-family: 'PT Sans', sans-serif;
    line-height: 19px;
    width: 102px;
    text-align: center;
}

.charts-lastweek-head {
    width: 102px;
    text-align: center;
}

.charts-widget-header {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 20px;
}

.charts-widget-headline:hover,
.charts-widget-headline {
    font-size: 28px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 34px;
    color: white;
    display: block;
    text-decoration: none;
}

.charts-widget-subheadline:hover,
.charts-widget-subheadline {
    font-size: 21px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 26px;
    color: #8E8E8E;
    display: block;
    text-decoration: none;
}

.charts-entry-placeholder .charts-position,
.charts-entry-placeholder .charts-songinfo {
    background: none !important;
    color: white;
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
    text-align: center;
    width: 37px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.charts-blurred {
    filter: blur(5px);
}

.charts-cta-button {
    display: block;
    color: white;
    width: auto;
    text-align: center;
    font-family: 'Rift', sans-serif;
    font-weight: 700;
    font-style: italic;
    padding: 16px 10px;
    background: #FF0000;
    font-size: 21px;
    font-size: 1.313rem;
    line-height: 1;
    text-decoration: none;
    -webkit-box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.25);
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 0.25);
}

.charts-cta-button:hover {
    color: white;
    background: #E60000;
}

.charts-cta-button i,
.charts-cta i {
    margin-right: 10px;
    color: black;
}

/* =========================
   Charts Table Styles (Full Chart Display)
   ========================= */

.charts-table {
    display: block;
    width: 100%;
    background: #EFEFEF;
    padding-bottom: 1px;
}

.charts-header {
    background: #464646;
    color: white;
    padding: 10px;
    padding-left: 15px;
    font-weight: 700;
    font-style: italic;
    font-size: 21px;
    font-family: 'Rift', sans-serif;
}

.charts-header div:first-child {
    width: 37px;
}

.charts-table .charts-raster {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.charts-table .charts-entry {
    margin: 10px;
    align-items: center;
}

.charts-table .charts-position {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    min-width: 37px;
    height: 37px;
    background: #56C96C;
    color: white;
    font-weight: 700;
    font-size: 28px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
}

.charts-table .charts-accordion-wrapper:nth-child(3n+3) .charts-position {
    background: #31C7FF;
}

.charts-table .charts-accordion-wrapper:nth-child(3n+4) .charts-position {
    background: #006CFF;
}

.charts-table .charts-entry-cover {
    position: relative;
    width: 37px;
    height: 37px;
    min-width: 37px;
    background: #464646;
}

.mc_content-single .charts-table .charts-entry-cover img:not(#cf_flex_mb_close),
.charts-table .charts-entry-cover img:not(#cf_flex_mb_close) {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    object-position: center center;
    margin-left: 0 !important;
    margin: 0;
    padding: 0;
    display: block;
}

.charts-table .charts-songinfo {
    display: flex;
    gap: 10px;
    margin-right: auto;
}

.charts-table .charts-entry-name {
    display: flex;
    flex-flow: column;
}

.charts-table .charts-entry-band {
    font-family: 'PT Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    color: #56C96C;
}

.charts-table .charts-accordion-wrapper:nth-child(3n+3) .charts-entry-band {
    color: #31C7FF;
}

.charts-table .charts-accordion-wrapper:nth-child(3n+4) .charts-entry-band {
    color: #006CFF;
}

.charts-table .charts-entry-songname {
    font-weight: 700;
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
    margin-bottom: auto;
}

.charts-table .charts-change {
    width: 60px;
    min-width: 60px;
    text-align: center;
}

.charts-table .charts-change-new {
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
}

.charts-table .charts-lastweek {
    font-weight: 700;
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
    width: 60px;
    min-width: 60px;
    text-align: center;
}

.charts-lastweek-head {
    width: 60px;
    text-align: center;
}

/* Peak column */
.charts-table .charts-peak {
    font-weight: 700;
    font-size: 16px;
    font-style: italic;
    font-family: 'Rift', sans-serif;
    line-height: 16px;
    width: 60px;
    min-width: 60px;
    text-align: center;
}

.charts-peak-head {
    width: 60px;
    text-align: center;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .charts-header {
        font-size: 16px;
    }

    .charts-table .charts-entry-cover {
        display: none;
    }

    .charts-table .charts-change,
    .charts-table .charts-lastweek,
    .charts-lastweek-head {
        width: 40px;
        min-width: 40px;
    }

    /* Hide Peak column on mobile */
    .charts-table .charts-peak,
    .charts-peak-head {
        display: none !important;
    }
}

/* =========================
   Charts Accordion Styles
   ========================= */

.charts-accordion-wrapper {
    position: relative;
}

.charts-entry-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.charts-entry-clickable:hover {
    background-color: #e0e0e0;
}

.charts-entry-clickable.is-expanded {
    background-color: #d8d8d8;
}

.charts-accordion-content {
    display: none;
    background: #fff;
    padding: 10px;
    border-top: 1px solid #ddd;
}

/* Video wrapper - 16:9 aspect ratio */
.charts-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin-bottom: 10px;
    background: #000;
}

.charts-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Charts table accordion video iframe */
.charts-table .charts-accordion-content .charts-video-wrapper iframe {
    width: 100% !important;
    margin-left: 0 !important;
}

/* Description text */
.charts-description {
    font-family: 'PT Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    padding: 10px 0;
}

.charts-description p {
    margin: 0 0 10px;
}

.charts-description p:last-child {
    margin-bottom: 0;
}

/* Streaming links */
.charts-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.charts-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-family: 'PT Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.charts-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
    color: white;
}

.charts-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.charts-link-spotify {
    background: #1DB954;
}

.charts-link-youtube {
    background: #FF0000;
}

.charts-link-apple {
    background: #FA233B;
}

.charts-link-deezer {
    background: #AD47FF;
    color: #fff;
}

.charts-link-deezer:hover {
    color: #fff;
}

/* Mobile responsive for accordion */
@media screen and (max-width: 768px) {
    .charts-accordion-content {
        padding: 10px;
    }

    .charts-links {
        gap: 8px;
    }

    .charts-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .charts-link span {
        display: none;
    }

    .charts-link svg {
        width: 20px;
        height: 20px;
    }
}
