/* Wrapper around the whole entire profile section */
.mc-profile
{
    --mc-profile-cream: var(--default_table_text_color, #f3e7c2);
    --mc-profile-panel: rgba(18, 18, 23, 0.88);
    max-width: 1120px;
    margin: 28px auto;
    color: var(--mc-profile-cream);
}

.mc-profile [hidden]
{
    display: none !important;
}

/* Top banner where the username and avatar go */
.mc-profile-hero
{
    position      : relative;
    overflow      : hidden;
    display       : flex;
    align-items   : flex-end;
    padding       : 34px;
    border        : 1px solid rgba(255,255,255,0.12);
    border-radius : 24px 24px 0 0;
    background    :
        radial-gradient(circle at 82% 18%, var(--TntMovieClubPrimaryColorDark), transparent 28%),
        linear-gradient(135deg, rgba(48,32,36,0.96), rgba(14,15,21,0.98));
}

.mc-profile-hero::after
{
    content          : '';
    position         : absolute;
    inset            : 0;
    opacity          : 0.18;
    pointer-events   : none;
    background-image : repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,0.05) 35px 36px);
}

.mc-profile-identity
{
    position    : relative;
    z-index     : 1;
    display     : flex;
    align-items : center;
    gap         : 22px;
}

.mc-profile-avatar
{
    width         : 88px;
    height        : 88px;
    flex          : 0 0 88px;
    display       : grid;
    place-items   : center;
    border        : 2px solid rgba(225,183,91,0.8);
    border-radius : 50%;
    color         : #18151a;
    font-size     : 36px;
    font-weight   : 800;
    background    : linear-gradient(145deg, #f4d895, #bd8430);
    box-shadow    : 0 10px 32px rgba(0,0,0,0.35);
}

.mc-profile-eyebrow,
.mc-profile-kicker
{
    margin         : 0 0 6px;
    color          : var(--TntMovieClubPrimaryColorDark);
    font-size      : 12px;
    font-weight    : 800;
    letter-spacing : 0.14em;
    text-transform : uppercase;
}

.mc-profile-name
{
    margin      : 0;
    color       : var(--mc-profile-cream);
    font-size   : clamp(32px, 5vw, 50px);
    line-height : 1.05;
}

.mc-profile-subtitle
{
    margin    : 8px 0 0;
    color     : rgba(255,255,255,0.68);
    font-size : 15px;
}

.mc-profile-tabs
{
    display    : flex;
    gap        : 8px;
    padding    : 12px 20px;
    border     : 1px solid rgba(255,255,255,0.1);
    border-top : 0;
    background : rgba(10,10,14,0.96);
}

.mc-profile-tab
{
    padding       : 10px 16px;
    border        : 0;
    border-radius : 10px;
    color         : rgba(255,255,255,0.62);
    font          : inherit;
    font-size     : 14px;
    font-weight   : 700;
    background    : transparent;
}

.mc-profile-tab.is-active
{
    color      : #171318;
    background : var(--TntMovieClubPrimaryColorDark);
}

.mc-profile-tab:disabled
{
    cursor  : not-allowed;
    opacity : 0.65;
}

.mc-profile-tab-badge
{
    margin-left    : 5px;
    padding        : 3px 6px;
    border         : 1px solid rgba(255,255,255,0.16);
    border-radius  : 999px;
    font-size      : 9px;
    letter-spacing : 0.07em;
    text-transform : uppercase;
}

.mc-profile-panel
{
    padding       : 34px;
    border        : 1px solid rgba(255,255,255,0.1);
    border-top    : 0;
    border-radius : 0 0 24px 24px;
    background    : var(--mc-profile-panel);
    box-shadow    : 0 24px 60px rgba(0,0,0,0.3);
}

.mc-profile-section-heading,
.mc-profile-card-heading
{
    display         : flex;
    align-items     : flex-end;
    justify-content : space-between;
    gap             : 20px;
    margin-bottom   : 18px;
}

.mc-profile-section-heading h2,
.mc-profile-card-heading h2
{
    margin    : 0;
    color     : var(--mc-profile-cream);
    font-size : 24px;
}

.mc-profile-section-heading > p
{
    max-width  : 300px;
    margin     : 0;
    color      : rgba(255,255,255,0.55);
    font-size  : 13px;
    text-align : right;
}

.mc-profile-average-grid
{
    display               : grid;
    grid-template-columns : 1.15fr 1fr 1fr;
    gap                   : 14px;
}

.mc-profile-average-card
{
    position        : relative;
    min-height      : 190px;
    display         : flex;
    flex-direction  : column;
    justify-content : center;
    padding         : 24px;
    overflow        : hidden;
    border          : 1px solid rgba(255,255,255,0.1);
    border-radius   : 18px;
    background      : rgba(255,255,255,0.035);
}

.mc-profile-average-card-featured
{
    border-color : var(--TntMovieClubPrimaryColorDark);
    background   : linear-gradient(145deg, var(--TntMovieClubPrimaryColorDark), rgba(255,255,255,0.035));
}

.mc-profile-average-icon
{
    position  : absolute;
    top       : 18px;
    right     : 20px;
    color     : var(--TntMovieClubPrimaryColorDark);
    font-size : 24px;
}

.mc-profile-average-label
{
    color          : rgba(255,255,255,0.62);
    font-size      : 13px;
    font-weight    : 700;
    letter-spacing : 0.08em;
    text-transform : uppercase;
}

.mc-profile-average-value
{
    margin      : 8px 0 3px;
    color       : var(--mc-profile-cream);
    font-size   : clamp(48px, 7vw, 70px);
    line-height : 1;
}

.mc-profile-average-scale
{
    color     : rgba(255,255,255,0.5);
    font-size : 13px;
}

.mc-profile-lower-grid
{
    display               : grid;
    grid-template-columns : 0.8fr 1.2fr;
    gap                   : 14px;
    margin-top            : 14px;
}

.mc-profile-card
{
    padding       : 24px;
    border        : 1px solid rgba(255,255,255,0.1);
    border-radius : 18px;
    background    : rgba(255,255,255,0.025);
}

.mc-profile-rankings
{
    grid-template-columns : repeat(2, minmax(0, 1fr));
}

.mc-profile-ranked-list
{
    margin               : 0;
    padding-inline-start : 1.75em;
    list-style           : decimal outside;
}

.mc-profile-ranked-list > li
{
    padding : 10px 0 10px 4px;
}

.mc-profile-ranked-list > li + li
{
    border-top : 1px solid rgba(255,255,255,0.08);
}

.mc-profile-ranked-list > li > div
{
    display         : flex;
    justify-content : space-between;
    gap             : 14px;
    overflow-wrap   : anywhere;
}

.mc-profile-ranked-list strong
{
    color                : var(--TntMovieClubPrimaryColorDark);
    font-variant-numeric : tabular-nums;
}

.mc-profile-empty
{
    margin : 0;
    color  : rgba(255,255,255,0.68);
}

.mc-profile-mini-stats
{
    display               : grid;
    grid-template-columns : repeat(2, 1fr);
    gap                   : 10px;
}

.mc-profile-mini-stats > div
{
    display        : flex;
    flex-direction : column;
    gap            : 4px;
    padding        : 16px;
    border-radius  : 12px;
    background     : rgba(0,0,0,0.2);
}

.mc-profile-mini-stats strong
{
    color     : var(--TntMovieClubPrimaryColorDark);
    font-size : 30px;
}

.mc-profile-mini-stats span,
.mc-profile-highlights dt
{
    color     : rgba(255,255,255,0.5);
    font-size : 12px;
}

.mc-profile-highlights
{
    margin : 0;
}

.mc-profile-highlights > div
{
    display               : grid;
    grid-template-columns : 145px minmax(0, 1fr);
    gap                   : 14px;
    padding               : 11px 0;
    border-bottom         : 1px solid rgba(255,255,255,0.08);
}

.mc-profile-highlights > div:last-child
{
    border-bottom : 0;
}

.mc-profile-highlights dd
{
    margin      : 0;
    color       : var(--mc-profile-cream);
    font-size   : 14px;
    font-weight : 700;
    text-align  : right;
}

.mc-profile-streaks-note
{
    margin     : 24px 0 0;
    color      : rgba(255,255,255,0.38);
    font-size  : 12px;
    text-align : center;
}

.mc-profile-state
{
    display         : flex;
    align-items     : center;
    justify-content : center;
    gap             : 12px;
    min-height      : 180px;
    padding         : 24px;
    border          : 1px solid rgba(255,255,255,0.1);
    border-radius   : 20px;
    color           : var(--mc-profile-cream);
    background      : rgba(18,18,23,0.88);
}

.mc-profile-state-error
{
    color        : #ffd1d1;
    border-color : rgba(255,100,100,0.25);
}

.mc-profile-loader
{
    width            : 18px;
    height           : 18px;
    border           : 2px solid rgba(255,255,255,0.2);
    border-top-color : var(--TntMovieClubPrimaryColorDark);
    border-radius    : 50%;
    animation        : mc-profile-spin 0.75s linear infinite;
}

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

@media (max-width: 760px)
{
    .mc-profile-hero
    {
        min-height : 190px;
        padding    : 24px;
    }

    .mc-profile-panel
    {
        padding : 24px;
    }

    .mc-profile-average-grid,
    .mc-profile-lower-grid
    {
        grid-template-columns : 1fr;
    }

    .mc-profile-average-card
    {
        min-height : 160px;
    }
}

@media (max-width: 520px)
{
    .mc-profile
    {
        margin : 14px auto;
    }

    .mc-profile-hero
    {
        padding : 20px;
    }

    .mc-profile-identity
    {
        align-items : flex-start;
        gap         : 14px;
    }

    .mc-profile-avatar
    {
        width      : 62px;
        height     : 62px;
        flex-basis : 62px;
        font-size  : 26px;
    }

    .mc-profile-subtitle
    {
        font-size : 13px;
    }

    .mc-profile-tabs
    {
        overflow-x : auto;
        padding    : 10px 12px;
    }

    .mc-profile-tab
    {
        white-space : nowrap;
    }

    .mc-profile-panel
    {
        padding : 20px 14px;
    }

    .mc-profile-section-heading
    {
        align-items    : flex-start;
        flex-direction : column;
    }

    .mc-profile-section-heading > p
    {
        text-align : left;
    }

    .mc-profile-mini-stats
    {
        grid-template-columns : 1fr 1fr;
    }

    .mc-profile-highlights > div
    {
        grid-template-columns : 1fr;
        gap                   : 4px;
    }

    .mc-profile-highlights dd
    {
        text-align : left;
    }
}

@media (prefers-reduced-motion: reduce)
{
    .mc-profile-loader
    {
        animation : none;
    }
}
