﻿body
{
    touch-action: manipulation;
}
/* 调试面板样式 */
#debugPanel
{
    user-select: none;
}

    #debugPanel textarea
    {
        user-select: text;
    }
/* 全局基础 */
html, body
{
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    font-family: "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
}

/* 表格工具栏 */
.layui-table-tool
{
    background: #fff !important;
    border-radius: 6px 6px 0 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 12px !important;
}



.layui-table-header th
{
    background: #f8f9fa !important;
    font-weight: 600;
    white-space: nowrap !important;
}

.layui-table-body tr:hover
{
    background: #f5faff !important;
}

/* 核心：句子完整显示，不遮挡、不换行 */
.layui-table td
{
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* 点击单元格播放样式 */
.play-word, .play-sentence
{
    display: block;
    /*width: 100%;
    height: 100%;*/
    margin: -9px -15px;
    padding: 9px 15px;
    color: #0066cc;
    cursor: pointer;
}

    .play-word:hover, .play-sentence:hover
    {
        background: #e6f2ff;
    }

/* 高亮当前播放行的样式（与 hover 保持一致） */
.keyboard-highlight
{
    background-color: #e6f2ff !important;
    transition: background-color 0.2s;
}
/* 可选：表格行 hover 样式（若原有样式不够明显可加强） */
.layui-table-view .layui-table tbody tr:hover td,
.layui-table-view .layui-table tbody tr:hover
{
    background-color: #e8f0fe !important;
}

/* 响应式：移动端显示按钮，桌面端显示复选框 */
@media (max-width: 992px)
{
    .column-hide
    {
        display: none !important;
    }

    .mobile-column-btn
    {
        display: inline-block !important;
    }
}

@media (min-width: 993px)
{
    .mobile-column-btn
    {
        display: none !important;
    }

    .column-hide
    {
        display: flex !important;
    }
}

/* 模态框 */
#editModal
{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    max-width: 520px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
}

    #editModal div
    {
        margin-bottom: 12px;
    }

    #editModal label
    {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
    }


.playing-text-popup
{
    background-color: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    padding: 30px 60px;
    border-radius: 40px;
    min-width: 400px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    line-height: 1.4;
    word-break: break-word;
}

/* 表格宽度100% */
.layui-fluid, #dataTable, .layui-table-view
{
    width: 100% !important;
}

.layui-table-view
{
    margin: 0;
}
/* 全屏播放器样式 */
.fullscreen-player
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: "Microsoft YaHei", sans-serif;
}

.player-lines
{
    width: 85%;
    margin: 70px auto 0 auto;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 70px;
    display: block;
    scrollbar-width: thin;
    scrollbar-gutter: stable; /* 始终为滚动条预留空间，避免布局偏移 */
    scrollbar-color: #888 transparent;
}
    .player-lines::-webkit-scrollbar
    {
        width: 4px;
        height: 4px;
    }

    .player-lines::-webkit-scrollbar-track
    {
        background: transparent;
        border-radius: 3px;
    }

    .player-lines::-webkit-scrollbar-thumb
    {
        background: #888;
        border-radius: 2px;
    }

        .player-lines::-webkit-scrollbar-thumb:hover
        {
            background: #aaa;
        }

.player-line
{
    font-size: 22px;
    text-align: center;    
    border-radius: 20px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
    width: 95%;
    word-break: break-word;
    opacity: 0.8;
    padding: 0 20px;
    box-sizing: border-box;
    user-select: none;
    margin: 5px 20px;
}

    .player-line.current
    {
        font-size: 24px;
        background: #5fb878;
        color: white;
        font-weight: bold;
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(95,184,120,0.5);
        opacity: 1;
    }

    .player-line.empty
    {
        background: transparent;
        color: transparent;
    }

.player-controls
{
    padding: 10px;
    display: flex;
     gap: 30px; 
    background: rgba(0,0,0,0.6);
    width: 100%;
    justify-content: center;
    align-items: center;
}

    .player-controls button
    {
        font-size: 18px;
        padding: 10px 20px;
        border-radius: 50px;
        background: #5fb878;
        color: white;
        border: none;
        cursor: pointer;
        transition: 0.2s;
    }

        .player-controls button:hover
        {
            background: #009688;
            transform: scale(1.05);
        }
.player-menu-item
{
    margin-bottom: 16px;
}

    .player-menu-item label
    {
        display: block;
        margin-bottom: 4px;
    }

.font-size-btn
{
    margin-right: 8px;
    padding: 4px 12px;
    cursor: pointer;
}

    .font-size-btn.active
    {
        background: #5fb878;
        color: white;
    }


.player-info
{
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 20px;
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 30px;
}

.close-player
{
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 20px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    padding: 8px 16px;
    border-radius: 30px;
}

    .close-player:hover
    {
        opacity: 1;
    }
/* 工具栏内当前播放行显示（始终显示） */
.current-play-row
{
    margin-left: 15px;
    background: #f8f8f8;
    padding: 0 10px;
    border-radius: 4px;
    line-height: 28px;
    font-size: 14px;
    color: #333;
    display: inline-block;
}
/* 播放器内的间隔控制 */
.interval-control
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.5);
    padding: 5px 12px;
    border-radius: 30px;
    margin-left: 20px;
}

    .interval-control label
    {
        font-size: 16px;
        color: #eee;
    }

    .interval-control input
    {
        width: 35px;
        text-align: center;
        padding: 4px;
        border-radius: 10px;
        border: none;
        font-size: 16px;
    }
    .interval-control select
    {
        width: 35px;
        text-align: center;
        padding: 4px;
        border-radius: 20px;
        border: none;
        font-size: 16px;
        background: white;
        cursor: pointer;
    }