*{
  box-sizing:border-box;
}

html{
  margin:0;
  padding:0;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  touch-action:manipulation;
  overscroll-behavior-x:none;
}

body{
  margin:0;
  padding:0;
  background:#eef3f8;
  font-family:Arial,"Microsoft YaHei",sans-serif;
  color:#111;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  touch-action:manipulation;
  overscroll-behavior-x:none;
}

/* 整站 H5 宽度，电脑端居中显示 */
.wrap{
  width:100%;
  max-width:430px;
  margin:0 auto;
  background:#fff;
  min-height:100vh;
  box-shadow:0 0 18px rgba(0,0,0,.08);
}

/* 顶部 Logo 区域：保持原图比例，不压扁 */
.header{
  background:#050505;
  padding:0;
  overflow:hidden;
  line-height:0;
}

.header img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}

/* 蓝色标题区 */
.hero{
  padding:24px 14px;
  text-align:center;
  background:linear-gradient(135deg,#003b91,#00b4ff);
  color:#fff;
}

.hero h1{
  margin:0;
  font-size:22px;
  line-height:1.35;
}

.hero p{
  margin:8px 0 0;
  font-size:13px;
}

/* 标题块和顶部视频之间的横幅图区块：紧贴标题，不留白边 */
.banner-section{
  width:100%;
  background:#fff;
  padding:0;
  margin:0;
  line-height:0;
}

/* 横幅容器：取消白边、卡片内边距和阴影 */
.banner-card{
  width:100%;
  background:transparent;
  padding:0;
  margin:0;
  overflow:hidden;
  box-shadow:none;
  line-height:0;
}

/* 横幅图片：左右填满，完整显示，不裁切 */
.banner-card img{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  margin:0;
  padding:0;
  background:transparent;
}

/* 如果 HTML 里用了 banner-fixed，也保持完整显示 */
.banner-card.banner-fixed img{
  width:100%;
  max-width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
}

/* 通用 MP4 / m3u8 白色包裹区域 */
.video-section,
.top-video-section,
.bottom-video-section{
  background:#fff;
  padding:12px;
}

/* 顶部视频与横幅、赛程之间稍微紧凑 */
.top-video-section{
  padding:12px 12px 10px;
}

/* 底部视频更贴近赛程内容 */
.bottom-video-section{
  padding:8px 12px 0;
}

/* 视频白色卡片 */
.video-card,
.top-video-box,
.bottom-video-box{
  width:100%;
  background:#fff;
  padding:10px;
  overflow:hidden;
  box-shadow:0 1px 8px rgba(0,0,0,.08);
}

/* 视频黑色播放区域 */
.video-box{
  width:100%;
  background:#000;
  overflow:hidden;
}

/* 顶部视频兼容旧 class */
.top-video-box .top-video{
  background:#000;
}

/* 底部视频兼容旧 class */
.bottom-video-box .bottom-video{
  background:#000;
}

/* 1920x1080 视频，保持 16:9 完整显示 */
.page-video,
.top-video,
.bottom-video{
  width:100%;
  aspect-ratio:16 / 9;
  height:auto;
  display:block;
  background:#000;
  object-fit:contain;
}

/* 内容区域 */
.content{
  padding:14px 12px 0;
}

.line{
  height:2px;
  background:#0874d8;
  margin:14px 0;
}

/* 页面功能切换按钮 */
.page-tabs{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:14px 0;
}

.page-tab{
  width:100%;
  min-height:44px;
  border:0;
  border-radius:8px;
  background:#0874d8;
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(8,116,216,.18);
}

.page-tab:nth-child(2){
  background:#0b9f7a;
}

.page-tab.active{
  outline:2px solid rgba(0,0,0,.12);
  transform:translateY(-1px);
}

.tab-panel{
  display:none;
}

.tab-panel.active{
  display:block;
}

.section-title{
  background:#0874d8;
  color:#fff;
  text-align:center;
  padding:11px 8px;
  font-weight:700;
  margin:14px 0;
  font-size:15px;
}

/* H5 下搜索和筛选上下排列 */
.filter{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-bottom:14px;
}

/* 重点：font-size 必须 16px，防止 iPhone 输入框自动放大 */
input,
select,
textarea,
button{
  font-size:16px;
}

input,
select{
  width:100%;
  height:42px;
  border:1px solid #ddd;
  border-radius:8px;
  padding:0 10px;
  background:#fff;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  outline:none;
}

input:focus,
select:focus{
  border-color:#0874d8;
  box-shadow:0 0 0 2px rgba(8,116,216,.08);
}

#schedule{
  margin-bottom:0;
}

.day{
  margin-bottom:14px;
}

.day:last-child{
  margin-bottom:0;
}

.day h2{
  font-size:17px;
  margin:0 0 10px;
  border-left:5px solid #0874d8;
  padding-left:8px;
  text-align:center;
  color:#666;
}

.match{
  background:#fafafa;
  border:1px solid #e5e5e5;
  border-radius:10px;
  padding:12px 10px;
  margin-bottom:10px;
}

.match:last-child{
  margin-bottom:0;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:#666;
}

.teams{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  font-size:17px;
  font-weight:700;
  margin:8px 0;
  text-align:center;
  color:#666;
  line-height:1.45;
}

/* 单个球队区域 */
.team-side{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  white-space:nowrap;
}

/* 国旗样式 */
.team-flag{
  display:inline-block;
  width:20px;
  height:14px;
  vertical-align:-2px;
  border-radius:2px;
  box-shadow:0 0 1px rgba(0,0,0,.35);
  flex-shrink:0;
}

/* 主队：国旗在前 */
.team-home .team-flag{
  margin-right:3px;
}

/* 客队：国旗在后 */
.team-away .team-flag{
  margin-left:3px;
}

.vs{
  color:#0874d8;
  font-weight:900;
  margin:0 2px;
}

.meta{
  font-size:14px;
  color:#444;
  line-height:1.7;
  text-align:center;
}

.badge{
  background:#eaf3ff;
  color:#0874d8;
  border-radius:20px;
  padding:3px 8px;
  white-space:nowrap;
}

.loading{
  text-align:center;
  color:#777;
  padding:24px 0;
}

/* 各国队员顶部国家切换 */
.team-switch{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:8px 0 12px;
  scrollbar-width:none;
}

.team-switch::-webkit-scrollbar{
  display:none;
}

.team-item{
  position:relative;
  flex:0 0 78px;
  height:72px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:#555;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:12px;
  cursor:pointer;
  box-shadow:0 1px 8px rgba(0,0,0,.08);
}

.team-item .fi{
  width:26px;
  height:18px;
  border-radius:2px;
  box-shadow:0 0 1px rgba(0,0,0,.35);
}

.team-item.active{
  background:#292929;
  color:#fff;
  transform:translateY(-2px);
}

.team-item.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:7px solid transparent;
  border-right:7px solid transparent;
  border-top:8px solid #292929;
}

/* 队员列表 */
.player-card{
  background:#fff;
  border-radius:10px;
  padding:14px 12px;
  margin-bottom:12px;
  box-shadow:0 1px 8px rgba(0,0,0,.08);
}

.player-section-title{
  font-size:15px;
  font-weight:700;
  color:#555;
  border-left:4px solid #666;
  padding-left:8px;
  margin-bottom:12px;
}

.player-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.player-item{
  display:flex;
  align-items:center;
  gap:10px;
}

.player-avatar{
  position:relative;
  width:42px;
  height:42px;
  flex:0 0 42px;
}

.player-avatar img{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid #ddd;
  background:#eee;
}

.player-no{
  display:none !important;
}

.player-info{
  flex:1;
  min-width:0;
}

.player-name{
  font-size:14px;
  color:#333;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.player-meta{
  margin-top:3px;
  font-size:12px;
  color:#888;
}

.player-club{
  margin-top:3px;
  font-size:12px;
  color:#777;
  line-height:1.35;
}

/* 视频和底部版权栏之间的间距 */
.footer-space{
  height:18px;
  background:#fff;
}

/* 黑色 FIFA 风格底部栏 */
.footer-fifa{
  background:#050505;
  color:#fff;
  text-align:center;
  padding:18px 10px 20px;
  border-top:1px solid #111;
}

.footer-logo{
  font-size:28px;
  font-weight:900;
  letter-spacing:2px;
  line-height:1;
  color:#fff;
  margin-bottom:12px;
}

.footer-logo sup{
  font-size:10px;
  vertical-align:super;
  margin-left:2px;
}

.footer-copy{
  font-size:12px;
  color:#fff;
  letter-spacing:.3px;
}

/* 右侧悬浮关注按钮 */
.float-follow{
  position:fixed;
  right:calc((100vw - 430px) / 2);
  top:62%;
  transform:translateY(-50%);
  width:52px;
  min-height:70px;
  background:rgba(38,43,48,.92);
  border-radius:8px 0 0 8px;
  z-index:999;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-shadow:0 2px 10px rgba(0,0,0,.22);
  overflow:hidden;
}

/* 图片外层 */
.float-icon-wrap{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:4px;
}

/* 中间图片：呼吸动画 */
.float-icon-wrap img{
  width:30px;
  height:30px;
  display:block;
  object-fit:contain;
  animation:floatBreath 1.35s ease-in-out infinite;
}

/* 文字 */
.float-text{
  color:#fff;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
  transform:scale(.9);
}

/* 呼吸式一大一小 */
@keyframes floatBreath{
  0%{
    transform:scale(1);
  }

  50%{
    transform:scale(1.18);
  }

  100%{
    transform:scale(1);
  }
}

/* 右侧关注按钮，可不用，保留旧 class 兼容 */
.float-kf{
  position:fixed;
  right:0;
  bottom:120px;
  width:46px;
  height:66px;
  background:#1f2a30;
  border-radius:8px 0 0 8px;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  color:#fff;
  font-size:11px;
  text-decoration:none;
}

.float-kf span{
  margin-top:4px;
  transform:scale(.9);
}

/* 小屏适配 */
@media(max-width:430px){
  .wrap{
    max-width:100%;
    box-shadow:none;
  }

  .hero h1{
    font-size:21px;
  }

  .content{
    padding:12px 10px 0;
  }

  .section-title{
    font-size:14px;
  }

  .teams{
    font-size:16px;
    gap:5px;
  }

  .team-flag{
    width:19px;
    height:13px;
  }

  .banner-section{
    padding:0;
  }

  .banner-card{
    padding:0;
  }

  .video-section,
  .top-video-section,
  .bottom-video-section{
    padding-left:10px;
    padding-right:10px;
  }

  .top-video-section{
    padding-top:10px;
    padding-bottom:8px;
  }

  .bottom-video-section{
    padding-top:6px;
    padding-bottom:0;
  }

  .video-card,
  .top-video-box,
  .bottom-video-box{
    padding:9px;
  }

  .team-item{
    flex-basis:74px;
    height:70px;
  }

  .player-card{
    padding:13px 10px;
  }

  .footer-space{
    height:16px;
  }
  
  .float-follow{
    right:0;
    top:62%;
  }
}