

#profile-view {
    --pf-glass-1: rgba(255, 255, 255, 0.065);
    --pf-glass-2: rgba(255, 255, 255, 0.035);
    --pf-tile: rgba(255, 255, 255, 0.04);
    --pf-tile-hover: rgba(255, 255, 255, 0.07);
    --pf-line: rgba(255, 255, 255, 0.09);
    --pf-line-top: rgba(255, 255, 255, 0.18);
    --pf-text: #f4f4f7;
    --pf-body: #dcdce4;
    --pf-muted: #a5a5b4;
    --pf-faint: #8a8a99;
    --pf-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.18);
    --pf-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --card-width: 148px;

    position: relative;
    min-height: 100vh;
    padding-top: 108px;
    padding-bottom: 72px;

    background: transparent;
    color: var(--pf-body);
}

#profile-view .pf-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    box-sizing: border-box;
}

#profile-view h2,
#profile-view h3 {
    font-family: var(--font-display);
}

#profile-view .pf-card,
#profile-view .profile-auth-card,
#profile-view .profile-sidebar-card,
#profile-view .profile-main-card,
#profile-view .pf-hero {
    background: linear-gradient(180deg, var(--pf-glass-1), var(--pf-glass-2)) !important;
    border: 1px solid var(--pf-line) !important;
    border-top-color: var(--pf-line-top) !important;
    border-radius: 20px !important;
    box-shadow: var(--pf-shadow) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    box-sizing: border-box;
}

#profile-view .profile-sidebar-card,
#profile-view .profile-main-card {
    padding: 20px !important;
}

#profile-view #profile-settings-container:hover,
#profile-view #profile-partner-status-section:hover {
    border-color: var(--pf-line) !important;
    border-top-color: var(--pf-line-top) !important;
    box-shadow: var(--pf-shadow) !important;
}

#profile-view .pf-btn,
#account-modal-overlay .pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid var(--pf-line, rgba(255, 255, 255, 0.09));
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--pf-ease, ease-out), box-shadow 0.2s ease, opacity 0.2s ease;
}

#profile-view .pf-btn:hover,
#account-modal-overlay .pf-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

#profile-view .pf-btn--primary,
#account-modal-overlay .pf-btn--primary {
    background: var(--btn-bg, var(--primary));
    border-color: transparent;
    color: var(--on-primary, #fff);
    box-shadow: 0 10px 24px -10px rgba(var(--primary-rgb), 0.7);
}

#profile-view .pf-btn--primary:hover,
#account-modal-overlay .pf-btn--primary:hover {
    background: var(--btn-bg, var(--primary));
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(var(--primary-rgb), 0.8);
}

#profile-view .pf-btn--quiet {
    background: transparent;
    border-color: transparent;
    color: var(--pf-muted);
}

#profile-view .pf-btn--quiet:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    color: #fff;
}

#profile-view .pf-btn--block,
#account-modal-overlay .pf-btn--block {
    display: flex;
    width: 100%;
}

#profile-view .pf-btn:disabled,
#account-modal-overlay .pf-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

#profile-view #auth-submit-btn::before {
    display: none;
}

#profile-view .pf-icon-btn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--pf-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#profile-view .pf-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

#profile-view .pf-icon-btn--accent {
    background: var(--btn-bg, var(--primary));
    border-color: transparent;
    color: var(--on-primary, #fff);
}

#profile-view .pf-icon-btn--accent:hover {
    background: var(--btn-bg, var(--primary));
    color: var(--on-primary, #fff);
    filter: brightness(1.08);
}

#profile-view .pf-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--pf-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

#profile-view .pf-link-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

#profile-view .pf-link-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

#profile-view button:focus-visible,
#profile-view a:focus-visible,
#profile-view input:focus-visible,
#account-modal-overlay button:focus-visible,
#account-modal-overlay input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

#profile-view .pf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

#profile-view .pf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#profile-view .pf-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pf-muted);
}

#profile-view .pf-input,
#account-modal-overlay .acct-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#profile-view .pf-input::placeholder,
#account-modal-overlay .acct-input::placeholder {
    color: #6f6f7e;
}

#profile-view .pf-input:focus,
#account-modal-overlay .acct-input:focus {
    border-color: rgba(var(--primary-rgb), 0.7);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

#profile-view .pf-alert {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(251, 59, 100, 0.28);
    background: rgba(251, 59, 100, 0.1);
    color: #fda4b4;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
}

#profile-view .pf-alert--inline {
    flex-basis: 100%;
    padding: 8px 12px;
    font-size: 0.8rem;
}

#profile-view .pf-forgot {
    margin: -16px 0 -12px;
    text-align: right;
}

#profile-view .pf-forgot a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 2px;
    color: var(--primary-soft, var(--primary));
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

#profile-view .pf-forgot a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

#profile-view .pf-forgot a:hover {
    text-decoration: underline;
}

#profile-view .pf-seg {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

#profile-view .pf-seg button {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--pf-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#profile-view .pf-seg button:hover {
    color: #fff;
}

#profile-view .pf-seg button.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 8px rgba(0, 0, 0, 0.25);
}

#profile-view .pf-seg--block {
    display: flex;
    width: 100%;
    margin: 0 0 20px;
    box-sizing: border-box;
}

#profile-view .pf-seg--block button {
    min-height: 40px;
    font-size: 0.86rem;
}

#profile-view .pf-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 46vh;
    text-align: center;
}

#profile-view .pf-state p {
    margin: 0;
    color: var(--pf-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

#profile-view .pf-gate,
#profile-view .pf-auth {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 32px 28px !important;
    border-radius: 24px !important;
    text-align: center;
}

#profile-view .pf-auth {
    text-align: left;
}

#profile-view .pf-gate-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-soft, var(--primary));
    font-size: 1.35rem;
}

#profile-view .pf-gate-title {
    margin: 0 0 8px;
    color: var(--pf-text);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

#profile-view .pf-gate-text {
    margin: 0 0 24px;
    color: var(--pf-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

#profile-view .pf-gate-text strong {
    color: #fff;
    overflow-wrap: anywhere;
}

#profile-view .pf-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#profile-view .pf-gate .pf-form {
    text-align: left;
}

#profile-view .pf-auth-head {
    margin-bottom: 20px;
}

#profile-view .pf-auth-head .pf-gate-text {
    margin-bottom: 0;
}

#profile-view .pf-auth .sk-login-hint {
    margin: 0 0 20px;
}

#profile-view .pf-empty {
    padding: 40px 24px !important;
    text-align: center;
}

#profile-view .pf-empty .pf-gate-text {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

#profile-view .pf-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 28px 28px 18px;
    border-radius: 24px !important;
}

#profile-view .pf-cover {
    position: absolute;
    inset: -40px;
    z-index: -2;
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    filter: blur(28px) saturate(1.2);
    transform: scale(1.06);
    transition: opacity 0.6s ease;
    pointer-events: none;
}

#profile-view .pf-cover.is-on {
    opacity: 0.34;
}

#profile-view .pf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(var(--primary-rgb), 0.18), transparent 55%),
        linear-gradient(180deg, rgba(8, 9, 16, 0.2) 0%, rgba(8, 9, 16, 0.62) 100%);
}

#profile-view .pf-id {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

#profile-view #profile-avatar-initials {
    flex: none;
    width: 76px !important;
    height: 76px !important;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--btn-bg, var(--primary-gradient)) !important;
    color: var(--on-primary, #fff) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05), 0 14px 32px -10px rgba(var(--primary-rgb), 0.65) !important;
    font-family: var(--font-display);
    font-size: 1.9rem !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    transform: none !important;
    user-select: none;
}

#profile-view .pf-id-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

#profile-view .pf-greet {
    color: var(--pf-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

#profile-view .pf-name-row {
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#profile-view .pf-name {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--pf-text);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    cursor: default;
}

#profile-view .pf-name-edit {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 420px;
}

#profile-view .pf-name-edit .pf-input {
    flex: 1 1 180px;
    width: auto;
    min-height: 42px;
    font-size: 1rem;
    font-weight: 700;
}

#profile-view .pf-name-edit .pf-icon-btn {
    width: 40px;
    height: 40px;
}

#profile-view .pf-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 2px;
    color: var(--pf-muted);
    font-size: 0.86rem;
    min-width: 0;
}

#profile-view .pf-meta-mail {
    min-width: 0;
    overflow-wrap: anywhere;
}

#profile-view .pf-meta-since:empty {
    display: none;
}

#profile-view .pf-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-soft, var(--primary));
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

#profile-view .pf-hero .pf-stats.profile-sidebar-card {
    margin-top: 24px;
    padding: 18px 0 0 !important;
    background: none !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#profile-view .pf-stats-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 12px;
}

#profile-view .profile-mini-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--pf-tile);
    box-sizing: border-box;
    opacity: 1;
    animation: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--pf-ease);
}

#profile-view .profile-mini-stat > i {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.95rem;
}

#profile-view .profile-mini-stat .value {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#profile-view .profile-mini-stat .label {
    display: block;
    margin-top: 2px;
    color: var(--pf-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

#profile-view button.pf-stat {
    width: 100%;
    font-family: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

#profile-view button.pf-stat:hover {
    background: var(--pf-tile-hover);
    border-color: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

#profile-view .pf-stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#profile-view .pf-stat-sub {
    display: block;
    margin-top: 2px;
    color: var(--pf-faint);
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#profile-view .pf-stat-sub:empty {
    display: none;
}

#profile-view .pf-stat--lead {
    border-color: rgba(var(--primary-rgb), 0.24);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.16), rgba(var(--primary-rgb), 0.04));
}

#profile-view button.pf-stat--lead:hover {
    border-color: rgba(var(--primary-rgb), 0.38);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0.06));
}

#profile-view .pf-stat--lead > i {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-soft, #fff) !important;
}

#profile-view .pf-stat--lead .value {
    font-size: 1.7rem;
}

#profile-view .pf-stats .value {
    transition: opacity 0.2s ease;
}

#profile-view .pf-stats.is-updating .value {
    animation: pf-dim 0.25s ease 0.6s both;
}

@keyframes pf-dim {
    from { opacity: 1; }
    to { opacity: 0.55; }
}

#profile-view .pf-stats-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    margin-top: 10px;
}

#profile-view .pf-stats-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--pf-faint);
    font-size: 0.78rem;
    font-weight: 600;
}

#profile-view .pf-stats-status .fa-triangle-exclamation {
    color: #fbbf24;
}

#profile-view .profile-dashboard-grid.pf-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

#profile-view .profile-main-content,
#profile-view #tc-panel {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 0;
    width: 100%;
}

#profile-view .profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: none;
    width: 100%;
    min-width: 0;
}

#profile-view .pf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#profile-view .pf-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--pf-text);
    font-size: 1rem;
    font-weight: 700;
}

#profile-view .pf-card-head .pf-card-title {
    margin: 0;
}

#profile-view .pf-card-title > i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-soft, var(--primary));
    font-size: 0.82rem;
}

#profile-view .pf-card-text {
    margin: 0 0 14px;
    color: var(--pf-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

#profile-view .pf-pill {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--pf-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#profile-view .pf-kv {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
}

#profile-view .pf-kv-k {
    color: var(--pf-faint);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#profile-view .pf-kv-v {
    min-width: 0;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#profile-view .pf-kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#profile-view .pf-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#profile-view .pf-row-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: none;
    color: var(--pf-body);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#profile-view .pf-row-btn > i:first-child {
    width: 18px;
    color: var(--pf-muted);
    text-align: center;
}

#profile-view .pf-row-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.07);
    color: #fff;
}

#profile-view .pf-row-btn .pf-chev {
    margin-left: auto;
    color: var(--pf-faint);
    font-size: 0.68rem;
}

#profile-view .pf-signout {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 0 12px 12px;
    color: #fda4b4;
}

#profile-view .pf-signout:hover {
    background: rgba(251, 59, 100, 0.1);
    color: #fecdd6;
}

#profile-view .profile-sidebar .profile-action-btn {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

#profile-view .profile-sidebar .profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

#profile-view #simkl-side-card .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#profile-view #simkl-side-card .profile-mini-stat {
    padding: 10px 12px;
    gap: 10px;
}

#profile-view #simkl-side-card .profile-mini-stat > i {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
}

#profile-view #simkl-side-card .profile-mini-stat .value {
    font-size: 1.1rem;
}

#profile-view .pf-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
}

#profile-view .pf-sec-title,
#profile-view #profile-watchlist-section > h2,
#profile-view #profile-likes-section > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--pf-text);
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0;

    text-transform: none;
}

#profile-view .pf-sec-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-soft, var(--primary));
    font-size: 0.85rem;
}

#profile-view .pf-count {
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--pf-muted);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#profile-view .pf-hist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 12px;
}

#profile-view .pf-hcard {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 10px 14px 10px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--pf-ease);
}

#profile-view .pf-hcard:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

#profile-view .pf-hcard-art {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
}

#profile-view .pf-hcard-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-view .pf-hcard-art.is-empty::after {
    content: '\f008';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.28);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1rem;
}

#profile-view .pf-hcard-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

#profile-view .pf-hcard-title {
    overflow: hidden;
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-view .pf-hcard-meta,
#profile-view .pf-hcard-time {
    overflow: hidden;
    color: var(--pf-muted);
    font-size: 0.77rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-view .pf-hcard-time {
    color: var(--pf-faint);
}

#profile-view .pf-hcard-bar {
    display: block;
    height: 3px;
    margin-top: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#profile-view .pf-hcard-bar > i {
    display: block;
    height: 100%;
    width: calc(var(--p, 0) * 100%);
    border-radius: inherit;
    background: var(--primary);
}

#profile-view .pf-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

#profile-view #profile-watchlist-section.row,
#profile-view #profile-likes-section.row {
    margin: 0 !important;
}

#profile-view #profile-watchlist-section > h2::before,
#profile-view #profile-likes-section > h2::before {
    display: none;
}

#profile-view #profile-watchlist-section .row__posters,
#profile-view #profile-likes-section .row__posters {
    padding: 18px 6px 32px !important;
    margin: 0 -6px;
    gap: 14px !important;
}

#profile-view .row.reveal-item {
    opacity: 1 !important;
    transform: none !important;
}

#profile-view #profile-watchlist-section .handle,
#profile-view #profile-likes-section .handle {
    top: 18px;
    bottom: 32px;
    width: 40px;
    font-size: 1.1rem;
}

#account-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 5, 10, 0.62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: pf-fade 0.2s ease-out both;
}

#account-modal-overlay .acct-dialog {
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(30, 31, 46, 0.86), rgba(16, 17, 27, 0.9));
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75);
    box-sizing: border-box;
    animation: pf-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#account-modal-overlay .acct-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

#account-modal-overlay .acct-title {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
}

#account-modal-overlay .acct-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #a5a5b4;
    font-size: 1rem;
    cursor: pointer;
}

#account-modal-overlay .acct-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

#account-modal-overlay .acct-input {
    margin-bottom: 10px;
}

#account-modal-overlay .acct-note {
    margin: 0 0 14px;
    color: #a5a5b4;
    font-size: 0.86rem;
    line-height: 1.55;
}

#account-modal-overlay .acct-err {
    margin: 4px 0 12px;
    color: #fda4b4;
    font-size: 0.84rem;
    font-weight: 600;
}

#account-modal-overlay .acct-loading {
    display: grid;
    place-items: center;
    padding: 24px 0;
}

#account-modal-overlay .acct-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#account-modal-overlay .acct-row > i {
    width: 18px;
    color: var(--primary-soft, var(--primary));
    text-align: center;
}

#account-modal-overlay .acct-row b {
    display: block;
    color: #e7e7ee;
    font-weight: 600;
}

#account-modal-overlay .acct-row small {
    display: block;
    color: #8a8a99;
    font-size: 0.74rem;
}

#account-modal-overlay .acct-empty {
    padding: 20px 0;
    color: #8a8a99;
    text-align: center;
}

@keyframes pf-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes pf-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

#profile-view #profile-auth-container,
#profile-view #profile-dashboard-container,
#profile-view #profile-username-setup-container,
#profile-view #profile-verification-container,
#profile-view #profile-load-error,
#profile-view #profile-loading {
    animation: pf-rise 0.34s var(--pf-ease) both;
}

#profile-view .pf-stat {
    animation: pf-rise 0.34s var(--pf-ease) both;
}

#profile-view .pf-stat:nth-child(2) { animation-delay: 0.04s; }
#profile-view .pf-stat:nth-child(3) { animation-delay: 0.08s; }
#profile-view .pf-stat:nth-child(4) { animation-delay: 0.12s; }

#profile-view .pf-grid {
    animation: pf-rise 0.4s var(--pf-ease) 0.08s both;
}

html.reduce-motion #profile-view *,
html.reduce-motion #account-modal-overlay,
html.reduce-motion #account-modal-overlay * {
    animation: none !important;
}

html.reduce-motion #profile-view .pf-hcard:hover,
html.reduce-motion #profile-view button.pf-stat:hover,
html.reduce-motion #profile-view .pf-btn--primary:hover {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    #profile-view *,
    #account-modal-overlay,
    #account-modal-overlay * {
        animation: none !important;
    }

    #profile-view .pf-hcard:hover,
    #profile-view button.pf-stat:hover,
    #profile-view .pf-btn--primary:hover {
        transform: none;
    }

    #profile-view .pf-cover {
        transition: none;
    }
}

html.no-gpu #profile-view .pf-card,
html.no-gpu #profile-view .profile-auth-card,
html.no-gpu #profile-view .profile-sidebar-card,
html.no-gpu #profile-view .profile-main-card,
html.no-gpu #profile-view .pf-hero {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: linear-gradient(180deg, rgba(24, 25, 36, 0.96), rgba(16, 17, 26, 0.96)) !important;
}

html.no-gpu #profile-view .pf-hero .pf-stats.profile-sidebar-card {
    background: none !important;
}

html.no-gpu #profile-view .pf-cover {
    display: none;
}

html.no-gpu #account-modal-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(4, 5, 10, 0.86);
}

html.no-gpu #account-modal-overlay .acct-dialog {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #151622;
}

@media (max-width: 1023px) {
    #profile-view .profile-dashboard-grid.pf-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #profile-view .pf-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #profile-view .pf-stat--lead {
        grid-column: 1 / -1;
    }

    #profile-view .profile-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        align-items: start;
    }
}

@media (pointer: coarse) {
    #profile-view .pf-seg button {
        min-height: 40px;
    }

    #profile-view .pf-link-btn {
        min-height: 40px;
    }

    #profile-view .pf-icon-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    #profile-view {
        --card-width: 116px;
        padding-top: 84px;
        padding-bottom: 48px;
    }

    #profile-view .pf-hero {
        padding: 20px 18px 14px;
        border-radius: 20px !important;
    }

    #profile-view .pf-id {
        gap: 14px;
    }

    #profile-view #profile-avatar-initials {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.45rem !important;
    }

    #profile-view .pf-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #profile-view .pf-stat--lead {
        grid-column: 1 / -1;
    }

    #profile-view .profile-mini-stat {
        padding: 12px;
    }

    #profile-view .pf-stat:not(.pf-stat--lead) {
        padding: 12px 12px 10px;
    }

    #profile-view .pf-stat:not(.pf-stat--lead) > i,
    #profile-view .pf-stat:not(.pf-stat--lead) .pf-stat-sub {
        display: none;
    }

    #profile-view .pf-stat--lead .value {
        font-size: 1.5rem;
    }

    #profile-view .profile-mini-stat .value {
        font-size: 1.25rem;
    }

    #profile-view .profile-mini-stat .label {
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    #profile-view .profile-dashboard-grid.pf-grid {
        gap: 24px;
        margin-top: 20px;
    }

    #profile-view .profile-main-content,
    #profile-view #tc-panel {
        gap: 28px;
    }

    #profile-view .pf-hist {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #profile-view .pf-seg button {
        min-height: 40px;
    }

    #profile-view .pf-link-btn {
        min-height: 40px;
    }

    #profile-view .pf-icon-btn {
        width: 40px;
        height: 40px;
    }

    #profile-view .profile-sidebar {
        display: flex;
        align-items: stretch;
    }

    #profile-view .pf-gate,
    #profile-view .pf-auth {
        padding: 26px 20px !important;
    }

    #profile-view #profile-watchlist-section .row__posters,
    #profile-view #profile-likes-section .row__posters {
        padding: 14px 4px 26px !important;
        margin: 0 -4px;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    #profile-view .pf-hero {
        padding: 18px 16px 12px;
    }

    #profile-view .pf-name {
        font-size: 1.45rem;
    }

    #profile-view .pf-meta {
        font-size: 0.8rem;
        gap: 4px 10px;
    }

    #profile-view .pf-stats-foot {
        flex-wrap: wrap;
    }

    #profile-view .pf-sec-title,
    #profile-view #profile-watchlist-section > h2,
    #profile-view #profile-likes-section > h2 {
        font-size: 1.08rem;
    }
}

#profile-view .pf-yir {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "text art cta";
    align-items: center;
    gap: 20px 24px;
    width: 100%;
    padding: 20px 22px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.22);
    border-top-color: rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(115deg, rgba(var(--primary-rgb), 0.16), rgba(var(--primary-rgb), 0.03) 48%, rgba(255, 255, 255, 0.03)),
        linear-gradient(180deg, var(--pf-glass-1), var(--pf-glass-2));
    box-shadow: var(--pf-shadow);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.2s var(--pf-ease), border-color 0.2s ease, box-shadow 0.2s ease;
    animation: pf-rise 0.34s var(--pf-ease) both;
}

#profile-view .pf-yir[hidden],
#profile-view .pf-ins[hidden] {
    display: none;
}

#profile-view .pf-yir:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.36);
}

#profile-view .pf-yir-glow {
    position: absolute;
    top: -60%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(closest-side, rgba(var(--primary-rgb), 0.22), transparent);
    pointer-events: none;
}

#profile-view .pf-yir-text {
    position: relative;
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#profile-view .pf-yir-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-soft, var(--primary));
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#profile-view .pf-yir-title {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

#profile-view .pf-yir-sub {
    overflow: hidden;
    color: var(--pf-muted);
    font-size: 0.86rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-view .pf-yir-art {
    position: relative;
    grid-area: art;
    display: flex;
    padding-left: 14px;
}

#profile-view .pf-yir-art img {
    width: 46px;
    aspect-ratio: 2 / 3;
    margin-left: -14px;
    border-radius: 8px;
    border: 2px solid rgba(12, 13, 22, 0.9);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7);
}

#profile-view .pf-yir-cta {
    position: relative;
    grid-area: cta;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--btn-bg, var(--primary));
    color: var(--on-primary, #fff);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px -10px rgba(var(--primary-rgb), 0.7);
}

#profile-view .pf-yir-cta i {
    font-size: 0.78rem;
    transition: transform 0.2s var(--pf-ease);
}

#profile-view .pf-yir:hover .pf-yir-cta i {
    transform: translateX(3px);
}

#profile-view .pf-yir.is-dec {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.16), 0 26px 60px -22px rgba(var(--primary-rgb), 0.55), var(--pf-shadow);
}

#profile-view .pf-yir.is-dec .pf-yir-glow {
    background: radial-gradient(closest-side, rgba(var(--primary-rgb), 0.34), transparent);
}

#profile-view .pf-yir.is-dec .pf-yir-title {
    font-size: 1.5rem;
}

#profile-view .pf-yir.is-empty {
    border-color: var(--pf-line);
    background: linear-gradient(180deg, var(--pf-glass-1), var(--pf-glass-2));
}

#profile-view .pf-yir.is-empty .pf-yir-cta {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    box-shadow: none;
}

#profile-view .pf-ins-note {
    color: var(--pf-faint);
    font-size: 0.76rem;
    font-weight: 600;
}

#profile-view .pf-ins-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

#profile-view .pf-ins-tile {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--pf-tile);
    color: inherit;
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
}

#profile-view .pf-ins--wide {
    grid-column: span 3;
}

#profile-view .pf-ins--wide:last-child:nth-child(4) {
    grid-column: 1 / -1;
}

#profile-view button.pf-ins-tile {
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--pf-ease);
}

#profile-view button.pf-ins-tile:hover {
    background: var(--pf-tile-hover);
    border-color: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}

#profile-view .pf-ins-k {
    color: var(--pf-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#profile-view .pf-ins-s {
    color: var(--pf-muted);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.45;
}

#profile-view .pf-ins-s b {
    color: #fff;
    font-weight: 700;
}

#profile-view .pf-ins-split {
    display: flex;
    gap: 2px;
    height: 10px;
    margin-top: 4px;
    border-radius: 5px;
    overflow: hidden;
}

#profile-view .pf-ins-split > i {
    flex: 1 1 0;
    min-width: 4px;
}

#profile-view .is-mov {
    background: rgba(255, 255, 255, 0.4);
}

#profile-view .is-ser {
    background: var(--primary);
}

#profile-view .pf-ins-legend {
    display: grid;
    gap: 6px;
    margin-top: 2px;
}

#profile-view .pf-ins-legend > span {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
    color: var(--pf-body);
    font-size: 0.82rem;
    font-weight: 600;
}

#profile-view .pf-ins-legend b {
    color: #fff;
}

#profile-view .pf-ins-legend small {
    color: var(--pf-faint);
    font-size: 0.74rem;
    font-weight: 500;
}

#profile-view .pf-ins-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-1px);
}

#profile-view .pf-ins-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#profile-view .pf-ins-art {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
}

#profile-view .pf-ins-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#profile-view .pf-ins-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

#profile-view .pf-ins-name {
    overflow: hidden;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-view .pf-ins-col small {
    color: var(--pf-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

#profile-view .pf-ins-v {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}

#profile-view .pf-ins-v small {
    color: var(--pf-muted);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

#profile-view .pf-ins-d {
    color: var(--pf-body);
    font-size: 0.78rem;
    font-weight: 600;
}

#profile-view .pf-ins-d i {
    font-size: 0.7rem;
    color: var(--primary-soft, var(--primary));
}

#profile-view .pf-ins-bars {
    display: grid;
    gap: 9px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

#profile-view .pf-ins-bars li {
    display: grid;
    grid-template-columns: minmax(70px, 30%) minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
}

#profile-view .pf-ins-bn {
    overflow: hidden;
    color: var(--pf-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-view .pf-ins-bt {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

#profile-view .pf-ins-bt > i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
}

#profile-view .pf-ins-bv {
    color: var(--pf-muted);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

#profile-view .pf-ins-wait {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    color: var(--pf-muted);
    font-size: 0.82rem;
}

#profile-view .pf-ins-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    height: 92px;
    margin-top: 4px;
}

#profile-view .pf-ins-wd {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

#profile-view .pf-ins-wc {
    position: relative;
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#profile-view .pf-ins-wc > i {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(22px, 70%);
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-50%);
}

#profile-view .pf-ins-wd.is-top .pf-ins-wc > i {
    background: var(--primary);
}

#profile-view .pf-ins-wl {
    color: var(--pf-faint);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

#profile-view .pf-ins-wd.is-top .pf-ins-wl {
    color: #fff;
}

#profile-view .pf-ins-tod {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

#profile-view .pf-ins-tc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.035);
}

#profile-view .pf-ins-tc small {
    overflow: hidden;
    color: var(--pf-faint);
    font-size: 0.72rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#profile-view .pf-ins-tc b {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
}

#profile-view .pf-ins-tc.is-top {
    border-color: rgba(var(--primary-rgb), 0.32);
    background: rgba(var(--primary-rgb), 0.1);
}

#tc-yir {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #dcdce4;
    font-family: Inter, system-ui, sans-serif;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

#tc-yir *,
#tc-yir *::before,
#tc-yir *::after {
    box-sizing: border-box;
}

#tc-yir .yir-scrim {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 10, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: pf-fade 0.22s ease-out both;
}

#tc-yir .yir-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    height: min(780px, calc(100vh - 48px));
    height: min(780px, calc(100dvh - 48px));
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(180deg, rgba(24, 25, 40, 0.94), rgba(9, 10, 17, 0.97));
    box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.8);
    isolation: isolate;
    animation: yir-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#tc-yir .yir-bg {
    position: absolute;
    inset: -40px;
    z-index: -2;
    background-position: center;
    background-size: cover;
    filter: blur(38px) saturate(1.2);
    opacity: 0.32;
}

#tc-yir .yir-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 60% at 15% 0%, rgba(var(--primary-rgb), 0.3), transparent 60%),
        linear-gradient(180deg, transparent 40%, rgba(6, 7, 13, 0.85));
}

#tc-yir .yir-panel.is-dec::before {
    background:
        radial-gradient(120% 60% at 15% 0%, rgba(var(--primary-rgb), 0.42), transparent 62%),
        linear-gradient(180deg, transparent 40%, rgba(6, 7, 13, 0.85));
}

#tc-yir .yir-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#tc-yir .yir-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 0 20px;
}

#tc-yir .yir-prog {
    display: flex;
    flex: 1;
    gap: 4px;
}

#tc-yir .yir-prog > span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

#tc-yir .yir-prog > span > i {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
    transition: width 0.3s ease-out;
}

#tc-yir .yir-prog > span[data-s="done"] > i,
#tc-yir .yir-prog > span[data-s="now"] > i {
    width: 100%;
}

#tc-yir .yir-prog > span[data-s="done"] > i {
    opacity: 0.6;
}

#tc-yir button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

#tc-yir button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#tc-yir .yir-x,
#tc-yir .yir-arrow {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

#tc-yir .yir-x:hover,
#tc-yir .yir-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
}

#tc-yir .yir-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

#tc-yir .yir-arrow--next {
    display: inline-flex;
    gap: 8px;
    width: auto;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

#tc-yir .yir-arrow--next i {
    font-size: 0.78rem;
}

#tc-yir .yir-stage {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 12px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

#tc-yir .yir-s {
    display: flex;
    flex-direction: column;
    animation: yir-fade 0.24s ease-out both;
}

#tc-yir .yir-stage[data-dir="fwd"] .yir-s {
    animation-name: yir-in-r;
}

#tc-yir .yir-stage[data-dir="back"] .yir-s {
    animation-name: yir-in-l;
}

#tc-yir .yir-kicker {
    color: var(--primary-soft, var(--primary));
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#tc-yir .yir-h {
    margin: 10px 0 26px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

#tc-yir .yir-big b {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 5.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

#tc-yir .yir-big span {
    display: block;
    margin-top: 8px;
    color: var(--primary-soft, var(--primary));
    font-size: 1rem;
    font-weight: 700;
}

#tc-yir .yir-p {
    margin: 14px 0 0;
    color: #dcdce4;
    font-size: 0.98rem;
    line-height: 1.5;
}

#tc-yir .yir-fine {
    margin: 12px 0 0;
    color: #8a8a99;
    font-size: 0.78rem;
    line-height: 1.45;
}

#tc-yir .yir-fine b {
    color: #fff;
}

#tc-yir .yir-when {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #a5a5b4;
    font-size: 0.86rem;
}

#tc-yir .yir-t {
    margin: 8px 0 18px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

#tc-yir .yir-t em {
    color: var(--primary-soft, var(--primary));
    font-style: normal;
}

#tc-yir .yir-t--big {
    margin-bottom: 0;
    font-size: 3rem;
    line-height: 1;
}

#tc-yir .yir-top5 {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#tc-yir .yir-top5 li {
    display: grid;
    grid-template-columns: 22px 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

#tc-yir .yir-rank {
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
}

#tc-yir .yir-top5 li:first-child .yir-rank {
    color: var(--primary-soft, var(--primary));
}

#tc-yir .yir-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7);
}

#tc-yir .yir-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#tc-yir .yir-poster.is-empty::after {
    content: '\f008';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.28);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

#tc-yir .yir-li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#tc-yir .yir-li b {
    overflow: hidden;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tc-yir .yir-li small {
    color: #a5a5b4;
    font-size: 0.78rem;
}

#tc-yir .yir-bars {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

#tc-yir .yir-bars li {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
}

#tc-yir .yir-bn {
    overflow: hidden;
    color: #dcdce4;
    font-size: 0.88rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tc-yir .yir-bt {
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

#tc-yir .yir-bt > i {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: var(--primary);
}

#tc-yir .yir-bars li + li .yir-bt > i {
    background: rgba(var(--primary-rgb), 0.6);
}

#tc-yir .yir-bv {
    color: #a5a5b4;
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

#tc-yir .yir-wait {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: #a5a5b4;
    font-size: 0.9rem;
}

#tc-yir .yir-months {
    display: flex;
    gap: 6px;
    height: 130px;
    margin-top: 26px;
}

#tc-yir .yir-m {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

#tc-yir .yir-mc {
    position: relative;
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#tc-yir .yir-mc > i {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(20px, 80%);
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, 0.24);
    transform: translateX(-50%);
}

#tc-yir .yir-m.is-top .yir-mc > i {
    background: var(--primary);
}

#tc-yir .yir-ml {
    color: #8a8a99;
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

#tc-yir .yir-m.is-top .yir-ml {
    color: #fff;
}

#tc-yir .yir-ends {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#tc-yir .yir-end {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

#tc-yir .yir-poster--lg {
    margin-bottom: 8px;
    border-radius: 14px;
}

#tc-yir .yir-end small {
    color: var(--primary-soft, var(--primary));
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#tc-yir .yir-end b {
    overflow: hidden;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tc-yir .yir-end > span:last-child {
    color: #a5a5b4;
    font-size: 0.8rem;
}

#tc-yir .yir-facts {
    display: grid;
    gap: 14px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

#tc-yir .yir-facts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #dcdce4;
    font-size: 0.93rem;
    line-height: 1.45;
}

#tc-yir .yir-facts li > i {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--primary-soft, var(--primary));
    font-size: 0.85rem;
}

#tc-yir .yir-facts li > span {
    padding-top: 6px;
}

#tc-yir .yir-facts b {
    color: #fff;
}

#tc-yir .yir-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

#tc-yir .yir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#tc-yir .yir-btn:hover {
    background: rgba(255, 255, 255, 0.13);
}

#tc-yir .yir-btn--primary {
    border-color: transparent;
    background: var(--btn-bg, var(--primary));
    color: var(--on-primary, #fff);
    box-shadow: 0 10px 24px -10px rgba(var(--primary-rgb), 0.7);
}

#tc-yir .yir-btn--primary:hover {
    background: var(--btn-bg, var(--primary));
    transform: translateY(-1px);
}

#tc-yir .yir-s--empty {
    align-items: flex-start;
}

#tc-yir .yir-empty-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(var(--primary-rgb), 0.16);
    color: var(--primary-soft, var(--primary));
    font-size: 1.3rem;
}

#tc-yir .yir-s--empty .yir-h {
    margin-bottom: 6px;
    font-size: 1.8rem;
}

#tc-yir .yir-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px 18px;
}

#tc-yir .yir-nav[hidden] {
    display: none;
}

#tc-yir .yir-count {
    color: #8a8a99;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#tc-yir[data-state="closing"] .yir-scrim,
#tc-yir[data-state="closing"] .yir-panel {
    animation: yir-out 0.18s ease-in both;
}

@keyframes yir-pop {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes yir-out {
    to { opacity: 0; }
}

@keyframes yir-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes yir-in-r {
    from { opacity: 0; transform: translateX(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes yir-in-l {
    from { opacity: 0; transform: translateX(-22px); }
    to { opacity: 1; transform: none; }
}

@media (max-height: 720px) {
    #tc-yir .yir-big b {
        font-size: 4.2rem;
    }

    #tc-yir .yir-h {
        margin-bottom: 18px;
        font-size: 1.8rem;
    }

    #tc-yir .yir-top5 {
        gap: 6px;
    }

    #tc-yir .yir-top5 li {
        grid-template-columns: 22px 36px minmax(0, 1fr);
    }

    #tc-yir .yir-ends {
        grid-template-columns: repeat(2, minmax(0, 120px));
    }

    #tc-yir .yir-months {
        height: 100px;
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
    #profile-view .pf-ins-tile {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    #profile-view .pf-yir {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "text art" "cta cta";
        gap: 16px;
        padding: 18px;
    }

    #profile-view .pf-yir-title {
        font-size: 1.18rem;
    }

    #profile-view .pf-yir.is-dec .pf-yir-title {
        font-size: 1.3rem;
    }

    #profile-view .pf-yir-sub {
        white-space: normal;
    }

    #profile-view .pf-yir-art img {
        width: 40px;
    }

    #profile-view .pf-yir-art img:nth-child(n+4) {
        display: none;
    }

    #profile-view .pf-yir-cta {
        width: 100%;
    }

    #profile-view .pf-ins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #profile-view .pf-ins-tile,
    #profile-view .pf-ins--wide,
    #profile-view .pf-ins--wide:last-child:nth-child(4) {
        grid-column: 1 / -1;
        padding: 14px 16px;
    }

    #profile-view .pf-ins--series,
    #profile-view .pf-ins--month {
        grid-column: span 1;
    }
}

@media (max-width: 420px) {
    #profile-view .pf-ins--series,
    #profile-view .pf-ins--month {
        grid-column: 1 / -1;
    }

    #profile-view .pf-ins-tc {
        padding: 8px;
    }

    #profile-view .pf-ins-tc small {
        font-size: 0.66rem;
    }
}

@media (max-width: 520px) {
    #tc-yir {
        padding: 0;
    }

    #tc-yir .yir-panel {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: 0;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    #tc-yir .yir-stage {
        padding: 12px 22px;
    }

    #tc-yir .yir-h {
        font-size: 1.95rem;
    }
}

html.reduce-motion #tc-yir *,
html.reduce-motion #profile-view .pf-yir {
    animation: none !important;
    transition: none !important;
}

html.reduce-motion #profile-view .pf-yir:hover,
html.reduce-motion #profile-view button.pf-ins-tile:hover {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    #tc-yir *,
    #profile-view .pf-yir {
        animation: none !important;
        transition: none !important;
    }

    #profile-view .pf-yir:hover,
    #profile-view button.pf-ins-tile:hover {
        transform: none;
    }
}

html.no-gpu #profile-view .pf-yir {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(115deg, rgba(42, 36, 72, 0.96), rgba(20, 21, 32, 0.96));
}

html.no-gpu #profile-view .pf-yir.is-empty {
    background: linear-gradient(180deg, rgba(24, 25, 36, 0.96), rgba(16, 17, 26, 0.96));
}

html.no-gpu #tc-yir .yir-scrim {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(4, 5, 10, 0.9);
}

html.no-gpu #tc-yir .yir-bg {
    display: none;
}

html.no-gpu #tc-yir .yir-panel {
    background: linear-gradient(180deg, #181928, #0b0c14);
}
