/* 主题变量 */
:root {
    --color-body-bg: #303030;
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #b1b1b1;
    --color-text-muted: #aaa;
    --color-surface-primary: #000;
    --color-surface-secondary: #222;
    --color-surface-tertiary: #2a2a2a;
    --color-panel-border: #333;
    --color-panel-border-strong: #444;
    --color-overlay: rgba(0, 0, 0, 0.7);
    --color-channel-hover: rgba(255, 255, 255, 0.1);
    --color-channel-active: rgba(255, 255, 255, 0.15);
    --color-input-bg: #333;
    --color-input-border: #444;
    --color-accent: #3d7cf4;
    --color-accent-hover: #2a6de5;
    --color-accent-active: #4d8cf4;
    --color-accent-contrast: #f5f8ff;
    --color-warning: #ffeb3b;
    --color-success: #28a745;
    --color-success-hover: #218838;
    --color-danger: #dc3545;
    --color-danger-hover: #c82333;
    --color-button-text: #f0f0f0;
    --color-chip-text: #f0f0f0;
    --color-highlight-text: #000000;
    --color-card-shadow: rgba(0, 0, 0, 0.45);
    --color-gradient-soft-start: #1a1a1a;
    --color-gradient-soft-end: #222;
    --color-gradient-strong-start: #222;
    --color-gradient-strong-end: #2a2a2a;
    --color-scrollbar-thumb: #555;
    --color-scrollbar-thumb-hover: #666;
    --color-text-placeholder: #888;
    --color-button-hover-bg: #444;
}

:root[data-theme='light'],
body.theme-light {
    --color-body-bg: #f4f6fb;
    --color-text-primary: #1b2133;
    --color-text-secondary: #4f5a72;
    --color-text-muted: #6b7388;
    --color-surface-primary: #ffffff;
    --color-surface-secondary: #e9edf7;
    --color-surface-tertiary: #dfe5f3;
    --color-panel-border: rgba(45, 53, 72, 0.14);
    --color-panel-border-strong: rgba(45, 53, 72, 0.28);
    --color-overlay: rgba(10, 17, 30, 0.45);
    --color-channel-hover: rgba(61, 124, 244, 0.12);
    --color-channel-active: rgba(61, 124, 244, 0.2);
    --color-input-bg: #ffffff;
    --color-input-border: rgba(45, 53, 72, 0.2);
    --color-accent: #3b6cf6;
    --color-accent-hover: #335bdb;
    --color-accent-active: #4f82ff;
    --color-accent-contrast: #ffffff;
    --color-warning: #f6c947;
    --color-success: #1e9b58;
    --color-success-hover: #187d47;
    --color-danger: #d64553;
    --color-danger-hover: #b23742;
    --color-button-text: #ffffff;
    --color-chip-text: #23304d;
    --color-highlight-text: #1b2133;
    --color-card-shadow: rgba(14, 24, 44, 0.16);
    --color-gradient-soft-start: #eef2ff;
    --color-gradient-soft-end: #dfe5f3;
    --color-gradient-strong-start: #ecf0ff;
    --color-gradient-strong-end: #d4d9eb;
    --color-scrollbar-thumb: rgba(45, 53, 72, 0.25);
    --color-scrollbar-thumb-hover: rgba(45, 53, 72, 0.32);
    --color-text-placeholder: #7a869d;
    --color-button-hover-bg: rgba(61, 124, 244, 0.12);
}

:root[data-theme='dark'],
body.theme-dark {
    --color-body-bg: #303030;
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #b1b1b1;
    --color-text-muted: #aaa;
    --color-surface-primary: #000;
    --color-surface-secondary: #222;
    --color-surface-tertiary: #2a2a2a;
    --color-panel-border: #333;
    --color-panel-border-strong: #444;
    --color-overlay: rgba(0, 0, 0, 0.7);
    --color-channel-hover: rgba(255, 255, 255, 0.1);
    --color-channel-active: rgba(255, 255, 255, 0.15);
    --color-input-bg: #333;
    --color-input-border: #444;
    --color-accent: #3d7cf4;
    --color-accent-hover: #2a6de5;
    --color-accent-active: #4d8cf4;
    --color-accent-contrast: #f5f8ff;
    --color-warning: #ffeb3b;
    --color-success: #28a745;
    --color-success-hover: #218838;
    --color-danger: #dc3545;
    --color-danger-hover: #c82333;
    --color-button-text: #f0f0f0;
    --color-chip-text: #f0f0f0;
    --color-highlight-text: #000000;
    --color-card-shadow: rgba(0, 0, 0, 0.45);
    --color-gradient-soft-start: #1a1a1a;
    --color-gradient-soft-end: #222;
    --color-gradient-strong-start: #222;
    --color-gradient-strong-end: #2a2a2a;
    --color-scrollbar-thumb: #555;
    --color-scrollbar-thumb-hover: #666;
    --color-text-placeholder: #888;
    --color-button-hover-bg: #444;
}

/* PC端基础样式 */
body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
    background-color: var(--color-body-bg);
    color: var(--color-text-primary);
    margin: 0;
    padding: 0;
    /* line-height: 1.6; */
    overflow: hidden; /* 去掉滚动条 */
}

/* 隐藏滚动条但保留滚动功能 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.container.is-fullscreen {
    max-width: none;
    width: 100%;
    padding: 0;
}

/* body.fullscreen-active .main-content {
    gap: 28px;
} */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    /* min-height: 60px; */
}


.page-header .logo {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}

.page-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.page-header .tagline {
    margin-left: 15px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.main-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    /* margin-top: 20px; */
    transition: gap 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* 添加间距过渡效果 */
}

.fixed-box {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* 添加平滑过渡效果 */
    transform: translateX(0); /* 初始位置 */
}

.left-column {
    background-color: var(--color-surface-primary);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    padding: 0;
    height: calc(100vh - 138px); /* 调整高度，为footer留出空间 */
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    /* margin-top: 5px; */
}

.right-column {
    width: 200px;
    /* background-color: var(--color-surface-secondary); */
    border-radius: 8px;
    padding: 15px 0;
    height: calc(100vh - 30px); /* 将max-height改为height以保持固定高度 */
    overflow-y: auto;
    position: sticky;
    /* margin-top: 68px; */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* 添加平滑过渡效果 */
    transform: translateX(0); /* 初始位置 */
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    /* border: 1px solid var(--color-panel-border); */
    backdrop-filter: blur(6px);
    animation: overlayFadeIn 0.3s ease-out;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, rgba(0,0,0,0));
}

.box-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#playerContainer {
    position: relative;
    width: 100%;
    flex: 1; /* 使用flex:1让播放器容器自适应剩余空间 */
    background-color: var(--color-surface-primary);
    overflow: hidden;
    margin-bottom: 0;
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持视频比例，可能会有黑边 */
    transition: all 0.3s ease; /* 添加平滑过渡效果 */
}

/* 当footer隐藏时，调整播放器样式以添加上下黑边 */
.footer-hidden #player {
    object-fit: cover; /* 改为cover模式，填满容器 */
}

/* 当footer隐藏时，调整播放器容器 */
.footer-hidden #playerContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-primary); /* 确保背景是黑色 */
}

.footer-hidden .left-column {
    height: calc(100vh - 60px);
    border-radius: 8px;
}

.player-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-surface-primary);
    color: var(--color-text-primary);
    z-index: 1;
}

.loading-icon {
    animation: spin 1.5s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#status {
    display: none;
    width: 100%;
    /* margin: 0 0 15px 0; */
    padding: 10px 0;
    text-indent: 2em;
    /* background-color: var(--color-surface-secondary); */
    /* border-radius: 5px; */
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: left;
    /* display: block; */
}

.channel-list-title {
    font-size: 18px;
    font-weight: 500;
    /* margin-bottom: 15px; */
    padding-bottom: 10px;
    /* border-bottom: 1px solid var(--color-panel-border); */
}

.channel-section {
    margin-bottom: 20px;
    min-height: 50px; /* 添加最小高度确保即使内容被过滤也保持空间 */
}

.channel-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 5px;
    /* border-bottom: 1px solid var(--color-panel-border); */
    background: none;
    cursor: default;
}

.channel-section h3:hover {
    background: none;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.channel-button {
    background-color: inherit;
    color: var(--color-text-primary);
    border: none;
    border-radius: 5px;
    padding: 5px 12px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.channel-button:hover {
    background-color: var(--color-button-hover-bg);
}

.channel-button.active {
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background-color: var(--color-surface-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 12px;
}

.video-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-muted);
    font-size: 12px;
}

.load-button {
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.load-button:hover {
    background-color: var(--color-accent-hover);
}

.info-panel {
    background-color: var(--color-surface-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.info-panel h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 500;
}

.info-panel p {
    margin-bottom: 0;
    font-size: 14px;
}

/* 确保视口设置正确 */
@viewport {
  width: device-width;
  zoom: 1.0;
}


/* 自定义滚动条 */
.right-column::-webkit-scrollbar {
    width: 4px;
}

.right-column::-webkit-scrollbar-track {
    background: transparent;
}

.right-column::-webkit-scrollbar-thumb {
    background-color: var(--color-scrollbar-thumb);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.right-column:hover::-webkit-scrollbar-thumb {
    background-color: var(--color-scrollbar-thumb-hover);
}

/* 移除PC端的折叠指示器 */
html:not(.mobile-device) .accordion-indicator {
    display: none;
}

/* 确保PC端频道列表始终显示 */
html:not(.mobile-device) .channel-list {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

/* 视频网格容器样式 */
#videoContainer {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - 350px); /* 将max-height改为height以保持固定高度 */
}

/* Footer 样式修改 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 2px 0 3px 0;
    border-top: 1px solid var(--color-panel-border);
    width: calc(100%);
    z-index: 100;
    box-sizing: border-box;
    background-color: var(--color-surface-primary);
    margin-bottom: 20px;
    border-radius: 0 0 8px 8px;
}

.footer-content {
    display: flex;
    flex-direction: row; /* 改为横向排列 */
    align-items: center; /* 垂直居中对齐 */
    justify-content: flex-start;
    margin: 0 auto;
    padding: 10px;
}

/* 频道标志样式 */
.channel-logo {
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    display: none;
}

.channel-logo img {
    width: 60px; /* 设置固定宽度 */
    height: 40px; /* 设置固定高度 */
    object-fit: cover; /* 保持图片比例 */
    border-radius: 4px; /* 添加圆角 */
    border: 1px solid var(--color-panel-border);
}

/* 节目信息样式 */
.program-info {
    flex: 1; /* 占据剩余空间 */
    min-width: 0; /* 允许内容收缩 */
}

#currentVideoTitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.channel-url {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 版权信息样式 */
.footer-info {
    margin-left: auto; /* 推到最右侧 */
    flex-shrink: 0; /* 防止缩小 */
}

.copyright {
    display: flex;
    flex-direction: column; /* 改为纵向排列 */
    align-items: flex-end; /* 右对齐 */
    gap: 5px;
    font-size: 11px;
    color: var(--color-text-placeholder);
}

/* 第一行：YouTube标志和文字并排 */
.copyright .first-line {
    display: flex;
    flex-direction: row; /* 横向排列 */
    align-items: center;
    justify-content: flex-end; /* 右对齐 */
    gap: 10px;
}

.copyright img {
    height: 20px;
    order: 2; /* 将图片放在右边 */
}

.copyright span {
    text-align: right; /* 文本右对齐 */
    max-width: 300px; /* 限制最大宽度 */
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 5px;
}

.footer-logo img {
    height: 24px;
    margin-right: 8px;
}

.footer-disclaimer {
    font-size: 11px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
}

.footer a:hover {
    color: var(--color-text-primary);
}

.footer svg {
    fill: var(--color-text-muted);
    transition: fill 0.3s ease;
}

.footer a:hover svg {
    fill: var(--color-text-primary);
}

.logo-box {
    display: flex;
    align-items: center;
}

.link-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.link-box .git {
    display: inline-block; 
    /* margin-right: 10px;  */
    position: relative;
}
.link-box .git img {
    display: block;
}
.link-box .cheyan img {
    width: 32px;
    height: 32px;
    /* margin-right: 10px; */
    border-radius: 50%;
    vertical-align: middle; /* 添加垂直对齐 */
}

/* 确保所有图标容器都有相同的对齐方式 */
.link-box .cheyan,
.link-box .git,
.link-box .settings,
.link-box .channel-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 32px;
}

/* 通用图标按钮样式 */
.icon-button {
    width: 32px;
    height: 32px;
    border-radius: 32px;
    border: 1px solid rgba(90, 110, 140, 0.35);
    background: linear-gradient(160deg, rgba(32, 36, 48, 0.95), rgba(19, 22, 30, 0.95));
    color: var(--color-chip-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border 0.22s ease, color 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    overflow: hidden;
}

.icon-button::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 65%);
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.icon-button:hover {
    border-color: rgba(123, 162, 255, 0.7);
    background: linear-gradient(155deg, rgba(46, 91, 190, 0.92), rgba(22, 33, 60, 0.92));
    color: var(--color-accent-contrast);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 28px rgba(21, 38, 78, 0.55);
    transform: translateY(-1px);
}

.icon-button:hover::after {
    opacity: 0.55;
}

.icon-button:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.icon-button:focus-visible {
    outline: 2px solid rgba(120, 155, 255, 0.9);
    outline-offset: 2px;
}

.icon-button svg,
.icon-button img {
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.icon-button:hover svg,
.icon-button:hover img {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 10px rgba(12, 28, 64, 0.65));
}

#channelStatsButton svg,
#settingsButton svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

#settingsButton:hover svg {
    transform: translateY(-1px) rotate(18deg);
}

body.theme-light .icon-button {
    border: 1px solid rgba(128, 148, 190, 0.45);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(227, 234, 255, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(14, 24, 44, 0.16);
}

body.theme-light .icon-button:hover {
    border-color: rgba(104, 142, 255, 0.55);
    background: linear-gradient(155deg, rgba(134, 168, 255, 0.92), rgba(90, 126, 238, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 30px rgba(80, 110, 190, 0.28);
}

body.theme-light .icon-button:active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px rgba(20, 32, 60, 0.2);
}

body.theme-light .icon-button:focus-visible {
    outline: 2px solid rgba(86, 118, 214, 0.55);
}

body.theme-light .icon-button svg {
    filter: drop-shadow(0 2px 4px rgba(40, 62, 110, 0.35));
}

body.theme-light .icon-button img {
    filter: drop-shadow(0 2px 4px rgba(40, 62, 110, 0.35)) brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(20%) contrast(100%);
}

body.theme-dark .icon-button img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) brightness(0) saturate(100%) invert(100%);
}

/* 全屏按钮图标主题适配 */
body.theme-light .fullscreen-button img {
    filter: drop-shadow(0 2px 4px rgba(40, 62, 110, 0.35)) brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(20%) contrast(100%);
}

body.theme-dark .fullscreen-button img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) brightness(0) saturate(100%) invert(100%);
}

/* 浮动操作按钮 */
.fullscreen-button,
.toggle-channel-list {
    position: fixed;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    z-index: 120;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.fullscreen-button {
    right: 20px;
    border: 1px solid rgba(90, 110, 140, 0.35);
    background: linear-gradient(160deg, rgba(32, 36, 48, 0.95), rgba(19, 22, 30, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 18px rgba(0, 0, 0, 0.45);
    position: fixed;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 120;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.fullscreen-button::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 65%);
    opacity: 0.4;
    pointer-events: none;
}

.toggle-channel-list {
    right: 20px;
}

.fullscreen-button:hover {
    border-color: rgba(123, 162, 255, 0.7);
    background: linear-gradient(155deg, rgba(46, 91, 190, 0.92), rgba(22, 33, 60, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 28px rgba(21, 38, 78, 0.55);
}

.toggle-channel-list:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    background: var(--color-accent-hover);
}

.fullscreen-button:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.toggle-channel-list:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.fullscreen-button:focus-visible {
    outline: 2px solid rgba(120, 155, 255, 0.9);
    outline-offset: 2px;
}

.toggle-channel-list:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.3);
    outline-offset: 3px;
}

.fullscreen-button img {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease, filter 0.25s ease;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.fullscreen-button.is-active {
    background: linear-gradient(140deg, var(--color-accent-hover), var(--color-accent));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

.fullscreen-button:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 10px rgba(12, 28, 64, 0.65));
}

.fullscreen-button.is-active img {
    transform: scale(1.05);
}

body.theme-light .fullscreen-button {
    border: 1px solid rgba(128, 148, 190, 0.45);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(227, 234, 255, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(14, 24, 44, 0.16);
}

body.theme-light .fullscreen-button:hover {
    border-color: rgba(104, 142, 255, 0.55);
    background: linear-gradient(155deg, rgba(134, 168, 255, 0.92), rgba(90, 126, 238, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 30px rgba(80, 110, 190, 0.28);
}

body.theme-light .fullscreen-button:active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px rgba(20, 32, 60, 0.2);
}

body.theme-light .fullscreen-button.is-active {
    box-shadow: 0 22px 40px rgba(56, 86, 190, 0.35);
}

body.theme-light .fullscreen-button:focus-visible {
    outline: 2px solid rgba(86, 118, 214, 0.55);
}


.toggle-channel-list svg {
    transition: transform 0.3s ease;
}

.toggle-channel-list.collapsed svg {
    transform: rotate(180deg);
}

.network-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    /* padding-bottom: 10px; */
    /* border-bottom: 1px solid var(--color-panel-border); */
    color: var(--color-text-muted);
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}
/* 频道列表折叠状态 - 移除滑动效果 */
.right-column.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
    margin-left: 0;
    opacity: 0;
    transform: translateX(0); /* 移除向右滑出效果 */
}

/* 左侧内容区域在频道列表折叠时的样式 - 移除滑动效果 */
.fixed-box.expanded {
    flex: 1;
    transform: translateX(0); /* 移除向右微调位置 */
}

/* 主内容区域在频道列表折叠时的样式 */
.main-content.expanded {
    gap: 0;
}

.channel-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    gap: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s, padding-left 0.3s ease; /* 添加padding-left过渡效果 */
}

.channel-item:hover {
    background-color: var(--color-channel-hover);
}

.channel-item.active {
    background-color: var(--color-channel-active);
    padding-left: 10px;
}

/* 白色模式下频道名称的特殊样式 */
body.theme-light .channel-item:hover .channel-name,
body.theme-light .channel-item.active .channel-name {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* 深色模式下保持原有样式 */
body:not(.theme-light) .channel-item:hover .channel-name,
body:not(.theme-light) .channel-item.active .channel-name {
    color: var(--color-text-primary);
}

.channel-button {
    transition: transform 0.2s ease; /* 添加transform过渡效果 */
}

.channel-button:active {
    transform: translateY(1px);
}
.channel-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.channel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-info {
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
    overflow: hidden; /* 防止内容溢出 */
}

.channel-name {
    display: block;
    font-size: 12px;
    color: var(--color-text-primary);
}

/* 搜索框样式 */
#channelSearch {
    position: sticky;
    top: 0;
    width: calc(100% - 20px); /* 减去左右padding的宽度 */
    padding: 10px;
    margin-bottom: 15px;
    background-color: var(--color-surface-secondary);
    border: none;
    border-radius: 5px;
    color: var(--color-text-primary);
    font-size: 14px;
    box-shadow: 0 2px 5px var(--color-card-shadow);
    z-index: 10;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    box-sizing: border-box; /* 确保padding不会增加元素的总宽度 */
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

#channelSearch:focus {
    background-color: var(--color-surface-tertiary);
    box-shadow: 0 2px 8px rgba(61, 124, 244, 0.5);
    outline: none;
    border: 2px solid var(--color-accent);
    /* animation: searchFocusAnimation 0.5s ease; */
}

/* 搜索框获得焦点时的动画效果 */
@keyframes searchFocusAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* 搜索框样式 */
.search-container {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.channel-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-input-border);
    border-radius: 4px;
    font-size: 14px;
}

.search-button {
    padding: 8px 15px;
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-button:hover {
    background-color: var(--color-accent-hover);
}

/* 高亮样式 */
.highlight {
    background-color: var(--color-warning);
    color: var(--color-highlight-text);
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

/* 节目标题链接样式 */
.program-title-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.program-title-link:hover .program-title {
    color: var(--color-accent); /* 鼠标悬停时变色 */
    text-decoration: underline;
}

/* 设置面板样式 */
.settings {
    position: relative;
    display: inline-block;
}

/* 频道统计面板样式 */
.channel-stats-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--channel-stats-bg, linear-gradient(135deg, 
        rgba(20, 25, 40, 0.95) 0%, 
        rgba(30, 35, 50, 0.95) 50%, 
        rgba(25, 30, 45, 0.95) 100%));
    border-radius: 20px;
    box-shadow: var(--channel-stats-shadow, 
        0 25px 50px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(61, 124, 244, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1));
    border: 1px solid var(--channel-stats-border, rgba(61, 124, 244, 0.3));
    overflow: hidden;
    backdrop-filter: blur(25px);
    animation: panelSlideIn 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.channel-stats-panel.show {
    display: block;
}

.channel-stats-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--channel-stats-top-border, linear-gradient(90deg, 
        transparent, 
        rgba(61, 124, 244, 0.8), 
        rgba(138, 43, 226, 0.6), 
        rgba(61, 124, 244, 0.8), 
        transparent));
}

/* 频道统计面板背景遮罩 */
.channel-stats-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--channel-stats-overlay-bg, rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(5px);
    z-index: 9999;
}

.channel-stats-overlay.show {
    display: block;
    animation: overlayFadeIn 0.3s ease-out;
}

/* 频道统计内容 */
.channel-stats-content {
    padding: 30px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 124, 244, 0.6) rgba(255, 255, 255, 0.1);
}

.channel-stats-content::-webkit-scrollbar {
    width: 8px;
}

.channel-stats-content::-webkit-scrollbar-track {
    background: var(--channel-stats-scrollbar-track, rgba(255, 255, 255, 0.05));
    border-radius: 4px;
}

.channel-stats-content::-webkit-scrollbar-thumb {
    background: var(--channel-stats-scrollbar-thumb, linear-gradient(180deg, rgba(61, 124, 244, 0.8), rgba(138, 43, 226, 0.6)));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-stats-content::-webkit-scrollbar-thumb:hover {
    background: var(--channel-stats-scrollbar-thumb-hover, linear-gradient(180deg, rgba(61, 124, 244, 1), rgba(138, 43, 226, 0.8)));
}

/* 统计头部 */
.stats-header {
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.stats-header h3 {
    color: var(--channel-stats-title-color, #ffffff);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: var(--channel-stats-title-shadow, 0 2px 4px rgba(0, 0, 0, 0.3));
    background: var(--channel-stats-title-gradient, linear-gradient(135deg, #3d7cf4, #8a2be2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 28px;
    background: var(--channel-stats-item-bg, linear-gradient(135deg, 
        rgba(61, 124, 244, 0.15) 0%, 
        rgba(138, 43, 226, 0.1) 100%));
    border-radius: 16px;
    border: 1px solid var(--channel-stats-item-border, rgba(61, 124, 244, 0.3));
    box-shadow: var(--channel-stats-item-shadow, 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--channel-stats-section-underline, linear-gradient(90deg, rgba(61, 124, 244, 0.8), rgba(138, 43, 226, 0.6)));
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--channel-stats-item-hover-shadow, 
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2));
    border-color: var(--channel-stats-item-hover-border, rgba(61, 124, 244, 0.5));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--channel-stats-number-gradient, linear-gradient(135deg, #3d7cf4, #8a2be2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: var(--channel-stats-number-shadow, 0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-label {
    font-size: 0.95rem;
    color: var(--channel-stats-label-color, rgba(255, 255, 255, 0.8));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 地区统计 */
.stats-regions {
    margin-bottom: 32px;
}

.stats-regions h4 {
    color: var(--channel-stats-section-title-color, #ffffff);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--channel-stats-section-border, rgba(61, 124, 244, 0.3));
    position: relative;
}

.stats-regions h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--channel-stats-section-underline, linear-gradient(90deg, rgba(61, 124, 244, 0.8), rgba(138, 43, 226, 0.6)));
}

.region-chart-wrapper {
    position: relative;
    min-height: 200px;
    padding: 12px 16px;
    margin: 0 auto 16px;
    max-width: 340px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.region-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

body.theme-light .region-chart-wrapper {
    background: rgba(45, 53, 72, 0.06);
    border-color: rgba(45, 53, 72, 0.16);
}

.region-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.region-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--channel-stats-region-bg, linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(61, 124, 244, 0.08) 100%));
    border-radius: 12px;
    border: 1px solid var(--channel-stats-region-border, rgba(61, 124, 244, 0.2));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.region-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(61, 124, 244, 0.8), rgba(138, 43, 226, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-stat:hover {
    background: var(--channel-stats-region-hover-bg, linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(61, 124, 244, 0.15) 100%));
    border-color: var(--channel-stats-region-hover-border, rgba(61, 124, 244, 0.4));
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.region-stat:hover::before {
    opacity: 1;
}


.region-name {
    color: var(--channel-stats-region-name-color, #ffffff);
    font-weight: 600;
    font-size: 1rem;
}

.region-counts {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.875rem;
}

.channel-count {
    color: var(--channel-stats-region-count-color, rgba(61, 124, 244, 1));
    font-weight: 700;
    font-size: 1rem;
    background: rgba(61, 124, 244, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(61, 124, 244, 0.3);
}

.video-count {
    color: var(--color-text-secondary);
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 设置面板基础样式 */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--color-surface-primary, #1f2937);
    border: 1px solid var(--color-panel-border, rgba(255, 255, 255, 0.12));
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.settings-panel.show {
    opacity: 1;
    visibility: visible;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    padding: 20px;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h4 {
    color: var(--color-text-primary, #f9fafb);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-panel-border, rgba(255, 255, 255, 0.12));
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.setting-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent, #3b82f6);
}

.setting-item input[type="text"],
.setting-item select {
    width: 30%;
    padding: 8px 12px;
    background: var(--color-surface-secondary, #374151);
    border: 1px solid var(--color-panel-border, rgba(255, 255, 255, 0.12));
    border-radius: 6px;
    color: var(--color-text-primary, #f9fafb);
    font-size: 14px;
}

.setting-item input[type="text"]:focus,
.setting-item select:focus {
    outline: none;
    border-color: var(--color-accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.setting-info {
    flex: 1;
}

.setting-title {
    display: block;
    color: var(--color-text-primary, #f9fafb);
    font-weight: 500;
    margin-bottom: 4px;
}

.setting-desc {
    display: block;
    color: var(--color-text-secondary, #9ca3af);
    font-size: 13px;
    line-height: 1.4;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-text-secondary, #9ca3af);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 1;
}

.close-btn:hover {
    background: var(--color-surface-secondary, #374151);
    color: var(--color-text-primary, #f9fafb);
}

body.theme-light .settings-panel {
    width: 95%;
    max-height: 80vh;
}

body.theme-light .close-btn {
    top: 8px;
    right: 8px;
    padding: 6px;
}

/* 频道统计面板主题变量 */
:root {
    /* 深色主题 - 频道统计 */
    --channel-stats-bg: linear-gradient(135deg, 
        rgba(20, 25, 40, 0.95) 0%, 
        rgba(30, 35, 50, 0.95) 50%, 
        rgba(25, 30, 45, 0.95) 100%);
    --channel-stats-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(61, 124, 244, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --channel-stats-border: rgba(61, 124, 244, 0.3);
    --channel-stats-top-border: linear-gradient(90deg, 
        transparent, 
        rgba(61, 124, 244, 0.8), 
        rgba(138, 43, 226, 0.6), 
        rgba(61, 124, 244, 0.8), 
        transparent);
    --channel-stats-overlay-bg: rgba(0, 0, 0, 0.7);
    --channel-stats-title-color: #ffffff;
    --channel-stats-title-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --channel-stats-title-gradient: linear-gradient(135deg, #3d7cf4, #8a2be2);
    --channel-stats-item-bg: linear-gradient(135deg, 
        rgba(61, 124, 244, 0.15) 0%, 
        rgba(138, 43, 226, 0.1) 100%);
    --channel-stats-item-border: rgba(61, 124, 244, 0.3);
    --channel-stats-item-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --channel-stats-item-hover-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --channel-stats-item-hover-border: rgba(61, 124, 244, 0.5);
    --channel-stats-number-gradient: linear-gradient(135deg, #3d7cf4, #8a2be2);
    --channel-stats-number-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --channel-stats-label-color: rgba(255, 255, 255, 0.8);
    --channel-stats-section-title-color: #ffffff;
    --channel-stats-section-border: rgba(61, 124, 244, 0.3);
    --channel-stats-section-underline: linear-gradient(90deg, rgba(61, 124, 244, 0.8), rgba(138, 43, 226, 0.6));
    --channel-stats-region-name-color: #ffffff;
    --channel-stats-region-count-color: rgba(61, 124, 244, 1);
    --channel-stats-region-bg: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(61, 124, 244, 0.08) 100%);
    --channel-stats-region-border: rgba(61, 124, 244, 0.2);
    --channel-stats-region-hover-bg: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(61, 124, 244, 0.15) 100%);
    --channel-stats-region-hover-border: rgba(61, 124, 244, 0.4);
    --channel-stats-scrollbar-track: rgba(255, 255, 255, 0.05);
    --channel-stats-scrollbar-thumb: linear-gradient(180deg, rgba(61, 124, 244, 0.8), rgba(138, 43, 226, 0.6));
    --channel-stats-scrollbar-thumb-hover: linear-gradient(180deg, rgba(61, 124, 244, 1), rgba(138, 43, 226, 0.8));
}

/* 浅色主题 - 频道统计 */
body.theme-light {
    --channel-stats-bg: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 50%, 
        rgba(241, 245, 249, 0.95) 100%);
    --channel-stats-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --channel-stats-border: rgba(59, 130, 246, 0.3);
    --channel-stats-top-border: linear-gradient(90deg, 
        transparent, 
        rgba(59, 130, 246, 0.8), 
        rgba(139, 92, 246, 0.6), 
        rgba(59, 130, 246, 0.8), 
        transparent);
    --channel-stats-overlay-bg: rgba(0, 0, 0, 0.4);
    --channel-stats-title-color: #1f2937;
    --channel-stats-title-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --channel-stats-title-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --channel-stats-item-bg: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.08) 100%);
    --channel-stats-item-border: rgba(59, 130, 246, 0.3);
    --channel-stats-item-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --channel-stats-item-hover-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --channel-stats-item-hover-border: rgba(59, 130, 246, 0.5);
    --channel-stats-number-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --channel-stats-number-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --channel-stats-label-color: rgba(31, 41, 55, 0.8);
    --channel-stats-section-title-color: #1f2937;
    --channel-stats-section-border: rgba(59, 130, 246, 0.3);
    --channel-stats-section-underline: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.6));
    --channel-stats-region-name-color: #1f2937;
    --channel-stats-region-count-color: rgba(59, 130, 246, 1);
    --channel-stats-region-bg: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.02) 0%, 
        rgba(59, 130, 246, 0.05) 100%);
    --channel-stats-region-border: rgba(59, 130, 246, 0.2);
    --channel-stats-region-hover-bg: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.05) 0%, 
        rgba(59, 130, 246, 0.1) 100%);
    --channel-stats-region-hover-border: rgba(59, 130, 246, 0.4);
    --channel-stats-scrollbar-track: rgba(0, 0, 0, 0.05);
    --channel-stats-scrollbar-thumb: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.6));
    --channel-stats-scrollbar-thumb-hover: linear-gradient(180deg, rgba(59, 130, 246, 1), rgba(139, 92, 246, 0.8));
}

body.theme-light .settings-content {
    padding: 12px 16px;
}

@keyframes overlayFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
