/* PATCH player-match-headers-pro-v6
   Final compact polish for player.php collapsed match headers.
   Focus: 375px width, tighter premium proportions, softer balls/glow,
   integrated controls without touching expand logic or match cards. */

.pm-bottom-grid-v56 > .pm-player-section-toggle{
  margin-top:14px !important;
}

.pm-player-section-toggle > summary.pm-match-head-pro{
  position:relative !important;
  isolation:isolate;
  overflow:hidden !important;
  min-height:64px !important;
  height:64px !important;
  padding:8px 10px 8px 10px !important;
  border-radius:20px !important;
  display:grid !important;
  grid-template-columns:40px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:13px !important;
  background:
    radial-gradient(circle at 7% 48%, rgba(34,224,236,.14), transparent 31%),
    linear-gradient(112deg, rgba(8,139,154,.40) 0%, rgba(6,41,55,.58) 30%, rgba(5,12,26,.98) 100%) !important;
  border:1px solid rgba(22,198,214,.52) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.44),
    inset 0 0 0 1px rgba(139,255,255,.052),
    inset 0 -2px 0 rgba(25,205,217,.52) !important;
}

.pm-player-section-toggle > summary.pm-match-head-pro::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  background:
    linear-gradient(126deg, transparent 0 30%, rgba(255,255,255,.026) 30.2% 30.7%, transparent 31% 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 1px, transparent 1px 42px);
  opacity:.48;
}

.pm-player-section-toggle > summary.pm-match-head-pro::after{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  bottom:0;
  height:1px;
  z-index:1;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(34,232,247,.60), rgba(93,241,250,.30), rgba(34,232,247,.52));
  box-shadow:0 -5px 14px rgba(25,220,232,.12);
}

.pm-player-section-toggle > summary.pm-match-head-pro-upcoming{
  background:
    radial-gradient(circle at 7% 48%, rgba(255,80,122,.13), transparent 31%),
    linear-gradient(112deg, rgba(130,34,65,.40) 0%, rgba(29,23,42,.62) 36%, rgba(5,10,23,.98) 100%) !important;
  border-color:rgba(255,83,127,.48) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,178,201,.052),
    inset 0 -2px 0 rgba(255,83,127,.50) !important;
}
.pm-player-section-toggle > summary.pm-match-head-pro-upcoming::after{
  background:linear-gradient(90deg, rgba(255,83,127,.58), rgba(255,104,143,.30), rgba(255,83,127,.50));
  box-shadow:0 -5px 14px rgba(255,83,127,.11);
}

.pm-match-head-ball{
  position:absolute;
  pointer-events:none;
  user-select:none;
  z-index:-2;
  width:104px;
  height:104px;
  object-fit:contain;
  opacity:.072;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.56)) blur(.25px);
  transform:rotate(-12deg);
}
.pm-match-head-ball-a{left:-8px;top:-21px;}
.pm-match-head-ball-b{left:93px;top:28px;width:58px;height:58px;opacity:.035;transform:rotate(15deg);}
.pm-match-head-pro-upcoming .pm-match-head-ball-a{left:-10px;top:-21px;opacity:.070;transform:rotate(10deg);}
.pm-match-head-pro-upcoming .pm-match-head-ball-b{left:92px;top:30px;opacity:.032;}

.pm-match-head-icon{
  width:40px;
  height:40px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#23eaff;
  background:linear-gradient(145deg, rgba(28,238,255,.115), rgba(8,21,31,.62));
  border:1px solid rgba(47,232,244,.23);
  box-shadow:inset 0 0 14px rgba(22,221,232,.07), 0 8px 18px rgba(0,0,0,.28);
  position:relative;
  z-index:2;
}
.pm-match-head-icon i{font-size:23px;line-height:1;filter:drop-shadow(0 0 7px rgba(36,236,255,.28));}
.pm-match-head-pro-upcoming .pm-match-head-icon{
  color:#ff5d84;
  background:linear-gradient(145deg, rgba(255,83,127,.13), rgba(23,16,30,.64));
  border-color:rgba(255,83,127,.25);
}
.pm-match-head-pro-upcoming .pm-match-head-icon i{filter:drop-shadow(0 0 7px rgba(255,83,127,.27));}

.pm-player-section-toggle > summary.pm-match-head-pro .pm-match-head-title{
  min-width:0;
  margin:0 !important;
  display:block !important;
  color:#26eaff !important;
  font-size:clamp(14px, 4.15vw, 24px) !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:.145em !important;
  text-transform:uppercase !important;
  text-shadow:0 0 11px rgba(20,222,236,.24);
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:clip !important;
  position:relative;
  z-index:2;
}
.pm-player-section-toggle > summary.pm-match-head-pro .pm-match-head-title span{
  display:inline !important;
  white-space:nowrap !important;
}
.pm-player-section-toggle > summary.pm-match-head-pro .pm-match-head-title i{display:none !important;}
.pm-player-section-toggle > summary.pm-match-head-pro-upcoming .pm-match-head-title{
  color:#ff5d84 !important;
  text-shadow:0 0 11px rgba(255,83,127,.24) !important;
}

.pm-match-head-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  position:relative;
  z-index:3;
  padding-left:8px;
}
.pm-match-head-count{
  min-width:39px !important;
  height:33px !important;
  padding:0 9px !important;
  border-radius:16px !important;
  display:grid !important;
  place-items:center !important;
  font-size:18px !important;
  line-height:1 !important;
  font-weight:900 !important;
  color:#25ecff !important;
  background:rgba(7,27,39,.62) !important;
  border:1px solid rgba(37,236,255,.42) !important;
  box-shadow:inset 0 0 12px rgba(35,234,255,.065), 0 0 12px rgba(36,232,250,.075) !important;
}
.pm-player-section-toggle > summary.pm-match-head-pro-upcoming .pm-match-head-count{
  color:#ff6689 !important;
  background:rgba(34,15,29,.66) !important;
  border-color:rgba(255,83,127,.40) !important;
  box-shadow:inset 0 0 12px rgba(255,83,127,.065), 0 0 12px rgba(255,83,127,.07) !important;
}
.pm-match-head-chevron{
  width:44px !important;
  height:44px !important;
  border-radius:50% !important;
  display:grid !important;
  place-items:center !important;
  color:#27eaff !important;
  background:rgba(5,26,39,.66) !important;
  border:1px solid rgba(38,234,255,.43) !important;
  box-shadow:inset 0 0 14px rgba(35,231,255,.075), 0 0 14px rgba(24,223,237,.08) !important;
}
.pm-match-head-chevron i{font-size:25px !important;stroke-width:3 !important;transition:transform .18s ease;}
.pm-player-section-toggle[open] > summary.pm-match-head-pro .pm-match-head-chevron i{transform:rotate(180deg);}
.pm-player-section-toggle > summary.pm-match-head-pro-upcoming .pm-match-head-chevron{
  color:#ff6488 !important;
  background:rgba(31,17,31,.70) !important;
  border-color:rgba(255,83,127,.42) !important;
  box-shadow:inset 0 0 14px rgba(255,83,127,.075), 0 0 14px rgba(255,83,127,.08) !important;
}

@media (min-width:520px){
  .pm-player-section-toggle > summary.pm-match-head-pro{
    min-height:68px !important;
    height:68px !important;
    padding:9px 12px !important;
    grid-template-columns:42px minmax(0,1fr) auto !important;
    gap:15px !important;
    border-radius:22px !important;
  }
  .pm-match-head-icon{width:42px;height:42px;border-radius:17px;}
  .pm-match-head-icon i{font-size:24px;}
  .pm-match-head-count{height:34px !important;min-width:42px !important;font-size:19px !important;}
  .pm-match-head-chevron{width:46px !important;height:46px !important;}
}

/* iPhone SE / 375px: keep title readable and do not let right controls eat text. */
@media (max-width:390px){
  .pm-bottom-grid-v56 > .pm-player-section-toggle{margin-top:13px !important;}
  .pm-player-section-toggle > summary.pm-match-head-pro{
    min-height:62px !important;
    height:62px !important;
    grid-template-columns:38px minmax(0,1fr) auto !important;
    gap:9px !important;
    padding:8px 8px !important;
    border-radius:19px !important;
  }
  .pm-match-head-icon{width:38px;height:38px;border-radius:15px;}
  .pm-match-head-icon i{font-size:21px;}
  .pm-player-section-toggle > summary.pm-match-head-pro .pm-match-head-title{
    font-size:13.5px !important;
    letter-spacing:.105em !important;
  }
  .pm-match-head-actions{gap:6px !important;padding-left:4px;}
  .pm-match-head-count{min-width:34px !important;height:30px !important;font-size:16px !important;padding:0 7px !important;border-radius:14px !important;}
  .pm-match-head-chevron{width:40px !important;height:40px !important;}
  .pm-match-head-chevron i{font-size:22px !important;}
  .pm-match-head-ball{width:92px;height:92px;left:-15px;top:-18px;opacity:.055;}
  .pm-match-head-ball-b{display:none;}
  .pm-player-section-toggle > summary.pm-match-head-pro::after{left:20px;right:20px;opacity:.82;}
}

@media (max-width:345px){
  .pm-player-section-toggle > summary.pm-match-head-pro .pm-match-head-title{
    font-size:12.5px !important;
    letter-spacing:.075em !important;
  }
  .pm-player-section-toggle > summary.pm-match-head-pro{
    grid-template-columns:35px minmax(0,1fr) auto !important;
    gap:7px !important;
  }
  .pm-match-head-icon{width:35px;height:35px;border-radius:14px;}
  .pm-match-head-count{min-width:30px !important;padding:0 6px !important;}
  .pm-match-head-chevron{width:38px !important;height:38px !important;}
}
