/* iProudagers 登录 + 收藏（顶栏控件与 .oc-portal-lang__toggle / 桌面 tb-cur-lang 同尺寸） */

.oc-club-auth {
    --oc-header-control-size: 34px;
    --oc-header-control-icon: 26px;
    --oc-header-control-radius: 10px;
    --oc-header-control-border: rgba(27, 67, 50, 0.28);
    --oc-header-control-border-hover: rgba(45, 106, 79, 0.55);
    --oc-header-control-bg-hover: rgba(45, 106, 79, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    line-height: 0;
}

body.outlive-club-desktop-shell .oc-club-auth {
    --oc-header-control-size: 32px;
    --oc-header-control-icon: 27px;
}

.oc-club-auth__center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}

.oc-club-auth__center:hover .oc-club-auth__avatar,
.oc-club-auth__center:focus-visible .oc-club-auth__avatar {
    border-color: var(--oc-header-control-border-hover);
    background: var(--oc-header-control-bg-hover);
}

.oc-club-auth__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--oc-header-control-size);
    height: var(--oc-header-control-size);
    border-radius: var(--oc-header-control-radius);
    border: 1px solid var(--oc-header-control-border);
    background: transparent;
    flex: 0 0 auto;
    overflow: hidden;
    box-sizing: border-box;
    color: var(--oc-accent-deep, #1b4332);
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.oc-club-auth__avatar--brand {
    background: transparent;
}

.oc-club-auth__avatar--user {
    font-size: 14px;
    font-weight: 700;
}

.oc-club-auth__logo {
    display: block;
    width: var(--oc-header-control-icon);
    height: var(--oc-header-control-icon);
    object-fit: contain;
    object-position: center;
}

.oc-club-auth__logo-fallback {
    font-size: 13px;
    font-weight: 700;
    color: var(--oc-accent-deep, #1a4d36);
}

.oc-portal-header__side--right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oc-club-favorite-wrap {
    margin: 12px 0 0;
    padding: 0 var(--oc-page-x, 15px);
}

.oc-club-favorite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--oc-line, #e2ebe6);
    background: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: var(--oc-fs-sm, 13px);
    cursor: pointer;
    color: var(--oc-text, #1b2822);
}

.oc-club-favorite.is-saved {
    border-color: #c9a227;
    color: #8a6b00;
}

.oc-club-favorite__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.oc-club-favorite__icon .oc-star-icon {
    display: block;
}

.oc-club-favorite .oc-star-icon__solid {
    display: none;
}

.oc-club-favorite.is-saved .oc-star-icon__outline {
    display: none;
}

.oc-club-favorite.is-saved .oc-star-icon__solid {
    display: block;
}

.oc-club-favorite.is-saved .oc-star-icon {
    color: #f5a623;
}

.oc-club-favorite__hint {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--oc-muted, #5a6b64);
}

.oc-club-account-page__head,
.oc-club-favorites-page__head {
    padding: 16px var(--oc-page-x, 15px) 8px;
}

.oc-club-account-page__title,
.oc-club-favorites-page__title {
    margin: 0;
    font-size: 1.25rem;
}

.oc-club-account-page__logout {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--oc-line, #e2ebe6);
    border-radius: 8px;
    background: #fff;
    color: var(--oc-accent-deep, #1a4d36);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.oc-club-account-page__logout:hover {
    border-color: var(--oc-accent-deep, #1a4d36);
    background: rgba(45, 106, 79, 0.06);
}

.oc-club-account-page__logout:disabled {
    opacity: 0.6;
    cursor: wait;
}

.oc-club-account-page__sub,
.oc-club-favorites-page__sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--oc-muted, #5a6b64);
}

.oc-club-account-shell {
    margin: 0 var(--oc-page-x, 15px) 20px;
}

.oc-club-account-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 0;
    background: transparent;
}

.oc-club-account-toolbar__tab {
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--oc-line, #e2ebe6);
    border-radius: 10px;
    background: #fff;
    color: var(--oc-text, #1b2822);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-align: center;
}

.oc-club-account-toolbar__tab:hover {
    border-color: var(--oc-header-control-border-hover, rgba(45, 106, 79, 0.55));
    background: var(--oc-header-control-bg-hover, rgba(45, 106, 79, 0.08));
}

.oc-club-account-toolbar__tab.is-active {
    border-color: var(--oc-accent-deep, #1b4332);
    background: rgba(45, 106, 79, 0.1);
    color: var(--oc-accent-deep, #1b4332);
    box-shadow: none;
}

.oc-club-account-toolbar__logout {
    width: 100%;
    margin: 0;
    align-self: stretch;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.3;
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.35);
}

.oc-club-account-toolbar__logout:hover {
    color: #b71c1c;
    border-color: rgba(183, 28, 28, 0.5);
    background: rgba(198, 40, 40, 0.06);
}

.oc-club-account-toolbar__logout:disabled {
    color: #c62828;
    opacity: 0.6;
}

.oc-club-account-stage {
    position: relative;
    margin: 0;
    min-height: 200px;
}

.oc-club-account-shell .oc-club-account-panel {
    margin: 0;
}

.oc-club-account-panel__title--in-tab {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.oc-club-account-stage[data-oc-pane='settings'] .oc-club-account-pane--favorites,
.oc-club-account-pane--favorites[hidden] {
    display: none !important;
}

.oc-club-account-stage[data-oc-pane='favorites'] .oc-club-account-pane--settings {
    display: none !important;
}

.oc-club-account-stage[data-oc-pane='favorites'] .oc-club-account-pane--favorites {
    display: block !important;
}

.oc-club-account-panel--favorites {
    min-height: 120px;
}


.oc-club-account-panel {
    margin: 0 var(--oc-page-x, 15px) 20px;
    padding: 14px 16px 16px;
    border: 1px solid var(--oc-line, #e8eeeb);
    border-radius: 12px;
    background: #fff;
}

.oc-club-account-panel--settings {
    padding: 10px 14px 12px;
}

.oc-club-account-panel--settings .oc-club-account-panel__title {
    margin-bottom: 8px;
}

.oc-club-account-panel__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
}

.oc-club-account-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 28px;
    align-items: stretch;
}

.oc-club-account-settings__col--profile {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.oc-club-account-settings__col--profile .oc-club-account-profile {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 4px 0;
}

.oc-club-account-settings--guest {
    grid-template-columns: 1fr;
}

.oc-club-account-settings__subtitle {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--oc-muted, #5a6b64);
}

.oc-club-account-settings__col--password {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-left: 28px;
    border-left: 1px solid var(--oc-line, #e8eeeb);
    min-height: 100%;
}

.oc-club-account-settings__col--password .oc-club-account-settings__subtitle {
    align-self: stretch;
    width: 100%;
    text-align: left;
}

.oc-club-account-password {
    width: 100%;
    max-width: 248px;
    margin-left: auto;
    margin-right: auto;
}

.oc-club-account-settings--guest .oc-club-account-settings__col--password {
    display: none;
}

@media (max-width: 720px) {
    .oc-club-account-settings:not(.oc-club-account-settings--guest) {
        grid-template-columns: 1fr;
        gap: 12px 0;
        align-items: start;
    }

    .oc-club-account-settings__col--profile,
    .oc-club-account-settings__col--password {
        min-height: 0;
    }

    .oc-club-account-settings__col--profile .oc-club-account-profile {
        flex: 0 0 auto;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
    }

    .oc-club-account-settings__col--password {
        padding-left: 0;
        padding-top: 12px;
        padding-bottom: 0;
        border-left: 0;
        border-top: 1px solid var(--oc-line, #e8eeeb);
    }

    .oc-club-account-password {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .oc-club-account-password__links {
        margin-bottom: 0;
    }

    .oc-club-account-panel--settings {
        padding-bottom: 10px;
    }
}

.oc-club-account__loading,
.oc-club-account__guest {
    margin: 0;
    font-size: 14px;
    color: var(--oc-muted, #5a6b64);
}

.oc-club-account-profile__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 8px 12px;
    align-items: center;
    width: 100%;
}

.oc-club-account-profile__avatar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    cursor: pointer;
    margin: 0;
    width: 100%;
    min-width: 0;
}

.oc-club-account-profile__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--oc-line, #e2ebe6);
    overflow: hidden;
    background: rgba(45, 106, 79, 0.06);
    color: var(--oc-accent-deep, #1b4332);
    font-size: 1.5rem;
    font-weight: 700;
}

.oc-club-account-profile__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-club-account-profile__avatar-label {
    font-size: 12px;
    color: var(--oc-accent-deep, #1a4d36);
    text-decoration: underline;
}

.oc-club-account-profile__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.oc-club-account-profile__line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 13px;
    line-height: 1.4;
    min-height: 20px;
}

.oc-club-account-profile__line .oc-club-account-profile__label {
    flex: 0 0 auto;
}

.oc-club-account-profile__value {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--oc-text, #1b2822);
    word-break: break-word;
}

.oc-club-account-profile__label {
    display: inline;
    color: var(--oc-muted, #5a6b64);
    font-size: 13px;
    font-weight: 500;
}

.oc-club-account-profile__form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.oc-club-account-profile__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.oc-club-account-profile__field--inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.oc-club-account-profile__field--inline .oc-club-account-profile__label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.oc-club-account-profile__field input {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    border: 1px solid var(--oc-line, #e2ebe6);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.2;
}

.oc-club-account-profile__field--inline input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.oc-club-account-profile__submit {
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    width: 100%;
    height: 34px;
    font-size: 13px;
    font-weight: 600;
    line-height: 34px;
    cursor: pointer;
    background: var(--oc-accent-deep, #1b4332);
    color: #fff;
    white-space: nowrap;
}

.oc-club-account-password__submit {
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    height: 34px;
    font-size: 13px;
    font-weight: 600;
    line-height: 34px;
    cursor: pointer;
    background: var(--oc-accent-deep, #1b4332);
    color: #fff;
    width: 100%;
}

.oc-club-account-profile__submit:hover,
.oc-club-account-password__submit:hover {
    opacity: 0.92;
}

.oc-club-account-profile__status,
.oc-club-account-password__status {
    margin: 0;
    width: 100%;
    font-size: 13px;
    color: #2d6a4f;
}

.oc-club-account-profile__status {
    margin-top: -4px;
}

.oc-club-account-password__hint {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.35;
    color: var(--oc-muted, #5a6b64);
}

.oc-club-account-password__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: none;
    width: 100%;
}

.oc-club-account-password__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.oc-club-account-password__field input {
    border: 1px solid var(--oc-line, #e2ebe6);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
}

.oc-club-account-password__links {
    margin: 8px 0 0;
    font-size: 13px;
    text-align: center;
}

.oc-club-account-password__links a {
    color: var(--oc-accent-deep, #1a4d36);
}

.oc-club-favorites-list {
    padding: 4px 0 8px;
}

.oc-club-favorites-list__empty,
.oc-club-favorites-list__loading {
    color: var(--oc-muted, #5a6b64);
    font-size: 14px;
}

.oc-club-favorites-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oc-club-favorites-items__row {
    display: grid;
    grid-template-columns: 2.75em minmax(0, 1fr) minmax(4.5rem, 10rem) 5.5rem max-content;
    gap: 10px 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--oc-line, #e8eeeb);
    font-size: 14px;
}

.oc-club-favorites-items__num {
    color: var(--oc-muted, #5a6b64);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    padding-right: 2px;
}

.oc-club-favorites-items__title {
    color: var(--oc-text, #1b2822);
    text-decoration: none;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oc-club-favorites-items__title:hover {
    text-decoration: underline;
}

.oc-club-favorites-items__remove {
    margin: 0;
    justify-self: end;
    padding: 4px 10px;
    border: 1px solid var(--oc-line, #e2ebe6);
    border-radius: 6px;
    background: #fff;
    color: var(--oc-muted, #5a6b64);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    white-space: nowrap;
}

.oc-club-favorites-items__remove:hover {
    border-color: rgba(180, 60, 60, 0.45);
    color: #a33;
    background: rgba(180, 60, 60, 0.06);
}

.oc-club-favorites-items__remove:disabled {
    opacity: 0.55;
    cursor: wait;
}

.oc-club-favorites-items__cat {
    font-size: 12px;
    color: var(--oc-muted, #5a6b64);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    min-width: 0;
}

.oc-club-favorites-items__date {
    font-size: 12px;
    color: var(--oc-muted, #5a6b64);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: left;
}

@media (max-width: 560px) {
    .oc-club-favorites-items__row {
        grid-template-columns: 2em minmax(0, 1fr) auto max-content;
        grid-template-rows: auto auto;
        row-gap: 2px;
        column-gap: 8px;
        align-items: center;
    }

    .oc-club-favorites-items__title {
        line-height: 1.35;
    }

    .oc-club-favorites-items__cat,
    .oc-club-favorites-items__date {
        line-height: 1.25;
    }

    .oc-club-favorites-items__num {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .oc-club-favorites-items__title {
        grid-column: 2 / -1;
        grid-row: 1;
        white-space: normal;
        margin-bottom: 0;
    }

    .oc-club-favorites-items__cat {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        min-width: 0;
    }

    .oc-club-favorites-items__date {
        grid-column: 3;
        grid-row: 2;
        text-align: left;
    }

    .oc-club-favorites-items__remove {
        grid-column: 4;
        grid-row: 2;
        justify-self: end;
    }
}

/* Personal center: hide legal disclaimer footer only — mobile .oc-portal-tabs (5 channels) stay. */
body.oc-club-account-no-footer .oc-portal-site-footer {
    display: none !important;
}

body.outlive-club-portal.oc-club-account-no-footer:not(.outlive-club-portal-desktop) .oc-portal-tabs {
    display: grid !important;
    visibility: visible !important;
}

body.outlive-club-portal-desktop.oc-club-account-no-footer {
    padding-bottom: 24px;
}

/* Legacy text login (favorites page fallback only) */
a.oc-club-auth__login {
    font-size: var(--oc-fs-sm, 13px);
    font-weight: 600;
    color: var(--oc-accent-deep, #1a4d36);
    text-decoration: none;
}

a.oc-club-auth__login:hover {
    text-decoration: underline;
}