:root {
    --apple-blue: #0066cc;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-text: #1d1d1f;
}

body {
    background-color: #f5f6fa;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

h2 {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

table {
    font-size: 15px;
}

table thead th {
    background: #343a40;
    color: #fff;
    border: none;
}

.table thead th {
    /* display: inline-block; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.table a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

#search-input {
    width: 75%;
    margin: 0 auto 20px;
    display: block;
    border-radius: 999px;
    /* 超大圆角，实现两边弧形 */
    padding: 10px 20px;
    /* 让弧形更自然 */
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#search-input:focus {
    outline: none;
    border-color: #4a90e2;
    /* 聚焦时高亮 */
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

.table tbody tr:nth-of-type(odd) td {
    background-color: #f9fafb !important;
    /* 奇数行 */
}

.table tbody tr:nth-of-type(even) td {
    background-color: #ffffff !important;
    /* 偶数行 */
}

.table tbody tr:hover td {
    background-color: #e9f2ff !important;
    /* 鼠标悬停 */
}

img.channel-icon {
    width: 106px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    padding: 4px;
}

/* 手机端(小于768px)去除圆角，去内边距，全宽 */
@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
        margin: 0;
        padding: 10px 10px 20px;
        border-radius: 0;
        box-shadow: none;
    }

    img.channel-icon {
        width: 64px;
        height: 36px;
    }
}

.btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: clamp(15px, 2vw, 20px);
    background: var(--apple-light-gray);
    border-radius: 12px;
    justify-content: center;
}

.btn-custom {
    padding: 8px 16px;
    border: 1px solid var(--apple-blue);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: var(--apple-text);
    margin: 0;
}

.btn-custom:hover {
    background: var(--apple-blue);
    color: #fff;
    transform: translateY(-1px);
}

.btn-custom.active {
    background: var(--apple-blue);
    color: #fff;
}

.links {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    background: var(--apple-light-gray);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.links a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
    font-size: 15px;
}

.links a:hover {
    color: #004499;
}

.links .info-text {
    width: 100%;
    margin: 5px 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.info-text {
    text-align: center;
    font-size: clamp(14px, 1.5vw, 15px);
    line-height: 1.4;
    margin: 8px 0;
    padding: 0 clamp(15px, 2vw, 20px);
    color: var(--apple-gray);
}

.highlight {
    color: var(--apple-blue);
    font-weight: 500;
}

.highlight-red {
    color: red;
    font-weight: 500;
    margin: 0 2px;
}

.no-focus {
    background-color: #f8f9fa;
    border-left: none;
    cursor: default;
}

.no-focus:focus {
    outline: none;
    box-shadow: none;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

/* 左侧描述部分：深色背景 + 白色文字 */
.tvxml-label {
    background-color: var(--apple-light-gray);
    color: var(--apple-text);
    border-right: none;
    width: 160px;
    text-align: center;
}

/* 链接部分：浅灰背景，取消选中高亮 */
.tvxml-link {
    background-color: #f8f9fa;
    border-left: none;
    cursor: default;
    color: #333;
    font-weight: unset;
}

.tvxml-link:focus {
    outline: none;
    box-shadow: none;
}