/* ===== 24直播网 · Sheagle 深色导航卡片布局 ===== */
body.sg-body{background:#f2f2f2!important;color:#1a1a1a;font:14px/1.6 "Microsoft YaHei","PingFang SC",Arial,sans-serif}
.sg-body a{text-decoration:none;color:inherit}
.sg-body ul,.sg-body ol{list-style:none;margin:0;padding:0}
.sg-wrap{width:1200px;max-width:100%;margin:0 auto;padding:0 16px;box-sizing:border-box}

/* header */
.sg-header{background:#1b1b1b;height:72px}
.sg-header .sg-wrap{display:flex;align-items:center;height:100%;gap:30px}
.sg-logo{flex:0 0 auto;color:#e60012;font-size:26px;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.sg-nav{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:28px;min-width:0}
.sg-nav a{color:#fff;font-size:16px;white-space:nowrap}
.sg-nav a:hover,.sg-nav a.on{color:#ffb400}
.sg-burger{display:none;width:40px;height:40px;align-items:center;justify-content:center;color:#fff;cursor:pointer}
.sg-burger svg{width:22px;height:22px}
.sg-nav-toggle{position:fixed;right:10px;top:14px;width:40px;height:40px;opacity:0;z-index:1003;cursor:pointer}
.sg-mnav{display:none}

/* layout */
.sg-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;margin-top:16px;align-items:start}
.sg-main,.sg-side{min-width:0}
.sg-side{display:flex;flex-direction:column;gap:16px}

/* card */
.sg-card{background:#fff;border:1px solid #e6e6e6;border-radius:3px;overflow:hidden;margin-bottom:16px}
.sg-side .sg-card{margin-bottom:0}
.sg-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid #f0f0f0}
.sg-head b{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;color:#111}
.sg-head b::before{
  content:"";width:18px;height:18px;border-radius:2px;background:#f5b301 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%231b1b1b'/%3E%3C/svg%3E") center/11px no-repeat;
}
.sg-more{border:1px solid #ddd;border-radius:2px;padding:3px 10px;font-size:12px;color:#666;white-space:nowrap}
.sg-more:hover{border-color:#f5b301;color:#e60012}

/* match rows */
.sg-list{padding:0 18px}
.sg-match{display:grid;grid-template-columns:90px 70px minmax(0,1fr) 110px;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #ececec}
.sg-match:last-child{border-bottom:0}
.sg-time{font-size:16px;font-weight:700;line-height:1.2;white-space:nowrap}
.sg-time small{display:block;margin-top:2px;font-size:11px;font-weight:400;color:#999}
.sg-league{font-size:14px;color:#888;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-teams{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
.sg-team{display:flex;align-items:center;gap:8px;min-width:0;font-size:15px;color:#222}
.sg-team span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-team .sg-crest{
  flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  background:#eef2f7;border:1px solid #e0e6ee;color:#1b2438;font-size:11px;font-weight:700;font-style:normal;
}
.sg-teams em{font-style:normal;color:#aaa;font-size:12px}
.sg-watch{display:block;height:38px;line-height:38px;text-align:center;background:#1b2438;color:#fff;font-size:14px;border-radius:2px;white-space:nowrap}
.sg-watch:hover{background:#e60012;color:#fff}
.sg-watch.wait{background:#1b2438}

/* league tiles */
.sg-leagues{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}
.sg-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:86px;border:1px solid #eee;border-radius:3px;font-size:12px;color:#333;text-align:center;padding:4px;box-sizing:border-box}
.sg-tile:hover{border-color:#f5b301;color:#e60012}
.sg-tlogo{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#f3f5f8;color:#5b6b7c;font-size:12px;font-weight:700}
.sg-tile b{font-weight:400;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* side lists */
.sg-vlist{padding:6px 18px 10px}
.sg-vrow{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px dashed #eee;font-size:13px;color:#444}
.sg-vrow:last-child{border-bottom:0}
.sg-vrow::before{content:"";flex:0 0 0;border-left:6px solid #f5b301;border-top:4px solid transparent;border-bottom:4px solid transparent}
.sg-vrow span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-vrow:hover{color:#e60012}
.sg-tags{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;padding:12px 18px 16px}
.sg-tags a{font-size:13px;color:#333;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-tags a:hover{color:#e60012}

/* news list */
.sg-news{display:flex;gap:14px;padding:14px 18px;border-bottom:1px solid #ececec}
.sg-news:last-child{border-bottom:0}
.sg-nthumb{display:block;flex:0 0 150px;width:150px;height:94px;border-radius:3px;background:linear-gradient(135deg,#2b3446,#0f1725);overflow:hidden;position:relative}
.sg-nthumb img{width:100%;height:100%;object-fit:cover;display:block}
.sg-ntext{flex:1;min-width:0}
.sg-ntext h3{font-size:16px;font-weight:700;line-height:1.5;color:#222;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sg-ntext h3:hover{color:#e60012}
.sg-ntext p{margin-top:4px;font-size:13px;color:#777;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sg-ntext time{display:block;margin-top:6px;font-size:12px;color:#aaa}

/* video grid */
.sg-videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px}
.sg-video{display:block;min-width:0}
.sg-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:3px;overflow:hidden;background:linear-gradient(135deg,#242b3a,#0e1420)}
.sg-thumb::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.25)}
.sg-thumb::after{content:"";position:absolute;left:calc(50% + 3px);top:50%;transform:translate(-50%,-50%);border-left:13px solid #fff;border-top:8px solid transparent;border-bottom:8px solid transparent}
.sg-video b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:8px;font-size:14px;font-weight:400;line-height:1.5;color:#333}
.sg-video:hover b{color:#e60012}
.sg-vmeta{display:block;margin-top:4px;font-size:12px;color:#aaa}

/* team grid */
.sg-teams-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:16px}
.sg-teamcard{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border:1px solid #eee;border-radius:3px;text-align:center}
.sg-teamcard:hover{border-color:#f5b301}
.sg-teamcard .sg-crest{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#eef2f7;color:#1b2438;font-size:18px;font-weight:700}
.sg-teamcard b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sg-teamcard small{font-size:11px;color:#aaa}

/* tags page */
.sg-tagbox{display:flex;flex-wrap:wrap;gap:10px;padding:18px}
.sg-tag{display:block;padding:7px 14px;border:1px solid #e5e5e5;border-radius:2px;font-size:13px;color:#444;background:#fff}
.sg-tag:hover{background:#1b2438;border-color:#1b2438;color:#fff}

/* pagination */
.sg-pager{display:flex;justify-content:center;gap:6px;padding:22px 0}
.sg-pager li a,.sg-pager li span{display:grid;place-items:center;min-width:34px;height:32px;padding:0 8px;border:1px solid #ddd;background:#fff;color:#555;font-size:13px}
.sg-pager li.active a,.sg-pager li a:hover{background:#1b2438;border-color:#1b2438;color:#fff}
.sg-body .pagination{display:flex;justify-content:center;gap:6px;padding:22px 0;flex-wrap:nowrap}
.sg-body .pagination li a,.sg-body .pagination li span{display:grid;place-items:center;min-width:34px;height:32px;padding:0 8px;border:1px solid #ddd;background:#fff;color:#555;font-size:13px}
.sg-body .pagination li.active a{background:#1b2438;border-color:#1b2438;color:#fff}

/* footer */
.sg-footer{background:#fff;border-top:1px solid #e6e6e6;margin-top:20px;padding:20px 0;text-align:center;color:#888;font-size:12px;line-height:2}
.sg-footer .sg-wrap{display:block}

/* article compat */
.sg-body .main .w{width:1200px;max-width:100%;margin:0 auto;padding:16px;box-sizing:border-box}
.sg-body .main .outside .package{display:block}
.sg-body .article,.sg-body .showMatch{background:#fff;border:1px solid #e6e6e6;border-radius:3px}

/* mobile */
@media screen and (max-width:1100px){
  .sg-layout{grid-template-columns:1fr}
  .sg-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .sg-match{grid-template-columns:80px 60px minmax(0,1fr) 100px}
}
@media screen and (max-width:768px){
  .sg-header{height:60px}
  .sg-body a.sg-watch{color:#fff}
  .sg-teams{flex-wrap:wrap;row-gap:6px}
  .sg-team{max-width:47%}
  .sg-team span{max-width:100%}
  .sg-watch{min-width:84px;padding:0 10px;box-sizing:border-box}
  .sg-more{padding:3px 8px;font-size:11px}
  .sg-body .pagination{flex-wrap:wrap;gap:5px}
  .sg-body .pagination li a,.sg-body .pagination li span{min-width:30px;height:32px;padding:0 8px;font-size:12px}
  .sg-header .sg-wrap{height:60px;gap:10px;padding:0 14px}
  .sg-logo{font-size:20px}
  .sg-nav{display:none}
  .sg-burger{display:flex;margin-left:auto}
  .sg-nav-toggle:checked ~ .sg-mnav{display:block}
  .sg-mnav{position:fixed;left:0;right:0;top:60px;z-index:1002;background:#1b1b1b;border-top:1px solid #333;box-shadow:0 16px 30px rgba(0,0,0,.3);max-height:calc(100vh - 60px);overflow:auto}
  .sg-mnav a{display:flex;justify-content:space-between;padding:13px 18px;border-bottom:1px solid #2b2b2b;color:#fff;font-size:15px}
  .sg-mnav a span{font-size:11px;color:#888;letter-spacing:.12em}
  .sg-wrap{padding:0 12px}
  .sg-layout{margin-top:12px;gap:12px}
  .sg-side{grid-template-columns:1fr}
  .sg-head{padding:12px 14px}
  .sg-head b{font-size:16px}
  .sg-list{padding:0 14px}
  .sg-match{display:grid;grid-template-columns:1fr auto;grid-template-areas:"meta watch" "teams teams";gap:6px 8px;padding:12px 0}
  .sg-time{grid-area:meta;display:flex;align-items:baseline;gap:8px}
  .sg-time small{display:inline;margin:0}
  .sg-league{display:none}
  .sg-teams{grid-area:teams;justify-content:flex-start;gap:8px}
  .sg-team{font-size:13px}
  .sg-watch{grid-area:watch;height:32px;line-height:32px;padding:0 12px;font-size:12px}
  .sg-leagues{grid-template-columns:repeat(3,1fr);padding:10px}
  .sg-videos{grid-template-columns:repeat(2,1fr);gap:10px;padding:12px}
  .sg-teams-grid{grid-template-columns:repeat(2,1fr);gap:8px;padding:12px}
  .sg-news{display:block;padding:12px 14px}
  .sg-nthumb{width:100%;height:160px;margin-bottom:8px}
  .sg-ntext h3{font-size:15px}
  .sg-body .pagination{gap:4px}
  .sg-body .pagination li a,.sg-body .pagination li span{min-width:28px;height:30px;padding:0 6px;font-size:12px}
}
/* specificity fixes */
.sg-body a.sg-logo{color:#e60012}
.sg-body a.sg-watch{color:#fff}
.sg-body a.sg-watch:hover{color:#fff;background:#e60012}
.sg-body a.sg-more{color:#666}
.sg-body a.sg-tile{color:#333}
.sg-body a.sg-tag{color:#444}
.sg-body a.sg-tag:hover{color:#fff}
.sg-body a.sg-vrow{color:#444}
.sg-body a.sg-vrow:hover{color:#e60012}
.sg-body a.sg-teamcard{color:#1a1a1a}
.sg-body a.sg-video{color:#333}