.danmu-row {
    display: flex;
    align-items: center;
    height: 30px;
    box-sizing: border-box;
    padding: 0 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.danmu-row:hover {
    background-color: var(--chip-hover);
}

.danmu-row.active {
    background-color: rgba(155, 106, 156, 0.15);
    border-left: 3px solid var(--primary);
}

[data-theme="dark"] .danmu-row.active {
    background-color: rgba(181, 131, 182, 0.2);
}

.danmu-time-col {
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
    min-width: 95px;
    flex-shrink: 0;
}

.danmu-text-col {
    color: var(--text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#flip-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.3s ease;
}

#view-flip #flip-list-container>.Box-row {
    margin-bottom: 0 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] #view-flip #flip-list-container>.Box-row {
    background: rgba(24, 28, 34, 0.82);
}

#view-messages #outputList>.Box-row,
#contextListContainer>.Box-row {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] #view-messages #outputList>.Box-row,
[data-theme="dark"] #contextListContainer>.Box-row {
    background: rgba(24, 28, 34, 0.82);
}

.search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.search-item:hover {
    background-color: #f0f8ff;
}

.team-tag {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-sub);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.trip-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trip-card {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .trip-card {
    background: rgba(255, 255, 255, 0.86);
}

.trip-card-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trip-date {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.2;
}

.trip-date-day {
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
}

.trip-date-time {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.trip-content {
    min-width: 0;
    flex: 1;
}

.trip-title {
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.trip-subtitle,
.trip-desc {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.55;
}

.trip-subtitle {
    color: color-mix(in srgb, var(--text-sub) 78%, var(--text));
    font-weight: 600;
}

.trip-desc {
    color: var(--text-sub);
}

.trip-info-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.trip-info-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.5;
}

.trip-info-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    color: color-mix(in srgb, var(--primary) 74%, var(--text));
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
    white-space: nowrap;
}

.trip-info-value {
    min-width: 0;
    color: color-mix(in srgb, var(--text-sub) 70%, var(--text));
}

html[data-theme="dark"] .trip-info-label {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(205, 220, 236, 0.9);
}

html[data-theme="dark"] .trip-info-value {
    color: var(--text-sub);
}

.trip-ticket-btn {
    width: 72px;
    min-height: 46px;
    flex-shrink: 0;
    font-weight: 800;
}

@media (max-width: 720px) {
    .trip-card-main {
        flex-direction: column;
        gap: 10px;
    }

    .trip-date,
    .trip-ticket-btn {
        width: 100%;
    }

    .trip-date {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .trip-info-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 8px;
    }
}

[data-theme="dark"] .team-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-sub);
}

.suggestion-item:hover .team-tag {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .suggestion-item:hover .team-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-tip {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #0050b3;
    margin-top: 15px;
    line-height: 1.6;
}

.page-container {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.page {
    display: none;
    height: 100%;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.page.active {
    display: flex;
}

.tools-header {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    align-items: flex-end;
}

.tools-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.tools-label {
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

.tools-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#msg-result-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
    padding: 15px;
}

#outputList .msg-item {
    content-visibility: auto;
    contain-intrinsic-size: 60px;
}

.sidebar-btn.active {
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    color: #fff;
    border-left: 4px solid #1890ff;
}

.title-info .control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    -webkit-app-region: no-drag;
}

.title-info .control-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.vod-row-name .btn {
    width: 80px;
    justify-content: center;
    flex-shrink: 0;
}

.download-manager {
    min-height: 40px;
    transition: all 0.3s ease;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.btn-cancel {
    background: #ff4d4f !important;
    color: white !important;
    padding: 2px 6px;
    font-size: 10px;
    height: 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #ff7875 !important;
}

.download-item {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
}

.download-name {
    text-overflow: ellipsis;
    overflow: hidden;
    flex: 1;
    margin-right: 10px;
}

.progress-container {
    height: 6px;
    background: var(--bar-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.download-status-text {
    font-size: 10px;
    color: var(--text-sub);
    margin-top: 4px;
    display: block;
}

.download-detail-row {
    font-size: 11px;
    color: var(--text-sub);
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.download-title-line {
    font-weight: bold;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.btn-downloading {
    background: var(--bar-bg) !important;
    color: var(--text-sub) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-success {
    background: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
    cursor: default;
}


[data-theme="dark"] .btn-success {
    background: #238636 !important;
    border-color: #238636 !important;
    color: #ffffff !important;
    box-shadow: 0 0 5px rgba(35, 134, 54, 0.4);
}

.window-controls {
    display: flex;
    height: 100%;
    -webkit-app-region: no-drag;
}

.control-btn {
    width: 46px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: rgba(32, 32, 32, 0.78);
    transition: background-color 0.16s ease, color 0.16s ease;
    font-family: "Segoe UI Symbol";
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(32, 32, 32, 0.92);
}

.control-btn svg {
    transition: transform 0.12s ease;
}

.control-btn:active svg {
    transform: scale(0.94);
}

.control-btn.close-btn:hover {
    background: #c42b1c !important;
    color: #fff !important;
}

[data-theme="dark"] .control-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .control-btn {
    color: rgba(255, 255, 255, 0.76);
}

.custom-title-bar {
    height: 32px;
    background: var(--sidebar-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    user-select: none;
    -webkit-app-region: drag;
    z-index: 9999;
    position: relative;
}

html[data-platform="darwin"] .custom-title-bar {
    justify-content: flex-start;
    padding-left: 72px;
    box-sizing: border-box;
}

html[data-platform="darwin"] .window-controls {
    display: none;
}

html[data-platform="darwin"] .title-info {
    padding-left: 10px;
}

.title-info {
    display: flex;
    align-items: center;
    padding-left: 12px;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.title-logo {
    width: 18px;
    height: 18px;
}

.title-bar-center-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(320px, calc(100vw - 360px));
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.94);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.title-bar-center-title.is-visible {
    opacity: 1;
}

[data-theme="light"] .title-bar-center-title {
    color: rgba(36, 41, 46, 0.88);
}

html[data-platform="darwin"] .title-bar-center-title {
    max-width: min(320px, calc(100vw - 300px));
}

:root {
    --primary: #9b6a9c;
    --primary-hover: #855886;
    --bg: #f6f8fa;
    --card: rgba(255, 255, 255, 0.75);
    --sidebar-bg: rgba(255, 255, 255, 0.70);
    --text: #24292e;
    --text-sub: #666666;
    --border: rgba(225, 228, 232, 0.5);
    --input-bg: rgba(255, 255, 255, 0.8);
    --blockquote-bg: rgba(241, 248, 255, 0.8);
    --chip-bg: rgba(255, 255, 255, 0.8);
    --chip-hover: #f0f0f0;
    --bar-bg: #eee;
    --rank-1: #ffd700;
    --rank-2: #c0c0c0;
    --rank-3: #cd7f32;
}

[data-theme="dark"] {
    --primary: #b583b6;
    --primary-hover: #cf9acf;
    --bg: #0d1117;
    --card: rgba(22, 27, 34, 0.75);
    --sidebar-bg: rgba(22, 27, 34, 0.70);
    --text: #c9d1d9;
    --text-sub: #8b949e;
    --border: rgba(48, 54, 61, 0.5);
    --input-bg: rgba(13, 17, 23, 0.6);
    --blockquote-bg: rgba(31, 36, 44, 0.6);
    --chip-bg: rgba(33, 38, 45, 0.8);
    --chip-hover: #30363d;
    --bar-bg: #30363d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    transition: background-color 0.35s ease, color 0.35s ease, background-image 0.5s ease;
}

.app-container {
    display: flex;
    width: 100%;
    height: calc(100% - 32px);
}

.sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--sidebar-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px 20px 20px;
    overflow-y: scroll;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    white-space: nowrap;
}

.sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none;
    opacity: 0;
}

.sidebar.home-hidden {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    overflow: hidden;
}

.sidebar.app-sidebar-disabled {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
    overflow: hidden;
}

#media-list-controls>div {
    flex-wrap: wrap;
}

.main-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.main-content.home-mode {
    padding: 14px 16px 16px;
    box-sizing: border-box;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border);
}

.sidebar-group:last-child {
    border-bottom: none;
    margin-top: auto;
    padding-bottom: 0;
}

.group-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-full {
    width: 100%;
}

.btn {
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--input-bg);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--chip-hover);
    border-color: #888;
}

.home-view {
    width: 100%;
    min-height: 0;
    transition: background 0.35s ease, background-color 0.35s ease;
}

.home-shell {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.35s ease, color 0.35s ease;
}

.home-footer-credit {
    margin-top: auto;
    padding: 4px 0 2px;
    text-align: center;
    font-size: 11px;
    color: var(--text-sub);
    opacity: 0.55;
    user-select: none;
}

.home-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        linear-gradient(140deg, rgba(109, 154, 222, 0.16), rgba(224, 153, 215, 0.1));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.home-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.home-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    color: var(--text);
}

.home-hero p {
    margin: 14px 0 0;
    max-width: 640px;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.8;
}

.home-hero-side {
    min-width: 140px;
    align-self: flex-start;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-hero-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.home-version {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.home-panel {
    --home-accent: rgba(181, 131, 182, 0.85);
    --home-accent-soft: rgba(181, 131, 182, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.home-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--home-accent), transparent 70%);
    opacity: 0.95;
    z-index: 0;
}

.home-panel>* {
    position: relative;
    z-index: 1;
}

.home-panel-messages {
    --home-accent: rgba(214, 123, 207, 0.9);
    --home-accent-soft: rgba(214, 123, 207, 0.22);
}

.home-panel-live {
    --home-accent: rgba(88, 142, 232, 0.9);
    --home-accent-soft: rgba(88, 142, 232, 0.24);
}

.home-panel-library {
    --home-accent: rgba(92, 190, 124, 0.9);
    --home-accent-soft: rgba(92, 190, 124, 0.22);
}

.home-panel-pocket {
    --home-accent: rgba(72, 194, 201, 0.9);
    --home-accent-soft: rgba(72, 194, 201, 0.22);
}

.home-panel-flip {
    --home-accent: rgba(233, 108, 156, 0.9);
    --home-accent-soft: rgba(233, 108, 156, 0.22);
}

.home-panel-settings {
    --home-accent: rgba(224, 176, 72, 0.9);
    --home-accent-soft: rgba(224, 176, 72, 0.22);
}

.home-panel-data {
    --home-accent: rgba(126, 142, 214, 0.9);
    --home-accent-soft: rgba(126, 142, 214, 0.22);
}

.home-panel-yk1z {
    --home-accent: rgba(129, 196, 120, 0.92);
    --home-accent-soft: rgba(129, 196, 120, 0.22);
}

.home-panel-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
    transition: color 0.35s ease;
}

.home-panel-subtitle {
    color: var(--text-sub);
    font-size: 11px;
    line-height: 1.4;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.35s ease;
}

.home-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2px;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 84px);
    gap: 8px;
    justify-content: start;
}

.home-card {
    min-height: 0;
    aspect-ratio: 1 / 1;
    width: 84px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(14, 23, 38, 0.72);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.home-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--home-accent) 48%, var(--border));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px color-mix(in srgb, var(--home-accent) 28%, transparent);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(18, 29, 47, 0.8);
}

.home-card:active {
    transform: translateY(0);
}

.home-card-primary {
    border-color: var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(14, 23, 38, 0.72);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.home-card::after {
    content: "";
    position: absolute;
    inset: auto 8px 8px auto;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--home-accent) 70%, transparent);
    opacity: 0.8;
    pointer-events: none;
}

.home-card-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transition: color 0.35s ease;
}

.home-card-desc {
    display: none;
}

@media (max-width: 1360px) {
    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .home-card {
        width: 76px;
    }

    .home-card-grid {
        grid-template-columns: repeat(auto-fill, 76px);
    }
}

.view-toolbar-shell {
    margin-bottom: 18px;
}

.view-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.view-toolbar-grid-single {
    grid-template-columns: 1fr;
}

.view-toolbar-grid .sidebar-group {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.view-toolbar-grid .sidebar-group:last-child {
    margin-top: 0;
}

[data-theme="dark"] .view-toolbar-grid .sidebar-group {
    background: rgba(9, 14, 24, 0.56);
}

[data-theme="dark"] .home-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        linear-gradient(145deg, rgba(53, 91, 145, 0.4), rgba(120, 61, 117, 0.24));
}

[data-theme="dark"] .home-hero-side,
[data-theme="dark"] .home-panel {
    background: rgba(9, 14, 24, 0.56);
}

html[data-theme="light"] .home-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 253, 0.88));
    border-color: rgba(189, 198, 211, 0.82);
    box-shadow: 0 10px 26px rgba(58, 78, 109, 0.10);
    backdrop-filter: blur(10px);
}

html[data-theme="light"] .home-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 252, 0.88)),
        rgba(255, 255, 255, 0.8);
    border-color: rgba(171, 182, 196, 0.9);
    color: #24303f;
    box-shadow: 0 8px 18px rgba(60, 82, 116, 0.12);
}

html[data-theme="light"] .home-card:hover {
    border-color: color-mix(in srgb, var(--home-accent) 70%, rgba(171, 182, 196, 0.9));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 249, 0.92)),
        rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 22px rgba(60, 82, 116, 0.16);
}

html[data-theme="light"] .home-card-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 252, 0.88)),
        rgba(255, 255, 255, 0.92);
    border-color: rgba(171, 182, 196, 0.9);
}

html[data-theme="light"] .home-panel-title,
html[data-theme="light"] .home-card-title {
    color: #24303f;
}

html[data-theme="light"] .home-panel-subtitle {
    color: #5f6f84;
}

html[data-theme="light"] .main-content.home-mode {
    background: transparent;
    backdrop-filter: none;
}

html[data-theme="light"] .home-view {
    border-radius: 0;
}

@media (max-width: 880px) {
    .main-content.home-mode {
        padding: 16px;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .view-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        flex-direction: column;
    }

    .home-hero-side {
        width: 100%;
        min-width: 0;
    }
}

.btn-bg-change {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #fff;
    border: none;
}

.btn-bg-change:hover {
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-control {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-control:focus {
    border-color: var(--primary);
}

.media-search-shell {
    width: 312px;
    max-width: 100%;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--input-bg) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.media-search-shell:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
    background: color-mix(in srgb, var(--input-bg) 92%, transparent);
}

.media-search-shell:focus-within {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
    background: color-mix(in srgb, var(--input-bg) 96%, var(--card));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.media-search-shell::after {
    display: none;
}

.media-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: color-mix(in srgb, var(--text-sub) 82%, var(--text));
    z-index: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.media-search-shell:focus-within .media-search-icon {
    color: var(--primary);
    transform: translateY(-50%);
}

.media-search-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.media-search-input {
    height: 100%;
    padding: 0 16px 0 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
}

.media-search-input:focus {
    border: none;
    box-shadow: none;
}

.media-search-input::placeholder {
    color: color-mix(in srgb, var(--text-sub) 78%, transparent);
}

html[data-theme="dark"] .media-search-shell {
    background: rgba(18, 24, 34, 0.46);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .media-search-shell:hover {
    background: rgba(20, 28, 40, 0.56);
    border-color: color-mix(in srgb, var(--primary) 30%, rgba(148, 163, 184, 0.24));
}

html[data-theme="dark"] .media-search-shell:focus-within {
    border-color: color-mix(in srgb, var(--primary) 55%, rgba(148, 163, 184, 0.24));
    background: rgba(22, 30, 43, 0.68);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .media-search-icon {
    color: color-mix(in srgb, var(--text-sub) 82%, var(--text));
}

html[data-theme="dark"] .media-search-input::placeholder {
    color: color-mix(in srgb, var(--text-sub) 74%, transparent);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--chip-bg);
    color: var(--text-sub);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    flex-grow: 1;
    justify-content: center;
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-chip:hover:not(.active) {
    background: var(--chip-hover);
}

.bilibili-live-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    position: relative;
}

.bilibili-live-room-strip {
    --bilibili-room-gap: 10px;
    --bilibili-room-count: 7;
    --bilibili-visible-room-count: 7;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--bilibili-room-gap);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 2px;
    align-items: stretch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bilibili-live-room-strip::-webkit-scrollbar {
    display: none;
}

.bilibili-room-btn {
    flex: 0 0 calc((100% - (var(--bilibili-visible-room-count) - 1) * var(--bilibili-room-gap)) / var(--bilibili-visible-room-count));
    min-width: 108px;
    max-width: 180px;
    width: auto;
    height: 72px;
    box-sizing: border-box;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 25, 34, 0.88);
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    overflow: hidden;
}

.bilibili-room-btn:hover {
    border-color: rgba(214, 144, 221, 0.6);
    background: rgba(52, 39, 64, 0.92);
    transform: translateY(-1px);
}

.bilibili-room-btn.active {
    border-color: var(--primary);
    background: rgba(92, 66, 112, 0.92);
    box-shadow: 0 10px 24px rgba(214, 144, 221, 0.16);
}

.bilibili-room-btn.is-playing {
    border-color: #ff7e9a;
    background: rgba(92, 49, 64, 0.94);
    box-shadow: 0 0 0 1px rgba(255, 126, 154, 0.35), 0 12px 28px rgba(255, 126, 154, 0.18);
}

.bilibili-room-btn-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.bilibili-room-btn-badge {
    font-size: 10px;
    color: var(--text-sub);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 0.95;
    margin: 0;
}

.bilibili-room-btn-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.bilibili-room-btn.is-live .bilibili-room-btn-badge {
    color: #ff8c9a;
}

.bilibili-room-btn.is-live .bilibili-room-btn-badge::before {
    background: #ff5d73;
    box-shadow: 0 0 10px rgba(255, 93, 115, 0.5);
}

.bilibili-room-btn.is-offline .bilibili-room-btn-badge {
    color: var(--text-sub);
}

.bilibili-live-summary {
    font-size: 13px;
    color: var(--text-sub);
    min-height: 0;
    display: none;
    margin: 10px 2px 0;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.bilibili-live-now-playing {
    min-height: 0;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(17, 20, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    position: relative;
}

.bilibili-live-now-text {
    min-width: 0;
    padding-right: 260px;
}

.bilibili-live-now-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}

.bilibili-live-now-subtitle {
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bilibili-live-now-meta {
    font-size: 13px;
    color: var(--text-sub);
    text-align: right;
    white-space: nowrap;
    line-height: 1.25;
    position: absolute;
    right: 18px;
    top: 38px;
}

.bilibili-live-player-shell {
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: calc(100vh - 280px);
}

.bilibili-live-clip-toolbar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bilibili-live-clip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 112px;
    gap: 14px;
    align-items: end;
}

.bilibili-live-clip-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bilibili-live-clip-label {
    font-size: 11px;
    color: var(--text-sub);
}

.bilibili-live-clip-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.bilibili-live-clip-row .btn,
.bilibili-live-clip-action .btn {
    height: 38px;
    padding: 0 15px;
    line-height: 38px;
    white-space: nowrap;
}

.bilibili-live-clip-display {
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.bilibili-live-clip-action {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.bilibili-live-clip-duration {
    font-size: 11px;
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

.bilibili-live-clip-action .btn-primary {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

#bilibili-live-player {
    position: absolute;
    inset: 0;
}

#bilibili-live-player > * {
    width: 100%;
    height: 100%;
}

#bilibili-live-player-placeholder {
    position: absolute;
    inset: 0;
    margin-top: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}

#bilibili-live-player-placeholder h3,
#bilibili-live-player-placeholder p {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
}

[data-theme="light"] .bilibili-room-btn {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(31, 41, 55, 0.12);
}

[data-theme="light"] .bilibili-room-btn:hover {
    background: rgba(244, 232, 246, 0.98);
}

[data-theme="light"] .bilibili-room-btn.active {
    background: rgba(239, 220, 243, 0.98);
}

[data-theme="light"] .bilibili-room-btn.is-playing {
    background: rgba(255, 232, 238, 0.98);
}

[data-theme="light"] .bilibili-live-now-playing {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(31, 41, 55, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
    .bilibili-live-summary {
        position: static;
        max-width: 100%;
        text-align: left;
    }

    .bilibili-live-now-playing {
        position: relative;
    }

    .bilibili-live-now-text {
        padding-right: 0;
    }

    .bilibili-live-now-meta {
        position: static;
        text-align: left;
        margin-top: 4px;
    }

    .bilibili-live-clip-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.bilibili-live-status-text {
    max-width: min(42vw, 520px);
    display: block;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-bar {
    font-size: 12px;
    color: var(--text-sub);
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
}

.credit-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-sub);
    opacity: 0.5;
    transition: opacity 0.2s;
    text-decoration: none;
}

.credit-link:hover {
    opacity: 1;
    text-decoration: underline;
}

#bgInput,
#manualImportBtn {
    display: none;
}

.list-container {
    max-width: 95%;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.media-library-header {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

.media-library-header .page-header-left {
    width: 100%;
}

.media-library-header .media-search-shell {
    width: 100%;
    max-width: none;
}

.flip-toolbar-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.flip-toolbar-header .page-header-left {
    width: auto;
    flex: 0 0 auto;
}

.flip-toolbar-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    margin-left: auto;
}

.page-title {
    margin: 0;
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
    white-space: nowrap;
}

body.topbar-page-title-enabled .page-header .page-title {
    display: none;
}

body.topbar-page-title-enabled .page-header {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

body.topbar-page-title-enabled .page-header:has(> .page-title:only-child),
body.topbar-page-title-enabled .page-header:has(> div:only-child > .page-title:only-child) {
    display: none;
}

body.topbar-page-title-enabled #view-media {
    padding-top: 14px !important;
}

body.topbar-page-title-enabled #view-login .list-container,
body.topbar-page-title-enabled #view-downloads .list-container,
body.topbar-page-title-enabled #view-database .list-container,
body.topbar-page-title-enabled #view-fetch .list-container,
body.topbar-page-title-enabled #view-bilibili-live .list-container,
body.topbar-page-title-enabled #view-flip .list-container,
body.topbar-page-title-enabled #view-profile .list-container,
body.topbar-page-title-enabled #view-open-live .list-container,
body.topbar-page-title-enabled #view-send-flip .list-container,
body.topbar-page-title-enabled #view-settings .list-container,
body.topbar-page-title-enabled #view-photos .list-container,
body.topbar-page-title-enabled #view-trip .list-container,
body.topbar-page-title-enabled #view-room-album .list-container,
body.topbar-page-title-enabled #view-member-dynamic .list-container,
body.topbar-page-title-enabled #view-room-radio .list-container,
body.topbar-page-title-enabled #view-audio-programs .list-container,
body.topbar-page-title-enabled #view-community .list-container,
body.topbar-page-title-enabled #view-video-library .list-container,
body.topbar-page-title-enabled #view-music-library .list-container,
body.topbar-page-title-enabled #view-official-site-music .list-container,
body.topbar-page-title-enabled #view-followed-rooms .list-container,
body.topbar-page-title-enabled #view-private-messages .private-messages-layout {
    padding-top: 14px;
}

.page-status {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .page-title {
        font-size: 20px;
    }
}

#view-downloads .list-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#downloads-panel-host {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#view-downloads #sb-download {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 0;
    border-bottom: none;
    margin-top: 0;
    min-height: 0;
    flex: 1;
}

#view-downloads #downloadList.download-manager {
    margin-top: 0;
    max-height: none;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    gap: 12px;
}

#view-downloads .download-item {
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

#view-downloads .download-title-line {
    font-size: 16px;
}

#view-downloads .download-detail-row {
    font-size: 13px;
}

#view-downloads .download-status-text {
    font-size: 12px;
    margin-top: 6px;
}

#view-downloads .progress-container {
    height: 8px;
    border-radius: 999px;
}

.invoice-shell {
    max-width: 1180px;
    height: calc(100% - 4px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.invoice-header {
    margin-bottom: 16px;
    flex: 0 0 auto;
}

.invoice-root {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

.invoice-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 16px;
    align-items: start;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.invoice-panel {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 8px;
    padding: 16px;
}

.invoice-orders-panel {
    height: auto;
    max-height: calc(100vh - 132px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.invoice-apply-panel {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.invoice-apply-panel::-webkit-scrollbar {
    display: none;
}

.invoice-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex: 0 0 auto;
}

.invoice-month-picker,
.invoice-dropdown-wrap {
    position: relative;
    flex: 0 0 auto;
}

.invoice-month-trigger,
.invoice-dropdown-input {
    height: 38px;
    cursor: pointer;
    text-align: left;
}

.invoice-month-trigger {
    width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.invoice-sort-select {
    max-width: 170px;
}

.invoice-dropdown-wrap {
    width: 140px;
}

.invoice-field-dropdown {
    width: 100%;
}

.invoice-dropdown-input {
    width: 100%;
    padding-right: 26px;
}

.invoice-control-arrow,
.invoice-dropdown-arrow {
    color: var(--text-sub);
    font-size: 10px;
    pointer-events: none;
}

.invoice-dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.invoice-month-dropdown {
    width: 280px;
}

.invoice-month-panel {
    gap: 0;
}

.invoice-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.invoice-month-option {
    aspect-ratio: auto;
    height: 36px;
    border-radius: 10px;
    font-weight: 700;
}

.invoice-month-panel .flip-date-clear {
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.invoice-month-panel .flip-date-clear:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.invoice-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-sub);
    font-size: 12px;
    white-space: nowrap;
}

.invoice-stats-btn {
    margin-left: auto;
}

.invoice-tip {
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.invoice-configs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.invoice-configs span {
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-sub);
    font-size: 12px;
    padding: 5px 8px;
}

.invoice-order-list {
    display: grid;
    gap: 8px;
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100vh - 206px);
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 18px;
    scroll-padding-bottom: 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.invoice-order-list::-webkit-scrollbar {
    display: none;
}

.invoice-order-list::after {
    content: "";
    display: block;
    height: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.invoice-month-group {
    display: grid;
    gap: 8px;
}

.invoice-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 2px;
}

.invoice-month-header strong {
    color: var(--text-sub);
    font-size: 12px;
}

.invoice-order-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 90px 72px;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    background: var(--input-bg);
    cursor: pointer;
}

.invoice-order-row.is-selected {
    border-color: var(--primary);
}

.invoice-order-row.is-disabled {
    cursor: default;
    opacity: 0.62;
}

.invoice-order-check {
    display: flex;
    justify-content: center;
}

.invoice-order-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.invoice-order-name,
.invoice-order-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-order-name {
    color: var(--text);
    font-weight: 700;
}

.invoice-order-meta,
.invoice-order-status {
    color: var(--text-sub);
    font-size: 12px;
}

.invoice-order-fee {
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

.invoice-order-status {
    text-align: right;
}

.invoice-empty {
    border: 1px dashed var(--border);
    border-radius: 8px;
    color: var(--text-sub);
    padding: 28px;
    text-align: center;
}

.invoice-summary {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.invoice-summary-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.invoice-summary span,
.invoice-summary-source {
    color: var(--text-sub);
    font-size: 13px;
}

.invoice-summary-source {
    line-height: 1.4;
    word-break: break-word;
}

.invoice-summary strong {
    color: var(--primary);
    font-size: 24px;
}

.invoice-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.invoice-field span {
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 700;
}

.invoice-submit-btn {
    margin-top: 6px;
}

.invoice-status {
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.5;
    min-height: 18px;
    margin-top: 10px;
}

.invoice-status[data-type="success"] {
    color: #28a745;
}

.invoice-status[data-type="error"] {
    color: #ff4d4f;
}

.invoice-stats-modal {
    max-width: 520px;
}

.invoice-stats-modal-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.invoice-stats-modal-summary span {
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 700;
}

.invoice-stats-modal-summary strong {
    color: var(--primary);
    font-size: 30px;
}

.invoice-stats-modal-list {
    display: grid;
    gap: 0;
    padding: 8px 0;
}

.invoice-stats-modal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 110px;
    gap: 12px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-sub);
    font-size: 13px;
}

.invoice-stats-modal-row:last-child {
    border-bottom: 0;
}

.invoice-stats-modal-row strong,
.invoice-stats-modal-row b {
    color: var(--text);
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .invoice-grid {
        grid-template-columns: 1fr;
    }

    .invoice-order-row {
        grid-template-columns: 28px minmax(0, 1fr) 76px;
    }

    .invoice-order-status {
        grid-column: 2 / 4;
        text-align: left;
    }
}

.database-view-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

.database-frame-shell {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.database-root {
    width: 100%;
    min-height: 960px;
}

@media (max-width: 900px) {
    #view-database {
        padding: 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-gutter: auto;
    }

    #view-database .list-container,
    #view-database .database-view-shell,
    #view-database .database-frame-shell,
    #view-database .database-root {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #view-database .database-view-shell {
        min-height: 100dvh;
    }

    #view-database .database-root {
        min-height: auto;
    }
}

.database-loading,
.database-error {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--text-sub);
    background: var(--input-bg);
    text-align: center;
    line-height: 1.8;
}

#view-official-site-music {
    overflow: hidden !important;
}

.official-site-music-view-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.official-site-music-header {
    gap: 14px;
    margin-bottom: 14px;
}

body.topbar-page-title-enabled #view-official-site-music .page-header-left {
    display: none;
}

.official-site-music-header-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.official-site-music-search {
    position: relative;
    width: min(360px, 100%);
    flex-shrink: 0;
}

.official-site-music-toolbar {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: clamp(4px, 0.6vw, 8px);
    margin-bottom: 0;
    justify-content: flex-start;
    min-width: 0;
}

.official-site-music-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    padding: 0 clamp(8px, 0.9vw, 14px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-sub);
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.official-site-music-filter:hover,
.official-site-music-filter.is-active {
    border-color: var(--primary);
    background: var(--chip-hover);
    color: var(--primary);
}

.official-site-music-favorite-filter svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.official-site-music-favorite-filter.is-active svg path {
    fill: color-mix(in srgb, var(--primary) 26%, transparent);
}

.official-site-music-grid {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0 18px 0;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--input-bg) 78%, transparent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.official-site-music-grid::-webkit-scrollbar {
    display: none;
}

.official-site-music-grid.is-empty {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 72px 0 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.official-site-music-table {
    min-width: 780px;
}

.official-site-music-table-head,
.official-site-music-card {
    display: grid;
    grid-template-columns: 52px minmax(280px, 1fr) minmax(190px, 0.72fr) 96px 68px;
    gap: 14px;
    align-items: center;
}

.official-site-music-table-head {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 42px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: #f7f8fb;
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 700;
}

html[data-theme="dark"] .official-site-music-table-head {
    background: #11151b;
    color: #9aa4b2;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.official-site-music-sort {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.official-site-music-sort:hover,
.official-site-music-sort.is-active {
    color: var(--primary);
}

.official-site-music-sort span {
    width: 12px;
    color: var(--primary);
    font-size: 11px;
}

.official-site-music-sort span:empty {
    display: none;
}

.official-site-music-card {
    width: 100%;
    min-height: 62px;
    padding: 8px 18px;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
    border-radius: 0;
    background: color-mix(in srgb, var(--input-bg) 16%, transparent);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.official-site-music-card:hover,
.official-site-music-card.is-playing {
    background: color-mix(in srgb, var(--primary) 16%, var(--input-bg) 38%);
}

.official-site-music-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(77, 190, 238, 0.14);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
}

.official-site-music-index.has-cover {
    padding: 0;
    background: rgba(17, 17, 17, 0.72);
}

.official-site-music-index img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.official-site-music-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.official-site-music-title {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-site-music-meta {
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-site-music-row-index,
.official-site-music-table-text,
.official-site-music-table-time {
    overflow: hidden;
    color: var(--text-sub);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-site-music-row-index,
.official-site-music-table-time {
    font-variant-numeric: tabular-nums;
}

.official-site-music-table-text.is-empty {
    color: color-mix(in srgb, var(--text-sub) 42%, transparent);
}

.official-site-music-card.is-playing .official-site-music-title,
.official-site-music-card.is-playing .official-site-music-row-index {
    color: var(--primary);
}

.official-site-music-song-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.official-site-music-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-sub);
    font-size: 14px;
    text-align: center;
}

.official-site-music-table-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 40px 18px;
    color: var(--text-sub);
    font-size: 14px;
    text-align: center;
}

.official-site-music-player-wrap {
    position: relative;
    z-index: 20;
    --official-site-music-queue-bottom: 104px;
    flex-shrink: 0;
    padding-top: 15px;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.official-site-music-player {
    position: relative;
    z-index: 2;
    display: flex;
    width: 95%;
    padding: 16px 20px 12px;
    align-items: center;
    gap: 18px;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.official-site-music-disc {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.official-site-music-disc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.9;
}

.official-site-music-player-info {
    display: flex;
    flex: 0 1 34%;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.official-site-music-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 16px;
    min-width: 0;
}

.official-site-music-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ccc;
    box-shadow: 0 0 4px #ccc;
    transition: all 0.3s;
}

.official-site-music-status-dot.is-playing {
    background: #52c41a;
    box-shadow: 0 0 8px rgba(82, 196, 26, 0.72);
}

.official-site-music-player-info:not(.has-track) .official-site-music-status-dot {
    visibility: hidden;
}

.official-site-music-current-subtitle {
    overflow: hidden;
    color: var(--text-sub);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.official-site-music-player-controls {
    position: static;
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.official-site-music-center-controls {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.official-site-music-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

#official-site-music-play-mode-btn {
    margin-left: 0;
}

.official-site-music-play-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(155, 106, 156, 0.3);
    cursor: pointer;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.official-site-music-play-toggle:hover {
    background: color-mix(in srgb, var(--primary) 92%, white);
    box-shadow: 0 5px 14px rgba(155, 106, 156, 0.36);
}

.official-site-music-time {
    width: 35px;
    flex-shrink: 0;
    color: var(--text-sub);
    font-size: 12px;
    text-align: center;
}

.official-site-music-progress {
    --slider-empty: rgba(255, 255, 255, 0.2);
    position: absolute;
    left: 14px;
    right: 14px;
    top: -8px;
    z-index: 3;
    width: auto;
    min-width: 0;
    height: 14px;
    flex: none;
    border-radius: 999px;
}

.official-site-music-progress.premium-slider {
    background: transparent;
}

.official-site-music-progress.premium-slider:hover {
    height: 14px;
}

.official-site-music-progress-track,
.official-site-music-progress-fill {
    position: absolute;
    left: 14px;
    right: 14px;
    top: -3px;
    z-index: 4;
    height: 4px;
    border-radius: 999px;
    pointer-events: none;
    transition: top 0.2s, height 0.2s;
}

.official-site-music-progress-track {
    z-index: 3;
    background: var(--slider-empty, rgba(255, 255, 255, 0.2));
}

.official-site-music-progress-fill {
    z-index: 4;
    background: var(--primary);
    transform: translateZ(0) scaleX(var(--progress-scale, 0));
    transform-origin: left center;
    will-change: transform;
}

.official-site-music-player:has(.official-site-music-progress:hover) .official-site-music-progress-track,
.official-site-music-player:has(.official-site-music-progress:hover) .official-site-music-progress-fill {
    top: -4px;
    height: 6px;
}

.official-site-music-progress.premium-slider::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    border: none;
    background: transparent;
    box-shadow: none;
}

.official-site-music-progress.premium-slider:hover::-webkit-slider-thumb {
    transform: none;
}

html[data-theme="light"] .official-site-music-progress.premium-slider {
    --slider-empty: rgba(31, 41, 55, 0.12);
    background: transparent;
}

.official-site-music-progress-tooltip {
    position: absolute;
    top: -34px;
    left: 50%;
    z-index: 120;
    transform: translateX(-50%) translateY(4px);
    min-width: 78px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(12, 15, 20, 0.92);
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.official-site-music-progress-tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

html[data-theme="light"] .official-site-music-progress-tooltip {
    background: rgba(255, 255, 255, 0.96);
    color: rgba(31, 41, 55, 0.92);
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.16);
}

.official-site-music-audio {
    display: none;
}

.official-site-music-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 5px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.official-site-music-volume span {
    width: 16px;
    height: 16px;
    color: var(--text-sub);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

.official-site-music-volume span svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.official-site-music-volume input {
    width: 60px;
    flex: 0 0 60px;
}

.audio-program-player-bar {
    padding-top: 16px;
    padding-bottom: 12px;
}

.audio-program-time-current,
.audio-program-time-duration {
    display: none;
    width: 35px;
    flex-shrink: 0;
    color: var(--text-sub);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.audio-program-time-current {
    margin-left: auto;
}

.audio-program-player-bar .official-site-music-right-controls {
    margin-left: auto;
}

.audio-program-player-bar .official-site-music-progress-tooltip {
    z-index: 120;
}

#official-site-music-playlist-btn svg,
#official-site-music-favorite-btn svg,
#official-site-music-lyrics-toggle-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    flex-shrink: 0;
}

#official-site-music-favorite-btn.is-favorite svg path {
    fill: color-mix(in srgb, var(--primary) 26%, transparent);
}

.official-site-music-lyrics-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: currentColor;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

#official-site-music-player-queue {
    position: absolute;
    right: 2.5%;
    bottom: var(--official-site-music-queue-bottom);
    z-index: 40;
    width: min(430px, 92%);
    max-height: min(430px, calc(100vh - 220px));
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #151922;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    transform-origin: right bottom;
    animation: official-site-music-queue-pop 0.16s ease-out;
}

html[data-theme="light"] #official-site-music-player-queue {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(210, 214, 220, 0.9);
    box-shadow: 0 22px 44px rgba(38, 45, 56, 0.18);
}

html[data-theme="light"] #official-site-music-player-queue .player-queue-header {
    border-bottom-color: rgba(210, 214, 220, 0.88);
    color: #687386;
}

html[data-theme="light"] #official-site-music-player-queue .player-queue-item {
    border-bottom-color: rgba(210, 214, 220, 0.72);
    color: #242b36;
}

html[data-theme="light"] #official-site-music-player-queue .player-queue-item:hover {
    background: rgba(155, 106, 156, 0.08);
}

html[data-theme="light"] #official-site-music-player-queue .player-queue-item.active {
    background: rgba(155, 106, 156, 0.14);
}

html[data-theme="light"] #official-site-music-player-queue .player-queue-item-title {
    color: #242b36;
}

html[data-theme="light"] #official-site-music-player-queue .player-queue-item-index,
html[data-theme="light"] #official-site-music-player-queue .player-queue-item-sub,
html[data-theme="light"] #official-site-music-player-queue .player-queue-item-time {
    color: #687386;
}

#official-site-music-player-queue .player-queue-list {
    max-height: min(360px, calc(100vh - 290px));
}

#audio-player-bar-container {
    position: relative;
    z-index: 20;
}

#audio-player-queue {
    position: absolute;
    right: 2.5%;
    bottom: 104px;
    z-index: 40;
    width: min(430px, 92%);
    max-height: min(430px, calc(100vh - 220px));
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #151922;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    transform-origin: right bottom;
    animation: official-site-music-queue-pop 0.16s ease-out;
}

#audio-player-queue .player-queue-list {
    max-height: min(360px, calc(100vh - 290px));
}

html[data-theme="light"] #audio-player-queue {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(210, 214, 220, 0.9);
    box-shadow: 0 22px 44px rgba(38, 45, 56, 0.18);
}

html[data-theme="light"] #audio-player-queue .player-queue-header {
    border-bottom-color: rgba(210, 214, 220, 0.88);
    color: #687386;
}

html[data-theme="light"] #audio-player-queue .player-queue-item {
    border-bottom-color: rgba(210, 214, 220, 0.72);
    color: #242b36;
}

html[data-theme="light"] #audio-player-queue .player-queue-item:hover {
    background: rgba(155, 106, 156, 0.08);
}

html[data-theme="light"] #audio-player-queue .player-queue-item.active {
    background: rgba(155, 106, 156, 0.14);
}

html[data-theme="light"] #audio-player-queue .player-queue-item-title {
    color: #242b36;
}

html[data-theme="light"] #audio-player-queue .player-queue-item-index,
html[data-theme="light"] #audio-player-queue .player-queue-item-sub,
html[data-theme="light"] #audio-player-queue .player-queue-item-time {
    color: #687386;
}

@keyframes official-site-music-queue-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#view-official-site-music.lyrics-mode .official-site-music-view-shell {
    display: none;
}

#view-official-site-music.lyrics-mode .official-site-music-player-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    justify-content: flex-end;
    padding-top: 12px;
    z-index: 60;
    --official-site-music-queue-bottom: 104px;
}

#view-official-site-music.lyrics-mode #official-site-music-lyrics-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    z-index: 1;
}

#view-official-site-music.lyrics-mode #official-site-music-player-queue {
    z-index: 90;
}

#view-official-site-music.lyrics-mode .official-site-music-progress-tooltip {
    z-index: 140;
}

#view-official-site-music.lyrics-mode #official-site-music-lyrics-scroll {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 12vh 0;
}

@media (max-width: 960px) {
    .audio-program-table-head,
    .audio-program-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .audio-program-table-head,
    .audio-program-row > .audio-program-table-text,
    .audio-program-row > .audio-program-table-date {
        display: none;
    }

    .audio-program-row .audio-program-cover,
    .audio-program-row .audio-program-subtitle {
        display: none;
    }

    .audio-program-title-cell {
        gap: 0;
    }

    #view-official-site-music {
        padding: 16px !important;
    }

    .official-site-music-header {
        grid-template-columns: 1fr;
    }

    .official-site-music-header {
        flex-direction: column;
        align-items: stretch;
    }

    .official-site-music-header-tools {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .official-site-music-toolbar {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .official-site-music-search {
        width: 100%;
    }

    .official-site-music-player {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .official-site-music-player-controls {
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
    }

    .official-site-music-center-controls {
        position: static;
        transform: none;
        justify-content: center;
        width: 100%;
    }

    .official-site-music-right-controls {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }

    .official-site-music-progress {
        left: 10px;
        right: 10px;
        top: -8px;
        width: auto;
        flex-basis: auto;
    }

    .official-site-music-volume {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    #official-site-music-player-queue {
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(380px, calc(100vh - 200px));
        bottom: 230px;
    }

    #audio-player-queue {
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(380px, calc(100vh - 200px));
        bottom: 230px;
    }

    .official-site-music-table {
        min-width: 0;
    }

    .official-site-music-table-head,
    .official-site-music-card {
        grid-template-columns: minmax(0, 1fr) 58px;
        gap: 10px;
    }

    .official-site-music-table-head .official-site-music-sort:nth-child(1),
    .official-site-music-card > .official-site-music-row-index,
    .official-site-music-table-head span:nth-child(3),
    .official-site-music-table-head span:nth-child(4),
    .official-site-music-card > .official-site-music-table-text {
        display: none;
    }

    .official-site-music-table-head span:nth-child(5),
    .official-site-music-card > .official-site-music-table-time {
        display: block;
    }
}

#official-site-music-time-current {
    text-align: right;
}

.user-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.username {
    font-weight: bold;
    font-size: 15px;
    color: var(--text);
    line-height: 1.2;
}

.timestamp {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}

.message-content-clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.message-content-clickable:hover {
    opacity: 0.8;
}

.context-highlight {
    border: 2px solid var(--primary);
    background-color: rgba(155, 106, 156, 0.1) !important;
    box-shadow: 0 4px 20px rgba(155, 106, 156, 0.3);
    z-index: 1;
}

.Box-row img:not(.avatar):not(.private-message-avatar):not(.account-state-avatar):not(.account-card-avatar):not(.account-avatar-preview) {
    max-height: 250px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.Box-row .vod-row-cover {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    object-fit: cover !important;
}

blockquote {
    margin: 5px 0 10px 0;
    padding: 10px 14px;
    background: var(--blockquote-bg);
    border-left: 4px solid var(--border);
    color: var(--text-sub);
    font-size: 13px;
    border-radius: 0 4px 4px 0;
}

.flip-message-quote {
    border-left: 4px solid var(--primary) !important;
    background-color: rgba(155, 106, 156, 0.05) !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    padding: 12px 16px !important;
}

.flip-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 20px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    margin-right: 6px;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.flip-question-title-wrap,
.flip-answer-title-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.flip-question-title,
.flip-answer-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flip-answer-time {
    flex: 0 0 auto;
    white-space: nowrap;
}

.flip-question-side-inline {
    display: flex;
    flex: 0 0 auto;
}

.flip-question-meta-row {
    display: none;
    justify-content: flex-end;
    margin: 8px 4px 0;
}

.flip-label.question-tag {
    background: linear-gradient(135deg, #b583b6 0%, #9b6a9c 100%);
}

.flip-label.answer-tag {
    background: #24292e;
    margin-top: 12px;
    margin-bottom: 6px;
}

[data-theme="dark"] .flip-label.answer-tag {
    background: #444;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.art-control-danmuku-input {
    display: none !important;
}

.placeholder-tip {
    text-align: center;
    margin-top: 100px;
    color: var(--text-sub);
    background: var(--card);
    border: 3px dashed var(--border);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

#loadingMore {
    text-align: center;
    padding: 20px;
    color: var(--text-sub);
    display: none;
    background: var(--card);
    margin: 20px auto;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid var(--border);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: var(--card);
    width: 90%;
    max-width: 500px;
    height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--input-bg);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.live-rank-modal-info {
    padding: 12px 20px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(128, 128, 128, 0.05);
}

.live-rank-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-rank-info-chip {
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}

.melee-rank-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.melee-rank-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.melee-rank-toolbar {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(128, 128, 128, 0.04);
}

.melee-rank-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.melee-rank-toolbar .input-control {
    width: 100%;
}

.melee-rank-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 140px;
    justify-content: flex-end;
}

.melee-rank-actions .btn {
    height: 46px;
    width: 64px;
    min-width: 64px;
    padding: 0 14px;
    white-space: nowrap;
}

.melee-rank-mode-btn {
    flex: 0 0 64px;
}

.melee-rank-mode-btn.active {
    border-color: var(--border);
    color: var(--text);
    background: var(--input-bg);
}

.melee-rank-meta {
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.5;
    background: var(--card);
}

.melee-rank-meta:empty {
    display: none;
}

.melee-rank-results-shell {
    flex: none;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.melee-rank-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 16px 18px 0;
}

.melee-rank-stat {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: var(--input-bg);
}

.melee-rank-stat span {
    display: block;
    color: var(--text-sub);
    font-size: 12px;
}

.melee-rank-stat b {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 20px;
}

.melee-rank-list {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.melee-week-card-grid {
    padding: 14px 18px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.melee-week-card {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: var(--card);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: none;
}

.melee-week-card:hover {
    border-color: var(--border);
    background: var(--card);
    transform: none;
}

.melee-week-card-kicker {
    color: #fa8c16;
    font-size: 12px;
    font-weight: 700;
}

.melee-week-card-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.melee-week-card-sub {
    color: var(--text-sub);
    font-size: 12px;
}

.melee-rank-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: var(--card);
}

.melee-person-rank-card {
    grid-template-columns: 58px 42px minmax(0, 1fr) auto;
}

.melee-person-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--input-bg);
    border: 1px solid var(--border);
}

.melee-rank-num {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 140, 22, 0.12);
    color: #fa8c16;
    font-weight: 800;
    font-size: 18px;
}

.melee-rank-title {
    min-width: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.melee-rank-sub {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.melee-rank-value {
    color: #fa8c16;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.melee-week-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.melee-week-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-sub);
    background: var(--input-bg);
    font-size: 11px;
}

.melee-rank-detail-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px 0;
}

.melee-rank-detail-heading {
    min-width: 0;
    text-align: center;
}

.melee-rank-detail-title {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.melee-rank-detail-spacer {
    width: 52px;
}

.melee-rank-detail-sub {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 12px;
}

.member-weibo-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.member-weibo-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    padding: 16px;
    box-shadow: none;
    box-sizing: border-box;
    contain: layout paint style;
}

[data-theme="light"] .member-weibo-card {
    background: var(--card);
}

#view-member-weibo .Box-row,
#view-member-dynamic .Box-row {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: var(--card) !important;
    box-shadow: none !important;
}

#view-member-weibo .Box-row:hover,
#view-member-dynamic .Box-row:hover {
    border-color: var(--border);
    box-shadow: none !important;
}

.member-weibo-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-weibo-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.member-weibo-meta {
    min-width: 0;
    flex: 1;
}

.member-weibo-name {
    color: var(--text);
    font-weight: 800;
    font-size: 14px;
}

.member-weibo-time {
    margin-top: 3px;
    color: var(--text-sub);
    font-size: 12px;
}

.member-weibo-open-btn {
    flex-shrink: 0;
}

.member-dynamic-title {
    margin-top: 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.member-weibo-text {
    margin-top: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.member-dynamic-mention {
    color: var(--primary);
    font-weight: 400;
}

.member-dynamic-mention-btn {
    display: inline;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.member-weibo-images {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 540px;
}

.community-shell {
    width: min(100%, 1040px);
    max-width: none;
}

.community-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.community-feed-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--card) 82%, transparent);
}

.community-feed-tabs.is-hidden {
    display: none;
}

.community-feed-tab {
    min-width: 58px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.community-feed-tab:hover {
    color: var(--text);
}

.community-feed-tab.is-active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 24%, transparent);
}

.community-create-post-btn {
    display: none;
    height: 38px;
    border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 18%, transparent);
}

.community-create-post-btn:hover {
    filter: brightness(1.05);
}

.community-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    padding: 14px;
    box-sizing: border-box;
    box-shadow: none;
}

.community-section-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.community-banner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.community-banner-item {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

.community-banner-item img {
    width: 100%;
    height: clamp(210px, 27vw, 300px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.community-banner-item span {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.community-topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.community-topic-chip {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 8%, var(--input-bg));
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.community-topic-chip:hover {
    border-color: color-mix(in srgb, var(--primary) 56%, var(--border));
    background: color-mix(in srgb, var(--primary) 13%, var(--input-bg));
}

.community-topic-name {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.community-topic-meta {
    margin-top: 5px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.4;
}

.community-topic-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-topic-header-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-topic-back {
    width: fit-content;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.community-topic-back:hover {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
}

.community-topic-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.community-topic-cover {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.community-topic-title-wrap {
    min-width: 0;
    flex: 1;
}

.community-topic-title {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.community-topic-desc {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.45;
}

.community-topic-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    color: var(--text-sub);
    font-size: 12px;
}

.community-topic-tabs {
    display: inline-flex;
    width: fit-content;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
}

.community-topic-tab {
    min-width: 56px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.community-topic-tab.is-active {
    background: var(--primary);
    color: #ffffff;
}

.community-post-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.community-avatar-placeholder {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 24%, transparent), transparent),
        var(--input-bg);
}

.community-post-meta {
    min-width: 0;
    flex: 1;
}

.community-post-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.community-post-time {
    margin-top: 3px;
    color: var(--text-sub);
    font-size: 12px;
}

.community-post-title {
    margin-top: 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
}

.community-post-text {
    margin-top: 10px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.community-post-detail-btn {
    margin-top: 8px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
    padding: 0;
    cursor: pointer;
}

.community-post-detail-btn:disabled {
    color: var(--text-sub);
    cursor: default;
}

.community-post-inline-detail {
    display: inline;
    border: none;
    background: transparent;
    color: var(--primary);
    padding: 0;
    font: inherit;
    font-weight: 400;
    cursor: pointer;
}

.community-post-inline-detail:disabled {
    color: var(--text-sub);
    cursor: default;
}

.community-post-mention {
    color: var(--primary);
    font-weight: 400;
}

.community-post-mention-btn {
    display: inline;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.community-post-topic {
    display: inline;
    border: none;
    background: transparent;
    color: var(--primary);
    padding: 0;
    font: inherit;
    font-weight: 400;
    cursor: pointer;
}

.community-post-topic:hover {
    text-decoration: underline;
}

.community-post-topic-text {
    color: var(--primary);
    font-weight: 400;
}

.community-image-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 540px;
}

.community-image-count-1 {
    grid-template-columns: minmax(0, 260px);
}

.community-image-count-2 {
    grid-template-columns: repeat(2, minmax(0, 180px));
}

.community-image-button {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.community-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-post-stats {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--text-sub);
    font-size: 12px;
}

.community-comment-toggle,
.community-comments-more {
    border: none;
    background: transparent;
    color: var(--text-sub);
    font: inherit;
    padding: 0;
    cursor: pointer;
}

.community-comment-toggle:hover,
.community-comments-more:hover {
    color: var(--primary);
}

.community-comments-panel {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.community-comments-panel.is-open {
    display: block;
}

.community-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.community-comment-compose {
    display: flex;
    gap: 8px;
    align-items: center;
}

.community-comment-input {
    min-width: 0;
    flex: 1;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    padding: 0 10px;
    font-size: 13px;
    outline: none;
}

.community-comment-input:focus {
    border-color: color-mix(in srgb, var(--primary) 62%, var(--border));
}

.community-comment-send {
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.community-comment-send:hover {
    border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
    color: var(--primary);
}

.community-comment-send:disabled {
    cursor: default;
    opacity: 0.6;
}

.community-comment-item {
    display: flex;
    gap: 10px;
}

.community-comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.community-comment-body {
    min-width: 0;
    flex: 1;
}

.community-comment-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.community-comment-name {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-comment-time {
    color: var(--text-sub);
    font-size: 11px;
    flex-shrink: 0;
}

.community-comment-delete {
    border: none;
    background: transparent;
    color: var(--text-sub);
    font-size: 11px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.community-comment-delete:hover {
    color: #ff4d4f;
}

.community-comment-text {
    margin-top: 3px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.community-comments-empty {
    color: var(--text-sub);
    font-size: 12px;
}

.community-comments-more {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 800;
}

.community-load-sentinel {
    min-height: 20px;
    padding: 12px 0 0;
    color: var(--text-sub);
    font-size: 12px;
    text-align: center;
    opacity: 0;
}

.community-load-sentinel.is-visible {
    opacity: 1;
}

.community-compose-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 7, 13, 0.62);
    backdrop-filter: blur(5px);
}

.community-compose-dialog {
    width: min(560px, 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

.community-compose-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.community-compose-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.community-compose-subtitle {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 12px;
}

.community-compose-close {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-sub);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.community-compose-close:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.community-compose-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
}

.community-compose-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 800;
}

.community-compose-input,
.community-compose-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    box-sizing: border-box;
    outline: none;
    font: inherit;
}

.community-compose-input {
    height: 38px;
    padding: 0 11px;
}

.community-compose-textarea {
    min-height: 170px;
    resize: vertical;
    padding: 10px 11px;
    line-height: 1.55;
}

.community-compose-input:focus,
.community-compose-textarea:focus {
    border-color: color-mix(in srgb, var(--primary) 62%, var(--border));
}

.community-compose-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--border);
}

.community-compose-cancel,
.community-compose-send {
    min-width: 84px;
    height: 38px;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.community-compose-cancel {
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
}

.community-compose-send {
    border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
    background: var(--primary);
    color: #ffffff;
}

.community-compose-send:disabled {
    cursor: default;
    opacity: 0.68;
}

.member-weibo-images-1 {
    grid-template-columns: minmax(0, 260px);
}

.member-weibo-images-2 {
    grid-template-columns: repeat(2, minmax(0, 180px));
}

.member-weibo-image-btn {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: var(--input-bg);
    cursor: zoom-in;
}

.member-weibo-image-btn:empty {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        var(--input-bg);
}

.member-weibo-image-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
        var(--input-bg);
    transition: none;
}

.member-weibo-image-btn img[data-loading="1"] {
    opacity: 0.22;
}

.member-weibo-image-btn img[data-failed="1"] {
    opacity: 0.18;
}

.member-weibo-image-btn:hover img {
    transform: none;
}

@media (max-width: 640px) {
    .melee-rank-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .melee-rank-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .melee-rank-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .melee-person-rank-card {
        grid-template-columns: 48px 38px minmax(0, 1fr);
    }

    .melee-person-avatar {
        width: 38px;
        height: 38px;
    }

    .melee-rank-detail-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .melee-rank-value {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .melee-person-rank-card .melee-rank-value {
        grid-column: 3;
    }
}

.live-rank-info-key {
    color: var(--text-sub);
    flex-shrink: 0;
}

.live-rank-info-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-btn {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-sub);
    line-height: 1;
    width: 30px;
    text-align: center;
}

.announcement-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(5, 8, 16, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.announcement-box {
    width: min(720px, 100%);
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(124, 69, 96, 0.78) 0%, rgba(84, 50, 74, 0.74) 100%);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(24px) scale(0.985);
    transition: transform 0.28s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.announcement-header {
    display: flex;
    align-items: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.announcement-header-copy {
    min-width: 0;
}

.announcement-header-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.announcement-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 20px 20px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.86);
}

.announcement-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 14px;
    word-break: break-word;
}

.announcement-image-container {
    width: 100%;
    min-height: 84px;
    max-height: min(46vh, 460px);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 16px;
    border: none;
    background: transparent;
}

.announcement-image {
    display: none;
    display: block;
    max-width: 100%;
    max-height: min(46vh, 460px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
}

.announcement-image-placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

.announcement-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    word-break: break-word;
}

.announcement-text p:first-child {
    margin-top: 0;
}

.announcement-text p:last-child {
    margin-bottom: 0;
}

.announcement-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.06);
}

.announcement-btn-secondary,
.announcement-btn-primary {
    min-width: 90px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.announcement-btn-primary {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.announcement-btn-primary:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

[data-theme="light"] .announcement-modal {
    background: rgba(16, 18, 24, 0.4);
}

[data-theme="light"] .announcement-box {
    border-color: rgba(91, 78, 108, 0.16);
    background: linear-gradient(180deg, rgba(250, 235, 244, 0.88) 0%, rgba(241, 224, 234, 0.84) 100%);
    box-shadow: 0 24px 60px rgba(80, 58, 75, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .announcement-header,
[data-theme="light"] .announcement-footer {
    border-color: rgba(91, 78, 108, 0.1);
}

[data-theme="light"] .announcement-header-text,
[data-theme="light"] .announcement-title,
[data-theme="light"] .announcement-text {
    color: #413146;
}

[data-theme="light"] .announcement-image-container {
    border: none;
    background: transparent;
}

[data-theme="light"] .announcement-btn-primary,
[data-theme="light"] .announcement-btn-secondary {
    border-color: rgba(122, 84, 109, 0.18) !important;
    color: #5b3f56 !important;
    box-shadow: 0 6px 16px rgba(108, 77, 97, 0.08);
}

[data-theme="light"] .announcement-btn-primary {
    background: rgba(255, 255, 255, 0.76) !important;
}

[data-theme="light"] .announcement-btn-primary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(122, 84, 109, 0.28) !important;
    color: #412d3d !important;
}

[data-theme="light"] .announcement-btn-secondary {
    background: rgba(245, 233, 240, 0.76) !important;
}

[data-theme="light"] .announcement-btn-secondary:hover {
    background: rgba(240, 223, 233, 0.92) !important;
    border-color: rgba(122, 84, 109, 0.24) !important;
    color: #412d3d !important;
}


.list-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.1s;
}

.list-item:hover {
    background: var(--chip-hover);
}

.rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.rank-1 {
    background: var(--rank-1);
    color: #fff;
}

.rank-2 {
    background: var(--rank-2);
    color: #fff;
}

.rank-3 {
    background: var(--rank-3);
    color: #fff;
}

.item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-title {
    font-weight: 500;
    font-size: 15px;
}

.stat-bar-container {
    height: 6px;
    background: var(--bar-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
    width: 100%;
    max-width: 200px;
}

.stat-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.item-count {
    color: var(--primary);
    font-weight: bold;
    margin-left: 10px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-sub);
}

.audio-wrapper {
    display: inline-flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 8px 16px;
    margin-top: 8px;
    width: fit-content;
    min-width: 160px;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    user-select: none;
}

.audio-wrapper:hover {
    border-color: var(--primary);
    background: var(--chip-hover);
    transform: translateY(-1px);
}

.audio-wrapper.playing {
    border-color: var(--primary);
    background: var(--blockquote-bg);
}

.audio-control-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: white;
    font-size: 14px;
    position: relative;
}

.audio-control-icon .audio-icon-play,
.audio-control-icon .audio-icon-pause,
.player-toggle-icon .audio-icon-play,
.player-toggle-icon .audio-icon-pause {
    display: none;
}

.audio-control-icon.is-play .audio-icon-play,
.audio-control-icon.is-pause .audio-icon-pause,
.player-toggle-icon.is-play .audio-icon-play,
.player-toggle-icon.is-pause .audio-icon-pause {
    display: inline-flex;
}

.player-toggle-icon {
    position: relative;
    overflow: hidden;
}

.audio-icon-play {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
    margin-left: 2px;
}

.audio-icon-pause {
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.audio-icon-pause span {
    width: 3px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    display: block;
}

.audio-wave-box {
    display: flex;
    align-items: center;
    height: 20px;
    gap: 3px;
    margin-right: 12px;
    flex: 1;
}

.wave-bar {
    width: 3px;
    background-color: var(--text-sub);
    border-radius: 2px;
    animation: none;
    height: 4px;
    opacity: 0.6;
}

.playing .wave-bar {
    background-color: var(--primary);
    animation: wave 1s infinite ease-in-out;
    opacity: 1;
}

.playing .wave-bar:nth-child(1) {
    animation-delay: 0.0s;
    height: 10px;
}

.playing .wave-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 16px;
}

.playing .wave-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 8px;
}

.playing .wave-bar:nth-child(4) {
    animation-delay: 0.1s;
    height: 14px;
}

.playing .wave-bar:nth-child(5) {
    animation-delay: 0.3s;
    height: 6px;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(2);
    }
}

.audio-duration {
    font-size: 12px;
    color: var(--text-sub);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.video-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    max-width: 100%;
    line-height: 0;
    transition: transform 0.2s ease;
}

.video-wrapper:hover {
    transform: scale(1.01);
}

.video-wrapper video {
    display: block;
    max-height: 400px;
    max-width: 100%;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
}

.play-btn-glass {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.play-btn-glass::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid white;
    margin-left: 4px;
}

.video-wrapper:hover .play-btn-glass {
    transform: scale(1.1);
    background: var(--primary);
    border-color: var(--primary);
}

.video-wrapper.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] * {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: transparent !important;
    transition: background-color 0.3s ease;
}

.sidebar.scrolling::-webkit-scrollbar-thumb,
.sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .sidebar.scrolling::-webkit-scrollbar-thumb,
[data-theme="dark"] .sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

#live-player-container {
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 10px;
    line-height: normal;
}

#live-player-container .artplayer-app {
    width: 100% !important;
    height: 100% !important;
}

#live-player-container .dplayer-icons-right,
#bilibili-dplayer-container .dplayer-icons-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

#live-player-container .dplayer-icons-right .dplayer-full,
#bilibili-dplayer-container .dplayer-icons-right .dplayer-full {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
}

.yaya-dplayer-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    margin: 0 2px;
}

.yaya-dplayer-control-btn {
    height: 28px;
    min-width: 42px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.yaya-dplayer-control-btn:hover {
    border-color: rgba(255, 142, 191, 0.9);
    background: rgba(255, 142, 191, 0.18);
}

#live-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 5px;
}

.live-card {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.live-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.live-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--primary);
    transition: transform 0.2s;
}

.live-card img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(155, 106, 156, 0.5);
}

.live-card .name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.live-card .title {
    font-size: 12px;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    height: 32px;
}

.live-badge {
    color: white;
    padding: 2px 8px;
    border-radius: 8px 0 8px 0;
    font-size: 10px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.badge-video {
    background-color: #ff4d4f;
}

.badge-radio {
    background-color: #1890ff;
}

.badge-replay {
    background-color: #32c41c;
}

.badge-recording {
    background-color: #722ed1;
}

.vod-list-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

.vod-card-row {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.vod-card-row:hover {
    transform: translateX(3px);
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.vod-row-cover-container {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.vod-row-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.vod-row-cover:hover {
    transform: scale(1.05);
}

.vod-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    height: 68px;
    padding-right: 116px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.vod-row-name {
    font-weight: bold;
    font-size: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vod-row-actions {
    position: absolute;
    top: 18px;
    right: 16px;
    display: flex;
    gap: 5px;
}

.vod-row-title {
    font-size: 14px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

.vod-row-time {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vod-row-popularity {
    position: absolute;
    right: 16px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-sub);
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
}

.vod-row-popularity[hidden] {
    display: none;
}

.vod-row-popularity svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.vod-badge {
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 2;
    opacity: 0.9;
}

.live-link-info {
    margin-top: 15px;
    padding: 15px;
    background: var(--blockquote-bg);
    border-left: 4px solid var(--primary);
    color: var(--text);
    font-size: 13px;
}

.live-link-info .btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text);
    user-select: none;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--chip-hover);
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.pagination-btn.pagination-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.artplayer-app {
    width: 100%;
    height: 100%;
    display: block;
}

.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 4px;
    box-sizing: border-box;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--text);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--primary);
    color: white;
}

input::-webkit-calendar-picker-indicator {
    display: none !important;
}

.flip-date-trigger {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.flip-date-trigger.is-active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(155, 106, 156, 0.18);
}

.message-date-wrapper .flip-date-trigger {
    width: 100%;
    min-width: 0;
    height: 38px;
    gap: 8px;
    font-size: 14px;
}

.message-date-wrapper .flip-date-trigger.is-active {
    border-color: var(--border);
    color: var(--text);
    box-shadow: none;
}

.message-date-wrapper .flip-date-trigger svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.message-date-wrapper .flip-date-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flip-date-dropdown {
    width: 352px;
    left: 0;
    right: auto;
    padding: 0;
    overflow: visible;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(8, 10, 18, 0.42);
}

.message-date-wrapper .message-date-dropdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow: visible;
}

.message-date-wrapper .flip-date-panel {
    padding: 12px;
    gap: 12px;
    border-radius: 14px;
}

.message-date-wrapper .flip-date-field-row {
    gap: 8px;
}

.message-date-wrapper .flip-date-field-card {
    border-radius: 12px;
    padding: 9px 10px;
}

.message-date-wrapper .flip-calendar-shell {
    padding: 10px;
    border-radius: 14px;
}

.message-date-wrapper .flip-calendar-header {
    gap: 8px;
    margin-bottom: 10px;
}

.message-date-wrapper .flip-calendar-nav-group {
    gap: 6px;
}

.message-date-wrapper .flip-calendar-nav {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.message-date-wrapper .flip-calendar-title {
    min-width: 92px;
    font-size: 14px;
}

.message-date-wrapper .flip-calendar-weekdays,
.message-date-wrapper .flip-calendar-grid {
    gap: 5px;
}

.message-date-wrapper .flip-calendar-day {
    height: 32px;
    border-radius: 10px;
    font-size: 14px;
}

.message-date-wrapper .flip-calendar-footer {
    margin-top: 10px;
}

.message-date-wrapper .flip-date-clear,
.message-date-wrapper .flip-date-today {
    height: 34px;
    padding: 0 12px;
}

.flip-date-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(30, 34, 46, 0.97), rgba(20, 23, 33, 0.985));
    backdrop-filter: blur(18px);
}

.flip-date-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.flip-date-field-card {
    border: 1px solid var(--border);
    background: var(--input-bg);
    border-radius: 14px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.flip-date-field-card:hover {
    border-color: rgba(155, 106, 156, 0.5);
    transform: translateY(-1px);
}

.flip-date-field-card.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(155, 106, 156, 0.18);
}

.flip-date-field-card-label {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-sub);
}

.flip-date-field-card-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.flip-calendar-shell {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(12, 15, 22, 0.42);
    padding: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.flip-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.flip-calendar-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flip-calendar-title {
    min-width: 108px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.flip-calendar-nav {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.flip-calendar-nav-year {
    color: var(--text-sub);
    font-size: 15px;
}

.flip-calendar-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(155, 106, 156, 0.08);
    transform: translateY(-1px);
}

.flip-calendar-weekdays,
.flip-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.flip-calendar-weekdays {
    margin-bottom: 10px;
}

.flip-calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.flip-calendar-day {
    height: 38px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.flip-calendar-day:hover {
    border-color: rgba(155, 106, 156, 0.45);
    background: rgba(155, 106, 156, 0.12);
    transform: translateY(-1px);
}

.flip-calendar-day.is-muted {
    color: rgba(201, 209, 217, 0.42);
}

[data-theme="light"] .flip-calendar-day.is-muted {
    color: rgba(36, 41, 46, 0.34);
}

.flip-calendar-day.is-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.flip-calendar-day.is-in-range:not(.is-selected) {
    background: rgba(155, 106, 156, 0.14);
    border-color: rgba(155, 106, 156, 0.08);
}

.flip-calendar-day.is-today {
    box-shadow: inset 0 0 0 1px rgba(155, 106, 156, 0.45);
}

.flip-calendar-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.flip-date-clear {
    padding: 0 16px;
}

.flip-date-panel-note {
    font-size: 11px;
    color: var(--text-sub);
}

[data-theme="light"] .flip-date-dropdown {
    box-shadow: 0 18px 40px rgba(91, 78, 108, 0.18);
}

[data-theme="light"] .flip-date-panel {
    border-color: rgba(122, 84, 109, 0.12);
    background: linear-gradient(180deg, rgba(255, 248, 252, 0.96), rgba(248, 241, 246, 0.94));
}

[data-theme="light"] .flip-date-field-card {
    border-color: rgba(122, 84, 109, 0.14);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .flip-date-field-card:hover {
    border-color: rgba(155, 106, 156, 0.32);
}

[data-theme="light"] .flip-date-field-card.is-active {
    border-color: rgba(155, 106, 156, 0.6);
    box-shadow: 0 0 0 1px rgba(155, 106, 156, 0.14);
}

[data-theme="light"] .flip-calendar-shell {
    border-color: rgba(122, 84, 109, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .flip-calendar-title,
[data-theme="light"] .flip-calendar-day,
[data-theme="light"] .flip-date-field-card-value {
    color: #4a3848;
}

[data-theme="light"] .flip-calendar-weekdays span,
[data-theme="light"] .flip-date-field-card-label {
    color: #7c6676;
}

[data-theme="light"] .flip-calendar-nav {
    border-color: rgba(122, 84, 109, 0.14);
    background: rgba(255, 255, 255, 0.86);
    color: #6d5767;
}

[data-theme="light"] .flip-calendar-nav:hover {
    border-color: rgba(155, 106, 156, 0.32);
    background: rgba(250, 235, 244, 0.9);
    color: #8d5f88;
}

[data-theme="light"] .flip-calendar-day:hover {
    border-color: rgba(155, 106, 156, 0.24);
    background: rgba(155, 106, 156, 0.08);
}

[data-theme="light"] .flip-calendar-day.is-in-range:not(.is-selected) {
    background: rgba(155, 106, 156, 0.1);
    border-color: rgba(155, 106, 156, 0.06);
}

#global-notice-bar {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 80%;
    animation: slideDownFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] #global-notice-bar {
    background: rgba(30, 30, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#notice-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

#notice-link:hover {
    text-decoration: underline;
}

.notice-close {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: all 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.notice-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    color: #ff4d4f;
}

[data-theme="dark"] .notice-close {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .notice-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideDownFade {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUpFade {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
}

.notice-hiding {
    animation: slideUpFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    pointer-events: none;
}

.account-settings-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.account-login-panel {
    border-radius: 12px;
}

.account-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-state-card {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 22px !important;
    border-radius: 12px;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.account-state-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.account-state-avatar {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px;
    max-height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(185, 193, 205, 0.65);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: block;
    flex-shrink: 0;
}

.account-state-main {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.account-state-label {
    font-size: 12px;
    font-weight: 700;
    color: #1f8f46;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-state-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.account-state-name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.account-state-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: #1f8f46;
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.account-state-id {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-sub);
}

.account-state-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-state-actions .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
}

.account-state-actions #btn-copy-token {
    background: rgba(40, 167, 69, 0.12) !important;
    border-color: rgba(40, 167, 69, 0.36) !important;
    color: #27b15b !important;
}

html[data-theme="dark"] .account-state-actions #btn-copy-token {
    background: rgba(40, 167, 69, 0.16) !important;
    border-color: rgba(40, 167, 69, 0.42) !important;
    color: #3bd46f !important;
}

.account-section-card {
    padding: 18px 20px !important;
    border-radius: 12px;
}

.account-settings-shell .Box-row:hover {
    border-color: var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.account-settings-shell .account-state-card:hover {
    border-color: var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.account-settings-shell .account-profile-edit-card:hover {
    border-color: rgba(178, 111, 184, 0.22);
}

.account-settings-shell .account-checkin-panel:hover {
    border-color: rgba(40, 167, 69, 0.24);
}

.account-section-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.account-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.account-section-subtitle {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
}

.account-rename-count {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--primary);
    font-weight: 800;
}

.account-rename-count span {
    display: inline-flex;
    white-space: nowrap;
}

.account-profile-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    min-height: 22px;
}

.account-profile-meta-row.account-profile-meta-loading {
    visibility: hidden;
}

.account-profile-meta-left {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    flex-wrap: wrap;
}

.account-profile-meta-row .account-rename-count {
    font-size: 12px;
    line-height: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.account-profile-meta-row .account-rename-count,
.account-balance-line {
    height: 26px;
}

.account-profile-meta-row .account-rename-count span,
.account-balance-line {
    display: inline-flex;
    align-items: center;
}

.account-profile-edit-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--border);
}

.account-profile-edit-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.account-avatar-edit {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.46);
}

.account-avatar-preview {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(185, 193, 205, 0.65);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    display: block;
}

.account-avatar-edit-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 132px;
}

.account-avatar-edit-actions .btn {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
}

.account-nickname-edit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.account-nickname-edit-main {
    min-width: 0;
}

.account-edit-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.account-nickname-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 12px;
    align-items: center;
}

.account-nickname-row .btn {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 800;
}

.account-profile-edit-status {
    min-height: 18px;
    margin-top: 0;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
}

.account-balance-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.account-balance-line b {
    color: #fa8c16;
    font-size: inherit;
}

.account-recharge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #1890ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.account-recharge-btn:hover {
    color: #40a9ff;
    text-decoration: underline;
}

.account-switcher-panel {
    background: rgba(255, 255, 255, 0.82);
}

.account-checkin-panel {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--border);
}

.account-checkin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.account-checkin-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.46);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.account-checkin-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.account-checkin-status {
    margin-top: 12px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.45;
    display: block;
}

html[data-theme="dark"] .account-switcher-panel {
    background: rgba(24, 28, 34, 0.82);
}

html[data-theme="dark"] .account-checkin-panel {
    background: rgba(24, 28, 34, 0.82);
    border-color: var(--border);
}

html[data-theme="dark"] .account-profile-edit-card {
    background: rgba(24, 28, 34, 0.82);
    border-color: var(--border);
}

html[data-theme="dark"] .account-avatar-edit {
    background: rgba(9, 13, 18, 0.46);
    border-color: var(--border);
}

html[data-theme="dark"] .account-checkin-toggle {
    background: rgba(9, 13, 18, 0.46);
    border-color: var(--border);
    color: var(--text);
}

.account-card {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.46) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    margin-bottom: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.account-card:hover {
    background: var(--input-bg) !important;
    border-color: var(--border) !important;
    transform: translateY(-1px);
}

.account-card:active {
    transform: translateY(0);
    opacity: 0.8;
}

#account-switcher-area .account-card .account-card-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50%;
    margin-right: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: block !important;
}

.account-card-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.account-card-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.tag-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.2;
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 880px) {
    .account-state-card {
        flex-direction: column !important;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .account-state-profile {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .account-state-main {
        width: 100%;
        min-width: 0;
    }

    .account-state-name {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 22px;
        line-height: 1.15;
    }

    .account-state-name-row {
        flex-wrap: nowrap;
        min-width: 0;
    }

    .account-state-badge {
        flex: 0 0 auto;
    }

    .account-state-id {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-state-avatar {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px;
        max-height: 48px;
    }

    .account-state-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        width: 100%;
        gap: 10px;
        justify-content: stretch;
    }

    .account-state-actions .btn {
        width: 100%;
        min-width: 0;
        height: 44px !important;
        padding: 0 10px !important;
        white-space: nowrap;
        flex: none;
    }

    .account-section-card {
        padding: 16px;
    }

    .account-profile-edit-grid {
        grid-template-columns: 1fr;
    }

    .account-avatar-edit {
        align-items: flex-start;
    }

    .account-nickname-row {
        grid-template-columns: 1fr;
    }

    .account-profile-meta-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .account-profile-meta-left {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .account-profile-edit-status {
        text-align: left;
    }
}

.tag-small {
    background: rgba(230, 247, 255, 0.8);
    color: #1890ff;
    border: 1px solid rgba(145, 213, 255, 0.5);
}

.tag-big {
    background: rgba(246, 255, 237, 0.8);
    color: #52c41a;
    border: 1px solid rgba(183, 235, 143, 0.5);
}

.btn-text-danger {
    color: #ff4d4f;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-text-danger:hover {
    background-color: rgba(255, 77, 79, 0.1);
}

.btn-text-gray {
    color: var(--text-sub);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-text-gray:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.yaya-context-menu {
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--card) 92%, var(--bg));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--text);
    font-size: 13px;
}

[data-theme="dark"] .yaya-context-menu {
    background: color-mix(in srgb, var(--card) 94%, #14181f);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.yaya-context-menu-item {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.yaya-context-menu-item:hover:not(:disabled) {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.yaya-context-menu-item:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.yaya-context-menu-danger {
    color: #ff4f7b;
}

.gift-panel {
    display: none;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 15px;
    padding: 15px;
    flex-direction: column;
}

.gift-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text);
}

.gift-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.gift-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 2px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-item:hover {
    border-color: var(--primary);
    background: var(--input-bg);
}

.gift-item.selected {
    border-color: var(--primary);
    background-color: rgba(155, 106, 156, 0.1);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.gift-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 2px;
}

.gift-name {
    font-size: 11px;
    transform: scale(0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.gift-cost {
    font-size: 10px;
    color: #fa8c16;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#loading-shield {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s, color 0.3s;
}

#loading-shield .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e5e5;
    border-top: 4px solid var(--primary, #1890ff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#shield-status {
    margin-top: 20px;
    color: #333;
    font-weight: bold;
}

#shield-detail {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

html[data-theme='dark'] #loading-shield {
    background: rgba(25, 25, 25, 0.98);
}

html[data-theme='dark'] #loading-shield .spinner {
    border-color: #444;
    border-top-color: var(--primary, #177ddc);
}

html[data-theme='dark'] #shield-status {
    color: #eee;
}

html[data-theme='dark'] #shield-detail {
    color: #aaa;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.back-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .back-to-top-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.badge-record {
    background-color: #2fa508;
    color: white;
}

.toast-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    font-size: 14px;
    animation: fadeInOut 2s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

.confirm-box {
    background: #fff;
    width: 300px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9);
    animation: popIn 0.2s forwards;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

.confirm-text {
    margin-bottom: 20px;
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    line-height: 1.5;
    white-space: pre-wrap;
}

.confirm-btns {
    display: flex;
    justify-content: space-around;
}

.confirm-btn {
    padding: 6px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s, filter 0.2s;
}

.confirm-btn.cancel {
    background: #f0f0f0;
    color: #333;
}

.confirm-btn.cancel:hover {
    background: #e0e0e0;
}

.confirm-btn.ok {
    background: #FB7299;
    color: white;
}

.confirm-btn.ok:hover {
    filter: brightness(0.9);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

@media (prefers-color-scheme: dark) {
    .confirm-box {
        background: #2c2e33;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        border: 1px solid #3f4148;
    }

    .confirm-text {
        color: #e0e0e0;
    }

    .confirm-btn.cancel {
        background: #4a4a4a;
        color: #ffffff;
    }

    .confirm-btn.cancel:hover {
        background: #5a5a5a;
    }
}

html[data-theme="dark"] .confirm-box {
    background: #2c2e33 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #3f4148;
}

html[data-theme="dark"] .confirm-text {
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .confirm-btn.cancel {
    background: #4a4a4a !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .confirm-btn.cancel:hover {
    background: #5a5a5a !important;
}

html[data-theme="light"] .confirm-box {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="light"] .confirm-text {
    color: #000000 !important;
}

html[data-theme="light"] .confirm-btn.cancel {
    background: #f0f0f0 !important;
    color: #000000 !important;
}

.Box-row,
.message-card,
.msg-card {
    background: var(--card);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
    padding: 10px 15px !important;
    margin-bottom: 10px !important;
}

.Box-row:hover,
.message-card:hover,
.msg-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.user-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.avatar,
.msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.message-content,
.msg-content,
.card-content {
    line-height: 1.4;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.Box-row p,
.message-card p,
.msg-card p {
    margin: 2px 0;
    padding: 0;
}

.Box-row>*:last-child,
.message-card>*:last-child,
.msg-card>*:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.photo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-nft-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.photo-nft-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.premium-player-bar {
    background: var(--input-bg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.media-player-bar-container {
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    padding-top: 15px;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.media-player-bar {
    width: 95%;
    padding: 12px 20px;
    align-items: center;
    gap: 18px;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.media-player-disc {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.media-player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.9;
}

.media-player-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.media-player-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.media-player-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ccc;
    box-shadow: 0 0 4px #ccc;
    transition: all 0.3s;
}

.media-player-subtitle {
    overflow: hidden;
    color: var(--text-sub);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-player-controls {
    display: flex;
    flex: 2;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.media-player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 5px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.audio-programs-table {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0 !important;
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--input-bg) 78%, transparent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.audio-programs-table::-webkit-scrollbar {
    display: none;
}

.audio-program-table-head,
.audio-program-row {
    display: grid;
    grid-template-columns: minmax(300px, 1.1fr) minmax(220px, 0.8fr) 110px;
    gap: 14px;
    align-items: center;
}

.audio-program-table-head {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 42px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    background: #f7f8fb;
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 700;
}

html[data-theme="dark"] .audio-program-table-head {
    background: #11151b;
    color: #9aa4b2;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.audio-program-row {
    width: 100%;
    min-height: 70px;
    padding: 8px 18px;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 62%, transparent);
    background: color-mix(in srgb, var(--input-bg) 16%, transparent);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.audio-program-row:last-child {
    border-bottom: none;
    border-bottom-right-radius: 9px;
    border-bottom-left-radius: 9px;
}

.audio-program-row:hover {
    background: color-mix(in srgb, var(--primary) 16%, var(--input-bg) 38%);
}

.audio-program-row.is-playing {
    background: color-mix(in srgb, var(--primary) 18%, var(--input-bg) 42%);
}

.audio-program-row.is-playing .audio-program-title {
    color: var(--primary);
}

.audio-program-table-text,
.audio-program-table-date {
    overflow: hidden;
    color: var(--text-sub);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-program-title-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.audio-program-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(77, 190, 238, 0.14);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.audio-program-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.audio-program-title-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.audio-program-title {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-program-subtitle {
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .audio-program-table-head,
    .audio-program-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .audio-program-table-head,
    .audio-program-row > .audio-program-table-text,
    .audio-program-row > .audio-program-table-date {
        display: none;
    }

    .audio-program-row .audio-program-cover {
        display: flex;
    }

    .audio-program-row .audio-program-subtitle {
        display: none;
    }

    .audio-program-title-cell {
        gap: 12px;
    }
}

.player-mini-btn {
    height: 28px;
    min-width: 48px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--sidebar-bg);
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.player-mini-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--chip-hover);
}

.player-mini-btn.active {
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.player-mode-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player-mode-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    flex-shrink: 0;
}

#audio-playlist-btn svg,
#music-playlist-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    flex-shrink: 0;
}

.player-step-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--sidebar-bg);
    color: var(--text-sub);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.player-step-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--chip-hover);
}

.player-step-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.player-queue-panel {
    order: -1;
    width: 95%;
    margin-bottom: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.music-lyrics-panel {
    order: -1;
    width: 95%;
    margin-bottom: 12px;
    background:
        radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 10%, transparent) 0%, transparent 58%),
        linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), color-mix(in srgb, var(--input-bg) 98%, transparent));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

#view-music-library.lyrics-mode #music-player-bar-container {
    flex: 1;
    min-height: 0;
    width: 100%;
    justify-content: flex-end;
    padding-top: 12px;
}

#view-music-library.lyrics-mode .music-lyrics-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.music-lyrics-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.music-lyrics-panel-title-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.music-lyrics-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.music-lyrics-panel-subtitle {
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

.music-lyrics-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--text-sub);
    font-size: 13px;
}

#view-music-library.lyrics-mode .music-lyrics-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.music-lyrics-scroll {
    position: relative;
    height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 72px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.88) 10%, #000 18%, #000 82%, rgba(0, 0, 0, 0.88) 90%, rgba(0, 0, 0, 0.34) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.88) 10%, #000 18%, #000 82%, rgba(0, 0, 0, 0.88) 90%, rgba(0, 0, 0, 0.34) 100%);
    background:
        radial-gradient(ellipse at center, color-mix(in srgb, var(--primary) 8%, transparent) 0%, transparent 64%);
}

#view-music-library.lyrics-mode .music-lyrics-scroll {
    flex: 1;
    height: auto;
    min-height: 0;
    padding: 12vh 0;
}

.music-lyrics-scroll::-webkit-scrollbar {
    display: none;
}

.music-lyrics-lines {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 26px;
}

.music-lyric-line {
    border: none;
    background: transparent;
    color: color-mix(in srgb, var(--text-sub) 88%, transparent);
    min-height: 34px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.36;
    letter-spacing: 0;
    text-align: center;
    padding: 4px 10px;
    border-radius: 12px;
    transition:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.3s ease,
        opacity 0.3s ease,
        filter 0.3s ease,
        text-shadow 0.3s ease;
    opacity: 0.34;
    filter: blur(0.16px);
    cursor: pointer;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

.music-lyric-line:hover {
    color: var(--text);
    opacity: 0.82;
}

.music-lyric-line.active {
    color: var(--text);
    opacity: 1;
    font-weight: 900;
    transform: scale(1.5);
    text-shadow:
        0 0 18px color-mix(in srgb, var(--primary) 38%, transparent),
        0 0 36px color-mix(in srgb, var(--primary) 22%, transparent),
        0 0 54px color-mix(in srgb, var(--primary) 12%, transparent);
    filter: none;
}

.music-lyric-line.near {
    opacity: 0.72;
    transform: scale(1.08);
    color: color-mix(in srgb, var(--text) 72%, var(--text-sub));
    filter: blur(0.03px);
}

.music-lyric-line.mid {
    opacity: 0.5;
    transform: scale(1);
    color: color-mix(in srgb, var(--text) 54%, var(--text-sub));
    filter: blur(0.08px);
}

.music-lyric-line.past {
    opacity: 0.44;
}

.music-lyric-line.far {
    opacity: 0.36;
    transform: scale(0.98);
}

.music-lyric-line:disabled {
    cursor: default;
}

html[data-theme="light"] .music-lyrics-panel {
    background:
        radial-gradient(ellipse at center, rgba(155, 106, 156, 0.04) 0%, rgba(155, 106, 156, 0.012) 34%, transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(249, 247, 251, 0.7));
    border-color: rgba(0, 0, 0, 0.035);
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.04);
}

.account-settings-shell .Box-row {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .account-settings-shell .Box-row {
    background: rgba(24, 28, 34, 0.82);
}

html[data-theme="dark"] .account-card {
    background: rgba(9, 13, 18, 0.46) !important;
}

html[data-theme="light"] .music-lyrics-panel-header {
    border-bottom-color: rgba(0, 0, 0, 0.028);
}

html[data-theme="light"] .music-lyrics-scroll {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.64) 10%, #000 20%, #000 80%, rgba(0, 0, 0, 0.64) 90%, rgba(0, 0, 0, 0.28) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.64) 10%, #000 20%, #000 80%, rgba(0, 0, 0, 0.64) 90%, rgba(0, 0, 0, 0.28) 100%);
    background:
        radial-gradient(ellipse at center, rgba(155, 106, 156, 0.05) 0%, rgba(155, 106, 156, 0.015) 42%, transparent 70%);
}

html[data-theme="light"] .music-lyric-line {
    color: rgba(31, 41, 55, 0.46);
    filter: blur(0.08px);
}

html[data-theme="light"] .music-lyric-line:hover {
    color: rgba(31, 41, 55, 0.82);
}

html[data-theme="light"] .music-lyric-line.active {
    color: rgba(20, 24, 32, 0.98);
    text-shadow:
        0 0 12px rgba(155, 106, 156, 0.22),
        0 0 28px rgba(155, 106, 156, 0.12),
        0 0 44px rgba(155, 106, 156, 0.08);
}

html[data-theme="light"] .music-lyric-line.near {
    color: rgba(31, 41, 55, 0.68);
    filter: blur(0.02px);
}

html[data-theme="light"] .music-lyric-line.mid {
    color: rgba(31, 41, 55, 0.56);
    filter: blur(0.05px);
}

html[data-theme="light"] .music-lyric-line.past {
    opacity: 0.42;
}

html[data-theme="light"] .music-lyric-line.far {
    opacity: 0.34;
}

.player-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border);
}

.player-queue-list {
    max-height: 220px;
    overflow-y: auto;
}

.player-queue-item {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
    transition: background 0.2s ease;
}

.player-queue-item:last-child {
    border-bottom: none;
}

.player-queue-item:hover {
    background: var(--chip-hover);
}

.player-queue-item.active {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.player-queue-item-index {
    width: 22px;
    color: var(--text-sub);
    font-size: 12px;
    flex-shrink: 0;
    text-align: center;
}

.player-queue-item-main {
    min-width: 0;
    flex: 1;
}

.player-queue-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-queue-item-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-queue-item-time {
    font-size: 11px;
    color: var(--text-sub);
    flex-shrink: 0;
}


.ip-card {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-weight: bold;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.card-content {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    word-break: break-all;
}

.ip-highlight {
    color: var(--primary);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.status-ok {
    color: #52c41a;
}

.status-fail {
    color: #ff4d4f;
}

.vinyl-spin {
    animation: spin 15s linear infinite;
}

.vinyl-pause {
    animation-play-state: paused;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

audio::-webkit-media-controls-enclosure {
    background-color: transparent;
}

audio::-webkit-media-controls-panel {
    background-color: var(--bg);
    border-radius: 8px;
}

.premium-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: height 0.2s;
}

.premium-slider:hover {
    height: 6px;
}

.premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.1s;
}

.premium-slider::-webkit-slider-thumb:hover {
    transform: scale(1.4);
}

.title-scroll-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 6px;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.title-scroll-text {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    white-space: nowrap;
}

.title-scroll-text.is-scrolling {
    animation: marquee-bounce 6s linear infinite alternate;
}

@keyframes marquee-bounce {

    0%,
    15% {
        transform: translateX(0);
    }

    85%,
    100% {
        transform: translateX(var(--scroll-offset));
    }
}

.video-tag {
    padding: 5px 14px;
    font-size: 13px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-sub);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.video-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.video-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(155, 106, 156, 0.3);
}

.video-category-wrapper {
    width: 100%;
    margin-bottom: 20px;
    padding: 5px 0;
}

#video-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.video-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.video-tag.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(155, 106, 156, 0.25);
}

.music-card {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.music-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.music-cover-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.music-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.music-card:hover .music-cover-wrapper img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-icon-circle {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.music-card.is-playing {
    border-color: var(--primary) !important;
    background: var(--input-bg) !important;
    opacity: 1 !important;
    box-shadow: inset 0 0 0 2px var(--primary), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.music-card.is-playing .music-title {
    opacity: 1 !important;
}

.music-card.is-playing .play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

#danmu-list-body {
    overflow-y: auto !important;
    scrollbar-gutter: stable;
    flex: 1;
    min-height: 0;
    box-sizing: border-box;
}

#danmu-list-body::-webkit-scrollbar {
    width: 6px !important;
}

#danmu-list-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

#danmu-list-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

#view-messages,
#view-media,
#view-login,
#view-fetch,
#view-video-library,
#view-flip,
#view-open-live,
#view-profile,
#view-photos,
#view-melee-rank,
#view-trip,
#view-room-album,
#view-member-dynamic,
#view-member-weibo,
#view-room-radio,
#view-settings,
#view-pbc {
    overflow-y: scroll !important;
    scrollbar-gutter: stable both-edges;
}

#view-settings .list-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

#view-member-weibo,
#view-member-dynamic {
    scrollbar-gutter: stable;
}

#view-audio-programs,
#view-music-library {
    overflow: hidden !important;
}

#audio-scroll-area,
#music-scroll-area,
#view-video-library {
    overflow-y: scroll !important;
    scrollbar-gutter: stable both-edges;
}

#view-audio-programs #audio-scroll-area {
    display: flex;
    min-height: 0;
    overflow: hidden !important;
    padding: 0 2.5% !important;
    scrollbar-gutter: auto;
}

#view-audio-programs .list-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: none;
}

#view-audio-programs .page-header {
    flex-shrink: 0;
}

.maskword-settings-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pbc-shell {
    width: min(100%, 960px);
    max-width: none;
}

.pbc-card {
    margin-top: 0;
}

#view-pbc .page-title {
    color: var(--text);
}

.maskword-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.maskword-settings-desc {
    margin-top: 8px;
    color: var(--text-sub);
    font-size: 12px;
}

.maskword-input {
    min-height: 96px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    padding: 12px 16px;
}

.maskword-result {
    min-height: 44px;
    padding: 16px 18px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-sub);
    background: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

.maskword-settings-card>.maskword-result {
    padding-bottom: 14px;
}

html[data-theme="dark"] .maskword-result {
    background: rgba(255, 255, 255, 0.04);
}

.maskword-result.is-hit {
    color: var(--text);
    border-color: rgba(255, 77, 79, 0.45);
}

.maskword-hit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 2px;
}

.maskword-hit-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.12);
    font-size: 12px;
    font-weight: 800;
    word-break: break-all;
}

#view-private-messages {
    overflow: hidden !important;
    min-height: 0;
}

#live-player-view {
    overflow: hidden !important;
}

#player-split-layout {
    min-height: 0 !important;
    height: 0 !important;
}

#danmu-timeline-wrapper {
    min-height: 0 !important;
    height: 100% !important;
}

#danmu-list-body {
    min-height: 0 !important;
    height: 0 !important;
    flex: 1 !important;
}

.session-card {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.session-card:hover {
    background: var(--chip-hover);
}

.session-card.active {
    background: var(--blockquote-bg);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.session-avatar-wrap {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.session-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.session-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #ff4d4f;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
    border: 2px solid var(--input-bg);
    line-height: 1;
}

.session-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-msg {
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#followed-rooms-container {
    padding: 6px 0 !important;
}

.session-card {
    border-radius: 8px !important;
    margin: 2px 10px 4px 10px !important;
    border: 1px solid transparent !important;
    background-color: transparent !important;
}

.session-card:hover {
    background-color: var(--chip-hover) !important;
}

.session-card.active {
    background-color: var(--card) !important;
    border: 1px solid var(--primary) !important;
    box-shadow: inset 2px 0 0 var(--primary), 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.session-card.active .session-title {
    color: var(--text) !important;
    transition: color 0.2s ease;
}

#followed-chat-messages {
    overflow-y: auto;
    padding: 20px;
    overflow-anchor: auto;
}

.followed-message-avatar-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin: 2px 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.followed-message-avatar-btn .avatar {
    width: 34px;
    height: 34px;
    margin: 0;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.followed-message-avatar-btn:hover .avatar {
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: none;
}

.followed-user-profile-modal {
    width: min(92vw, 430px);
    height: min(86vh, 760px);
    max-height: 86vh;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.followed-user-profile-modal .modal-header {
    display: none;
}

.followed-user-profile-body {
    flex: 1;
    position: relative;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.followed-profile-back-btn {
    position: absolute;
    z-index: 8;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    line-height: 31px;
    text-align: center;
    cursor: pointer;
}

.followed-profile-back-btn:hover {
    background: rgba(0, 0, 0, 0.36);
}

.followed-user-profile-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.followed-user-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.followed-user-profile-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.followed-user-profile-title {
    min-width: 0;
}

.followed-user-profile-name {
    color: var(--text);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.35;
    word-break: break-word;
}

.followed-user-profile-id {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 12px;
}

.followed-user-profile-sign {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}

.followed-user-profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.followed-user-profile-meta-item {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
}

.followed-user-profile-meta-item span {
    display: block;
    margin-bottom: 3px;
    color: var(--text-sub);
    font-size: 11px;
}

.followed-user-profile-meta-item strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.followed-user-profile-section {
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.followed-user-profile-section-title {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
}

.followed-user-profile-star-name {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 850;
}

.followed-user-profile-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.followed-user-profile-photos img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
}

.followed-user-profile-loading {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-sub);
    font-size: 13px;
}

.followed-user-profile-loading img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.followed-pocket-profile {
    height: 100%;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #1f1f1f;
    overflow: hidden;
}

.followed-pocket-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.followed-pocket-scroll::-webkit-scrollbar {
    display: none;
}

.followed-pocket-hero {
    position: relative;
    height: 320px;
    flex-shrink: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.02) 46%, rgba(0, 0, 0, 0.42)),
        var(--followed-profile-cover) center / cover no-repeat;
}

.followed-pocket-summary {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 22px;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
}

.followed-pocket-avatar {
    position: static;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.followed-pocket-title {
    min-width: 0;
}

.followed-pocket-name-row {
    min-height: 26px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.followed-pocket-name {
    max-width: 220px;
    overflow: hidden;
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.followed-pocket-badge {
    height: 17px;
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 0 5px;
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(1px);
}

.followed-pocket-badge.badge-0 {
    background: linear-gradient(135deg, #ff9f1c, #ff5c7a);
}

.followed-pocket-badge.badge-1 {
    background: linear-gradient(135deg, #7e8cff, #9c6bff);
}

.followed-pocket-badge.badge-2,
.followed-pocket-badge.badge-3 {
    background: linear-gradient(135deg, #ce8f59, #f5c27a);
}

.followed-pocket-id,
.followed-pocket-brief {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.45;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.followed-pocket-brief {
    margin-top: 4px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.followed-pocket-tabs {
    height: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #efefef;
    background: #fff;
}

.followed-pocket-profile-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.followed-pocket-profile-tab.is-active {
    color: #795cff;
}

.followed-pocket-profile-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #795cff;
}

.followed-pocket-tab-panels {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    overflow: visible;
    background: #fff;
}

.followed-pocket-tab-panel {
    display: none;
    min-height: 0;
    width: 100%;
}

.followed-pocket-tab-panel.is-active {
    display: block;
}

.followed-pocket-honor-stage {
    width: 100%;
    box-sizing: border-box;
    min-height: 330px;
    padding: 28px 24px 36px;
    background:
        radial-gradient(circle at 78% 14%, rgba(255, 191, 80, 0.32), transparent 28%),
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.18), transparent 20%),
        linear-gradient(135deg, rgba(79, 22, 17, 0.92), rgba(38, 16, 13, 0.96));
}

.followed-pocket-honor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: start;
}

.followed-pocket-honor-card {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.followed-pocket-honor-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

.followed-pocket-honor-card-placeholder {
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid rgba(255, 209, 115, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffd173;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}

.followed-pocket-honor-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #ffd173;
    font-size: 15px;
    line-height: 1.25;
    min-height: 20px;
    font-weight: 400;
    text-align: center;
}

.followed-pocket-honor-card-meta b,
.followed-pocket-honor-card-meta em,
.followed-pocket-honor-card-meta i {
    font-style: normal;
    font-weight: 400;
}

.followed-pocket-info-card {
    padding: 18px;
    background: #fff;
    color: #222;
}

.followed-pocket-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    background: #fff;
}

.followed-pocket-media-card {
    position: relative;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f2f2f2;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
    content-visibility: auto;
    contain-intrinsic-size: 140px 140px;
}

.followed-pocket-media-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: translateZ(0);
}

.followed-pocket-video-card {
    cursor: pointer;
}

.followed-pocket-video-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #101114;
}

.followed-pocket-video-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(251, 114, 153, 0.92);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

.followed-pocket-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    font-size: 15px;
    pointer-events: none;
}

.followed-pocket-video-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    background: #101114;
}

.followed-profile-video-modal {
    z-index: 2100;
    background: rgba(0, 0, 0, 0.78);
}

.followed-profile-video-dialog {
    position: relative;
    display: inline-flex;
    width: auto;
    padding: 14px;
    border-radius: 12px;
    background: #08090c;
}

.followed-profile-video-close {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 22px;
    line-height: 30px;
    cursor: pointer;
}

.followed-profile-video-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.followed-profile-video-player {
    display: block;
    width: auto;
    height: auto;
    max-width: min(82vw, 720px);
    max-height: 74vh;
    border-radius: 10px;
    background: #000;
    object-fit: contain;
}

.followed-profile-video-slot .video-wrapper,
.followed-profile-video-slot .video-placeholder {
    margin: 0 !important;
    transform: none !important;
}

.followed-profile-video-slot .video-wrapper:hover,
.followed-profile-video-slot .video-placeholder:hover {
    transform: none !important;
}

.followed-pocket-dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #f5f5f6;
}

.followed-pocket-dynamic-card {
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    color: #222;
}

.followed-pocket-dynamic-text {
    color: #222;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.followed-pocket-dynamic-mention {
    color: var(--primary);
    font-weight: 400;
}

.followed-pocket-dynamic-mention-btn {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.followed-pocket-dynamic-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
}

.followed-pocket-dynamic-image {
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #f2f2f2;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
}

.followed-pocket-dynamic-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.followed-pocket-dynamic-time {
    margin-top: 8px;
    color: #999;
    font-size: 11px;
}

.followed-pocket-sign {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f6f6f7;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.followed-pocket-profile-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #9a9a9a;
    font-size: 13px;
}

.followed-pocket-actions {
    height: 58px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 0 0 58px;
    border-top: 1px solid #ececec;
    background: #fff;
}

.followed-pocket-action {
    border: 0;
    border-right: 1px solid #e5e5e5;
    background: #fff;
    color: #555;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
}

.followed-pocket-action:last-child {
    border-right: 0;
}

.followed-pocket-action:disabled {
    cursor: not-allowed;
}

.followed-pocket-profile .followed-user-profile-meta-item {
    background: #f8f8fa;
    border-color: #ededf0;
}

.followed-pocket-profile .followed-user-profile-meta-item span {
    color: #8a8a8a;
}

.followed-pocket-profile .followed-user-profile-meta-item strong {
    color: #222;
}

.followed-member-profile {
    height: 100%;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #202124;
    overflow: hidden;
}

.followed-member-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.followed-member-scroll::-webkit-scrollbar {
    display: none;
}

.followed-member-hero {
    --followed-member-cover: linear-gradient(135deg, #7768ff, #9b75ff);
    position: relative;
    height: 260px;
    flex: 0 0 260px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(112, 94, 255, 0.68), rgba(112, 94, 255, 0.48)),
        var(--followed-member-cover) center / cover no-repeat;
}

.followed-member-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22));
    pointer-events: none;
}

.followed-member-hero-main {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.followed-member-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.followed-member-title {
    min-width: 0;
    padding-bottom: 0;
}

.followed-member-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.followed-member-name {
    max-width: 248px;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
}

.followed-member-team {
    height: 17px;
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
    border-radius: 5px;
    background: #ffe21f;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    text-shadow: 0 1px 1px rgba(170, 132, 0, 0.5);
}

.followed-member-team-logo {
    height: 17px;
    width: auto;
    max-width: 54px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
}

.followed-member-fans {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    line-height: 1.2;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.followed-member-tabs {
    height: 58px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex: 0 0 58px;
    border-bottom: 1px solid #ececf1;
    background: #fff;
}

.followed-member-tabs .followed-pocket-profile-tab {
    font-size: 18px;
    color: #333;
}

.followed-member-tabs .followed-pocket-profile-tab.is-active {
    color: #795cff;
}

.followed-member-tab-panels {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    overflow: visible;
    background: #f7f7f9;
}

.followed-member-actions {
    height: 58px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 0 0 58px;
    border-top: 1px solid #ececf1;
    background: #fff;
}

.followed-member-action {
    border: 0;
    border-right: 1px solid #ececf1;
    background: #fff;
    color: #555;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
}

.followed-member-action:last-child {
    border-right: 0;
}

.followed-member-action:disabled {
    cursor: not-allowed;
}

.followed-member-intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
}

.followed-member-intro .followed-user-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.followed-member-intro .followed-user-profile-meta-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #f6f6f8;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.followed-member-intro .followed-user-profile-meta-item span {
    flex: 0 0 70px;
    margin-bottom: 0;
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.followed-member-intro .followed-user-profile-meta-item strong {
    min-width: 0;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}

.followed-member-intro-line {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f6f8;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.followed-member-intro-line b {
    flex: 0 0 70px;
    color: #222;
    font-size: 13px;
}

.followed-member-intro-line span {
    min-width: 0;
    word-break: break-word;
}

.followed-member-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.followed-member-history-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f6f8;
    color: #555;
    font-size: 12px;
    line-height: 1.45;
}

.followed-member-history-item span {
    color: #8a8f99;
    white-space: nowrap;
}

.followed-member-history-item strong {
    min-width: 0;
    color: #333;
    font-weight: 400;
    word-break: break-word;
}

.followed-member-live-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #f5f5f6;
}

.followed-member-live-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.followed-member-live-cover {
    position: relative;
    width: 112px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #ececf0;
}

.followed-member-live-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.followed-member-live-cover span {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(251, 114, 153, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.followed-member-live-info {
    min-width: 0;
}

.followed-member-live-info strong {
    display: block;
    overflow: hidden;
    color: #222;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.followed-member-live-info span {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
}

.followed-chat-mobile-back {
    display: none;
}

.drag-over-target {
    border-top: 2px solid var(--primary) !important;
    background-color: var(--chip-hover) !important;
}

.template-image-express-image {
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain;
    border-radius: 8px;
    margin: 5px 0 !important;
    box-shadow: none !important;
}

.template-media {
    max-width: 100%;
    border-radius: 6px;
    margin-top: 5px;
}

#followed-chat-avatar {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

:root {
    --msg-name-member: #FB7299;
    --msg-name-fan: var(--text);
}

[data-theme='dark'] {
    --msg-name-member: #FF85AD;
    --msg-name-fan: var(--text);
}

#followed-chat-header,
#followed-chat-messages,
#view-followed-rooms>div:nth-child(2),
.empty-state {
    background: transparent !important;
    background-color: transparent !important;
}

.msg-item .template-pre,
#followed-chat-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.yklz-btn {
    background: rgba(255, 255, 255, 0.05) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e0e0e0 !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.yklz-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

.yklz-btn:active {
    transform: scale(0.96);
}

.yklz-scroll::-webkit-scrollbar {
    width: 4px;
}

.yklz-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.private-messages-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.private-messages-shell {
    display: flex;
    height: 100%;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.private-messages-sidebar {
    width: 280px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--input-bg);
    flex-shrink: 0;
    min-height: 0;
}

.private-messages-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--sidebar-bg);
    gap: 10px;
}

.private-messages-sidebar-title {
    margin: 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

.private-messages-sidebar-search {
    padding: 12px 18px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--sidebar-bg);
}

.private-messages-side-status {
    font-size: 12px;
    color: var(--text-sub);
    min-height: 0;
    padding: 10px 20px 8px;
    background: var(--sidebar-bg);
}

.private-messages-side-status:empty {
    display: none;
}

.private-messages-toolbar-left {
    flex: 1;
    min-width: 0;
}

.private-messages-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.private-messages-toolbar-actions .btn {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.private-message-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.private-message-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.private-message-list-item:hover {
    background: var(--chip-hover);
}

.private-message-list-item.active {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    border-left: 2px solid var(--primary);
    padding-left: 14px;
}

.private-message-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50%;
    object-fit: cover !important;
    flex-shrink: 0;
    background: var(--input-bg);
    border: 1px solid var(--border);
    display: block;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: default;
}

.private-message-avatar.is-clickable,
.private-message-sender-avatar.is-clickable {
    cursor: pointer;
}

.private-message-list-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--input-bg);
    border: 1px solid var(--border);
}

.private-message-list-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.private-message-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.private-message-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.private-message-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
}

.private-message-list-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 7px;
    min-width: 40px;
    flex-shrink: 0;
    align-self: stretch;
    padding-top: 2px;
}

.private-message-team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    min-width: 42px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    border-width: 1px;
    border-style: solid;
    background: rgba(var(--team-rgb, 255, 255, 255), 0.16);
    border-color: rgba(var(--team-rgb, 255, 255, 255), 0.75);
    color: rgb(var(--team-rgb, 255, 255, 255));
}

[data-theme="light"] .private-message-team-badge:not([style*="--team-rgb"]) {
    background: rgba(108, 117, 125, 0.12);
    border-color: rgba(108, 117, 125, 0.38);
    color: #5f6873;
}

.private-message-list-tail {
    font-size: 11px;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.private-message-meta-inline {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.private-message-time {
    font-size: 11px;
    color: var(--text-sub);
    white-space: nowrap;
}

.private-message-last {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.private-message-unread-dot {
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(255, 77, 79, 0.16);
    flex-shrink: 0;
}

.private-message-list-item.active .private-message-name {
    color: var(--primary) !important;
}

.private-messages-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    min-height: 0;
}

.private-messages-panel-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--sidebar-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.private-message-mobile-back {
    display: none;
}

.private-message-detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}

.private-message-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
    max-width: min(46%, 390px);
}

.private-message-item.incoming {
    align-self: flex-start;
    align-items: flex-start;
}

.private-message-item.outgoing {
    align-self: flex-end;
    align-items: flex-end;
}

.private-message-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 100%;
}

.private-message-item.outgoing .private-message-row {
    flex-direction: row-reverse;
}

.private-message-sender-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--input-bg);
    border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.private-message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.private-message-item.incoming .private-message-content {
    align-items: flex-start;
}

.private-message-item.outgoing .private-message-content {
    align-items: flex-end;
}

.private-message-bubble {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 12px;
    line-height: 1.08;
    font-size: 13px;
    word-break: break-word;
    white-space: pre-line;
    border: 1px solid var(--border);
    background: var(--card);
    text-align: left;
}

.private-message-bubble .audio-wrapper {
    margin: 0;
    max-width: 100%;
}

.private-message-audio-slot {
    display: inline-flex;
    align-items: center;
}

.private-message-video-slot {
    display: inline-flex;
    max-width: 100%;
}

.private-message-bubble .video-wrapper {
    max-width: 100%;
}

.private-message-image-button {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    cursor: zoom-in;
}

.private-message-image {
    display: block;
    max-width: min(260px, 100%);
    max-height: 360px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.private-message-bubble.incoming {
    border-top-left-radius: 6px;
    background: color-mix(in srgb, var(--primary) 7%, var(--card));
}

.private-message-bubble.outgoing {
    border-top-right-radius: 6px;
    background: color-mix(in srgb, var(--primary) 12%, var(--input-bg));
}

.private-message-bubble-meta {
    display: inline-block;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    font-size: 11px;
    color: var(--text-sub);
    padding: 0 4px;
    line-height: 1.1;
    text-align: left;
}

.private-message-item.outgoing .private-message-bubble-meta {
    align-self: flex-end;
    text-align: right;
}

.private-message-detail-actions {
    position: relative;
    z-index: 5;
    padding: 12px 22px 16px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--sidebar-bg) 88%, transparent);
    overflow: visible;
}

.private-message-flip-panel {
    align-items: center;
    column-gap: 22px;
    row-gap: 8px;
    min-height: 34px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 5%, var(--input-bg));
    overflow: visible;
}

.private-message-flip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.private-message-flip-toggle input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--primary);
}

.private-message-flip-control,
.private-message-flip-cost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.private-message-flip-label {
    color: var(--text-sub);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

#private-message-flip-cost-input {
    width: 66px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    text-align: center;
}

.private-message-flip-dropdown-wrap {
    position: relative;
    width: 96px;
    flex-shrink: 0;
}

#private-message-flip-privacy-wrapper {
    width: 76px;
}

.private-message-flip-dropdown-input {
    width: 100%;
    height: 28px;
    padding: 0 24px 0 8px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
}

.private-message-flip-dropdown-input:disabled {
    cursor: not-allowed;
}

.private-message-flip-dropdown-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 10px;
    pointer-events: none;
}

.private-message-flip-dropdown-wrap .suggestion-box {
    top: 100%;
    bottom: auto;
    margin-top: 4px;
    margin-bottom: 0;
    display: none;
    width: 100%;
    min-width: 96px;
    max-height: 118px;
    overflow-y: auto;
    z-index: 10000;
}

.private-message-flip-dropdown-wrap .suggestion-item {
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.2;
}

.private-message-flip-status {
    flex: 1;
    min-width: 80px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
}

.private-message-flip-status[data-tone="success"] {
    color: #28a745;
}

.private-message-flip-status[data-tone="warn"] {
    color: #fa8c16;
}

.private-message-flip-status[data-tone="error"] {
    color: #ff4d4f;
}

#private-message-reply-input {
    min-height: 56px;
    font-family: inherit;
}

.private-message-reply-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.private-message-reply-wrap #private-message-reply-input {
    width: 100%;
    padding-bottom: 24px !important;
}

.private-message-reply-count {
    position: absolute;
    right: 12px;
    bottom: 7px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
}

.private-message-reply-count.is-limit {
    color: #ff4d4f;
}

.private-message-image-send-btn {
    width: 68px;
    height: 74px;
    flex-shrink: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.private-message-image-send-btn .private-message-image-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.flip-seven-day-countdown {
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin: 0;
    color: #faad14;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.flip-seven-day-countdown.is-expired {
    color: #ff4d4f;
}

.flip-seven-day-countdown.is-urgent {
    color: #ff4d4f;
}

html[data-theme="light"] .flip-seven-day-countdown {
    color: #d97706;
}

html[data-theme="light"] .flip-seven-day-countdown.is-expired,
html[data-theme="light"] .flip-seven-day-countdown.is-urgent {
    color: #dc2626;
}

@media (max-width: 980px) {
    .private-messages-shell {
        flex-direction: column;
    }

    .private-messages-sidebar {
        width: 100%;
        max-height: 40%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .private-messages-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .private-messages-toolbar-actions {
        width: 100%;
    }

    .private-messages-toolbar-actions .btn {
        flex: 1;
    }

    .private-message-flip-panel {
        flex-wrap: wrap;
    }

    .private-message-flip-status {
        width: 100%;
        flex-basis: 100%;
        text-align: left;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    #view-media,
    #live-player-view,
    #player-split-layout,
    #player-right-column,
    #player-combo-wrapper,
    #danmu-timeline-wrapper,
    #clip-toolbar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #view-media {
        height: auto !important;
        min-height: 100dvh !important;
        padding: 0 10px 14px !important;
        overflow-y: visible !important;
        scrollbar-gutter: auto !important;
    }

    #live-player-view {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        gap: 12px !important;
    }

    #live-player-view > div:first-child {
        margin: 10px 0 2px !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }

    #live-player-view > div:first-child > div:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        gap: 12px !important;
    }

    #live-player-view > div:first-child > div:first-child > div:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px 18px !important;
        min-width: 0 !important;
    }

    #live-player-view > div:first-child > div:first-child > div:first-child > div {
        min-width: 0 !important;
    }

    #current-live-author,
    #current-live-title,
    #current-live-date,
    #current-live-time {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #live-player-view .player-top-actions .btn {
        width: auto !important;
        min-width: 72px !important;
        height: 40px !important;
        padding: 0 10px !important;
        white-space: nowrap !important;
    }

    #live-player-view .player-top-actions {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    #current-openlive-members-wrap {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }

    #player-split-layout {
        flex: none !important;
        flex-direction: column !important;
        gap: 12px !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 0 12px !important;
        overflow: visible !important;
    }

    #player-right-column {
        order: 1;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    #player-combo-wrapper {
        flex: none !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    #live-announcement-bar {
        padding: 10px 12px !important;
    }

    #live-player-area {
        flex: none !important;
        width: 100% !important;
        height: min(68vh, 720px) !important;
        height: min(68svh, 720px) !important;
        max-height: none !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        background: #000 !important;
    }

    #live-player-container,
    #live-video,
    #live-player-container .artplayer,
    #live-player-container video {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        object-fit: contain !important;
        background: #000 !important;
    }

    #clip-toolbar {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    #clip-toolbar > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    #clip-toolbar > div > div:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px !important;
        width: 100% !important;
    }

    #clip-toolbar > div > div:first-child > div,
    #clip-toolbar > div > div:first-child > div > div {
        min-width: 0 !important;
    }

    #clip-start-display,
    #clip-end-display {
        min-width: 0 !important;
        padding: 0 8px !important;
        font-size: 13px !important;
    }

    #clip-toolbar > div > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    #clip-duration-display {
        width: auto !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    #btn-do-clip {
        width: 132px !important;
        max-width: 45% !important;
    }

    #danmu-timeline-wrapper {
        order: 2;
        height: auto !important;
        max-height: none !important;
        min-height: 280px !important;
        --col-seq: 34px !important;
        --col-time: 112px !important;
        --col-name: 90px !important;
        --col-act: 72px !important;
    }

    #danmu-timeline-wrapper > div:first-child {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    #danmu-timeline-wrapper > div:first-child > div:first-child {
        flex: 0 0 auto !important;
        gap: 12px !important;
    }

    #danmu-timeline-wrapper > div:first-child > div:nth-child(2) {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    #danmu-search-input {
        min-width: 0 !important;
        margin-left: 0 !important;
    }

    #btn-danmu-analysis,
    #danmu-count-display {
        flex-shrink: 0 !important;
    }

    #danmu-list-body {
        flex: none !important;
        height: auto !important;
        max-height: 42dvh !important;
        overflow-y: auto !important;
    }

    .danmu-row {
        padding: 0 12px !important;
    }

    #view-private-messages {
        height: auto !important;
        min-height: 100dvh !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    #view-private-messages .private-messages-shell {
        height: calc(100dvh - 16px);
        min-height: 0;
        border-radius: 10px;
        flex-direction: column;
    }

    #view-private-messages .private-messages-sidebar {
        width: 100%;
        max-height: none;
        flex: 1 1 auto;
        border-right: none;
        border-bottom: none;
    }

    #view-private-messages:not(.is-detail-open) .private-messages-panel {
        display: none;
    }

    #view-private-messages.is-detail-open .private-messages-sidebar {
        display: none;
    }

    #view-private-messages.is-detail-open .private-messages-panel {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
    }

    #view-private-messages .private-messages-sidebar-header {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    #view-private-messages .private-messages-sidebar-header > div:first-child {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px !important;
        width: 100%;
    }

    #view-private-messages .private-messages-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #view-private-messages .private-messages-toolbar-actions .btn {
        width: 100%;
        height: 38px;
        font-size: 13px;
    }

    #view-private-messages .private-messages-side-status {
        padding: 8px 12px;
    }

    #view-private-messages .private-message-list {
        padding: 8px 0;
    }

    #view-private-messages .private-message-list-item {
        padding: 12px;
        gap: 12px;
    }

    #view-private-messages .private-message-list-item.active {
        padding-left: 10px;
    }

    #view-private-messages .private-message-list-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    #view-private-messages .private-messages-panel-header {
        min-height: 58px;
        padding: 9px 12px;
    }

    #view-private-messages .private-message-mobile-back {
        height: 34px;
        padding: 0 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--input-bg);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    #view-private-messages .private-message-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        min-height: 36px;
    }

    #view-private-messages .private-message-detail-body {
        padding: 12px;
        gap: 12px;
    }

    #view-private-messages .private-message-item {
        max-width: 88%;
    }

    #view-private-messages .private-message-bubble {
        padding: 7px 11px;
        line-height: 1.38;
        font-size: 14px;
    }

    #view-private-messages .private-message-detail-actions {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    #view-private-messages .private-message-flip-panel {
        column-gap: 10px;
        row-gap: 8px;
    }

    #view-private-messages .private-message-detail-actions > div:last-child {
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    #private-message-reply-input {
        height: 56px !important;
        min-height: 56px;
        padding: 8px 10px 22px !important;
    }

    #btn-send-private-message {
        width: 68px !important;
        height: 56px !important;
    }

    #btn-send-private-message-image {
        width: 58px !important;
        height: 56px !important;
    }

    #private-message-new-messages {
        bottom: 82px !important;
    }

    #view-followed-rooms {
        height: auto !important;
        min-height: 100dvh !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    #view-followed-rooms > div {
        height: calc(100dvh - 16px) !important;
        min-height: 0 !important;
        border-radius: 10px !important;
        flex-direction: column !important;
    }

    #view-followed-rooms > div > div:first-child {
        width: 100% !important;
        max-height: none !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    #view-followed-rooms:not(.is-chat-open) > div > div:last-child {
        display: none !important;
    }

    #view-followed-rooms.is-chat-open > div > div:first-child {
        display: none !important;
    }

    #view-followed-rooms.is-chat-open > div > div:last-child {
        display: flex !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }

    #view-followed-rooms > div > div:first-child > div:first-child {
        padding: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    #view-followed-rooms > div > div:first-child > div:first-child > div {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px !important;
    }

    #followed-sort-wrapper {
        width: 100% !important;
    }

    #followed-rooms-container {
        padding: 8px 0 !important;
    }

    #view-followed-rooms .session-card {
        margin: 2px 8px 6px !important;
        padding: 12px !important;
    }

    #view-followed-rooms > div > div:first-child > div:last-child {
        padding: 10px !important;
    }

    #followed-chat-header {
        min-height: 58px;
        padding: 9px 12px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    #followed-chat-header > div:first-child {
        margin-right: 0 !important;
        gap: 10px !important;
    }

    .followed-chat-mobile-back {
        height: 34px;
        padding: 0 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--input-bg);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    #followed-chat-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    #followed-chat-header > div:last-child {
        gap: 6px !important;
    }

    #btn-toggle-room-type {
        height: 30px !important;
        padding: 0 8px !important;
    }

    #btn-toggle-followed-mode {
        width: 72px !important;
        height: 30px !important;
    }

    #followed-chat-messages {
        padding: 12px !important;
    }

    #view-flip .flip-question-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 6px !important;
    }

    #view-flip .flip-question-title-wrap,
    #view-flip .flip-answer-title-wrap {
        width: 100%;
    }

    #view-flip .flip-question-title {
        display: block;
    }

    #view-flip .flip-question-side-inline {
        display: none;
    }

    #view-flip .flip-question-meta-row {
        display: flex;
    }

    #view-flip .flip-answer-row {
        align-items: flex-start !important;
    }

    #view-flip .flip-answer-time {
        flex-basis: 100%;
        margin-left: 0 !important;
        margin-top: 4px;
    }
}

@media (max-width: 380px) {
    #live-player-view > div:first-child > div:first-child {
        grid-template-columns: 1fr !important;
    }

    #live-player-view .player-top-actions,
    #live-player-view .player-top-actions .btn {
        width: 100% !important;
    }

    #clip-toolbar > div > div:first-child {
        grid-template-columns: 1fr !important;
    }

    #btn-do-clip {
        width: 118px !important;
    }

    #danmu-timeline-wrapper {
        --col-time: 98px !important;
        --col-name: 72px !important;
    }
}

html[data-platform="web"] .window-controls {
    display: none;
}

html[data-platform="web"] .web-hidden {
    display: none !important;
}

html[data-platform="web"] #load-all-btn {
    display: none !important;
}

html[data-platform="web"] .home-panel-messages {
    display: none !important;
}

html[data-platform="web"].web-mobile-device #clip-toolbar,
html[data-platform="web"].web-mobile-device [data-clip-toolbar] {
    display: none !important;
}

html.web-secondary-route-boot #view-home {
    display: none !important;
    visibility: hidden !important;
}

html.web-route-pending .app-container {
    visibility: hidden;
}

html.web-route-pending body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--bg);
}

html.web-route-pending body::after {
    content: "";
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 4px solid rgba(148, 163, 184, 0.22);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

html[data-platform="web"] .custom-title-bar {
    height: 54px;
    margin: 12px 16px 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-app-region: no-drag;
    z-index: 20;
}

html[data-platform="web"][data-theme="dark"] .custom-title-bar {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(16, 22, 32, 0.50);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

html[data-platform="web"] .title-info {
    height: 36px;
    padding-left: 0;
    gap: 10px;
    font-size: 13px;
}

html[data-platform="web"] .title-info .control-btn {
    width: 36px;
    height: 36px;
    margin-right: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.38);
    color: var(--text);
}

html[data-platform="web"][data-theme="dark"] .title-info .control-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-platform="web"] .title-info .control-btn:hover {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(155, 106, 156, 0.35);
}

html[data-platform="web"][data-theme="dark"] .title-info .control-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

html[data-platform="web"] .title-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

html[data-platform="web"] .title-bar-center-title {
    max-width: min(360px, calc(100vw - 380px));
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 13px;
}

html[data-platform="web"][data-theme="dark"] .title-bar-center-title {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

html[data-platform="web"] {
    --web-topbar-height: 58px;
    --web-viewport-height: 100vh;
    --web-bottom-reserve: 0px;
    --web-app-height: var(--web-viewport-height);
    --web-fixed-content-height: calc(var(--web-viewport-height) - var(--web-topbar-height));
}

html[data-platform="web"] body {
    height: var(--web-viewport-height);
    min-height: var(--web-viewport-height);
    overflow: hidden;
}

html[data-platform="web"] .app-container {
    height: calc(var(--web-viewport-height) - var(--web-topbar-height));
    min-height: 0;
    overflow: hidden;
}

html[data-platform="web"] .page-container {
    height: auto;
    min-height: 0;
}

html[data-platform="web"] .main-content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

html[data-platform="web"] .sidebar {
    display: none !important;
}

html[data-platform="web"] body.web-secondary-page {
    --web-fixed-content-height: var(--web-viewport-height);
    height: var(--web-viewport-height);
    overflow: hidden;
}

html[data-platform="web"] body.web-secondary-page .web-app-topbar {
    display: none !important;
}

html[data-platform="web"] body.web-secondary-page .app-container {
    height: var(--web-fixed-content-height);
    min-height: 0;
    overflow: hidden;
}

html[data-platform="web"] body.web-secondary-page .main-content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

html[data-platform="web"] .web-app-topbar {
    height: 58px;
    width: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.20);
    background: color-mix(in srgb, var(--sidebar-bg) 84%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 80;
}

html[data-platform="web"] .web-topbar-brand {
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

html[data-platform="web"] .web-topbar-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

html[data-platform="web"] .web-topbar-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

html[data-platform="web"] .web-topbar-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
}

html[data-platform="web"] .web-topbar-subtitle {
    margin-top: 2px;
    color: var(--text-sub);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

html[data-platform="web"] .web-topbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

html[data-platform="web"] .web-topbar-actions::-webkit-scrollbar {
    display: none;
}

html[data-platform="web"] .web-topbar-btn {
    height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.16s ease, color 0.16s ease;
}

html[data-platform="web"] .web-topbar-btn:hover {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
}

html[data-platform="web"] .web-pbc-btn,
html[data-platform="web"] .web-invoice-btn {
    min-width: 96px;
    color: rgba(255, 255, 255, 0.92);
}

html[data-platform="web"] .web-pbc-btn:hover,
html[data-platform="web"] .web-invoice-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

html[data-platform="web"][data-theme="light"] .web-pbc-btn,
html[data-platform="web"][data-theme="light"] .web-invoice-btn {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.38);
}

html[data-platform="web"][data-theme="light"] .web-pbc-btn:hover,
html[data-platform="web"][data-theme="light"] .web-invoice-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.72);
}

html[data-platform="web"] .web-account-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.24);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.16s ease, background 0.16s ease;
}

html[data-platform="web"] .web-account-button:hover {
    background: rgba(107, 114, 128, 0.34);
    transform: translateY(-1px);
}

html[data-platform="web"] .web-account-button:active {
    transform: translateY(0) scale(0.97);
}

html[data-platform="web"] .web-account-login-label {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

html[data-platform="web"] .web-account-avatar {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[data-platform="web"] .web-account-button.is-logged-in {
    background: rgba(255, 255, 255, 0.52);
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

html[data-platform="web"] .web-account-button.is-logged-in:hover {
    background: rgba(255, 255, 255, 0.72);
}

html[data-platform="web"] .web-account-button.is-logged-in .web-account-login-label {
    display: none;
}

html[data-platform="web"] .web-account-button.is-logged-in .web-account-avatar {
    display: block;
}

html[data-platform="web"][data-theme="dark"] .web-account-button.is-logged-in {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
}

html[data-platform="web"][data-theme="dark"] .web-account-button {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

html[data-platform="web"][data-theme="dark"] .web-account-button:hover {
    background: rgba(255, 255, 255, 0.20);
}

html[data-platform="web"] .web-topbar-btn-primary {
    background: transparent;
    color: var(--primary);
}

html[data-platform="web"] .web-theme-toggle {
    width: 34px;
    min-width: 34px;
    padding: 0;
    font-size: 0;
}

html[data-platform="web"] .web-theme-toggle::before {
    content: "";
    width: 17px;
    height: 17px;
    display: block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z%27/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z%27/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-platform="web"][data-theme="dark"] .web-theme-toggle::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Cpath d=%27M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41%27/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27/%3E%3Cpath d=%27M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41%27/%3E%3C/svg%3E");
}

html[data-platform="web"][data-theme="light"] .web-app-topbar {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(176, 187, 202, 0.68);
}

html[data-platform="web"][data-theme="light"] .web-topbar-btn {
    background: transparent;
    box-shadow: none;
}

html[data-platform="web"][data-theme="light"] .web-topbar-btn-primary {
    background: color-mix(in srgb, var(--primary) 12%, rgba(255, 255, 255, 0.92));
    color: color-mix(in srgb, var(--primary) 84%, #24303f);
}

html[data-platform="web"] .main-content.home-mode {
    padding-top: 14px;
}

html[data-platform="web"] body.web-secondary-page .custom-title-bar {
    background: rgba(255, 255, 255, 0.24);
}

html[data-platform="web"][data-theme="dark"] body.web-secondary-page .custom-title-bar {
    background: rgba(16, 22, 32, 0.58);
}

html[data-platform="web"] body.web-secondary-page .title-bar-center-title.is-visible {
    opacity: 1;
}

html[data-platform="web"] .custom-title-bar {
    display: none;
}

html[data-platform="web"] .app-container {
    height: var(--web-fixed-content-height);
    min-height: 0;
    overflow: hidden;
}

html[data-platform="web"] .main-content.home-mode {
    height: 100%;
    min-height: 0;
    padding-top: 16px;
    overflow: hidden;
}

html[data-platform="web"] #view-home {
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

html[data-platform="web"] .home-shell {
    min-height: 100%;
}

html[data-platform="web"] .web-limit-notice {
    margin: auto 8px 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    min-height: 72px;
}

html[data-platform="web"] .home-footer-credit {
    margin-top: 0;
}

html[data-platform="web"] .web-limit-copy {
    line-height: 1.5;
}

html[data-platform="web"] .web-download-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

html[data-platform="web"] .web-desktop-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 118px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: rgba(18, 24, 34, 0.58);
    color: var(--text);
    border: 1px solid color-mix(in srgb, var(--border) 82%, var(--primary));
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

html[data-platform="web"] .web-platform-icon {
    font-size: 18px;
    line-height: 1;
    color: color-mix(in srgb, var(--text) 72%, var(--text-sub));
}

html[data-platform="web"] .web-desktop-download-btn:hover {
    background: color-mix(in srgb, var(--primary) 8%, var(--card));
    border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
    transform: translateY(-1px);
}

html[data-platform="web"][data-theme="light"] .web-limit-notice {
    border-color: transparent;
    background: transparent;
    color: #64748b;
    box-shadow: none;
}

html[data-platform="web"][data-theme="light"] .web-desktop-download-btn {
    background: rgba(255, 255, 255, 0.82);
    color: #24303f;
    border-color: rgba(171, 182, 196, 0.9);
    box-shadow: 0 8px 18px rgba(60, 82, 116, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html[data-platform="web"][data-theme="light"] .web-desktop-download-btn:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: color-mix(in srgb, var(--primary) 32%, rgba(171, 182, 196, 0.9));
    box-shadow: 0 10px 20px rgba(60, 82, 116, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-platform="web"][data-theme="dark"] .web-limit-notice {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html[data-platform="web"] .home-panel {
    background: color-mix(in srgb, var(--card) 54%, rgba(12, 16, 24, 0.22)) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html[data-platform="web"][data-theme="dark"] .home-panel {
    background: linear-gradient(135deg, rgba(18, 24, 34, 0.54), rgba(11, 15, 23, 0.46)) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16) !important;
}

html[data-platform="web"][data-theme="light"] .home-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 250, 253, 0.52)) !important;
    border-color: rgba(176, 187, 202, 0.52) !important;
    box-shadow: 0 10px 24px rgba(58, 78, 109, 0.08) !important;
}

html[data-platform="web"] .home-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), rgba(14, 23, 38, 0.54) !important;
    border-color: rgba(148, 163, 184, 0.20) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10) !important;
}

html[data-platform="web"][data-theme="dark"] .home-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), rgba(14, 23, 38, 0.52) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-platform="web"][data-theme="light"] .home-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(245, 248, 252, 0.60)), rgba(255, 255, 255, 0.48) !important;
    border-color: rgba(171, 182, 196, 0.58) !important;
}

html[data-platform="web"],
html[data-platform="web"] body {
    min-width: 0;
    overflow-x: hidden;
    touch-action: manipulation;
}

html[data-platform="web"] .app-container,
html[data-platform="web"] .main-content,
html[data-platform="web"] [id^="view-"] {
    min-width: 0;
}

html[data-platform="web"] body {
    -webkit-text-size-adjust: 100%;
}

html[data-platform="web"] *,
html[data-platform="web"] *::before,
html[data-platform="web"] *::after {
    box-sizing: border-box;
}

html[data-platform="web"] .official-site-music-table {
    min-width: 0;
}

html[data-platform="web"] .official-site-music-table-head,
html[data-platform="web"] .official-site-music-card {
    grid-template-columns: 64px minmax(0, 1.35fr) minmax(180px, 0.85fr) 88px;
    gap: 12px;
}

html[data-platform="web"] .official-site-music-group-cell {
    display: block !important;
    text-align: left;
}

html[data-platform="web"] .official-site-music-player {
    justify-content: center;
}

@supports (height: 100dvh) {
    html[data-platform="web"] {
        --web-viewport-height: 100dvh;
    }

}

@supports (height: 100svh) {
    @media (max-width: 768px) {
        html[data-platform="web"] {
            --web-viewport-height: 100svh;
        }
    }
}

@media (max-width: 768px) {
    html[data-platform="web"] {
        --web-app-height: var(--web-viewport-height);
        --web-bottom-reserve: var(--web-mobile-bottom-reserve, 104px);
    }

    html[data-platform="web"] .web-app-topbar {
        flex: 0 0 auto;
    }

    html[data-platform="web"] .app-container {
        height: calc(var(--web-viewport-height) - var(--web-topbar-height));
        min-height: 0;
        overflow: hidden;
    }

    html[data-platform="web"] .main-content {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    html[data-platform="web"] .main-content.home-mode {
        padding: 12px;
    }

    html[data-platform="web"] .home-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    html[data-platform="web"] .home-panel {
        border-radius: 12px;
        padding: 12px;
    }

    html[data-platform="web"] .home-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    html[data-platform="web"] .home-card {
        width: 100%;
        min-height: 68px;
        aspect-ratio: auto;
    }

    html[data-platform="web"] .home-panel-subtitle {
        white-space: normal;
    }

    html[data-platform="web"] .web-limit-notice {
        display: none;
    }

    html[data-platform="web"] .home-footer-credit {
        margin-top: 0;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    html[data-platform="web"] #view-media,
    html[data-platform="web"] #view-database,
    html[data-platform="web"] #view-login,
    html[data-platform="web"] #view-fetch,
    html[data-platform="web"] #view-video-library,
    html[data-platform="web"] #view-flip,
    html[data-platform="web"] #view-open-live,
    html[data-platform="web"] #view-profile,
    html[data-platform="web"] #view-photos,
    html[data-platform="web"] #view-trip,
    html[data-platform="web"] #view-room-album,
    html[data-platform="web"] #view-member-dynamic,
    html[data-platform="web"] #view-room-radio,
    html[data-platform="web"] #view-settings,
    html[data-platform="web"] #view-pbc,
    html[data-platform="web"] #view-audio-programs,
    html[data-platform="web"] #view-music-library,
    html[data-platform="web"] #view-official-site-music,
    html[data-platform="web"] #view-private-messages,
    html[data-platform="web"] #view-followed-rooms {
        padding: 12px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-gutter: auto;
    }

    html[data-platform="web"] .list-container {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    html[data-platform="web"] .home-shell,
    html[data-platform="web"] .home-view,
    html[data-platform="web"] .home-grid,
    html[data-platform="web"] .home-panel,
    html[data-platform="web"] .Box-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    html[data-platform="web"] .page-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    html[data-platform="web"] .page-title {
        font-size: 18px;
        white-space: normal;
    }

    html[data-platform="web"] .btn,
    html[data-platform="web"] .input-control {
        min-height: 40px;
        font-size: 14px;
    }

    html[data-platform="web"] input,
    html[data-platform="web"] textarea,
    html[data-platform="web"] select {
        max-width: 100%;
    }

    html[data-platform="web"] .Box-row > div[style*="display: flex"],
    html[data-platform="web"] .page-header > div,
    html[data-platform="web"] #panel-login div[style*="display: flex"],
    html[data-platform="web"] .private-message-detail-actions > div {
        flex-wrap: wrap;
    }

    html[data-platform="web"] #live-list-controls,
    html[data-platform="web"] #media-list-controls > div {
        gap: 10px !important;
    }

    html[data-platform="web"] #live-list-controls > div,
    html[data-platform="web"] #media-list-controls > div > div {
        min-width: min(100%, 160px) !important;
    }

    html[data-platform="web"] #vod-group-wrapper,
    html[data-platform="web"] #vod-type-wrapper,
    html[data-platform="web"] #live-group-wrapper,
    html[data-platform="web"] #live-type-wrapper,
    html[data-platform="web"] #followed-sort-wrapper {
        width: 100% !important;
    }

    html[data-platform="web"] #live-list-controls > div:has(input[type="text"]),
    html[data-platform="web"] #media-list-controls > div > div:has(#vod-member-filter) {
        flex-basis: 100% !important;
        min-width: 0 !important;
    }

    html[data-platform="web"] #live-list-controls button,
    html[data-platform="web"] #media-list-controls button {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
    }

    html[data-platform="web"] #panel-login {
        padding: 14px !important;
    }

    html[data-platform="web"] #login-forms-container {
        min-height: 0 !important;
    }

    html[data-platform="web"] .official-site-music-player {
        align-items: center;
        text-align: center;
    }

    html[data-platform="web"] .official-site-music-disc {
        margin-left: auto;
        margin-right: auto;
    }

    html[data-platform="web"] .official-site-music-player-info {
        width: 100%;
        flex: none;
        align-items: center;
    }

    html[data-platform="web"] .official-site-music-subline {
        justify-content: center;
    }

    html[data-platform="web"] .live-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        padding: 0;
    }

    html[data-platform="web"] .vod-card-row {
        align-items: flex-start;
        gap: 10px;
    }

    html[data-platform="web"] .vod-row-cover-container {
        width: 96px;
        height: 54px;
        margin-right: 0;
    }

    html[data-platform="web"] .vod-row-info {
        height: auto;
        min-height: 54px;
    }

    html[data-platform="web"] .vod-row-name,
    html[data-platform="web"] .vod-row-title,
    html[data-platform="web"] .vod-row-time {
        min-width: 0;
    }

    html[data-platform="web"] #live-player-view {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    html[data-platform="web"] #live-player-view > div:first-child {
        margin: 0 0 12px 0 !important;
        padding: 12px !important;
    }

    html[data-platform="web"] #player-split-layout {
        flex: 0 0 auto !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 0 12px 0 !important;
        gap: 12px !important;
    }

    html[data-platform="web"] #player-right-column {
        order: 1;
        width: 100%;
        height: auto !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }

    html[data-platform="web"] #danmu-timeline-wrapper {
        order: 2;
        flex: 0 0 auto !important;
        width: 100%;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        --col-seq: 0px !important;
    }

    html[data-platform="web"] #danmu-timeline-wrapper > div:nth-child(2) > div:nth-child(2),
    html[data-platform="web"] #danmu-list-body .danmu-row > div:nth-child(2) {
        margin-left: 0 !important;
    }

    html[data-platform="web"] #player-combo-wrapper {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    html[data-platform="web"] #live-player-area {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: min(68vh, 720px) !important;
        height: min(68svh, 720px) !important;
        max-height: none !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        background: #000 !important;
    }

    html[data-platform="web"] #view-followed-rooms > div {
        flex-direction: column;
        height: auto !important;
        min-height: calc(var(--web-fixed-content-height) - 24px);
        overflow: hidden;
    }

    html[data-platform="web"] #view-followed-rooms > div > div:first-child {
        width: 100% !important;
        max-height: 42vh;
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    html[data-platform="web"] #view-followed-rooms > div > div:last-child {
        min-height: 420px;
    }

    html[data-platform="web"] #followed-chat-header {
        padding: 10px 12px !important;
        gap: 10px;
        flex-wrap: wrap;
    }

    html[data-platform="web"] #followed-chat-messages {
        padding: 12px !important;
    }

    html[data-platform="web"] .private-messages-shell {
        height: auto;
        min-height: calc(var(--web-fixed-content-height) - 24px);
        flex-direction: column;
    }

    html[data-platform="web"] .private-messages-sidebar {
        width: 100%;
        max-height: 42vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    html[data-platform="web"] .private-messages-sidebar-header {
        padding: 12px;
        flex-wrap: wrap;
    }

    html[data-platform="web"] .private-messages-panel {
        min-height: 420px;
    }

    html[data-platform="web"] .private-message-detail-body {
        padding: 12px;
    }

    html[data-platform="web"] .private-message-item {
        max-width: min(86%, 420px);
    }

    html[data-platform="web"] .private-message-detail-actions {
        padding: 10px 12px 12px;
    }

    html[data-platform="web"] .photo-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    html[data-platform="web"] #view-room-album .Box-row > div:first-child {
        flex-direction: column;
        gap: 10px !important;
    }

    html[data-platform="web"] #view-room-album .Box-row > div:first-child > div {
        width: 100%;
        flex: none !important;
    }

    html[data-platform="web"] .modal-content {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(var(--web-fixed-content-height) - 24px) !important;
    }
}

@media (max-width: 520px) {
    html[data-platform="web"] .main-content.home-mode {
        padding: 10px;
    }

    html[data-platform="web"] .home-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-platform="web"] .home-card {
        min-height: 64px;
        padding: 8px 6px;
    }

    html[data-platform="web"] .home-card-title {
        font-size: 13px;
    }

    html[data-platform="web"] #view-media,
    html[data-platform="web"] #view-database,
    html[data-platform="web"] #view-login,
    html[data-platform="web"] #view-fetch,
    html[data-platform="web"] #view-video-library,
    html[data-platform="web"] #view-flip,
    html[data-platform="web"] #view-open-live,
    html[data-platform="web"] #view-profile,
    html[data-platform="web"] #view-photos,
    html[data-platform="web"] #view-trip,
    html[data-platform="web"] #view-room-album,
    html[data-platform="web"] #view-member-dynamic,
    html[data-platform="web"] #view-room-radio,
    html[data-platform="web"] #view-settings,
    html[data-platform="web"] #view-pbc,
    html[data-platform="web"] #view-audio-programs,
    html[data-platform="web"] #view-music-library,
    html[data-platform="web"] #view-official-site-music,
    html[data-platform="web"] #view-private-messages,
    html[data-platform="web"] #view-followed-rooms {
        padding: 10px !important;
    }

    html[data-platform="web"] .Box-row {
        padding: 12px;
    }

    html[data-platform="web"] .official-site-music-table-head,
    html[data-platform="web"] .official-site-music-card {
        grid-template-columns: minmax(0, 1.1fr) minmax(84px, 0.8fr) 54px;
        gap: 8px;
    }

    html[data-platform="web"] .official-site-music-table-head {
        padding: 0 10px;
    }

    html[data-platform="web"] .official-site-music-card {
        padding: 9px 10px;
    }

    html[data-platform="web"] .official-site-music-table-head .official-site-music-sort:nth-child(1),
    html[data-platform="web"] .official-site-music-card > .official-site-music-row-index {
        display: none !important;
    }

    html[data-platform="web"] .official-site-music-table-head .official-site-music-sort:nth-child(3),
    html[data-platform="web"] .official-site-music-table-head .official-site-music-sort:nth-child(4),
    html[data-platform="web"] .official-site-music-card > .official-site-music-table-text,
    html[data-platform="web"] .official-site-music-card > .official-site-music-group-cell {
        display: inline-flex !important;
    }

    html[data-platform="web"] #view-official-site-music {
        gap: 8px !important;
        padding: 8px !important;
    }

    html[data-platform="web"] .official-site-music-header {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    html[data-platform="web"] .official-site-music-header-tools {
        gap: 8px !important;
    }

    html[data-platform="web"] .official-site-music-toolbar {
        gap: 7px !important;
    }

    html[data-platform="web"] .official-site-music-filter {
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    html[data-platform="web"] .official-site-music-search {
        width: min(430px, 100%) !important;
        height: 38px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(148, 163, 184, 0.24) !important;
        background: rgba(18, 24, 34, 0.46) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
        overflow: hidden !important;
        transform: none !important;
    }

    html[data-platform="web"] .official-site-music-search:hover {
        transform: none !important;
        border-color: color-mix(in srgb, var(--primary) 28%, rgba(148, 163, 184, 0.24)) !important;
        background: rgba(20, 28, 40, 0.56) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    }

    html[data-platform="web"] .official-site-music-search:focus-within {
        border-color: color-mix(in srgb, var(--primary) 54%, rgba(148, 163, 184, 0.24)) !important;
        background: rgba(22, 30, 43, 0.68) !important;
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    }

    html[data-platform="web"] .official-site-music-search::after {
        display: none !important;
    }

    html[data-platform="web"] .official-site-music-search .media-search-icon {
        left: 13px !important;
        width: 16px !important;
        height: 16px !important;
        color: color-mix(in srgb, var(--text-sub) 82%, var(--text)) !important;
        transform: translateY(-50%) !important;
    }

    html[data-platform="web"] .official-site-music-search:focus-within .media-search-icon {
        color: var(--primary) !important;
        transform: translateY(-50%) !important;
    }

    html[data-platform="web"] .official-site-music-search .input-control {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 14px 0 38px !important;
        color: var(--text) !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        letter-spacing: 0 !important;
    }

    html[data-platform="web"] .official-site-music-search .input-control::placeholder {
        color: color-mix(in srgb, var(--text-sub) 78%, transparent) !important;
    }

    html[data-platform="web"][data-theme="light"] .official-site-music-search {
        border-color: rgba(171, 182, 196, 0.78) !important;
        background: rgba(255, 255, 255, 0.76) !important;
        box-shadow: 0 8px 18px rgba(60, 82, 116, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
    }

    html[data-platform="web"][data-theme="light"] .official-site-music-search:hover {
        border-color: color-mix(in srgb, var(--primary) 32%, rgba(171, 182, 196, 0.78)) !important;
        background: rgba(255, 255, 255, 0.92) !important;
    }

    html[data-platform="web"][data-theme="light"] .official-site-music-search:focus-within {
        background: rgba(255, 255, 255, 0.96) !important;
    }

    html[data-platform="web"] .official-site-music-table-head {
        min-height: 38px !important;
    }

    html[data-platform="web"] .official-site-music-card {
        min-height: 56px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

    html[data-platform="web"] .official-site-music-index {
        width: 38px !important;
        height: 38px !important;
    }

    html[data-platform="web"] .official-site-music-grid {
        padding-bottom: 8px !important;
    }

    html[data-platform="web"] .official-site-music-player-wrap {
        --official-site-music-queue-bottom: 94px;
        padding-top: 8px !important;
        padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
    }

    html[data-platform="web"] .official-site-music-player {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 78px !important;
        padding: 14px 12px 12px !important;
        border-radius: 14px !important;
        text-align: left !important;
    }

    html[data-platform="web"] .official-site-music-disc {
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
    }

    html[data-platform="web"] .official-site-music-player-info {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        align-items: flex-start !important;
    }

    html[data-platform="web"] .official-site-music-subline {
        justify-content: flex-start !important;
    }

    html[data-platform="web"] .official-site-music-player-controls {
        flex: 0 0 auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        width: auto !important;
        gap: 6px !important;
    }

    html[data-platform="web"] .official-site-music-center-controls {
        position: static !important;
        transform: none !important;
        width: auto !important;
        gap: 0 !important;
    }

    html[data-platform="web"] .official-site-music-center-controls .player-step-btn,
    html[data-platform="web"] #official-site-music-favorite-btn,
    html[data-platform="web"] #official-site-music-playlist-btn,
    html[data-platform="web"] .official-site-music-volume {
        display: none !important;
    }

    html[data-platform="web"] .official-site-music-right-controls {
        display: flex !important;
        width: auto !important;
        margin-left: 0 !important;
        gap: 6px !important;
    }

    html[data-platform="web"] .official-site-music-right-controls .player-mini-btn {
        width: 34px !important;
        height: 34px !important;
    }

    html[data-platform="web"] #official-site-music-player-queue {
        bottom: 94px !important;
        max-height: min(420px, calc(var(--web-fixed-content-height) - 130px)) !important;
    }

    html[data-platform="web"] .Box-row > div[style*="display: flex"] > *,
    html[data-platform="web"] .page-header > div > *,
    html[data-platform="web"] #panel-login div[style*="display: flex"] > * {
        min-width: 0;
    }

    html[data-platform="web"] #live-list-controls > div,
    html[data-platform="web"] #media-list-controls > div > div {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    html[data-platform="web"] #live-list-controls button,
    html[data-platform="web"] #media-list-controls button {
        flex: 1 1 100%;
        width: 100%;
    }

    html[data-platform="web"] .live-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    html[data-platform="web"] .vod-card-row {
        padding: 10px;
        flex-direction: column;
    }

    html[data-platform="web"] .vod-row-cover-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    html[data-platform="web"] .vod-row-info {
        width: 100%;
    }

    html[data-platform="web"] .vod-row-name {
        font-size: 13px;
        gap: 6px;
    }

    html[data-platform="web"] .vod-row-title {
        font-size: 12px;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    html[data-platform="web"] .vod-row-time {
        font-size: 11px;
        flex-wrap: wrap;
    }

    html[data-platform="web"] #live-player-area {
        min-height: 0 !important;
    }

    html[data-platform="web"] #danmu-timeline-wrapper {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
    }

    html[data-platform="web"] #danmu-timeline-wrapper > div:first-child {
        flex-wrap: wrap;
    }

    html[data-platform="web"] #danmu-search-input {
        flex-basis: 100%;
        margin-left: 0 !important;
    }

    html[data-platform="web"] .private-message-detail-actions > div:last-child {
        flex-direction: column;
    }

    html[data-platform="web"] #btn-send-private-message {
        width: 100% !important;
        height: 42px !important;
    }

    html[data-platform="web"] .photo-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 380px) {
    html[data-platform="web"] .main-content.home-mode {
        padding: 8px;
    }

    html[data-platform="web"] .home-panel {
        padding: 10px;
    }

    html[data-platform="web"] .home-card-grid,
    html[data-platform="web"] .live-card-grid,
    html[data-platform="web"] .photo-card-grid {
        grid-template-columns: 1fr;
    }

    html[data-platform="web"] .home-card {
        min-height: 58px;
    }

    html[data-platform="web"] .web-limit-notice {
        padding: 12px 10px max(12px, env(safe-area-inset-bottom));
        font-size: 12px;
    }

    html[data-platform="web"] #view-media,
    html[data-platform="web"] #view-database,
    html[data-platform="web"] #view-login,
    html[data-platform="web"] #view-fetch,
    html[data-platform="web"] #view-video-library,
    html[data-platform="web"] #view-flip,
    html[data-platform="web"] #view-open-live,
    html[data-platform="web"] #view-profile,
    html[data-platform="web"] #view-photos,
    html[data-platform="web"] #view-trip,
    html[data-platform="web"] #view-room-album,
    html[data-platform="web"] #view-member-dynamic,
    html[data-platform="web"] #view-room-radio,
    html[data-platform="web"] #view-settings,
    html[data-platform="web"] #view-pbc,
    html[data-platform="web"] #view-audio-programs,
    html[data-platform="web"] #view-music-library,
    html[data-platform="web"] #view-official-site-music,
    html[data-platform="web"] #view-private-messages,
    html[data-platform="web"] #view-followed-rooms {
        padding: 8px !important;
    }

    html[data-platform="web"] .Box-row {
        padding: 10px;
    }

    html[data-platform="web"] .private-message-item {
        max-width: 92%;
    }

    html[data-platform="web"] #view-private-messages {
        height: auto !important;
        min-height: var(--web-fixed-content-height) !important;
        overflow: hidden !important;
    }

    html[data-platform="web"] #view-private-messages .private-messages-shell {
        height: var(--web-secondary-shell-height, calc(var(--web-fixed-content-height) - 16px));
        max-height: var(--web-secondary-shell-height, calc(var(--web-fixed-content-height) - 16px));
        min-height: 0;
        border-radius: 10px;
        flex-direction: column;
    }

    html[data-platform="web"] #view-private-messages .private-messages-sidebar {
        width: 100%;
        max-height: none;
        flex: 1 1 auto;
        min-height: 0;
        border-right: none;
        border-bottom: none;
        overflow: hidden;
    }

    html[data-platform="web"] #view-private-messages:not(.is-detail-open) .private-messages-panel {
        display: none;
    }

    html[data-platform="web"] #view-private-messages.is-detail-open .private-messages-sidebar {
        display: none;
    }

    html[data-platform="web"] #view-private-messages.is-detail-open .private-messages-panel {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
    }

    html[data-platform="web"] #view-private-messages .private-messages-sidebar-header {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    html[data-platform="web"] #view-private-messages .private-messages-sidebar-header > div:first-child {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px !important;
        width: 100%;
    }

    html[data-platform="web"] #view-private-messages .private-messages-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    html[data-platform="web"] #view-private-messages .private-messages-toolbar-actions .btn {
        width: 100%;
        height: 38px;
        font-size: 13px;
    }

    html[data-platform="web"] #view-private-messages .private-message-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 8px 0 calc(8px + var(--web-bottom-reserve));
        scroll-padding-bottom: var(--web-bottom-reserve);
    }

    html[data-platform="web"] #view-private-messages .private-message-list::after {
        content: "";
        display: block;
        flex: 0 0 var(--web-bottom-reserve);
        min-height: var(--web-bottom-reserve);
    }

    html[data-platform="web"] #view-private-messages .private-message-list-item {
        padding: 12px;
        gap: 12px;
    }

    html[data-platform="web"] #view-private-messages .private-messages-panel-header {
        min-height: 58px;
        padding: 9px 12px;
    }

    html[data-platform="web"] #view-private-messages .private-message-mobile-back {
        height: 34px;
        padding: 0 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--input-bg);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 13px;
        font-weight: 800;
    }

    html[data-platform="web"] #view-private-messages .private-message-detail-body {
        padding: 12px;
        gap: 12px;
    }

    html[data-platform="web"] #view-private-messages .private-message-item {
        max-width: 88%;
    }

    html[data-platform="web"] #view-private-messages .private-message-bubble {
        padding: 7px 11px 8px;
        line-height: 1.38;
        font-size: 14px;
    }

    html[data-platform="web"] #view-private-messages .private-message-detail-actions {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom) + var(--web-bottom-reserve));
    }

    html[data-platform="web"] #view-private-messages .private-message-detail-actions > div:last-child {
        gap: 8px !important;
        margin-bottom: 0 !important;
    }

    html[data-platform="web"] #private-message-reply-input {
        height: 56px !important;
        min-height: 56px;
        padding: 8px 10px 22px !important;
    }

    html[data-platform="web"] #btn-send-private-message {
        width: 68px !important;
        height: 56px !important;
    }

    html[data-platform="web"] #private-message-new-messages {
        bottom: 82px !important;
    }

    html[data-platform="web"] #view-followed-rooms {
        height: auto !important;
        min-height: var(--web-fixed-content-height) !important;
        overflow: hidden !important;
    }

    html[data-platform="web"] #view-followed-rooms > div {
        height: var(--web-secondary-shell-height, calc(var(--web-fixed-content-height) - 16px)) !important;
        max-height: var(--web-secondary-shell-height, calc(var(--web-fixed-content-height) - 16px)) !important;
        min-height: 0 !important;
        border-radius: 10px !important;
        flex-direction: column !important;
    }

    html[data-platform="web"] #view-followed-rooms > div > div:first-child {
        width: 100% !important;
        max-height: none !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        border-right: none !important;
        border-bottom: none !important;
        overflow: hidden !important;
    }

    html[data-platform="web"] #view-followed-rooms:not(.is-chat-open) > div > div:last-child {
        display: none !important;
    }

    html[data-platform="web"] #view-followed-rooms.is-chat-open > div > div:first-child {
        display: none !important;
    }

    html[data-platform="web"] #view-followed-rooms.is-chat-open > div > div:last-child {
        display: flex !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }

    html[data-platform="web"] #view-followed-rooms > div > div:first-child > div:first-child {
        padding: 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    html[data-platform="web"] #view-followed-rooms > div > div:first-child > div:first-child > div {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px !important;
    }

    html[data-platform="web"] #followed-sort-wrapper {
        width: 100% !important;
    }

    html[data-platform="web"] #followed-rooms-container {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 8px 0 calc(8px + var(--web-bottom-reserve)) !important;
        scroll-padding-bottom: var(--web-bottom-reserve);
    }

    html[data-platform="web"] #followed-rooms-container::after {
        content: "";
        display: block;
        min-height: var(--web-bottom-reserve);
    }

    html[data-platform="web"] #view-followed-rooms .session-card {
        margin: 2px 8px 6px !important;
        padding: 12px !important;
    }

    html[data-platform="web"] #view-followed-rooms > div > div:first-child > div:last-child {
        padding: 10px !important;
    }

    html[data-platform="web"] #followed-chat-header {
        min-height: 58px;
        padding: 9px 12px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    html[data-platform="web"] #followed-chat-header > div:first-child {
        margin-right: 0 !important;
        gap: 10px !important;
    }

    html[data-platform="web"] .followed-chat-mobile-back {
        height: 34px;
        padding: 0 10px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--input-bg);
        color: var(--primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 13px;
        font-weight: 800;
    }

    html[data-platform="web"] #followed-chat-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    html[data-platform="web"] #followed-chat-header > div:last-child {
        gap: 6px !important;
    }

    html[data-platform="web"] #btn-toggle-room-type {
        height: 30px !important;
        padding: 0 8px !important;
    }

    html[data-platform="web"] #btn-toggle-followed-mode {
        width: 72px !important;
        height: 30px !important;
    }

    html[data-platform="web"] #followed-chat-messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 12px 12px calc(12px + var(--web-bottom-reserve)) !important;
        scroll-padding-bottom: var(--web-bottom-reserve);
    }

    html[data-platform="web"] #followed-chat-messages::after {
        content: "";
        display: block;
        flex: 0 0 var(--web-bottom-reserve);
        min-height: var(--web-bottom-reserve);
    }

    html[data-platform="web"] #live-player-area {
        min-height: 170px !important;
    }

    html[data-platform="web"] #live-player-view,
    html[data-platform="web"] #player-split-layout,
    html[data-platform="web"] #player-right-column,
    html[data-platform="web"] #player-combo-wrapper,
    html[data-platform="web"] #danmu-timeline-wrapper,
    html[data-platform="web"] #clip-toolbar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    html[data-platform="web"] #live-player-view {
        min-height: 0 !important;
        gap: 12px !important;
    }

    html[data-platform="web"] #live-player-view > div:first-child {
        margin: 10px 0 2px !important;
        padding: 12px !important;
        border-radius: 10px !important;
    }

    html[data-platform="web"] #live-player-view > div:first-child > div:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        gap: 12px !important;
    }

    html[data-platform="web"] #live-player-view > div:first-child > div:first-child > div:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px 18px !important;
        min-width: 0 !important;
    }

    html[data-platform="web"] #current-live-author,
    html[data-platform="web"] #current-live-title,
    html[data-platform="web"] #current-live-date,
    html[data-platform="web"] #current-live-time {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html[data-platform="web"] #player-split-layout {
        flex: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    html[data-platform="web"] #player-right-column {
        margin: 0 !important;
        padding: 0 !important;
    }

    html[data-platform="web"] #player-combo-wrapper {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    html[data-platform="web"] #live-player-area {
        width: 100% !important;
        height: min(68vh, 720px) !important;
        height: min(68svh, 720px) !important;
        max-height: none !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        background: #000 !important;
    }

    html[data-platform="web"] #clip-toolbar {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    html[data-platform="web"] #clip-toolbar > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    html[data-platform="web"] #clip-toolbar > div > div:first-child {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px !important;
    }

    html[data-platform="web"] #clip-start-display,
    html[data-platform="web"] #clip-end-display {
        min-width: 0 !important;
        padding: 0 8px !important;
        font-size: 13px !important;
    }

    html[data-platform="web"] #clip-toolbar > div > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    html[data-platform="web"] #clip-duration-display {
        width: auto !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    html[data-platform="web"] #btn-do-clip {
        width: 132px !important;
        max-width: 45% !important;
    }

    html[data-platform="web"] #danmu-timeline-wrapper {
        flex: 0 0 auto !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        --col-seq: 0px !important;
        --col-time: 112px !important;
        --col-name: 90px !important;
        --col-act: 72px !important;
    }

    html[data-platform="web"] #danmu-timeline-wrapper > div:nth-child(2) > div:nth-child(2),
    html[data-platform="web"] #danmu-list-body .danmu-row > div:nth-child(2) {
        margin-left: 0 !important;
    }

    html[data-platform="web"] #danmu-list-body {
        flex: 0 1 auto !important;
        height: auto !important;
        max-height: min(42dvh, 420px) !important;
        overflow-y: auto !important;
    }
}
