/* badmintonapi.com: the players page. Search, the world number ones, our rating's leaders, most titles and countries. */
.pl { background: #F4F1E8; }
.pl-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pl code { font: 500 .9em "IBM Plex Mono", ui-monospace, monospace; }
.pl a { transition: color .15s ease; }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-over { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); font-weight: 700; }
.pl-over::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.pl-over2 { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pl-over2::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.pl small { margin-left: 6px; font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 500; }

/* ------------------------------------------------------------------ the top band and the search */
.pl-top { color: #fff; border-bottom: 1px solid var(--gold); background: radial-gradient(50% 90% at 88% 0%, rgba(34,150,112,.42) 0%, rgba(34,150,112,0) 70%), radial-gradient(40% 70% at 0% 100%, rgba(226,199,127,.12) 0%, rgba(226,199,127,0) 70%), linear-gradient(170deg, #0B4A3E 0%, #072E27 100%); }
.pl-top .pl-in { padding-top: 40px; padding-bottom: 110px; text-align: center; }
.pl-top h1 { margin: 14px 0 0; font: 700 44px/1.1 "Shippori Mincho", serif; letter-spacing: -.01em; }
.pl-top p { margin: 12px auto 0; max-width: 600px; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.74); }
.pf { max-width: 640px; margin: 28px auto 0; text-align: left; }
.pf-box { position: relative; display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.pf input { flex: 1; min-width: 0; height: 46px; padding: 0 14px 0 42px; border: 0; border-radius: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236B736E' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='m12.5 12.5 4 4'/%3E%3C/svg%3E") 14px 50% no-repeat; font: 500 16px "Zen Kaku Gothic New", sans-serif; color: var(--ink); }
.pf input:focus { outline: none; }
.pf input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pf-box:focus-within { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 0 0 3px rgba(226,199,127,.55); }
.pf button { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--gold); color: var(--deeper); font: 700 14.5px "Zen Kaku Gothic New", sans-serif; cursor: pointer; transition: background-color .15s ease; }
.pf button:hover { background: #D4B25F; }
.pf button:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.ph { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px -24px rgba(7,46,39,.45); }
.ph-o { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 16px; color: var(--ink); }
.ph-o + .ph-o { border-top: 1px solid var(--hair); }
.ph-o b { font-weight: 700; }
.ph-o span { flex: none; font-size: 12.5px; color: var(--muted); }
.ph-o:hover, .ph-o.on { background: #F7F4EC; }
.pl-facts { display: flex; justify-content: center; margin: 30px 0 0; }
.pl-facts div { padding: 0 24px; border-left: 1px solid rgba(226,199,127,.25); }
.pl-facts div:first-child { border-left: 0; }
.pl-facts dt { font: 700 24px/1.1 "Shippori Mincho", serif; color: #fff; font-variant-numeric: tabular-nums; }
.pl-facts dd { margin: 4px 0 0; font-size: 12.5px; color: rgba(255,255,255,.58); }

/* the first block after the band is lifted over it */
.pl-lift { margin-top: -64px; }
.p1 { padding-top: 0; }
.ps-res + .p1 { padding-top: 40px; }

/* ------------------------------------------------------------------ search results */
.ps-box { padding: 22px 26px 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 0 rgba(10,63,53,.04), 0 30px 50px -36px rgba(10,63,53,.35); }
.ps-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ps-hd h2 { margin: 0; font: 700 22px/1.25 "Shippori Mincho", serif; color: var(--deep); }
.ps-hd a { flex: none; font-size: 13px; font-weight: 700; color: var(--deep); border-bottom: 1px solid rgba(10,63,53,.3); }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pc { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 10px; transition: border-color .15s ease, background-color .15s ease; }
.pc:hover { border-color: #D2C39A; background: #FDFCF8; }
.pc:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.pc b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.pc span { font-size: 12.5px; color: var(--muted); }
.pc em { font-style: normal; font-size: 12px; color: #4A544F; }
.ps-none { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ------------------------------------------------------------------ the world number ones */
.p1-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.p1-c { display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 0 rgba(10,63,53,.04), 0 26px 44px -34px rgba(10,63,53,.4); transition: border-color .15s ease, transform .15s ease; }
a.p1-c:hover { border-color: #D2C39A; transform: translateY(-1px); }
a.p1-c:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.p1-ev { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.p1-rk { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.p1-c b { margin-top: 2px; font: 700 18px/1.3 "Shippori Mincho", serif; color: var(--deep); }
.p1-cc { font-size: 12.5px; color: var(--muted); }
.p1-ft { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 12px; }
.p1-ft em { font-style: normal; font-size: 12px; color: #4A544F; }
.p1-ft em:first-child { font: 500 12px "IBM Plex Mono", monospace; color: var(--ink); }

/* ------------------------------------------------------------------ section heads */
.prt, .ptl, .pcn { padding-top: 72px; }
.pl-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 22px; }
.pl-hd h2 { margin: 14px 0 0; font: 700 32px/1.15 "Shippori Mincho", serif; color: var(--deep); }
.pl-hd > p { margin: 0 0 4px; max-width: 470px; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: right; }
.pl-hd > p a { color: var(--deep); font-weight: 700; border-bottom: 1px solid rgba(10,63,53,.3); }

/* ------------------------------------------------------------------ our rating, by event */
.rg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rt { min-width: 0; padding: 16px 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 0 rgba(10,63,53,.04), 0 24px 48px -32px rgba(10,63,53,.25); }
.rt h3 { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #8C938F; }
.rt ol { list-style: none; margin: 0; padding: 0; }
.rt li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 0; }
.rt li + li { border-top: 1px solid var(--hair); }
.rt-n { font: 700 14px "Shippori Mincho", serif; color: #A7ADA9; }
.rt li:first-child .rt-n { color: var(--gold); }
.rt-p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-p a { font-size: 14px; font-weight: 700; color: var(--ink); }
.rt-p a:hover { color: var(--jade); }
.rt-p small { margin-left: 6px; font: 600 10.5px "IBM Plex Mono", monospace; color: #8C938F; }
.rt-v { font: 700 15px/1 "Shippori Mincho", serif; color: var(--deep); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ most titles */
.mt { list-style: none; margin: 0; padding: 6px 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mt li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 260px 40px; gap: 16px; align-items: center; padding: 12px 0; }
.mt li + li { border-top: 1px solid var(--hair); }
.mt-n { font: 700 15px "Shippori Mincho", serif; color: #A7ADA9; }
.mt li:first-child .mt-n { color: var(--gold); }
.mt-who { min-width: 0; }
.mt-who > a { font-size: 15px; font-weight: 700; color: var(--ink); }
.mt-who > a:hover { color: var(--jade); }
.mt-by { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.mt-bar { display: block; height: 6px; border-radius: 3px; background: #F1ECDF; overflow: hidden; }
.mt-bar i { display: block; height: 100%; border-radius: 3px; background: var(--jade); }
.mt li:first-child .mt-bar i { background: var(--gold); }
.mt-t { font: 700 20px/1 "Shippori Mincho", serif; color: var(--deep); text-align: right; }

/* ------------------------------------------------------------------ by country */
.cn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cn { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s ease, transform .15s ease; }
.cn:hover { border-color: #D2C39A; transform: translateY(-1px); }
.cn:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.cn-code { grid-row: 1 / span 2; display: grid; place-items: center; height: 36px; border-radius: 10px; background: #F1ECDF; font: 700 11px "IBM Plex Mono", monospace; letter-spacing: .06em; color: var(--deep); }
.cn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cn-n { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ the way into the API */
.pl-end { padding: 72px 0 96px; }
.pl-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 34px; border-radius: 10px; color: #fff; background: radial-gradient(60% 120% at 100% 0%, #115446 0%, #0A3F35 50%, #072E27 100%); border: 1px solid rgba(226,199,127,.3); }
.pl-cta h2 { margin: 0; font: 700 24px/1.3 "Shippori Mincho", serif; color: #fff; }
.pl-cta p { margin: 8px 0 0; max-width: 640px; font-size: 14.5px; color: rgba(255,255,255,.72); }
.pl-cta code { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.07); color: var(--gold-lt); }
.pl-cta-go { display: flex; align-items: center; gap: 12px; flex: none; }
.pl-key { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 18px 0 6px; border-radius: 10px; background: var(--gold); color: var(--deeper); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .01em; transition: background-color .15s ease; }
.pl-key:hover { background: #D4B25F; }
.pl-key:focus-visible, .pl-doc:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 2px; }
.pl-g { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #fff; }
.pl-g svg { width: 17px; height: 17px; }
.pl-doc { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 14px; font-weight: 700; transition: border-color .15s ease; }
.pl-doc:hover { border-color: var(--gold-lt); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1100px) {
.p1-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt li { grid-template-columns: 28px minmax(0, 1fr) 180px 40px; }
}
@media (max-width: 960px) {
.pl-hd { flex-direction: column; align-items: flex-start; gap: 10px; }
.pl-hd > p { text-align: left; }
.ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
.pl-in { padding: 0 16px; }
.pl-top .pl-in { padding-top: 28px; padding-bottom: 92px; }
.pl-top h1 { font-size: 32px; }
.pf button { padding: 0 16px; }
.pl-facts div { padding: 0 14px; }
.pl-facts dt { font-size: 20px; }
.pl-lift { margin-top: -64px; }
.p1-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.p1-ft { flex-direction: row; justify-content: space-between; }
.ps-box { padding: 18px 16px 18px; }
.ps-grid { grid-template-columns: minmax(0, 1fr); }
.pl-hd h2 { font-size: 26px; }
.rg { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mt { padding: 4px 16px; }
.mt li { grid-template-columns: 22px minmax(0, 1fr) 30px; gap: 10px; }
.mt-bar { display: none; }
.mt-by { white-space: normal; }
.p1-rk { display: none; }
.cn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cn { grid-template-columns: minmax(0, 1fr); padding: 12px; }
.cn-code { display: none; }
.pl-cta { padding: 24px 20px; }
.pl-cta h2 { font-size: 21px; }
.pl-cta-go { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
a.p1-c:hover, .cn:hover { transform: none; }
}
