/* Account pages: the classic theme (style.css, grid.css) plus a few rules scoped to .account-page.
   Accent colours are the theme's 碧玉澜诗 tokens from style.css (--lumos-accent-*). */

.account-page .page_title_wrapper.account-title {
    margin-top: 40px;
}

.account-page .account-content {
    max-width: 760px;
    margin: 0 auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
}

.account-page .account-content h2.widgettitle {
    margin: 36px 0 16px;
}

.account-page .account-content p,
.account-page .account-content li {
    font-size: 15px;
    line-height: 1.9;
}

.account-page .account-content ul {
    list-style: disc;
    margin: 0 0 16px 1.5em;
    padding: 0;
}

.account-page .account-content a {
    color: var(--lumos-accent-text);
}

.account-page .account-lead {
    font-size: 16px;
    text-align: center;
}

.account-page .account-meta {
    margin-top: 36px;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* ---- Forms (theme inputs: #fcfcfc background, #e1e1e1 border, square corners) ---- */

.account-page .account-form-wrapper {
    max-width: 420px;
    margin: 0 auto 70px;
    padding: 0 20px;
    box-sizing: border-box;
}

.account-page .account-field {
    margin-bottom: 18px;
}

.account-page .account-form label,
.account-page .account-label {
    display: block;
    margin-bottom: 6px;
    color: #222;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.account-page .account-form input[type="text"],
.account-page .account-form input[type="email"],
.account-page .account-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: #fcfcfc;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.4;
}

.account-page .account-form input:focus {
    border-color: #222;
    outline: none;
}

.account-page .account-form input[aria-invalid="true"] {
    border-color: #c0392b;
}

.account-page .account-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.account-page .account-input-row input {
    flex: 1;
    min-width: 0;
}

.account-page .account-captcha {
    flex: none;
    width: 120px;
    height: 42px;
    border: 1px solid #e1e1e1;
    background: #fff;
    cursor: pointer;
}

.account-page .account-inline-button {
    flex: none;
    padding: 0 12px;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.account-page .account-inline-button:disabled {
    border-color: #ccc;
    color: #999;
    cursor: default;
}

.account-page .account-field-error {
    display: block;
    margin-top: 4px;
    color: #c0392b;
    font-size: 12px;
}

.account-page .account-field-error:empty {
    display: none;
}

.account-page .account-hint {
    margin-top: 4px;
    color: #999;
    font-size: 12px;
}

.account-page .account-form label.account-check,
.account-page label.account-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.account-page .account-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.account-page .account-form a,
.account-page .account-link {
    color: var(--lumos-accent-text);
}

.account-page .account-form-row a,
.account-page .account-toolbar .button {
    flex: none;
    white-space: nowrap;
}

.account-page .button,
.account-page input[type=submit] {
    background: var(--lumos-accent-strong);
    border-color: var(--lumos-accent-strong);
    color: #fff;
}

.account-page .button:hover,
.account-page input[type=submit]:hover {
    background: #222;
    border-color: #222;
    color: #fff;
}

.account-page .button.black {
    background: transparent;
    border-color: #222;
    color: #222;
}

.account-page .button.black:hover {
    background: #222;
    color: #fff;
}

.account-page .button.danger {
    background: transparent;
    border-color: #c0392b;
    color: #c0392b;
}

.account-page .button.danger:hover {
    background: #c0392b;
    color: #fff;
}

.account-page .button:disabled {
    opacity: .6;
    cursor: default;
}

.account-page .account-submit {
    width: 100%;
    padding: 12px 0 10px;
    font-size: 12px;
}

.account-page .account-status {
    min-height: 1.6em;
    margin: 12px 0;
    font-size: 13px;
    text-align: center;
}

.account-page .account-status.is-error {
    color: #c0392b;
}

.account-page .account-status.is-success {
    color: #3c7a52;
}

.account-page .account-switch {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
}

.account-page .account-notice {
    padding: 14px 16px;
    border: 1px solid #e1e1e1;
    background: #fcfcfc;
    font-size: 14px;
    text-align: center;
}

.account-page .account-lead-small {
    margin-bottom: 22px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.account-page .account-password-toggle {
    min-width: 54px;
}

/* ---- Personal center ---- */

.account-page .account-center {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto 70px;
    padding: 0 20px;
    box-sizing: border-box;
}

.account-page .account-nav {
    flex: 0 0 180px;
}

.account-page .account-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #222;
}

.account-page .account-nav li {
    border-bottom: 1px solid #e1e1e1;
}

.account-page .account-nav a,
.account-page .account-nav button {
    display: block;
    width: 100%;
    padding: 12px 4px;
    border: 0;
    background: none;
    color: #444;
    cursor: pointer;
    font-family: "Josefin Sans", Helvetica, Arial, var(--lumos-cjk-sans, sans-serif);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: left;
    text-transform: uppercase;
}

.account-page .account-nav a:hover,
.account-page .account-nav button:hover,
.account-page .account-nav a[aria-current="page"] {
    color: var(--lumos-accent-text);
}

.account-page .account-main {
    flex: 1;
    min-width: 0;
}

.account-page .account-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1e1e1;
}

.account-page .account-avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.account-page .account-profile-name {
    margin: 0;
    color: #222;
    font-size: 22px;
}

.account-page .account-profile-meta {
    margin-top: 4px;
    color: #999;
    font-size: 13px;
}

.account-page .account-stats {
    display: flex;
    gap: 16px;
    margin: 20px 0 10px;
}

.account-page .account-stat {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #e1e1e1;
    color: #444;
    text-align: center;
}

.account-page .account-stat strong {
    display: block;
    color: #222;
    font-size: 24px;
}

.account-page .account-stat:hover {
    border-color: var(--lumos-accent);
}

.account-page .account-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 30px 0 16px;
}

.account-page .account-section-head h2.widgettitle {
    flex: 1;
    margin: 0;
}

.account-page .account-section-head a {
    color: var(--lumos-accent-text);
    font-size: 12px;
    white-space: nowrap;
}

.account-page .account-admin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding: 18px 20px;
    border: 1px solid var(--lumos-accent);
}

.account-page .account-admin-card p {
    margin: 4px 0 0;
    color: #666;
    font-size: 13px;
}

.account-page .account-empty {
    padding: 30px 0;
    color: #999;
    text-align: center;
}

/* Cards: the archive's video_card markup, four per row. */
.account-page .account-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
}

.account-page .account-card {
    position: relative;
}

.account-page .account-card .video_card {
    width: auto;
    padding: 0;
}

.account-page .account-card .video_cover_wrapper {
    position: relative;
}

.account-page .account-card .video_cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #d2d2d2;
}

.account-page .account-card .video_cover a {
    display: block;
    width: 100%;
    height: 100%;
}

.account-page .account-card .video_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-page .account-card .video_cover .hot {
    position: absolute;
    z-index: 1;
    margin: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: bolder;
}

.account-page .account-card .hot .hot_n {
    color: #ff0808;
}

.account-page .account-card .video_cover_wrapper .mask {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 100%);
}

.account-page .account-card .video_info h3 {
    display: -webkit-box;
    margin: 4px 0;
    overflow: hidden;
    font-size: 15px !important;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.account-page .account-card .video_time {
    color: #999;
    font-size: 12px;
}

.account-page .account-card-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 4px 8px;
    border: 0;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity .15s;
}

.account-page .account-card:hover .account-card-remove,
.account-page .account-card-remove:focus-visible,
.account-page .account-card.is-unavailable .account-card-remove {
    opacity: 1;
}

.account-page .account-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #eee;
    color: #999;
    font-size: 13px;
    text-align: center;
}

.account-page .account-placeholder small {
    margin-top: 4px;
    font-size: 11px;
}

.account-page .account-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.account-page .account-filter a {
    padding: 6px 12px;
    border: 1px solid #e1e1e1;
    color: #444;
    font-size: 12px;
}

.account-page .account-filter a[aria-current="page"],
.account-page .account-filter a:hover {
    border-color: var(--lumos-accent);
    color: var(--lumos-accent-text);
}

.account-page .account-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.account-page .account-pager a {
    color: #444;
}

.account-page .account-pager a:hover {
    color: var(--lumos-accent-text);
}

.account-page .account-pager .is-disabled {
    color: #ccc;
}

/* History list */
.account-page .account-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.account-page .account-toolbar-note {
    margin: 0 0 18px;
    color: #999;
    font-size: 12px;
}

.account-page .account-history-group {
    margin: 22px 0 8px;
    color: var(--lumos-accent-text);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.account-page .account-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-page .account-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.account-page .account-history-thumb {
    flex: none;
    width: 112px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
}

.account-page .account-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-page .account-history-text {
    flex: 1;
    min-width: 0;
}

.account-page .account-history-title {
    display: block;
    overflow: hidden;
    color: #222;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-page .account-history-meta {
    margin-top: 4px;
    color: #999;
    font-size: 12px;
}

.account-page .account-history-meta .account-category {
    color: var(--lumos-accent-text);
}

.account-page .account-icon-button {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 13px;
}

.account-page .account-icon-button:hover {
    color: #c0392b;
}

.account-page label.account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

/* Settings */
.account-page .account-settings section {
    margin-bottom: 36px;
}

.account-page .account-settings h2.widgettitle {
    margin-bottom: 18px;
}

.account-page .account-settings .account-form {
    max-width: 460px;
}

.account-page .account-avatar-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.account-page .account-avatar-picker label {
    position: relative;
    flex: none;
    width: auto;  /* the theme gives every label width: 100% */
    margin: 0;
    cursor: pointer;
}

.account-page .account-avatar-picker input {
    position: absolute;
    opacity: 0;
}

.account-page .account-avatar-picker span {
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
}

.account-page .account-avatar-picker input:checked + span {
    border-color: #222;
}

.account-page .account-avatar-picker input:focus-visible + span {
    outline: 2px solid var(--lumos-accent);
    outline-offset: 2px;
}

.account-page .account-readonly {
    color: #444;
    font-size: 14px;
}

.account-page .account-danger h2.widgettitle {
    border-color: #c0392b;
    color: #c0392b;
}

@media only screen and (max-width: 960px) {
    .account-page .account-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 767px) {
    .account-page .account-center {
        flex-direction: column;
        gap: 20px;
    }

    .account-page .account-nav {
        flex: none;
        width: 100%;
    }

    .account-page .account-nav ul {
        display: flex;
        flex-wrap: wrap;
        border-top: 0;
    }

    .account-page .account-nav li {
        border: 0;
    }

    .account-page .account-nav a,
    .account-page .account-nav button {
        padding: 8px 10px;
    }

    .account-page .account-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-page .account-admin-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
