.team-cover-image { width: 100%; height: 100%; object-fit: cover; }
.sport-soccer .sport-icon,
.sport-futsal .sport-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; font-size: 64px; line-height: 1; }
.card-sport-mark { position: absolute; z-index: 3; top: 14px; left: 14px; display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: #fff; color: #101c2a; box-shadow: 0 5px 16px rgba(0,0,0,.18); font-size: 27px; line-height: 1; }
.card-sport-mark img { display: block; width: 34px; height: 34px; object-fit: contain; }
/* Loaded after styles.css: keep the image inside the smaller mobile badge. */
@media(max-width:620px) { .card-sport-mark img { width: 22px; height: 22px; } }
.sport-identification-image { position: relative; z-index: 1; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.18)); }
.sport-sepak-takraw .sport-identification-image { width: 90px; height: 90px; }
.sport-futsal .sport-identification-image { width: 112px; height: 112px; }
.sport-inline-image { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.managed-sport-image { width: 42px; height: 42px; object-fit: contain; }
.team-card-logo { width: 32px; height: 32px; margin-right: 9px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.team-detail-cover { display: block; width: min(25vw, 300px); aspect-ratio: 1 / 1; margin: 0; object-fit: cover; }
.team-detail-logo { width: 52px; height: 52px; margin-right: 12px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.activity-gallery { width: 100%; margin: 22px auto 0; padding: 30px; border: 1px solid #e5e9e3; background: #fff; box-shadow: 0 8px 30px rgba(16,28,42,.05); }
.activity-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.activity-gallery-heading .kicker { margin: 0 0 5px; }
.activity-gallery-heading h2 { margin: 0; font-size: 26px; }
.activity-gallery-heading p:not(.kicker) { margin: 7px 0 0; color: #68737a; font-size: 12px; }
.activity-gallery-controls { display: flex; gap: 8px; }
.activity-gallery-controls button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #dce1dc; border-radius: 50%; background: #fff; color: #101c2a; font-size: 18px; cursor: pointer; }
.activity-gallery-controls button:hover:not(:disabled) { border-color: #101c2a; background: #101c2a; color: #fff; }
.activity-gallery-controls button:disabled { cursor: default; opacity: .3; }
.activity-gallery-viewport { overflow: hidden; scroll-behavior: smooth; }
.activity-gallery-track { display: flex; gap: 16px; }
.activity-gallery figure { position: relative; flex: 0 0 calc((100% - 48px) / 4); margin: 0; overflow: hidden; background: #eef1ed; }
.activity-gallery figure img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.activity-gallery figcaption { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; background: rgba(11,23,36,.72); color: #fff; font-size: 9px; }
.stack-form input[type="file"] { padding: 11px; background: #f8f9f7; }
.sport-basketball { background: linear-gradient(145deg,#ad5e37,#e28b4a); }
.sport-soccer { background: linear-gradient(145deg,#30675b,#76a879); }
.sport-futsal { background: linear-gradient(145deg,#14365f,#3b79ae); }
.sport-baseball { background: linear-gradient(145deg,#8e4936,#d18759); }
.sport-softball { background: linear-gradient(145deg,#7a691c,#d7bd45); }
.sport-volleyball { background: linear-gradient(145deg,#394f82,#819bc8); }
.sport-tennis { background: linear-gradient(145deg,#41755d,#a3c763); }
.sport-rugby { background: linear-gradient(145deg,#243f36,#66896a); }
.sport-american-football { background: linear-gradient(145deg,#5b3327,#a66745); }
.sport-handball { background: linear-gradient(145deg,#934622,#db8448); }
.sport-gateball { background: linear-gradient(145deg,#5d4935,#b99165); }
.sport-field-hockey { background: linear-gradient(145deg,#245c60,#65a3a1); }
.sport-ice-hockey { background: linear-gradient(145deg,#486979,#a8c8d3); }
.sport-lacrosse { background: linear-gradient(145deg,#4c3f6d,#9582b1); }
.sport-ultimate { background: linear-gradient(145deg,#34687c,#7db5c5); }
.sport-dodgeball { background: linear-gradient(145deg,#8b3d43,#d97570); }
.sport-floorball { background: linear-gradient(145deg,#28526b,#6599b4); }
.sport-cricket { background: linear-gradient(145deg,#3f6130,#88a95f); }
.sport-sepak-takraw { background: linear-gradient(145deg,#4f681b,#a7a83a); }
.sport-other { background: linear-gradient(145deg,#4e5963,#929ca2); }
@media(max-width:900px) { .activity-gallery figure { flex-basis: calc((100% - 16px) / 2); } }
@media(max-width:760px) { .team-detail-cover { width: min(100%, 320px); } .team-detail-logo { width: 42px; height: 42px; } .activity-gallery { margin-top: 24px; padding: 22px 18px; } .activity-gallery-heading { align-items: flex-start; } }
@media(max-width:560px) { .activity-gallery figure { flex-basis: 100%; } .activity-gallery-heading { align-items: flex-start; flex-direction: column; } .activity-gallery-controls { align-self: flex-end; } }
.detail-hero > .team-profile-card { padding: 28px; gap: 28px; }
.team-profile-card { grid-template-columns: minmax(160px, min(20vw, 220px)) minmax(0,1fr) auto; align-items: center; }
.team-profile-card:not(:has(.team-profile-actions a)) { grid-template-columns: minmax(160px, min(20vw, 220px)) minmax(0,1fr); }
.team-profile-card:not(:has(.team-profile-actions a)) .team-profile-actions { display: none; }
.team-profile-copy { min-width: 0; }
.team-profile-copy h1 { margin: 18px 0 22px; font-size: clamp(28px,3vw,38px); overflow-wrap: anywhere; }
.team-profile-copy .kicker { margin-bottom: 14px; }
.team-profile-copy .detail-sports { display: flex; flex-wrap: wrap; gap: 8px; }
.team-profile-visual { width: 100%; height: auto; aspect-ratio: 1; }
.team-profile-gallery { margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid #e5e9e3; box-shadow: none; }
.team-profile-gallery .activity-gallery-heading { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 12px; }
.team-profile-gallery h2 { font-size: 16px; }
.team-profile-gallery h2 small { margin-left: 8px; color: #68737a; font-size: 12px; font-weight: 400; }
.team-profile-gallery .activity-gallery-controls button { width: 34px; height: 34px; font-size: 16px; }
.team-profile-gallery .activity-gallery-track { gap: 10px; }
.team-profile-gallery figure { flex: 0 0 calc((100% - 30px) / 4); }
.team-profile-gallery .activity-gallery-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.team-profile-gallery figure { scroll-snap-align: start; }
.team-profile-card .team-profile-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0; padding-left: 24px; border-left: 1px solid #e5e9e3; width: 244px; }
.team-profile-card .team-profile-actions:empty { display: none; }
.team-profile-card .team-profile-actions a { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; max-width: 100%; margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; text-decoration: none; }
.team-profile-card .team-member-event-action { border: 1px solid #dce1dc; background: #f5f7f3; }
.team-profile-card .team-manage-inline { border: 1px solid #dce1dc; }
.team-profile-card .team-profile-actions a:focus-visible { outline: 2px solid #101c2a; outline-offset: 3px; }
@media(min-width:761px) and (max-width:1100px) {
  .team-profile-card { grid-template-columns: minmax(160px,220px) minmax(0,1fr); }
  .team-profile-card .team-profile-actions { grid-column: 1 / -1; width: auto; padding: 18px 0 0; border-left: 0; border-top: 1px solid #e5e9e3; flex-direction: row; flex-wrap: wrap; }
  .team-profile-card .team-profile-actions a { flex: 1 1 180px; width: auto; }
}
@media(max-width:760px) {
  .team-profile-card,.team-profile-card:not(:has(.team-profile-actions a)) { grid-template-columns: 1fr; gap: 20px; }
  .detail-hero > .team-profile-card { padding: 20px; gap: 20px; }
  .team-profile-card .team-profile-actions { width: 100%; padding: 18px 0 0; border-left: 0; border-top: 1px solid #e5e9e3; flex-direction: row; flex-wrap: wrap; }
  .team-profile-visual { max-width: 220px; justify-self: center; }
  .team-profile-card .team-profile-actions a { flex: 1 1 140px; width: auto; }
  .team-profile-location { flex-wrap: wrap; }
  .team-profile-gallery figure { flex-basis: calc((100% - 20px) / 3); }
}
