/* Equipment reference: brand grid → catalogue → player library. Existing palette and faces. */
body { background-image:none; }
body > header { background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; }
.topbar { display:grid; grid-template-columns:1fr auto auto; gap:8px 16px; padding:10px 20px 0; }
.topbar .logo img { width:152px; height:auto; }
.topbar .sp { display:none; }
.topbar .nav { grid-column:1/-1; grid-row:2; display:flex; flex-wrap:wrap; border:0; border-radius:0; padding:0; background:none; gap:0; }
.topbar .nav a { flex:1 0 auto; min-height:40px; border-radius:4px 4px 0 0; padding:8px 12px; }
.library-nav { padding-top:6px; gap:8px; }
.library-nav .btn { background:none; min-height:36px; border:0; padding:4px 10px; }
.directory-heading { display:grid; grid-template-columns:1fr minmax(260px,430px); gap:20px; align-items:center; padding:12px 0 22px; }
.directory-heading h1 { font-size:32px; line-height:1.15; margin:0 0 8px; }
.directory-heading p { margin:0; color:var(--muted); font-size:14px; }
.directory-heading .search input { border-radius:6px; background:var(--card); border-color:var(--line); padding-block:13px; }
.brand-directory { background:var(--card); padding:18px; }
.equipment-directory h2 { font-size:23px; line-height:1.25; margin:0; }
.equipment-directory .section-heading { gap:12px; }
.equipment-directory .section-heading > a { font-size:13px; white-space:nowrap; }
.brand-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:8px; }
.brand-heading-actions { display:flex; align-items:center; gap:14px; }
.brand-more-btn { min-height:36px; padding:6px 12px; border:1px solid var(--line); border-radius:5px; background:var(--card); color:var(--ink); cursor:pointer; }
.brand-more-btn:hover { background:var(--chip); }
.brand-more-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.brand-choice { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; min-width:0; padding:7px; border:0; border-radius:4px; background:transparent; color:var(--ink); cursor:pointer; min-height:64px; font-size:12px; transition:background .15s ease; }
.brand-choice:hover { background:var(--chip); }
.brand-choice.on { background:var(--chip); box-shadow:inset 0 -2px var(--accent); }
.brand-choice small { color:var(--muted); font-size:11px; }
.brand-choice strong { font-size:15px; }
.brand-mark { display:inline-flex; align-items:center; justify-content:center; background:transparent; width:104px; max-width:100%; height:36px; padding:0; border-radius:0; flex-shrink:0; vertical-align:middle; }
.brand-mark img { display:block; width:100%; height:100%; object-fit:contain; }
.brand-mark span { color:#18201d; font-weight:600; }
.brand-wordmark { font-size:13px; color:#18201d; overflow-wrap:anywhere; line-height:1.2; }
.brand-mark img[hidden],.brand-mark span[hidden],.product-placeholder[hidden],.ph img[hidden] { display:none; }
.directory-categories { margin:18px 0 22px; border-bottom:2px solid var(--line); padding-bottom:0; gap:4px; }
.directory-categories a { border-radius:4px 4px 0 0; }
.directory-layout { display:grid; grid-template-columns:minmax(0,1fr) 244px; gap:24px; align-items:start; }
.catalog-results { min-width:0; }
.catalog-results .section-heading .count { margin:0; text-align:right; }
.catalog-results .selects { gap:8px; }
.catalog-results select { border-radius:4px; }
.catalog-results .count-row { gap:12px; align-items:center; min-height:38px; }
.catalog-results .count-row .count { font-size:11px; }
.catalog-results .count-row .btn { min-height:32px; padding:4px 8px; border-radius:4px; white-space:nowrap; }
.catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.catalog-card { border:0; border-radius:5px; box-shadow:none; }
.catalog-card:hover { transform:none; box-shadow:none; background:var(--card2); }
.catalog-card .card-main { display:flex; flex-direction:column; height:auto; flex:1; min-width:0; }
.catalog-card .card-main > .ph { width:100%; aspect-ratio:1; background:#f4f5f1; }
.catalog-card .ph img { padding:14px; object-fit:contain; mix-blend-mode:normal; transform:none; }
.catalog-card:hover .ph img { transform:scale(1.025); }
.catalog-card .card-main > .catalog-card-copy { display:flex; flex-direction:column; padding:12px; gap:7px; flex:1; }
.catalog-card .catalog-card-brand { display:flex; align-items:center; gap:8px; }
.catalog-card-brand .brand-mark { width:88px; height:30px; padding:4px 6px; }
.catalog-card-brand .brand-wordmark { font-size:12px; }
.catalog-card b { font-size:21px; text-transform:none; line-height:1.15; }
.catalog-card .alt { display:block; margin:0; font-size:12px; line-height:1.45; }
.catalog-specs { margin:3px 0; display:grid; gap:3px; font-size:12px; }
.catalog-specs div { display:flex; justify-content:space-between; gap:10px; }
.catalog-specs dt { color:var(--muted); }
.catalog-specs dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.catalog-card .card-rating { padding:0; border:0; min-height:22px; font-size:12px; }
.catalog-card .card-rating b { display:inline; font:600 14px/1.5 Inter,sans-serif; }
.catalog-card .foot { padding-top:9px; }
.catalog-card > .catalog-associated { padding:0 12px 10px; gap:5px; flex:none; }
.catalog-associated > span { color:var(--muted); font-size:11px; }
.catalog-associated a { display:flex; align-items:center; gap:7px; color:var(--ink); font-size:12px; text-decoration:none; min-height:32px; }
.catalog-associated .player-photo { width:26px; height:30px; flex:0 0 26px; border-radius:3px; }
.catalog-associated .player-photo-fallback { font-size:11px; padding:0; }
.catalog-card > .card-actions { display:flex; flex-direction:row; flex:none; padding:8px 12px 12px; gap:6px; }
.catalog-card .card-actions .btn { border-radius:4px; min-height:38px; font-size:12px; padding:6px; flex:1; }
.product-placeholder { display:flex; width:100%; height:100%; min-height:100px; justify-content:center; align-items:center; color:#5a655f; font-size:13px; }
.directory-sidebar { display:grid; gap:18px; }
.directory-panel { background:var(--card); padding:16px; }
.directory-panel h2 { font-size:22px; }
.directory-panel .count { margin:8px 0 12px; font-size:12px; }
.sidebar-players { display:grid; gap:10px; }
.sidebar-players .player-card.compact { width:100%; background:var(--card2); border:0; border-radius:4px; }
.sidebar-players .player-card.compact .player-photo { width:64px; flex-basis:64px; height:82px; }
.sidebar-players .player-card-info { font-size:13px; }
.directory-more { display:block; padding:12px 0 0; font-size:13px; }
.catalog-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px; margin:24px 0; font-size:13px; }
.catalog-pagination .btn { border-radius:4px; }
.catalog-player-section { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.catalog-player-section .players-grid { gap:12px; }
.catalog-player-section .player-card { border-radius:5px; border:0; }
.country-flag { font-size:16px; vertical-align:middle; }
.players-heading { position:static; background:none; border:0; backdrop-filter:none; padding:10px 0 0; }
.players-heading h1 { font-size:36px; line-height:1.15; }
.players-heading p { margin:8px 0; font-size:14px; }
.player-card-info .player-equipment-label { color:var(--ink); font-size:11px; }
.racquet-overview { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:32px; background:var(--card); padding:24px; }
.overview-photo { aspect-ratio:1; border-radius:4px; }
.overview-photo img { mix-blend-mode:normal; padding:24px; }
.overview-heading .title { font-size:40px; margin:8px 0; line-height:1.15; text-transform:none; }
.overview-heading .alt-title { margin:0 0 16px; }
.detail-brand { margin-bottom:12px; }
.detail-brand .brand-mark { width:120px; height:42px; }
.detail-brand .brand-wordmark { justify-content:start; }
.overview-info .model-meta { margin:0; color:var(--muted); }
.spec-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 20px; padding-block:14px; }
.spec-strip dd { font-size:15px; }
.racket-intro { margin:24px 0 0; padding:20px; background:var(--card); border:0; }
.racket-intro h2 { font-size:23px; }
.racket-intro > p { font-size:14px; max-width:95ch; }
.racket-players { display:block; }
.racket-player-cards { margin:8px 0 16px; }
.racket-players .player-card.compact { width:210px; }
.racquet-overview .overview-actions .btn { border-radius:5px; }
.racquet-overview .overview-actions .btn.primary { margin-top:0; }
#catalogTitle { scroll-margin-top:190px; }
@media (max-width:1000px) {
  .directory-layout { grid-template-columns:minmax(0,1fr); }
  .directory-sidebar { display:none; }
  .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .brand-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .topbar { padding:8px 16px 0; gap:6px 8px; }
  .topbar .logo img { width:120px; }
  .topbar .nav { flex-wrap:nowrap; overflow:auto; }
  .topbar .nav a { flex:0 0 auto; padding:8px 10px; }
  .library-nav { padding:4px 16px 0; }
  .library-nav .btn { padding:4px 6px; }
  .directory-heading { grid-template-columns:1fr; gap:14px; padding:4px 0 18px; }
  .directory-heading h1,.players-heading h1 { font-size:30px; }
  .directory-heading p { font-size:13px; }
  .brand-directory { padding:12px; }
  .equipment-directory h2 { font-size:21px; }
  .brand-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .brand-choice { min-height:60px; padding:6px 4px; font-size:11px; }
  .brand-choice .brand-mark { height:32px; padding:5px; }
  .brand-choice .brand-wordmark { font-size:13px; min-height:32px; }
  .brand-choice strong { font-size:12px; }
  .brand-choice small { font-size:11px; }
  .directory-categories { margin:14px 0 18px; }
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .catalog-card .card-main > .catalog-card-copy { padding:10px; gap:6px; }
  .catalog-card b { font-size:19px; }
  .catalog-specs { font-size:11px; }
  .catalog-specs div { display:block; }
  .catalog-specs dd { text-align:start; }
  .catalog-specs dt { display:none; }
  .catalog-card .card-actions { padding:8px; flex-wrap:wrap; }
  .catalog-card .card-actions .btn { flex-basis:100%; }
  .catalog-card > .catalog-associated { padding-inline:10px; }
  .catalog-player-section .players-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .racquet-overview { grid-template-columns:1fr; gap:20px; padding:16px; }
  .overview-info { display:block; }
  .overview-heading { grid-column:auto; }
  .overview-heading .title,html:lang(zh) .overview-info .title { font-size:30px; }
  .overview-media { width:100%; max-width:380px; justify-self:center; }
  .overview-photo { aspect-ratio:5/4; }
  .racket-intro { padding:16px; }
  .racket-players .player-card.compact { width:100%; }
  .section-nav { overflow:auto; }
  .section-nav button { flex:none; padding:8px; }
}

.brand-mark-dark { background:#14322a; }
@media (max-width:640px) {
  .brand-choice { min-height:64px; }
}
/* Keep the first row of equipment visible alongside the index controls. */
@media (min-width:1001px) {
  .directory-heading { padding:4px 0 16px; }
  .brand-directory { padding:14px; }
  .brand-choice { min-height:64px; padding:6px; }
  .brand-choice .brand-mark { height:36px; padding:5px; }
  .directory-categories { margin:12px 0 16px; }
  .catalog-card .card-main > .ph { aspect-ratio:4/3; }
}
/* Logo dimensions are reserved even if the image fails; no colour filters or stretching. */
.brand-choice .brand-mark { width:100%; }
.brand-choice img { transition:transform .15s ease; }
.brand-choice:hover img { transform:scale(1.03); }
.brand-choice:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.player-racket .brand-mark { display:flex; margin-bottom:8px; }
.saved-item .brand-mark,.deal .brand-mark,.equipment-suggestions .brand-mark { width:94px; height:32px; }
.brand-mark-dark span { color:var(--ink); }
@media (prefers-reduced-motion:reduce) {
  .brand-choice,.brand-choice img { transition:none; }
  .brand-choice:hover img { transform:none; }
}

.player-card.compact .player-card-info > span { font-size:11px; }
/* Override the legacy generic card-body rule, which otherwise stretches action buttons. */
.catalog-grid .catalog-card > .card-actions { display:grid; grid-template-columns:1fr 1fr; flex:0 0 auto; padding:8px 12px 12px; gap:6px; }
.catalog-grid .catalog-card > .catalog-associated { display:flex; flex-direction:column; flex:0 0 auto; padding:0 12px 10px; gap:5px; }
.catalog-grid .catalog-card .card-actions .btn { min-height:44px; align-self:start; }
.catalog-card .card-main > .ph { flex-shrink:0; }
@media(max-width:640px) {
 .catalog-grid .catalog-card > .card-actions { grid-template-columns:1fr; padding:8px; }
}

/* Open brand selector: larger original marks on one shared neutral surface. */
.brand-directory .brand-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px 22px; padding:14px 18px; background:#76867b; }
.brand-directory .brand-choice { min-height:76px; padding:8px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.brand-directory .brand-choice:hover,.brand-directory .brand-choice.on { background:transparent; box-shadow:none; }
.brand-directory .brand-choice.on { text-decoration:underline; text-underline-offset:7px; }
.brand-directory .brand-choice:not(.all-brands).on::after { content:""; width:28px; height:2px; background:var(--accent); position:absolute; bottom:0; }
.brand-directory .brand-choice { position:relative; }
.brand-directory .brand-choice .brand-mark { width:144px; max-width:100%; height:58px; padding:0; border:0; border-radius:0; background:transparent; }
.brand-directory .brand-choice .brand-mark span,.brand-directory .brand-wordmark { color:#fff; }
.brand-directory .brand-choice > span:not(.brand-mark),.brand-directory .all-brands small { display:none; }
.brand-directory .brand-choice strong { color:#fff; font-size:14px; }
.brand-directory .brand-grid:not(.expanded) > .brand-choice:nth-child(n+13) { display:none; }
@media (min-width:641px) and (max-width:1000px) {
  .brand-directory .brand-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .brand-directory .brand-grid:not(.expanded) > .brand-choice:nth-child(n+9) { display:none; }
}
@media (max-width:640px) {
  .brand-directory .brand-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 10px; padding:10px 14px; }
  .brand-directory .brand-grid:not(.expanded) > .brand-choice:nth-child(n+9) { display:none; }
  .brand-directory .brand-choice { min-height:70px; }
  .brand-directory .brand-choice .brand-mark { width:132px; height:54px; }
}
/* Hide small embedded straplines in the selector, keeping original artwork files intact. */
.brand-directory .brand-choice [data-brand-logo="Yonex"] img { height:auto; clip-path:inset(0 0 23% 0); transform:translateY(11.5%); }
.brand-directory .brand-choice [data-brand-logo="FZ Forza"] img { height:auto; clip-path:inset(0 0 29% 0); transform:translateY(14.5%); }
.brand-directory .brand-choice [data-brand-logo="Apacs"] img { height:auto; clip-path:polygon(0 0,100% 0,100% 64%,26% 64%,26% 100%,0 100%); }
.brand-directory .brand-choice:hover img { opacity:.85; }

.zhongyu-ranking-panel { margin:0 0 20px; padding:14px 16px; border:1px solid var(--line); background:var(--card); }
.zhongyu-ranking-panel summary { cursor:pointer; font-weight:600; }
.zhongyu-ranking-panel ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 28px; margin:12px 0; padding-left:24px; }
.zhongyu-ranking-panel li { min-width:0; padding:8px 0; border-bottom:1px solid var(--line); }
.zhongyu-ranking-panel li > span:first-child { display:block; overflow-wrap:anywhere; }
.zhongyu-ranking-panel li b,.zhongyu-ranking-panel li small,.zhongyu-rank-metrics small { display:block; }
.zhongyu-ranking-panel li small { color:var(--muted); font-size:11px; }
.zhongyu-ranking-panel .zhongyu-rank-metrics { margin-top:5px; color:var(--accent); font-weight:600; }
.zhongyu-ranking-panel .zhongyu-rank-metrics small { color:var(--muted); font-weight:400; }
.zhongyu-ranking-panel p { margin-bottom:0; }
@media(max-width:640px) { .zhongyu-ranking-panel { padding:12px; } .zhongyu-ranking-panel ol { grid-template-columns:1fr; gap:0; padding-left:22px; } }
