:root {
    --primary-color: #1d92c5;
    --primary-hover: #1680ad;
    --primary-light: #e8f4f9;

    --black: #1a1a1a;
    --red: #ff4444;
    --red-hover: #ff0000;
    --orange: #ff8c00;
    --orange-hover: #ff7700;

    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --border-color: #e5e5e7;

    --success: #10b981;
    --warning: #ff8c00;
    --error: #ff4444;
    --info: #1d92c5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 13px;
}

html,
body {
    scrollbar-gutter: stable;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.header.header-mobile {
    background-color: white;
    border-bottom: 1px solid #e5e5e7;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.header.header-mobile {
    position: sticky;
}

.header-container {
    /* max-width: 1920px; */
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 4px solid #1680ade0; */
    background: radial-gradient(#ff8c0026, var(--bg-primary));
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
    padding-left: 10px;
}


.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.logo:hover .logo-text {
    color: var(--primary-color);
}

.nav-links {
    display: none;
}

.header-mobile .header-right {
    border: none;
    border-radius: 4px 4px 0 0;
    width: 300px;
}

.search-box {
    position: relative;
}

.search-input {
    /* background-color: #f5f5f7; */
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    padding: 8px 35px 8px 12px;
    color: #1d1d1f;
    width: 280px;
    font-size: 12px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
}


.user-info {
    display: flex;
    align-items: stretch;
    /* gap: 12px; */
    flex-direction: column;
}

.username {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 14px;
}

.status-badge {
    padding: 6px 0px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge .status-text {
    margin-left: 5px;
}

.status-badge.basic {
    color: #6c757d;
}

.status-badge.platinum {
    color: #ff8c00;

}

@media screen and (min-width: 768px) {
    .user-info .status-badge {
        display: inline-block;
    }

    .user-info .username {
        display: inline-block;
    }
}

.btn {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    justify-content: center;
}

.btn i {
    flex-shrink: 0;
}

.btn span {
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e8e8ed;
    border-color: var(--primary-color);
}

.btn-orange {
    background-color: #ff6b35;
    color: #fff;
    border: none;
}

.btn-orange:hover {
    background-color: #ff8555;
}

.main-content {
    /* max-width: 1920px; */
    margin: 0 auto;
    /* padding: 0px 10px; */
    min-height: 50vh;
}

.category-tabs {
    display: flex;
    justify-content: space-between;
    /* padding: 15px 20px 0; */
    border-bottom: 1px solid #ccc;
    background-color: #f8f9fa;
    flex-wrap: wrap;
    gap: 10px;
    /* margin-bottom: 10px; */
    padding-top: 10px;
    align-items: flex-end;
    padding: 10px;
    padding-bottom: 0px;
    border-top: 3px solid var(--warning);
}

.header-desktop { display: none !important; }
.category-tabs-desktop { display: none !important; }

.header-mobile,
.category-tabs-mobile {
    display: block !important;
}

@media (min-width: 769px) {
    .profile-wrapper {
        border-top: 3px solid var(--warning);
    }

    .category-tabs-desktop {
        display: flex !important;
    }

    .category-tabs-mobile {
        display: none !important;
    }
}


.category-tabs-inner {
    display: flex;
    gap: 5px;
    flex: 1;
    flex-wrap: nowrap;
}

.tab {
    display: inline-block;
    padding: 3px 15px;
    text-decoration: none;
    color: #006699;
    font-weight: 400;
    font-size: 13px;
    border: 1px solid #1d92c540;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background-color: #6ea9c22b;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
}

.tab:hover {
    background-color: #f7f7f7;
}

.tab.active {
    background-color: var(--bg-secondary);
    color: #ff6600;
    margin-bottom: -1px;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;
}

.action-icon-btn {
    background: none;
    border: none;
    color: #006699;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.tag-filter-btn {
    background-color: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 4px;
    color: #006699;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.tag-filter-btn.tag-filter-off {
    background-color: transparent;
    color: #006699;
    border-color: transparent;
    box-shadow: none;
}

@media screen and (max-width: 768px) {
    .tag-filter-btn {
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 14px;
    }
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-label {
    color: #6e6e73;
    font-size: 14px;
    font-weight: 600;
}

.filter-select {
    background-color: #ffffff;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.main-body {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.left-content {
    flex: 1;
    min-width: 0;
    padding: 10px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 40px;
}

.hot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.viewer-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.viewer-count.high {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
}

.room-info {
    padding: 5px;
}

.room-title {
    color: #0c6a93;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.room-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    flex-shrink: 0;
}


.room-streamer {
    color: #6e6e73;
    font-size: 12px;
}

.room-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.tag {
    background-color: #f5f5f7;
    color: #6e6e73;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    border: 1px solid #e5e5e7;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    background-color: #ffffff;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f5f5f7;
    border-color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e7;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #1a1a1aab;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #6e6e73c2;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #e5e5e7;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-compliance {
    background-color: #f8f8fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer-compliance p {
    color: #6e6e73;
    font-size: 13px;
    margin: 5px 0;
    line-height: 1.4;
}

.footer-compliance a {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-certifications {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.footer-certifications img {
    max-height: 40px;
}

.footer-bottom p {
    color: #6e6e73;
    font-size: 13px;
    text-align: center;
}

.footer-disclaimer {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.footer-disclaimer p {
    color: #856404;
    font-size: 12px;
    margin: 5px 0;
    line-height: 1.4;
}

.footer-disclaimer a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    color: #6e6e73;
    font-size: 20px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.right-sidebar {
    max-width: 15%;
    min-width: 300px;
    background: #f8f9fa;
    padding: 0;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 10px;
    padding-right: 20px;
}


.right-sidebar.hidden {
    display: none;
}

.close-sidebar {
    display: flex;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    justify-content: flex-end;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    font-size: 12px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags-container .tag {
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--wl-filter-option-border-color, #e0eefb);
    border-radius: 4px;
    box-sizing: border-box;
    color: #0c6a93;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 14px;
    margin: 0 5px 5px 0;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 6px;
    text-align: left;
    text-overflow: ellipsis;
}

.tags-container .tag:hover {
    background-color: #e9e9e9
}

.tags-container .tag.active {
    color: white;
    background-color: #0c6a93;
    font-weight: 500;
}


.search-box {
    position: relative;
    /* margin-bottom: 10px; */
}

.search-box input {
    width: 100%;
    padding: 6px 30px 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.search-box i {
    /* position: absolute; */
    right: 10px;
    top: 8px;
    color: #006699;
}
.right-sidebar .search-box i {
    position: absolute;
    right: 10px;
    top: 8px;
    color: #006699;
}
.tag-pagination {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.tag-pagination a {
    color: #006699;
    text-decoration: none;
}

.room-card {
    background: rgb(255, 255, 255);
    border: 0.5px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
    transform: translateY(0px);
}

.room-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--border-color);
}

.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.room-streamer {
    font-size: 13px;
    font-weight: 500;
    color: #126b8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    font-family: -apple-system, 'PingFang SC', sans-serif;
}

.room-age {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    font-family: -apple-system, 'PingFang SC', sans-serif;
}

.room-title {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    line-height: 1.45;
    overflow: hidden;
    word-break: break-all;
    font-family: -apple-system, 'PingFang SC', sans-serif;
}
    .header-right {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: 0;
        order: 2;
        justify-content: flex-end;
    }

@media (min-width: 769px) {
    .search-box.expanded .search-input{
        width: 255px;
    }
    .header-right .search-btn{
        position: fixed;
    }
        
}
@media (max-width: 768px) {
    .search-box i {
        color: gray;
    }

    .header-container {
        flex-wrap: nowrap;
        height: 60px;
        padding: 0 12px;
        gap: 8px;
        justify-content: space-between;
    }

    .right-sidebar {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        background: #f8f9fa;
        padding: 0;
        position: relative;
        flex-shrink: 0;
        transition: all 0.3s ease;
        padding: 10px;
        min-height: 60vh;
    }

    .left-content.hidden {
        display: none;
    }

    .right-sidebar.show {
        display: none;
    }

    .logo {
        flex: 0 0 auto;
        transition: all 0.3s ease;
        order: 1;
    }

    .logo.hidden {
        opacity: 0;
        width: 0;
        overflow: hidden;
        margin: 0;
    }

    .logo img {
        height: 25px;
    }

    .search-box {
        flex: 0 0 180px;
        transition: flex 0.3s ease;
        order: 1;
        display: flex;
        align-items: center;
    }

    .search-box.expanded {
        flex: 1;
    }

    .search-input {
        width: 100%;
        font-size: 13px;
        padding: 7px 32px 7px 10px;
        height: 36px;
    }

    .user-info {
        display: flex;
        gap: 4px;
        flex-wrap: nowrap;
        flex-shrink: 0;
        order: 2;
        align-items: center;
        flex-direction: row;
    }

    .username {
        display: none;
    }

    .user-info .status-badge {
        padding: 7px 10px !important;
        /* font-size: 12px !important; */
        min-height: 36px !important;
        height: 36px !important;
        display: inline-flex;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        /* border: 1px solid var(--border-color); */
    }

    .user-info .status-badge i {
        margin: 0 !important;
        font-size: 14px !important;
    }

    .user-info .status-badge .status-text,
    .user-info .status-badge span.status-text {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
    }

    .user-info .btn {
        padding: 7px 10px;
        font-size: 12px;
        min-width: auto;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-info .btn span {
        display: none;
    }

    .user-info .btn i {
        font-size: 16px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        gap: 6px;
        border-bottom: none;
        background: none;
    }

    .logo img {
        height: 25px;
    }

    .search-box {
        flex: 0 0 140px;
    }

    .search-input {
        font-size: 12px;
        padding: 6px 28px 6px 8px;
        height: 32px;
    }


    .user-info {
        gap: 3px;
    }

    .user-info .btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: auto;
        height: 32px;
    }

    .user-info .btn i {
        font-size: 14px;
    }

    .user-info .status-badge {
        padding: 6px 8px !important;
        height: 32px !important;
        min-height: 32px !important;
    }

    .user-info .status-badge i {
        font-size: 14px !important;
    }

    .user-info .status-badge .status-text,
    .user-info .status-badge span.status-text {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 8px;
        gap: 4px;
    }

    .logo img {
        height: 25px;
    }

    .search-box {
        flex: 0 0 120px;
    }

    .user-info {
        gap: 2px;
    }

    .user-info .btn {
        padding: 5px 6px;
        font-size: 10px;
        height: 28px;
    }

    .user-info .btn i {
        font-size: 13px;
    }

    .user-info .status-badge {
        padding: 5px 6px !important;
        height: 28px !important;
        min-height: 28px !important;
        background-color: transparent !important;
    }

    .user-info .status-badge i {
        font-size: 13px !important;
    }

    .user-info .status-badge .status-text,
    .user-info .status-badge span.status-text {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        position: absolute !important;
    }

    .search-input {
        font-size: 11px;
        padding: 5px 26px 5px 6px;
        height: 28px;
    }
}



.player-container {
    display: none;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1d1d1f;
    z-index: 1000;
    overflow: hidden;
}

.player-container.active {
    display:flex;
    flex-direction: column;
}

.player-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    background-color: #000;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.player-header {
    background: #1a1a1a;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    /* border-bottom: 2px solid #2a2a2a; */
    height: 50px;
    flex-shrink: 0;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.player-info h2 {
    color: #e0e0e0;
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.player-info .live-indicator {
    background-color: var(--red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    /* font-size: 12px; */
    font-weight: 700;
    text-transform: uppercase;
    /* height: 26px; */
    /* width: 46px; */
}

.player-close {
    background-color: #252525;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    cursor: pointer;
    /* font-size: 12px; */
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-weight: 700;
}

.player-close i {
    font-size: 16px;
}


.video-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--black);
    min-height: 0;
    overflow: hidden;
}

.video-container {
    flex: 1;
    position: relative;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.video-js {
    width: 100% !important;
    height: 100% !important;
}

.video-js video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
    opacity: 0;
}

video {
    visibility: hidden;
}

.video-js video {
    visibility: visible;
    opacity: 1;
}

.video-info-bar {
    background: #141414;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-top: 2px solid #2a2a2a; */
    flex-shrink: 0;
    height: 52px;
}

.video-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.video-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888888;
    font-size: 13px;
}

.video-info-item i {
    color: #00d4ff;
    font-size: 14px;
}

.video-info-item .count {
    color: #e0e0e0;
    font-weight: 600;
}

.video-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-info-bar {
    position: relative;
}

.video-action-btn {
    background: #252525;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.video-action-btn.liked {
    background: #ff006e;
    border-color: #ff006e;
    color: #ffffff;
}

.video-action-btn.followed {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #ffffff;
}

.video-action-btn.followed:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

.video-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#proxy-accel-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: auto;
    max-width: 50%;
    flex-shrink: 0;
    padding: 4px 8px;
    border: 1px solid #d2d2d7;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 38px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.proxy-content-expand {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#proxy-accel-panel.collapsed {
    padding-right: 4px;
}

#proxy-accel-panel.collapsed .proxy-content-expand {
    width: 0;
    opacity: 0;
    margin: 0;
    visibility: hidden;
    pointer-events: none;
}

#proxy-accel-panel.collapsed .proxy-collapse-btn i {
    transform: rotate(180deg);
}

.proxy-toggle-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    color: #6e6e73;
    border: 1px solid #d2d2d7;
}

.proxy-toggle-btn::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.proxy-toggle-on::after {
    background: #4caf50;
    box-shadow: 0 0 8px rgb(46 104 49 / 80%);
}

.proxy-quota-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.proxy-quota-track {
    width: 80px;
    max-width: 100%;
    height: 5px;
    background: #e5e5e7;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.proxy-quota-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--primary-color, #ff6b35);
    transition: width 0.38s ease;
}

.proxy-quota-text {
    font-size: 11px;
    color: #6e6e73;
    font-weight: 500;
    white-space: nowrap;
}

.proxy-buy-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    color: #6e6e73;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display:none;
}

.proxy-buy-btn:hover {
    border-color: var(--primary-color, #ff6b35);
    color: var(--primary-color, #ff6b35);
}

.proxy-collapse-btn {
    background: transparent;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.proxy-collapse-btn i {
    transition: transform 0.3s ease;
}

@media (min-width: 1280px) {
    #proxy-accel-panel {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }
}

@media (max-width: 1279px) {
    #proxy-accel-panel {
        position: static;
        transform: none;
        min-width: 0;
        max-width: 52%;
        margin: 0 8px;
    }
}

#closeBtn {
    display: none;
}

.chat-panel {
    width: 400px;
    background-color: var(--player-layer);
    /* border-left: 1px solid #2a2a2a; */
    display: flex;
    flex-direction: column;
}

.chat-panel.connecting {
    opacity: 1;
}

.chat-panel.connecting .chat-input,
.chat-panel.connecting .chat-send-btn {
    pointer-events: none;
    opacity: 0.5;
}

.chat-header {
    background: #1a1a1a;
    padding: 15px 15px;
    border-bottom: 2px solid #2a2a2a;
    height: 50px;
}

.chat-header h3 {
    color: #00d4ff;
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #121212;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px;
    padding-left: 12px;
    background-color: #1e1e1e;
    border-radius: 8px;
    border-left: 3px solid #666666;
}

.chat-time {
    font-size: 11px;
    color: #888888;
    margin-bottom: 2px;
}

.chat-username {
    color: #00d4ff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    padding-left:6px;
}

.chat-text {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Different message types - Dark theme with color harmony */
.chat-message.chat {
    background-color: #1a1d25;
}

.chat-message.chat .chat-username {
    color: #00d4ff;
    /* padding-left: 5px; */
}

.chat-message.tip {
    background-color: #252015;
}

.chat-message.tip .chat-username {
    color: #ffb81c;
}

.chat-message.lovense {
    background-color: #2a1528;
}

.chat-message.lovense .chat-username {
    color: #ff006e;
}
.chat-lovense.lovense-icon{
    color: var(--orange);
}
.chat-message.notice {
    background-color: #1a2333;
}

.chat-message.notice .chat-username {
    color: #7c3aed;
}

.chat-message.status {
    background-color: #1a1a1e;
}

.chat-message.status .chat-username {
    color: #888888;
}

.chat-message.log {
    background-color: #1a2615;
}

.chat-message.log .chat-username {
    color: #10b981;
}

.chat-message.raw {
    background-color: #1f1815;
}

.chat-message.raw .chat-username {
    color: #ff9800;
}

.chat-message.goal {
    background-color: #1a2615;
}

.chat-message.goal .chat-username {
    color: #10b981;
}

.chat-message.purchase {
    background-color: #1f1a25;
}

.chat-message.purchase .chat-username {
    color: #9d4edd;
}

.chat-message.thresholdGoal {
    background-color: #1a2615;
}

.chat-message.thresholdGoal .chat-username {
    color: #10b981;
}

.chat-message.broadcast {
    background-color: #1f1815;
}

.chat-message.broadcast .chat-username {
    color: #ff9800;
}

.chat-input-wrapper {
    padding: 5px;
    background-color: #141414;
    /* border-top: 1px solid #2a2a2a; */
    height: 52px;
}

.chat-input-container {
    position: relative;
}

.chat-input {
    width: 100%;
    padding: 10px 50px 10px 10px;
    border: 2px solid #3a3a3c;
    border-radius: 6px;
    font-size: 14px;
    resize: none;
    font-family: inherit;
    background-color: #1e1e1e;
    color: #d0d0d0;
}

.chat-input::placeholder {
    color: #666666;
}


.chat-send-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
    min-width: auto;
    font-weight: 600;
}

.chat-send-btn span {
    display: none;
}


.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #c0c0c626;
    border-top-color: #717070f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #fff;
    margin-top: 15px;
    font-size: 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.video-js .vjs-loading-spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.video-js.vjs-spinner-delay-show.vjs-waiting .vjs-loading-spinner,
.video-js.vjs-spinner-delay-show.vjs-seeking .vjs-loading-spinner {
    display: flex !important;
    visibility: visible !important;
    opacity: 0.85 !important;
}

.vjs-quality-button {
    position: relative;
}

.vjs-quality-button .vjs-icon-placeholder:before {
    content: 'HD';
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.67;
}

.vjs-quality-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 8px 0;
    margin-bottom: 10px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.vjs-quality-menu::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.vjs-quality-item {
    padding: 10px 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.vjs-quality-item:hover {
    background: rgba(145, 71, 255, 0.2);
}

.vjs-quality-item.selected {
    background: rgba(145, 71, 255, 0.3);
    color: var(--primary-color);
}

.vjs-quality-item .quality-label {
    flex: 1;
}

.vjs-quality-item i {
    color: var(--primary-color);
    font-size: 12px;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        z-index: 1000;
    }

    .player-wrapper {
        flex: 0 0 auto;
        min-height: 0;
        flex-flow:column;
        height: 100vh;
    }

    .video-wrapper {
        flex: 0 0 auto;
    }

    .video-container {
        width: 100vw;
        height: 56.25vw;
        flex: 0 0 auto;
        position: relative;
    }

    .video-js {
        width: 100vw !important;
        height: 56.25vw;
        position: relative;
    }

    .video-js video {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .chat-panel {
        width: 100%;
        flex: 1;
        min-height: 0;
        border-left: none;
        border-top: 1px solid #e5e5e7;
        overflow: scroll;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
    }

    .player-header {
        padding: 12px 15px;
        display: none;
    }

    .player-info h2 {
        font-size: 14px;
    }

    .video-info-bar {
        padding: 10px 15px;
    }



    .video-action-btn span {
        display: none;
    }

    .video-action-btn {
        padding: 6px 10px;
        min-width: auto;
    }

    #closeBtn {
        display: flex;
    }

    .chat-header {
        display: none;
    }

    .video-info-bar {
        background: #141414;
        border-top-color: #2a2a2a;
    }

    .video-info-item {
        color: #888888;
    }

    .video-info-item i {
        color: #00d4ff;
    }

    .video-info-item .count {
        color: #e0e0e0;
    }

    .video-action-btn {
        background: #252525;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }

    .video-action-btn.followed {
        background: #252015;
        border-color: #3a3a3a;
        color: #ffb81c;
    }

    .video-action-btn.followed:hover {
        background: #ffb81c;
        border-color: #ffb81c;
        color: #000;
    }

    .video-action-btn.liked {
        background: #2a1528;
        border-color: #3a3a3a;
        color: #ff006e;
    }

    .chat-panel {
        /* background-color: #0f0f0f; */
        border-top-color: #1d1d1f;
    }

    .chat-messages {
        background-color: #121212;
    }

    .chat-message {
        background-color: #1e1e1e;
    }

    .chat-message.chat {
        background-color: #1a1d25;
    }

    .chat-message.chat .chat-username {
        color: #00d4ff;
    }

    .chat-message.tip {
        background-color: #252015;
    }

    .chat-message.tip .chat-username {
        color: #ffb81c;
    }

    .chat-message.lovense {
        background-color: #2a1528;
    }

    .chat-message.lovense .chat-username {
        color: #ff006e;
    }

    .chat-message.notice {
        background-color: #1a2333;
    }

    .chat-message.notice .chat-username {
        color: #7c3aed;
    }

    .chat-message.status {
        background-color: #1a1a1e;
    }

    .chat-message.status .chat-username {
        color: #888888;
    }

    .chat-message.log {
        background-color: #1a2615;
    }

    .chat-message.log .chat-username {
        color: #10b981;
    }

    .chat-message.raw {
        background-color: #1f1815;
    }

    .chat-message.raw .chat-username {
        color: #ff9800;
    }

    .chat-message.goal {
        background-color: #1a2615;
    }

    .chat-message.goal .chat-username {
        color: #10b981;
    }

    .chat-message.purchase {
        background-color: #1f1a25;
    }

    .chat-message.purchase .chat-username {
        color: #9d4edd;
    }

    .chat-message.thresholdGoal {
        background-color: #1a2615;
    }

    .chat-message.thresholdGoal .chat-username {
        color: #10b981;
    }

    .chat-message.broadcast {
        background-color: #1f1815;
    }

    .chat-message.broadcast .chat-username {
        color: #ff9800;
    }

    .chat-time {
        color: #888888;
    }

    .chat-text {
        color: #d0d0d0;
    }

    .chat-input-wrapper {
        background-color: #0f0f0f;
        border-top-color: #2a2a2a;
    }

    .chat-input {
        background-color: #1e1e1e;
        border-color: #3a3a3c;
        color: #d0d0d0;
    }

    .chat-input:focus {
        border-color: #00d4ff;
        background-color: #242426;
    }

    .chat-input::placeholder {
        color: #666666;
    }
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.custom-modal-overlay.active {
    display: flex;
}

.custom-modal-box {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: #1d1d1f;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6e6e73;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

.modal-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #6e6e73;
    font-size: 14px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e5e7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 80px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-danger:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}



.follow-checkbox {
    margin-right: 10px;
}

.selected-count {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 500;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #f5f5f7;
}

.pagination-info {
    display: none;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    background: #ffffff;
    color: #1d1d1f;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #f5f5f7;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    background: #f5f5f7;
    color: #c7c7cc;
    cursor: not-allowed;
    border-color: #e5e5e7;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-number {
    font-weight: 600;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: #6e6e73;
}

.loading-state i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6e6e73;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #d2d2d7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #333;
}

@media (max-width: 768px) {

    html,
    body {
        /* Firefox */
        scrollbar-width: none;
        /* IE/Edge */
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}

.password-toggle i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .category-tabs-inner {
        display: flex;
        gap: 5px;
        flex: 1;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
    }

    .tab {
        display: inline-block;
        padding: 3px 15px;
        text-decoration: none;
        color: #006699;
        font-weight: 400;
        font-size: 13px;
        border-top: 1px solid transparent;
        border-left: 1px solid transparent;
        border-right: 1px solid transparent;
        border-radius: 4px;
        background-color: transparent;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        white-space: nowrap;
    }

    .tab:hover {
        background-color: #f7f7f7;
    }

    .tab.active {
        background-color: transparent;
        color: #ff6600;
        border-top: 1px solid transparent;
        border-left: 1px solid transparent;
        border-right: 1px solid transparent;
        padding: 3px;
    }

    .tab:not(.active) {
        border: 1px solid transparent;
        padding: 3px;
    }
}

@media (max-width: 768px) {
    .cn-proxy-active .video-info-left {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .category-tabs-desktop {
        display: none !important;
    }

    .header-mobile {
        display: block !important;
    }

    .category-tabs-mobile {
        display: flex !important;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        /* overflow-x: scroll; */
    }

    .room-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 6px;
    }

    .category-tabs-inner::-webkit-scrollbar {
        height: 0;
        width: 0;
    }

    .tab i {
        font-size: 12px;
    }

    .tag-filter-btn {
        font-size: 11px;
        padding: 6px 8px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        gap: 0;
    }

    .tag-filter-btn span {
        display: none;
    }

    .tag-filter-btn i {
        font-size: 14px;
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .tag-sidebar {
        width: 100%;
        right: -100%;
    }

    .pagination-container {
        padding: 10px 0;
    }

    .pagination-controls {
        gap: 3px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }

    .pagination-btn i {
        font-size: 10px;
    }

    .pagination-btn:not(.active):not(:disabled):nth-child(n+6):nth-last-child(n+4) {
        display: none;
    }

    #proxy-accel-panel {
        gap: 6px;
        padding: 4px 6px;
        min-width: auto;
        max-width: fit-content;
        border-color: #3a3a3c;
        background: #252527;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        height: 32px;
    }

    #proxy-accel-panel.collapsed {
        padding-right: 4px;
    }

    .proxy-toggle-btn {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 4px;
        background: #f5f5f7;
        color: #6e6e73;
        border-color: #d2d2d7;
    }

    .proxy-toggle-btn::after {
        width: 6px;
        height: 6px;
        background: #878789;
    }

    .proxy-toggle-on {
        background: #252527;
        color: #d0d0d4;
        border-color: #3a3a3c;
    }

    .proxy-toggle-on::after {
        background: #4caf50;
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
        animation: proxy-dot-blink 1.5s infinite ease-in-out;
    }

    .proxy-toggle-off {
        background: #252527;
        color: #878789;
        border-color: #3a3a3c;
    }

    .proxy-quota-track {
        width: 48px;
        max-width: 48px;
        height: 4px;
        background: #3a3a3c;
    }

    .proxy-quota-text {
        font-size: 10px;
        color: #8a8a8e;
    }

    .proxy-buy-btn {
        width: 20px;
        height: 20px;
        font-size: 11px;
        border-color: #3a3a3c;
        background: #252527;
        color: #d0d0d4;
    }

    .proxy-collapse-btn {
        padding: 0 2px;
        font-size: 10px;
        color: #8a8a8e;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 28px;
    }

    .pagination-btn span {
        display: none;
    }

    .pagination-controls {
        gap: 2px;
    }
}

@media (min-width: 769px) {

    .right-sidebar.show {
        display: block;
    }

    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    body {
        background-color: #f5f5f7;
        color: #111111;
    }

    .main-content {
        background-color: #f5f5f7;
    }

    .category-tabs-inner {
        display: flex;
        gap: 0;
        flex: 1;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-tabs-inner::-webkit-scrollbar {
        display: none;
    }

    /* ── Mobile Header ── */
    .header-mobile {
        background: #ffffff;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    }

    .header-mobile .header-container {
        padding: 0 14px;
        height: 52px;
    }

    .header-mobile .logo img {
        height: 30px;
    }

    .header-mobile .search-box {
        position: relative;
        display: flex;
        align-items: center;
    }

    .header-mobile .search-input {
        background: #f0f0f2;
        border: 0.5px solid rgba(0, 0, 0, 0.08);
        border-radius: 20px;
        padding: 7px 12px 7px 32px;
        color: #111111;
        width: 100%;
        font-size: 13px;
        transition: border-color 0.2s, background 0.2s;
    }

    .header-mobile .search-input::placeholder {
        color: #aaaaaa;
    }

    .header-mobile .search-input:focus {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.18);
        outline: none;
    }

    .header-mobile .search-btn {
        position: absolute;
        left: 10px;
        background: none;
        border: none;
        color: #aaaaaa;
        cursor: pointer;
        font-size: 13px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .header-mobile .user-info {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .header-mobile .btn-secondary:hover {
        background: #e8e8ea;
        border-color: rgba(0, 0, 0, 0.18);
    }

    .header-mobile .btn-orange {
        background: #e8440a;
        border: none;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        padding: 6px 14px;
        border-radius: 18px;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .header-mobile .btn-orange:hover {
        background: #c73a07;
    }

    /* ── Mobile Category Tabs ── */
    .category-tabs-mobile {
        background: #ffffff;
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        padding: 0;
        gap: 0;
        flex-wrap: nowrap;
        align-items: center;
        display: flex;
        justify-content: space-between;
        border-top: none;
    }

    .category-tabs-mobile .category-tabs-inner {
        padding: 0 4px;
        flex: 1;
        min-width: 0;
    }

    .tab {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 12px 16px;
        text-decoration: none;
        color: #aaaaaa;
        font-weight: 500;
        font-size: 13px;
        border: none;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
        transition: color 0.18s;
        position: relative;
        white-space: nowrap;
        letter-spacing: 0.1px;
    }

    .tab i {
        font-size: 12px;
        opacity: 0.7;
    }

    .tab:hover {
        background: transparent;
        color: #555555;
    }

    .tab.active {
        background: transparent;
        color: #111111;
        font-weight: 700;
        border: none;
        border-bottom: none;
        margin-bottom: 0;
        padding: 12px 16px;
    }

    .tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 2.5px;
        background: #e8440a;
        border-radius: 2px;
    }

    .tab:not(.active) {
        border: none;
        padding: 16px 8px;
    }

    .category-tabs-mobile .tag-filter-btn {
        background: transparent;
        border: none;
        border-left: 0.5px solid rgba(0, 0, 0, 0.08);
        color: #aaaaaa;
        font-size: 12px;
        font-weight: 500;
        padding: 10px 14px;
        border-radius: 0;
        gap: 5px;
        flex-shrink: 0;
        white-space: nowrap;
        transition: color 0.18s;
    }

    .category-tabs-mobile .tag-filter-btn.tag-filter-on {
        color: #555
    }

    .category-tabs-mobile .tag-filter-btn i {
        font-size: 12px;
    }

    .left-content {
        padding: 8px;
        background-color: #f5f5f7;
    }



    .tag {
        background-color: #f0f0f2;
        color: #666666;
        border-color: rgba(0, 0, 0, 0.08);
    }

    .pagination-container {
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    }

    .pagination-btn {
        background: #ffffff;
        border: 0.5px solid rgba(0, 0, 0, 0.12);
        color: #555555;
        border-radius: 8px;
    }

    .pagination-btn:hover:not(:disabled) {
        background: #f0f0f2;
        border-color: rgba(0, 0, 0, 0.18);
        color: #111111;
    }

    .pagination-btn:disabled {
        background: #f5f5f7;
        color: #cccccc;
        border-color: rgba(0, 0, 0, 0.06);
    }

    .pagination-btn.active {
        background: #e8440a;
        border-color: #e8440a;
        color: #fff;
        font-weight: 700;
    }

    .right-sidebar {
        background: #ffffff;
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    }

    .close-sidebar {
        color: #aaaaaa;
    }

    .close-sidebar:hover {
        color: #111111;
    }

    .filter-section h3 {
        color: #aaaaaa;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        font-weight: 600;
    }

    .tags-container .tag {
        background-color: #f0f0f2;
        color: #666666;
        border-color: rgba(0, 0, 0, 0.08);
        border-radius: 6px;
    }

    .tags-container .tag:hover {
        background-color: #e8e8ea;
        color: #111111;
    }

    .tags-container .tag.active {
        background-color: #e8440a;
        border-color: #e8440a;
        color: #fff;
        font-weight: 600;
    }

    .tag-pagination {
        color: #aaaaaa;
    }

    .tag-pagination a {
        color: #666666;
    }

    .tag-pagination a:hover {
        color: #111111;
    }

    .right-sidebar .search-box input {
        background: #f0f0f2;
        border-color: rgba(0, 0, 0, 0.08);
        color: #111111;
        border-radius: 8px;
    }

    .right-sidebar .search-box input::placeholder {
        color: #aaaaaa;
    }

    .right-sidebar .search-box input:focus {
        border-color: rgba(0, 0, 0, 0.18);
        outline: none;
    }

    .right-sidebar .search-box i {
        position: absolute;
        color: #aaaaaa;
    }

    .custom-modal-overlay {
        background: rgba(0, 0, 0, 0.45);
    }

    .custom-modal-box {
        background: #ffffff;
        border: 0.5px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        width: 92%;
        max-height: 85vh;
    }

    .modal-header {
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
        padding: 18px 20px;
    }

    .modal-header h3 {
        color: #111111;
        font-size: 16px;
    }

    .modal-close {
        color: #aaaaaa;
        background: #f0f0f2;
        border-radius: 50%;
        width: 28px;
        height: 28px;
    }

    .modal-close:hover {
        background: #e8e8ea;
        color: #111111;
    }

    .modal-body {
        padding: 18px 20px;
    }

    .modal-body p {
        color: #666666;
    }

    .modal-footer {
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
        padding: 14px 20px;
    }

    .modal-footer .btn-secondary {
        background: #f0f0f2;
        border-color: rgba(0, 0, 0, 0.10);
        color: #555555;
    }

    .modal-footer .btn-secondary:hover {
        background: #e8e8ea;
        border-color: rgba(0, 0, 0, 0.15);
    }

    .modal-footer .btn-danger {
        background: #e53e3e;
        border: none;
    }

    .modal-footer .btn-danger:hover {
        background: #c53030;
    }

    .follow-checkbox {
        accent-color: #e8440a;
    }

    .selected-count {
        color: #aaaaaa;
    }

    /* ── loading / empty state ── */
    .loading-state {
        color: #aaaaaa;
        background-color: #f5f5f7;
    }

    .loading-state i {
        color: #cccccc;
    }

    .empty-state {
        color: #aaaaaa;
        background-color: #f5f5f7;
    }

    .empty-state i {
        color: #dddddd;
    }

    /* ── footer ── */
    .footer {
        background-color: #ffffff;
        border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    }

    .footer-section h3 {
        color: #aaaaaa;
    }

    .footer-section ul li a {
        color: #bbbbbb;
    }

    .footer-section ul li a:hover {
        color: #555555;
    }

    .footer-bottom {
        border-top: 0.5px solid rgba(0, 0, 0, 0.06);
    }

    .footer-compliance {
        background-color: #f5f5f7;
    }

    .footer-compliance p,
    .footer-bottom p {
        color: #bbbbbb;
    }

    .footer-compliance a {
        color: #999999;
    }

    .footer-disclaimer {
        background-color: #fffaf5;
        border-color: rgba(232, 68, 10, 0.10);
    }

    .footer-disclaimer p {
        color: #c87040;
    }

    .footer-disclaimer a {
        color: #b05a28;
    }

    .social-links a {
        color: #cccccc;
    }

    .social-links a:hover {
        color: #666666;
    }
}

/* ===== Player Container Redesign ===== */
body[data-player-theme="metal-velvet"] {
    --player-bg: #100e12;
    --player-layer: #17141b;
    --player-layer-2: #1f1a24;
    --player-border: #342937;
    --player-text: #f5edf5;
    --player-muted: #b09fad;
    --player-accent: #d890ad;
    --player-accent-2: #f2c99f;
    --player-tip: #f6c66d;
    --player-lovense: #ff74c5;
    --player-system: #93a0b7;
}

body[data-player-theme="noir-pulse"] {
    --player-bg: #0f0b0e;
    --player-layer: #191217;
    --player-layer-2: #261720;
    --player-border: #4a2439;
    --player-text: #f8ebf0;
    --player-muted: #b695a3;
    --player-accent: #d74674;
    --player-accent-2: #ff9070;
    --player-tip: #ffbb55;
    --player-lovense: #ff55aa;
    --player-system: #8e95b1;
}

body[data-player-theme="slate-luxe"] {
    --player-bg: #0f1114;
    --player-layer: #181c21;
    --player-layer-2: #1f252c;
    --player-border: #394451;
    --player-text: #edf1f5;
    --player-muted: #9da8b6;
    --player-accent: #a8b3c2;
    --player-accent-2: #d8be98;
    --player-tip: #e7bf79;
    --player-lovense: #d37eb8;
    --player-system: #8f9bb0;
}

body:not([data-player-theme]) {
    --player-bg: #100e12;
    --player-layer: #17141b;
    --player-layer-2: #1f1a24;
    --player-border: #342937;
    --player-text: #f5edf5;
    --player-muted: #b09fad;
    --player-accent: #d890ad;
    --player-accent-2: #f2c99f;
    --player-tip: #f6c66d;
    --player-lovense: #ff74c5;
    --player-system: #93a0b7;
}

.player-container {
    background: radial-gradient(circle at 20% 0%, rgba(215, 144, 173, 0.12) 0%, rgba(16, 14, 18, 0) 32%),
        radial-gradient(circle at 90% 20%, rgba(242, 201, 159, 0.08) 0%, rgba(16, 14, 18, 0) 30%),
        var(--player-bg);
}

.player-header,
.video-info-bar,
.player-info h2,
.chat-username,
.chat-text,
.video-info-item .count,
.video-action-btn,
.player-close {
    color: var(--player-text);
}


.player-theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--player-border);
    background: var(--player-layer-2);
    border-radius: 999px;
    padding: 3px;
    margin-left: 6px;
}

.player-theme-switch button {
    border: none;
    background: transparent;
    color: var(--player-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    padding: 4px 8px;
    cursor: pointer;
}

.player-theme-switch button.active {
    color: #201218;
    background: linear-gradient(120deg, var(--player-accent), var(--player-accent-2));
}

.player-close,
.video-action-btn,
.chat-send-btn,
.tip-submit-btn {
    font-family: "DIN Alternate", "Bahnschrift", "Segoe UI", sans-serif;
}

.video-info-item {
    color: var(--player-muted);
}

.video-info-item i {
    color: var(--player-accent-2);
}

.video-action-btn,
.player-close {
    background: #ff4444;
    border-color: var(--player-border);
}
.video-action-btn.followBtn{
    background-color: var(--player-border);
}
.video-action-btn.followBtn.followed{
    background-color: #fbbf24;
    color:black
}
.tip-trigger-btn {
    background: green;
    border-color: transparent;
    color: #d2d2d7;
}

.tip-trigger-btn {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

#proxy-accel-panel {
    border: 1px solid var(--player-border);
    background: var(--player-layer-2);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.proxy-toggle-btn,
.proxy-buy-btn {
    border-color: var(--player-border);
    background: #16131a;
    color: var(--player-muted);
}

.proxy-toggle-on {
    color: var(--player-text);
    background: #1e1822;
    border-color: #1d1d1f;
}

.proxy-quota-track {
    background: #2c2532;
    display: none;
}

.proxy-quota-fill {
    background: linear-gradient(90deg, var(--player-accent), var(--player-accent-2));
}

.proxy-quota-text,
.proxy-collapse-btn {
    color: var(--player-muted);
}


.chat-messages {
    background: var(--player-bg);
}

.chat-message {
    background: #19161d;
    border: 1px solid #2d2531;
    border-radius: 10px;
    padding: 9px 10px;
}

.chat-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.chat-time {
    color: var(--player-muted);
    font-size: 11px;
}

.chat-type-tag {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.chat-type-tag.type-chat {color: #e7dce7;background: #2c2532;border-color: #4c3f58;padding: 0;}
.chat-type-tag.type-tip { color: #2a1f0f; background: var(--player-tip); }
.chat-type-tag.type-lovense { color: #2b1021; background: var(--player-lovense); }
.chat-type-tag.type-status { color: #d8deef; background: #31384a; }
.chat-type-tag.type-notice {color: #dfd8f1;background: #3a2f53;padding: 0px;}
.chat-type-tag.type-log { color: #d6efd8; background: #28412b; }
.chat-type-tag.type-raw { color: #f0dfc8; background: #4f3528; }
.chat-type-tag.type-goal { color: #d8efd8; background: #2a4a2f; }
.chat-type-tag.type-purchase { color: #ead8f4; background: #4a2f5d; }

.chat-username {
    color: var(--player-accent-2);
}

.chat-text {
    color: #e5dee9;
}

.chat-highlight-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    padding: 3px 8px;
    background: rgba(246, 198, 109, 0.15);
    border: 1px solid rgba(246, 198, 109, 0.4);
}

.chat-highlight-icon {
    color: var(--player-tip);
}

.chat-highlight-value {
    color: var(--player-tip);
    font-weight: 700;
    font-family: "DIN Alternate", "Bahnschrift", "Segoe UI", sans-serif;
}

.lovense-rich-text {
    font-size: 12px;
}

.lovense-device-row {
    color: var(--player-lovense);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.lovense-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 11px;
}

.lovense-grid-row span {
    color: var(--player-muted);
}

.lovense-grid-row b {
    color: var(--player-text);
}

.lovense-note {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #393042;
}

.chat-input {
    background: #17141b;
    border: 1px solid #3a3042;
    color: var(--player-text);
}

.chat-input:focus {
    border-color: var(--player-accent);
    box-shadow: 0 0 0 2px rgba(216, 144, 173, 0.2);
}

.chat-send-btn {
    background: #ff9800;
    color: #f5f5f7;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.tip-modal {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 1100;
}

.tip-modal.open {
    display: block;
}

.tip-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.62);
    backdrop-filter: blur(4px);
}

.tip-modal-dialog {
    position: absolute;
    right: 16px;
    bottom: 18px;
    width: min(560px, calc(100% - 24px));
    height: 96vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid #2a2a2a;
    background: linear-gradient(180deg, #19141e, #130f17);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    animation: tip-modal-in 0.2s ease-out;
}

@keyframes tip-modal-in {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tip-modal-header,
.tip-modal-tabs,
.tip-modal-footer {
    padding: 12px 14px;
    border-bottom: 1px solid #2a2a2a;
}

.tip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tip-modal-header h3 {
    margin: 0;
    color: var(--player-text);
    font-size: 17px;
}

.tip-modal-close {
    border: 1px solid var(--player-border);
    background: #1e1822;
    color: var(--player-muted);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.tip-modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tip-tab {
    border: 1px solid #3a3a3c;
    background: #3a3a3c;
    color: #d2d2d7;
    border-radius: 8px;
    padding: 8px;
    font-weight: 700;
    cursor: pointer;
}

.tip-tab.active {
    background: #ff6b35;
    color: #f5f5f7;
    border-color: transparent;
}

.tip-modal-body {
    overflow: auto;
    padding: 12px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tip-modal-body::-webkit-scrollbar {
    display: none;
}

.tip-pane-lovense,
.tip-modal.tip-mode .tip-pane-lovense,
.tip-modal.lovense-mode .tip-pane-tip {
    display: none;
}

.tip-modal.lovense-mode .tip-pane-lovense {
    display: block;
}

.tip-section-title {
    margin: 0 0 8px 0;
    color: var(--player-muted);
    font-size: 12px;
    font-weight: 600;
}

.tip-menu-list,
.tip-quick-list,
.lovense-level-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.tip-menu-item,
.tip-quick-item,
.lovense-level-item {
    border: 1px solid #3b3044;
    background: #1c1722;
    color: var(--player-text);
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
}

.tip-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lovense-level-list {
    gap: 0;
    border: 1px solid #2f2836;
    border-radius: 12px;
    overflow: hidden;
    background: #16131b;
}

.lovense-table-head {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #8d839a;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid #29242f;
    background: #17131e;
    justify-content: space-between;
}

.lovense-row {
    width: 100%;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #29242f;
    background: #1a1621;
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    text-align: left;
}

.lovense-level-list .lovense-row:last-child {
    border-bottom: 0;
}

.lovense-col {
    color: #d8d2e0;
    font-size: 12px;
    font-weight: 500;
}

.lovense-duration {
    color: #c9c2d2;
}

.lovense-token {
    text-align: right;
    color: var(--player-tip);
    font-family: "DIN Alternate", "Bahnschrift", "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.lovense-vibe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lovense-vibe i {
    color: #ffab2d;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.lovense-vibe-low span,
.lovense-vibe-mid span,
.lovense-vibe-high span,
.lovense-vibe-ultra span {
    color: #f3b047;
    font-weight: 700;
}

.lovense-vibe-ultra i,
.lovense-vibe-ultra span {
    color: #ff8d34;
}

.tip-menu-item.active,
.tip-quick-item.active,
.lovense-level-item.active {
    border-color: var(--player-accent);
    background: #241d2b;
    box-shadow: inset 0 0 0 1px rgba(216, 144, 173, 0.25);
}

.lovense-row.active {
    background: #231c2c;
    box-shadow: inset 0 0 0 1px rgba(255, 173, 64, 0.35);
}

.tip-menu-label {
    color: var(--player-text);
}

.tip-menu-amount,
.tip-summary-value {
    color: var(--player-tip);
    font-family: "DIN Alternate", "Bahnschrift", "Segoe UI", sans-serif;
    font-weight: 700;
}

.tip-quick-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tip-input-label {
    display: block;
    color: var(--player-muted);
    margin-bottom: 6px;
    font-size: 12px;
}

#tipCustomAmountInput,
#tipMessageInput {
    width: 100%;
    border: 1px solid #3a3042;
    background: #17141b;
    color: var(--player-text);
    border-radius: 10px;
    padding: 10px;
}

#tipCustomAmountInput::-webkit-outer-spin-button,
#tipCustomAmountInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#tipCustomAmountInput {
    -moz-appearance: textfield;
    appearance: textfield;
}

.lovense-level-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.lovense-level-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    color: var(--player-muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .lovense-table-head,
    .lovense-row {
        grid-template-columns: 0.9fr 1.2fr 0.8fr;
        padding: 10px 10px;
    }

    .lovense-col {
        font-size: 14px;
    }

    .lovense-token {
        font-size: 14px;
    }
}

.tip-empty {
    border: 1px dashed #4b3d57;
    border-radius: 10px;
    color: var(--player-muted);
    padding: 12px;
    text-align: center;
}

.lovense-cb-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #1f1828 0%, #1a1422 100%);
    border: 1px solid #3a2d48;
    border-radius: 12px;
}

.lovense-cb-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lovense-cb-icon i {
    color: #fff;
    font-size: 20px;
}

.lovense-cb-text {
    flex: 1;
}

.lovense-cb-text p {
    margin: 0 0 5px 0;
    color: #b8afc4;
    font-size: 13px;
    line-height: 1.6;
}

.lovense-cb-text p strong {
    color: #e2d5f0;
    font-size: 15px;
}

.lovense-cb-text p:last-child {
    margin-bottom: 0;
}

.lovense-cb-switch-hint {
    margin-top: 10px !important;
    padding: 8px 12px;
    background: rgba(255, 171, 64, 0.10);
    border: 1px solid rgba(255, 171, 64, 0.20);
    border-radius: 8px;
    color: #e8c97a !important;
    font-size: 13px !important;
    text-align: center;
}

.lovense-cb-switch-hint strong {
    color: #f5a623 !important;
}

.tip-modal-footer {
    border-top: 1px solid #2a2a2a;
    border-bottom: 0;
}

.tip-summary {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.tip-summary-mode {
    border-radius: 999px;
    border: 1px solid #4b3c58;
    background: #211a29;
    color: var(--player-muted);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
}

.tip-summary-hint {
    color: var(--player-muted);
    font-size: 12px;
}

.tip-note-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.tip-submit-btn {
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 700;
    background: #ff6b35;
    color: #e5e5e7;
    cursor: pointer;
}

@media (max-width: 900px) {
    .player-theme-switch {
        display: none;
    }

    .tip-modal-dialog {
        right: 8px;
        left: 8px;
        width: auto;
    }

    .tip-quick-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tip-note-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tip-modal {
        position: fixed;
    }

    .tip-modal-dialog {
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 86%;
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    #proxy-accel-panel {
        background: #1b161f;
        border-color: #3a3042;
    }
}
.insufficient-balance-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 12, 0);
    backdrop-filter: blur(0px);
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.insufficient-balance-overlay.insufficient-balance-visible {
    background: rgba(8, 8, 12, 0.65);
    backdrop-filter: blur(6px);
}
.insufficient-balance-overlay.insufficient-balance-closing {
    background: rgba(8, 8, 12, 0);
    backdrop-filter: blur(0px);
}
.insufficient-balance-dialog {
    width: min(380px, calc(100% - 32px));
    background: linear-gradient(160deg, #1e1822, #19141e);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.insufficient-balance-visible .insufficient-balance-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.insufficient-balance-closing .insufficient-balance-dialog {
    transform: translateY(8px) scale(0.97);
    opacity: 0;
}
.insufficient-balance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #2a2a2a;
}
.insufficient-balance-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f5f5f7;
}
.insufficient-balance-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    background: #1e1822;
    color: #999;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.insufficient-balance-close:hover {
    color: #e0e0e0;
    border-color: #555;
}
.insufficient-balance-body {
    padding: 18px 20px;
}
.insufficient-balance-msg {
    margin: 0 0 8px;
    font-size: 14px;
    color: #d2d2d7;
    line-height: 1.6;
}
.insufficient-balance-hint {
    margin: 0;
    font-size: 12px;
    color: #888;
}
.insufficient-balance-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #2a2a2a;
}
.insufficient-balance-cancel {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #3a3a3c;
    border-radius: 10px;
    background: transparent;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.insufficient-balance-cancel:hover {
    color: #e0e0e0;
    border-color: #555;
}
.insufficient-balance-recharge {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.insufficient-balance-recharge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.insufficient-balance-recharge:active {
    transform: translateY(0);
}

.header-username {
    display: none;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.header-mobile .btn .btn-text,
.header-mobile .header-token-badge .btn-text {
    display: none;
}

@media (min-width: 769px) {
    .header-username { display: inline; }
    .header-mobile .btn .btn-text,
    .header-mobile .header-token-badge .btn-text { display: inline; }
    .header-mobile .header-right { width: auto; }
    .header-mobile .search-input { width: 220px; }
    .header-mobile .user-info { flex-direction: row; align-items: center; gap: 8px; }
}

/* Token badge */
.header-token-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251,191,36,0.12);
    border: 1px solid rgba(251,191,36,0.35);
    border-radius: 18px;
    padding: 5px 10px;
    color: #d97706;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}
.header-token-badge.low-balance {
    background: rgba(255,68,68,0.1);
    border-color: rgba(255,68,68,0.35);
    color: #dc2626;
}
.header-token-buy {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0 2px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    opacity: 0.8;
}
.header-token-buy:hover { opacity: 1; }

/* Header redesign: glass-ribbon */
.header-container[data-header-theme] {
    --header-frame: linear-gradient(180deg, rgba(245, 250, 255, 0.92) 0%, rgba(239, 245, 252, 0.94) 100%);
    --header-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(235, 243, 252, 0.52) 100%);
    --header-border: rgba(152, 180, 210, 0.34);
    --header-shadow: 0 14px 34px rgba(25, 44, 74, 0.07);
    --status-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.56) 0%, rgba(229, 239, 250, 0.45) 100%);
    --status-border: rgba(147, 178, 212, 0.3);
    --status-shadow: 0 10px 22px rgba(37, 58, 90, 0.07);
    --search-surface: rgba(255, 255, 255, 0.62);
    --search-border: rgba(98, 125, 170, 0.16);
    /* --search-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); */
    --search-icon: #7f8ea3;
    --bridge-tint: rgba(228, 238, 248, 0.92);
    --bridge-border: rgba(255, 140, 0, 0.16);
    position: relative;
    z-index: 2;
    margin: 0 auto;
    min-height: 60px;
    padding: 8px 18px;
    display: grid;
    grid-template-columns: auto minmax(24px, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: var(--header-surface);
    /* box-shadow: var(--header-shadow); */
    backdrop-filter: blur(14px);
    overflow: visible;
    box-sizing: border-box;
}

.header-mobile.header-themed {
    background: var(--header-frame);
    border-bottom: none;
    box-shadow: none;
}

.header-mobile.header-themed.profile-open .header-search-box {
    display: none !important;
}

.header-container[data-header-theme] .header-brand {
    display: inline-flex;
    align-items: center;
    grid-column: 1;
    flex: 0 0 auto;
    min-width: 0;
    gap: 0;
    position: relative;
    z-index: 1002;
    transition: opacity 0.24s ease, transform 0.24s ease, max-width 0.3s ease, margin 0.3s ease;
}

.header-container[data-header-theme] .logo img {
    height: 36px;
    padding-left: 0;
}

.header-container[data-header-theme] .header-status-zone {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: 0;
    position: relative;
    z-index: 1002;
    transition: opacity 0.24s ease, transform 0.24s ease, max-width 0.3s ease, margin 0.3s ease;
}

.header-container[data-header-theme] .header-status-panel {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 8px 6px 10px;
    overflow: visible;
}

.header-container[data-header-theme] .header-member-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-right: 2px;
}

.header-container[data-header-theme] .header-username {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2937;
    font-size: 12px;
}

.header-container[data-header-theme] .header-search-box {
    position: relative;
    justify-self: auto;
    width: clamp(320px, 34vw, 420px);
    min-width: 300px;
    max-width: 420px;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    z-index: 1003;
    margin-right: 4px;
    transform: none;
    transition: flex-basis 0.32s ease, max-width 0.32s ease, transform 0.26s ease, opacity 0.26s ease;
}

.header-container[data-header-theme] .header-status-panel > .header-search-box {
    order: -1;
}

.header-container[data-header-theme] .header-search-trigger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(138, 170, 204, 0.32);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(231, 240, 249, 0.76) 100%);
    color: #54708f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 20px rgba(62, 98, 142, 0.08);
    cursor: pointer;
}

.header-container[data-header-theme] .header-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px 0 42px;
    border-radius: 999px;
    border: 1px solid var(--search-border);
    background: var(--search-surface);
    box-shadow: var(--search-shadow), 0 12px 28px rgba(76, 107, 149, 0.08);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.header-container[data-header-theme] .header-search-leading {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--search-icon);
    font-size: 15px;
    z-index: 1;
    pointer-events: none;
}

.header-container[data-header-theme] .search-input {
    width: 100%;
    height: 42px;
    padding: 0 34px 0 0;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.header-container[data-header-theme] .search-input::placeholder {
    color: #8b97a9;
}

.header-container[data-header-theme] .search-input:focus {
    outline: none;
}

.header-container[data-header-theme] .header-search-shell:focus-within {
    border-color: rgba(110, 149, 205, 0.44);
    background: var(--search-surface);
    box-shadow: var(--search-shadow), 0 12px 28px rgba(76, 107, 149, 0.08);
}

.header-container[data-header-theme] .header-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--search-icon);
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.header-container[data-header-theme].search-active .header-search-close,
.header-mobile.search-active .header-search-close {
    opacity: 1;
    pointer-events: auto;
}

.header-container[data-header-theme] .header-search-close:hover {
    background: rgba(226, 236, 246, 0.9);
}

.header-container[data-header-theme] .btn {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 12px;
}

.header-container[data-header-theme] .btn-secondary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(112, 137, 176, 0.16);
    color: #48556a;
}

.header-container[data-header-theme] .btn-orange {
    background: linear-gradient(135deg, #ff8a3c 0%, #ff6526 100%);
    border: 1px solid rgba(255, 101, 38, 0.18);
    color: #fff;
    box-shadow: 0 8px 16px rgba(255, 101, 38, 0.16);
}

.header-container[data-header-theme] .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
}

.header-container[data-header-theme] .status-badge.basic {
    color: #6f7a8a;
}

.header-container[data-header-theme] .status-badge.platinum {
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
}

.header-container[data-header-theme] .header-token-badge {
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 202, 122, 0.14);
    border-color: rgba(255, 166, 31, 0.26);
    color: #d97706;
    font-size: 11px;
}

.header-container[data-header-theme] .header-token-buy {
    width: 20px;
    height: 20px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
}

.header-mobile.header-themed .header-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(235, 243, 252, 0.08);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 1000;
}

.header-mobile.search-active .header-search-overlay {
    opacity: 1;
    pointer-events: auto;
}

.header-container[data-header-theme] .search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    display: block;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
    z-index: 2004;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.header-container[data-header-theme] .search-results.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    /* z-index: 2000; */
}

.header-container[data-header-theme] .search-results-panel {
    overflow: hidden;
    border: 1px solid rgba(143, 174, 206, 0.32);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(240, 246, 252, 0.975) 100%);
    box-shadow: 0 24px 54px rgba(41, 67, 102, 0.18);
    backdrop-filter: blur(18px);
}

.header-container[data-header-theme] .search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(151, 179, 211, 0.2);
}

.header-container[data-header-theme] .search-results-title {
    font-size: 13px;
    font-weight: 700;
    color: #35557a;
    letter-spacing: 0.02em;
}

.header-container[data-header-theme] .search-results-count {
    font-size: 11px;
    color: #6b7c92;
}

.header-container[data-header-theme] .search-results-body {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 248, 253, 0.95) 100%);
}

.header-container[data-header-theme] .search-results-body::-webkit-scrollbar {
    width: 8px;
}

.header-container[data-header-theme] .search-results-body::-webkit-scrollbar-thumb {
    background: rgba(141, 164, 191, 0.52);
    border-radius: 999px;
}

.header-container[data-header-theme] .search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    user-select: none;
    -webkit-user-select: none;
}

.header-container[data-header-theme] .search-result-item:last-child {
    margin-bottom: 0;
}

.header-container[data-header-theme] .search-result-item:hover,
.header-container[data-header-theme] .search-result-item:active,
.header-container[data-header-theme] .search-result-item:focus-visible {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 244, 251, 0.94) 100%);
    border-color: rgba(133, 167, 204, 0.34);
    box-shadow: 0 10px 20px rgba(71, 103, 147, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.header-container[data-header-theme] .search-result-icon-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(221, 234, 246, 0.86) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.header-container[data-header-theme] .search-result-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 9px;
}

.header-container[data-header-theme] .search-result-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.header-container[data-header-theme] .search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-container[data-header-theme] .search-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.header-container[data-header-theme] .search-result-name {
    font-weight: 700;
    font-size: 13px;
    color: #1f3651;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-container[data-header-theme] .search-result-arrow {
    color: #8ca3bc;
    font-size: 12px;
    flex-shrink: 0;
}

.header-container[data-header-theme] .search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6c7f94;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-container[data-header-theme] .search-result-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(90, 123, 163, 0.1);
    color: #436383;
    font-weight: 600;
}

.header-container[data-header-theme] .search-result-age {
    color: #73869b;
}

.header-container[data-header-theme] .search-state {
    padding: 28px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    color: #6b7d92;
}

.header-container[data-header-theme] .search-state i {
    font-size: 18px;
    color: #6d8fb4;
}

.header-container[data-header-theme] .search-state-title {
    font-size: 13px;
    font-weight: 700;
    color: #35557a;
}

.header-container[data-header-theme] .search-state-copy {
    font-size: 12px;
    color: #728396;
}

.header-mobile.header-themed ~ .category-tabs {
    background-image: linear-gradient(180deg, var(--bridge-tint) 0, rgba(244, 248, 252, 0.96) 26px, #f8f9fa 100%);
    border-top-color: var(--bridge-border);
    padding-top: 8px;
}

.header-mobile.header-themed ~ .category-tabs .category-tabs-inner {
    gap: 8px;
}

.header-mobile.header-themed ~ .category-tabs .tab {
    padding: 7px 14px;
    border: 1px solid rgba(143, 174, 206, 0.34);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(226, 237, 248, 0.72) 100%);
    color: #2b6d95;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.header-mobile.header-themed ~ .category-tabs .tab:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(234, 242, 250, 0.84) 100%);
    color: #1f5f85;
}

.header-mobile.header-themed ~ .category-tabs .tab.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.94) 100%);
    color: #f26a1d;
    border-color: rgba(246, 135, 51, 0.36);
    box-shadow: 0 10px 20px rgba(80, 119, 168, 0.08);
}

.header-mobile.header-themed ~ .category-tabs .tag-filter-btn {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(143, 174, 206, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (min-width: 769px) {
    .header-container[data-header-theme] .btn .btn-text,
    .header-container[data-header-theme] .header-token-badge .btn-text {
        display: inline;
    }

    .header-container[data-header-theme] .header-status-panel {
        min-width: 0;
        transition: width 0.26s ease, max-width 0.26s ease, padding 0.26s ease;
    }

    .header-container[data-header-theme].search-active .header-status-zone {
        width: min(920px, calc(100vw - 96px));
        max-width: min(920px, calc(100vw - 96px));
    }

    .header-container[data-header-theme].search-active .header-search-box {
        flex: 1 1 auto;
        width: min(640px, calc(100vw - 280px));
        max-width: 640px;
        min-width: 360px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .header-container[data-header-theme] {
        height: 56px;
        padding: 8px 10px 8px;
        display: flex;
        gap: 8px;
        /* border-radius: 0 0 18px 18px; */
        min-height: 56px;
    }

    .header-container[data-header-theme] .header-brand {
        order: 1;
        z-index: 1002;
    }

    .header-container[data-header-theme] .logo img {
        height: 28px;
    }

    .header-container[data-header-theme] .header-search-box {
        flex: 0 0 auto;
        min-width: 40px;
        max-width: none;
        width: 40px;
        margin-right: 0;
        transform: none;
    }

    .header-container[data-header-theme] .header-search-trigger {
        display: inline-flex;
    }

    .header-container[data-header-theme] .header-search-shell {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        min-height: 40px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-50%) scale(0.98);
    }

    .header-container[data-header-theme].search-active .header-search-box {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .header-container[data-header-theme].search-active .header-search-shell {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(-50%) scale(1);
    }

    .header-container[data-header-theme].search-active .header-search-trigger {
        opacity: 0;
        pointer-events: none;
    }

    .header-container[data-header-theme].search-active .header-status-panel > :not(.header-search-box) {
        opacity: 0;
        pointer-events: none;
        transform: translateX(8px);
        max-width: 0;
        min-width: 0;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .header-container[data-header-theme] .header-status-zone {
        order: 2;
        flex: 0 1 auto;
        min-width: 0;
        margin-left: auto;
    }

    .header-container[data-header-theme] .header-status-panel {
        position: relative;
        width: auto;
        max-width: calc(100vw - 84px);
        gap: 5px;
        padding: 5px 7px 5px 9px;
        overflow: hidden;
    }

    .header-container[data-header-theme] .header-status-panel > .header-search-box {
        margin-right: 2px;
    }

    .header-container[data-header-theme] .header-member-summary {
        padding-right: 0;
    }

    .header-container[data-header-theme] .header-username {
        display: none;
    }

    .header-container[data-header-theme] .header-token-badge {
        min-height: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-container[data-header-theme] .status-badge,
    .header-container[data-header-theme] .btn {
        min-height: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .header-container[data-header-theme] .header-search-trigger {
        width: 32px;
        height: 32px;
        min-width: 32px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 6px 14px rgba(62, 98, 142, 0.08);
    }

    .header-container[data-header-theme] .header-search-trigger i,
    .header-container[data-header-theme] .header-token-badge > i,
    .header-container[data-header-theme] .status-badge > i,
    .header-container[data-header-theme] .btn > i,
    .header-container[data-header-theme] .header-token-buy > i {
        font-size: 13px;
        line-height: 1;
    }

    .header-container[data-header-theme] .header-token-buy {
        width: 18px;
        height: 18px;
    }

    .header-container[data-header-theme] .btn .btn-text,
    .header-container[data-header-theme] .header-token-badge .btn-text {
        display: none;
    }

    .header-container[data-header-theme] .search-input {
        height: 40px;
        padding-right: 34px;
    }

    .header-container[data-header-theme] .search-results {
        top: calc(100% + 5px);
    }

    .header-container[data-header-theme].search-active .header-status-panel {
        width: 100%;
        padding-right: 6px;
        overflow: visible;
    }

    .header-container[data-header-theme].search-active .header-status-zone {
        flex: 1 1 auto;
        width: calc(100vw - 96px);
        max-width: calc(100vw - 96px);
    }

}

@media (max-width: 480px) {
    .header-container[data-header-theme] {
        padding: 7px 8px 7px;
    }

    .header-container[data-header-theme] .header-status-panel {
        justify-content: flex-end;
    }

    .header-container[data-header-theme] .header-token-badge {
        padding: 4px 7px;
    }

    .header-container[data-header-theme] .btn,
    .header-container[data-header-theme] .status-badge {
        padding: 4px 7px;
    }
}
