:root {
    --bg-color: #f4f4f4;
    --panel-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --line-color: #e5e5e5;
    --brand-purple: #67008a;
    --brand-purple-dark: #24002f;
    --brand-purple-2: #7a009f;
    --live-green: #079414;
    --link-purple: #6b088d;
    --score-purple: #5d1090;
}

@keyframes live-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.live-icon-animated path {
    animation: live-pulse 1.5s infinite ease-in-out;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
}

.main,
.container {
    width: min(1000px, calc(100% - 24px));
    margin: 0 auto;
}

.only-pc {
    display: block;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 68px;
    background: linear-gradient(#26002e 0%, #590070 54%, #8100a6 100%);
    color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.header-main {
    height: 68px;
    display: flex;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 210px;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    display: block;
    border-radius: 50%;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.brand-subtext {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.top-domain-links {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.top-domain-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.top-domain-links a:hover {
    opacity: 0.8;
}

.menu-icon {
    flex-shrink: 0;
    color: currentColor;
}

.top-home-link {
    display: none !important;
}

.site-language-switch {
    position: fixed;
    top: 16px;
    right: max(14px, calc((100vw - 1000px) / 2 + 12px));
    z-index: 10050;
    min-width: 72px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.site-language-switch:hover {
    background: rgba(255, 255, 255, 0.26);
}

.video-dot,
.download-dot {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    border-radius: 4px;
    background: #fff;
}

.video-dot::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 4px;
    border-left: 8px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.download-dot {
    width: 24px;
    height: 18px;
    border-radius: 10px;
}

.download-dot::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 3px;
    width: 6px;
    height: 10px;
    background: var(--brand-purple);
    box-shadow: 0 7px 0 -2px var(--brand-purple);
}

.btn-bookmark,
.search-bar-wrapper,
.search-bar-inner,
#searchInput {
    display: none;
}

.bookmark-instruction {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.68);
}

.bookmark-instruction-content {
    width: min(400px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 6px;
    background: #fff;
    padding: 22px;
    text-align: center;
    color: #222;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.bookmark-instruction-close {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 4px;
    background: var(--brand-purple);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.toast-message {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 10002;
    padding: 10px 16px;
    border-radius: 4px;
    background: #219653;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.toast-message.error {
    background: #d32f2f;
}

@media (max-width: 760px) {
    .main {
        width: 100%;
    }

    .only-pc {
        display: none !important;
    }

    body {
        padding-bottom: 54px !important;
        background: #fff;
    }

    .site-topbar {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        height: 54px;
        background: linear-gradient(#8a00a8, #3a004b);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.22);
    }

    .header-main {
        width: 100%;
        height: 54px;
        padding: 0;
        gap: 0;
    }

    .brand-link,
    .btn-bookmark,
    .top-home-link {
        display: none !important;
    }

    .top-domain-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        font-size: 11px !important;
        font-weight: 700;
    }

    .top-domain-links a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 54px;
        gap: 4px;
        font-size: 11px !important;
    }

    .site-language-switch {
        top: 7px;
        right: 8px;
        min-width: 54px;
        height: 30px;
        padding: 0 10px;
        border-radius: 15px;
        border-color: rgba(103, 0, 138, 0.3);
        background: rgba(255, 255, 255, 0.96);
        color: var(--brand-purple);
        font-size: 12px;
        box-shadow: 0 4px 12px rgba(103, 0, 138, 0.22);
    }

    .video-dot,
    .download-dot {
        width: 22px;
        height: 17px;
    }
}

.top-domain-links a.active {
    color: #ffeb3b !important;
    font-weight: 900;
    opacity: 1;
}

@media (max-width: 760px) {
    .brand-text {
        font-size: 16px !important;
    }
    .brand-subtext {
        font-size: 14px !important;
    }
}
