/*
 * 移动端「筛选下拉」（.msel）
 * 手机上把原来横排滚动的赛事/类型 chips 收成一个原生 select：
 * 手指一按就出系统选择器，不用横向摸；桌面/平板仍用原来的 chips + 侧栏。
 * 只负责外观，选项与跳转/过滤由各页模板与脚本决定。
 */
.msel { display: none; }

@media (max-width: 767px) {
  .msel {
    display: flex;
    align-items: center;
    gap: var(--s2, 8px);
    margin: 0 0 var(--s3, 12px);
  }

  .msel__lab {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--s2, 8px);
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 34px 0 var(--s3, 12px);
    border-radius: var(--r-m, 10px);
    background: var(--m-surface, #fff);
    box-shadow: inset 0 0 0 1px var(--m-line, #e5e6eb);
  }

  /* 下拉箭头：纯装饰，点击穿透到 select */
  .msel__lab::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid var(--m-text-3, #86909c);
    border-bottom: 2px solid var(--m-text-3, #86909c);
    transform: rotate(45deg);
    pointer-events: none;
  }

  .msel__k {
    flex: none;
    font-size: 12px;
    line-height: 1;
    color: var(--m-text-3, #86909c);
  }

  .msel__sel {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--m-text, #1d2129);
    font-size: 14px;
    font-weight: 600;
    line-height: 38px;
    appearance: none;
    -webkit-appearance: none;
    text-overflow: ellipsis;
    cursor: pointer;
  }

  .msel__sel:focus-visible {
    outline: 2px solid var(--m-brand, #794DFF);
    outline-offset: 2px;
    border-radius: var(--r-s, 8px);
  }

  /* select 打开时默认高亮选中项即可，不再画第二套状态 */
  .msel--sched { margin: 0; }
  .msel--sched .msel__lab { box-shadow: none; background: var(--m-surface-2, #f2f3f5); }
}
