.header-menu-btn {
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  font-size:1.2rem;
  color:inherit;
  cursor:pointer;
}
* { box-sizing: border-box; margin:0; padding:0 }
a { text-decoration:none; color:inherit }
ul { list-style:none }
body {
  background: #f5f5f5;
  color:#333;
  font-family:Arial,sans-serif; min-height:100vh;
}
header {
  position:fixed; top:0; left:0; width:100%;
  background:#FFF; border-bottom:1px solid #ddd;
  padding:12px 0; text-align:center;
  display:flex; align-items:center; justify-content:center;
  z-index:100;
}
.logo { font-size:1.2rem; font-weight:bold; color:#000 }
.theme-switch {
  position:absolute; right:16px; width:50px; height:24px;
}
.theme-switch input { opacity:0; width:0; height:0 }
.theme-switch .slider {
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:#eee; border-radius:12px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 4px; transition:background .3s;
}
.theme-switch .slider i { font-size:14px; line-height:1 }
.theme-switch .fa-sun  { color:#FFC107 }
.theme-switch .fa-moon { color:#888 }
.theme-switch input:checked + .slider {
  background:#444;
}
.theme-switch input:checked + .slider .fa-sun  { color:#888 }
.theme-switch input:checked + .slider .fa-moon { color:#FFF }
nav.bottom-nav {
  position:fixed; bottom:0; left:0; width:100%;
  background:#FFF; border-top:1px solid #ddd;
  display:flex; justify-content:space-around; padding:8px 0;
  z-index:100;
}
nav.bottom-nav a {
  flex:1; text-align:center; font-size:.7rem; color:#666;
}
nav.bottom-nav a.active { color:#000 }
nav.bottom-nav i {
  display:block; font-size:1.2rem; margin-bottom:4px;
}
.container {
  max-width:480px; margin:0 auto;
  padding:52px 8px 80px;
  background:#fff;
}
body.dark-mode .container{
	background: #1E1E1E;
}
.sport-menu {
  display:flex; justify-content:center; gap:24px;
  padding:12px 0; margin-bottom:12px;
}
body.dark-mode .search{
	color:#fff;
}
body.dark-mode .back{
	color:#fff;
}
.sport-menu a {
  font-size:.75rem; color:#888; text-align:center;
}
.sport-menu a.active { color:#000 }
.sport-menu i { display:block; margin-bottom:4px; font-size:1.2rem }
.subnav {
  display:flex; justify-content:center; align-items:center;
  gap:16px; margin-bottom:12px;
}
.date-list {
  display:flex; overflow-x:auto; gap:8px; margin:16px 0;
}
.date-list button {
  flex:none; padding:6px 12px;
  border:1px solid #ccc; background:#f9f9f9;
  border-radius:4px; cursor:pointer; white-space:nowrap;
}
.date-list button.active {
  background:#579cd5; color:#fff; border-color:#579cd5;
}
.filters {
  display:flex; justify-content:center; gap:8px;
  margin-bottom:24px;
}
.filters button {
  padding:6px 14px; border:none; border-radius:16px;
  font-size:.8rem; cursor:pointer; color:#fff;
}
.filters .all   { background:#5E35B1 }
.filters .live  { background:#E53935 }
.filters .ended { background:#888 }
.filters .upcom { background:#888 }
.group { margin-bottom:24px }
.group-header {
  display:flex; align-items:center; justify-content:space-between;
  background:#f0f0f0; padding:8px 12px;
  font-size:.85rem; color:#333;
  border-bottom:1px solid #ddd;
}
.group-header i { font-size:1rem; color:#666 }
.group-header span { flex:1; margin:0 8px; white-space:nowrap }
.match-list {
  width:100%; margin:0; padding:0;
}
.match-list li {
  display:grid;
  grid-template-columns:40px 50px 24px 1fr auto 1fr 40px 24px;
  align-items:center; column-gap:8px;
  padding:8px 12px; border-bottom:1px solid #eee;
  font-size:.85rem; white-space:nowrap;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    background: #fff;
}
body.dark-mode .match-list li {
	background: #303030;
}
body.dark-mode .search::placeholder{
  color: #fff;
}
.match-list li:last-child { border-bottom:none }
.li-time { color:#888; text-align:center }
.li-status {
  font-size:.75rem; padding:2px 4px; border-radius:2px;
  color:#FFF; text-align:center;
}
.MBS[mbs="1"] { background-color:#f4623d;width: 41px; }
.MBS[mbs="2"] { background-color:#7b4d44;width: 41px; }
.MBS[mbs="3"] { background-color:#579cd5;width: 41px; }
.crest {
  width:20px; height:20px; background:#ccc; border-radius:50%;
}
.team-name { overflow:hidden; text-overflow:ellipsis; color:#333 }
.li-score {
  font-weight:bold; color:#000; text-align:center; margin:0 4px;
}
.match-list li i.far.fa-star {
  color:#666; justify-self:center;
}
.drawer {
  position:fixed; top:0; left:-260px;
  width:260px; height:100%; background:#FFF;
  padding:16px; box-shadow:2px 0 8px rgba(0,0,0,.1);
  overflow-y:auto; transition:left .3s ease; z-index:200;
}
.drawer.open { left:0 }
.drawer .close-btn {
  display:block; text-align:right;
  font-size:1.2rem; margin-bottom:16px; cursor:pointer; color:#333;
}
.drawer h2 {
  font-size:1rem; margin-bottom:12px;
  border-bottom:1px solid #ddd; padding-bottom:4px; color:#000;
}
.drawer ul.menu-list li {
  padding:8px 0; border-bottom:1px solid #ddd;
  display:flex; align-items:center; gap:8px;
  font-size:.9rem; color:#333;
}
.drawer ul.menu-list li:last-child { border-bottom:none }
.drawer ul.menu-list li i {
  width:20px; text-align:center; color:#666;
}
.overlay {
  position:fixed; top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,.2);
  opacity:0; visibility:hidden;
  transition:opacity .3s ease; z-index:150;
}
.overlay.active {
  opacity:1; visibility:visible;
}
body.dark-mode {
  background:#121212; color:#EEE;
}
body.dark-mode header,
body.dark-mode nav.bottom-nav {
  background:#000; border-color:#333;
}
body.dark-mode .logo { color:#FFF }
body.dark-mode .sport-menu { background:#1E1E1E }
body.dark-mode .sport-menu a { color:#BBB }
body.dark-mode .sport-menu a.active { color:#FFF }
body.dark-mode .group-header {
  background:#1E1E1E; color:#DDD; border-color:#333;
}
body.dark-mode .match-list li { border-color:#333; }
body.dark-mode .li-time { color:#AAA }
body.dark-mode .crest { background:#333 }
body.dark-mode .team-name,
body.dark-mode .li-score { color:#FFF; }
body.dark-mode .drawer {
  background:#1E1E1E; box-shadow:2px 0 8px rgba(0,0,0,.7);
}
body.dark-mode .drawer h2,
body.dark-mode .drawer ul.menu-list li,
body.dark-mode .drawer .close-btn {
  color:#DDD; border-color:#333;
}
body.dark-mode .drawer ul.menu-list li i { color:#AAA; }

.search-box {
  margin: 16px 0 0;
  text-align: center;
}
.search-box input {
  width: 100%;
  max-width: 480px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Karanlık mod için input */
body.dark-mode .search-box input {
  background: #333;
  color: #EEE;
  border-color: #555;
}





/*country*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
html, body {
  height: 100%;
}
body {
  background: #f5f6f8;
  color: #333;
}
body.dark-mode {
  background: #121212;
  color: #eee;
}

.header {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 16px;
}
body.dark-mode .header {
  background: #1e1e1e;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.back {
  margin-right: 12px;
  cursor: pointer;
  color: #6c6c6c;
}
body.dark-mode .total {
	color:#d9d9d9;
}
body.dark-mode .sub-count{
	color:#d9d9d9;
}
.search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}
.title {
  text-align: center;
  font-size: 18px;
  margin: 16px 0;
}
.list {
  list-style: none;
}
.item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  overflow: hidden;
}
body.dark-mode .item {
  background: #1e1e1e;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  cursor: pointer;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.left {
  display: flex;
  align-items: center;
}
.icon {
  font-size: 24px;
  width: 32px;
  text-align: center;
}
.icon img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.name {
  margin-left: 8px;
  font-size: 16px;
}
.total {
  margin-left: 8px;
  font-size: 14px;
  color: #666;
}
.toggle {
  font-size: 16px;
  padding: 6px;
  border-radius: 50%;
  background: #eee;
  transition: transform .2s;
  user-select: none;
}
body.dark-mode .toggle {
  background: #333;
  color: #eee;
}
.sub-list {
  list-style: none;
  display: none;
  padding-left: 10px;
  background: rgba(0,0,0,0.02);
}
body.dark-mode .sub-list {
  background: rgba(255,255,255,0.05);
}
.sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sub-item:last-child {
  border: none;
}
body.dark-mode .sub-item {
  border-color: rgba(255,255,255,0.1);
}
.sub-count {
  font-size: 14px;
  color: #666;
  margin-right:10px;
}
.item.open .sub-list {
  display: block;
}