#rankingList .toptv-ranks-summary{display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin:3px 0 0;padding:0;border:0;border-radius:0;background:transparent;color:#dac389;font:inherit;font-size:10px;line-height:16px;cursor:pointer;white-space:nowrap;box-shadow:none}
#rankingList .toptv-ranks-summary:hover{color:#fff0c9}
#rankingList .toptv-ranks-summary:focus-visible{outline:1px solid #e6ca85;outline-offset:3px;border-radius:3px}
.toptv-ranks-top{font-size:9px;letter-spacing:.06em}
.toptv-ranks-summary .toptv-ranks-flag{font-size:13px;line-height:16px}
.toptv-ranks-chevron{font-size:16px;margin-left:1px}
.toptv-ranks-open{overflow:hidden}
.toptv-ranks-dialog{box-sizing:border-box;width:min(520px,calc(100% - 32px));max-width:520px;max-height:80vh;max-height:80dvh;margin:auto;padding:22px;border:1px solid #8b784a;border-radius:22px;background:#0c0c0e;color:#f7f5ef;font-family:Arial,sans-serif;box-shadow:0 12px 70px #0009;overflow-y:auto;overscroll-behavior:contain}
.toptv-ranks-dialog::backdrop{background:#0009}
.toptv-ranks-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.toptv-ranks-heading h2{margin:0;font-size:19px;line-height:1.3;font-weight:600;color:#f1d79e}
.toptv-ranks-intro{margin:-10px 0 18px;font-size:11px;line-height:1.5;color:#a5a5ac}
.toptv-ranks-close{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#242426;color:#eee;font-size:25px;cursor:pointer}
.toptv-ranks-video{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.toptv-ranks-video img{width:100px;height:56px;object-fit:cover;border-radius:7px;flex:none}
.toptv-ranks-video p{margin:0;font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.toptv-ranks-list{list-style:none;margin:0;padding:0}
.toptv-ranks-list li{border-top:1px solid #ffffff16}
.toptv-ranks-link{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.toptv-ranks-link:hover{background:#ffffff06}
.toptv-ranks-link:focus-visible{outline:1px solid #e6ca85;outline-offset:2px;border-radius:4px}
.toptv-ranks-link-chevron{flex:none;font-size:18px;color:#dac389}
.toptv-ranks-list .toptv-ranks-flag{font-size:24px;flex:none}
.toptv-ranks-link>div{flex:1;min-width:0}
.toptv-ranks-country{display:inline;font-size:15px;line-height:1.5}
.toptv-ranks-list .toptv-ranks-channel{display:inline;color:#a5a5ac;font-size:12px;line-height:1.5}
.toptv-ranks-position{font-size:16px;color:#ead098;white-space:nowrap;font-weight:600}
.toptv-ranks-note{margin:15px 0 0;font-size:11px;line-height:1.5;color:#929298}
/* Match the existing shared computer/iPad view; leave phone flags unchanged.
   Flags are converted to SVG by the site's country renderer, so size that
   wrapper as well as its image rather than only shrinking the emoji font. */
@media (min-width:621px) and (min-height:621px),(pointer:fine){
 #rankingList .toptv-ranks-summary{gap:4px}
 #rankingList .toptv-ranks-summary .toptv-ranks-flag{font-size:10px;line-height:12px}
 #rankingList .toptv-ranks-summary .toptv-country-flag-inline{width:12px!important;height:8px!important;min-width:12px!important;flex:0 0 12px!important;border-radius:1px!important}
 #rankingList .toptv-ranks-summary .toptv-country-flag-inline img{width:12px!important;height:8px!important;object-fit:cover}
 .toptv-ranks-list .toptv-ranks-flag{font-size:18px}
 #toptvVideoRankingsDialog .toptv-ranks-list .toptv-country-flag-inline{width:18px!important;height:12px!important;min-width:18px!important;flex:0 0 18px!important}
 #toptvVideoRankingsDialog .toptv-ranks-list .toptv-country-flag-inline img{width:18px!important;height:12px!important;object-fit:cover}
}
@media(max-width:620px) and (pointer:coarse){
 .toptv-ranks-dialog{width:100%;max-width:none;max-height:78vh;max-height:78dvh;margin:auto 0 0;padding:20px 20px max(20px,env(safe-area-inset-bottom));border-radius:22px 22px 0 0;border-bottom:0}
 #rankingList .toptv-ranks-summary{font-size:10px;line-height:15px;margin-top:2px}
}

/* The TOP line starts exactly where the text column used to start. */
#rankingList .toptv-ranks-summary{margin-top:0;margin-bottom:2px;flex-shrink:0}
/* Shared computer/iPad card details, following the phone's information order. */
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .rankRow{
 grid-template-columns:28px minmax(0,38%) minmax(0,1fr)!important;gap:8px!important;
 align-items:start!important;padding:8px!important;
}
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .rankRow:not(.active){background:transparent!important}
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .rankRow .thumb{
 width:100%!important;height:auto!important;min-width:0!important;aspect-ratio:16/9!important;
 align-self:start!important;object-fit:cover;border-radius:8px!important;
}
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .rankRow .num{align-self:center!important}
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .toptv-wide-selection-info{
 display:flex!important;flex-direction:column!important;gap:2px!important;
 min-width:0!important;padding:0!important;margin:0!important;align-self:start!important;
}
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .toptv-wide-selection-info>b{
 display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow:hidden!important;overflow-wrap:anywhere;font-size:11px!important;
 font-weight:500!important;line-height:1.25!important;margin:0 0 2px!important;
}
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .toptv-wide-selection-info>small{
 display:block!important;font-size:10px!important;font-weight:400!important;
 line-height:1.35!important;color:#b5b6c3!important;margin:0!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .toptv-wide-selection-info>.toptv-selection-published,
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .toptv-wide-selection-info>.toptv-selection-stats{font-size:9px!important}

/* Fit TOP, two title lines and three metadata lines inside the unchanged image. */
#live.hero #top.ranking #rankingList .toptv-phone-selection-info,
#live.hero #top.ranking #rankingList .toptv-wide-selection-info{
 --toptv-selection-title-size:9px;--toptv-selection-title-line:10.5px;
 --toptv-selection-meta-size:8px;--toptv-selection-meta-line:9px;
 --toptv-selection-title-height:21px;--toptv-selection-top-line:11px;
 gap:0!important;
}
#live.hero #top.ranking #rankingList .toptv-phone-selection-info>b,
#live.hero #top.ranking #rankingList .toptv-wide-selection-info>b{
 font-size:var(--toptv-selection-title-size)!important;line-height:var(--toptv-selection-title-line)!important;
 height:var(--toptv-selection-title-height)!important;min-height:var(--toptv-selection-title-height)!important;max-height:var(--toptv-selection-title-height)!important;
 margin:0 0 1px!important;flex-shrink:0!important;
}
#live.hero #top.ranking #rankingList .toptv-phone-selection-info>small,
#live.hero #top.ranking #rankingList .toptv-wide-selection-info>small{
 font-size:var(--toptv-selection-meta-size)!important;line-height:var(--toptv-selection-meta-line)!important;
 height:var(--toptv-selection-meta-line)!important;min-height:var(--toptv-selection-meta-line)!important;max-height:var(--toptv-selection-meta-line)!important;
 margin:0!important;flex-shrink:0!important;
}
#live.hero #top.ranking #rankingList .toptv-ranks-summary{
 height:var(--toptv-selection-top-line);min-height:var(--toptv-selection-top-line);
 line-height:var(--toptv-selection-top-line)!important;margin:0 0 1px!important;
 gap:4px!important;font-size:8px!important;
}
#live.hero #top.ranking #rankingList .toptv-ranks-top{font-size:8px;line-height:1}
#live.hero #top.ranking #rankingList .toptv-ranks-flag,
#live.hero #top.ranking #rankingList .toptv-ranks-global{font-size:10px;line-height:1}
#live.hero #top.ranking #rankingList .toptv-ranks-chevron{font-size:12px;line-height:1}
#live.hero #top.ranking #rankingList .toptv-ranks-summary .toptv-country-flag-inline{
 width:12px!important;height:8px!important;min-width:12px!important;flex:0 0 12px!important;
}
#live.hero #top.ranking #rankingList .toptv-ranks-summary .toptv-country-flag-inline img{width:12px!important;height:8px!important}
@media(max-width:360px){
 #live.hero #top.ranking #rankingList .toptv-phone-selection-info{
  --toptv-selection-title-size:8.5px;--toptv-selection-title-line:9px;
  --toptv-selection-title-height:18px;--toptv-selection-meta-size:7.5px;
  --toptv-selection-meta-line:8px;--toptv-selection-top-line:10px;
 }
}

/* Separate typography for the compact desktop rail and the phone cards. */
html:not([data-toptv-phone-selection]) #live.hero #top.ranking #rankingList .toptv-wide-selection-info{
 --toptv-selection-title-size:9.5px;--toptv-selection-title-line:10.5px;
 --toptv-selection-title-height:21px;
}
html[data-toptv-phone-selection] #live.hero #top.ranking #rankingList .toptv-phone-selection-info{
 --toptv-selection-title-size:11px;--toptv-selection-title-line:12px;
 --toptv-selection-title-height:24px;--toptv-selection-meta-size:9.5px;
 --toptv-selection-meta-line:11px;--toptv-selection-top-line:12px;
 align-self:stretch!important;justify-content:space-between!important;
}
html[data-toptv-phone-selection] #live.hero #top.ranking #rankingList .toptv-phone-selection-info>b{
 height:auto!important;min-height:0!important;max-height:var(--toptv-selection-title-height)!important;
 margin:0!important;
}
html[data-toptv-phone-selection] #live.hero #top.ranking #rankingList .toptv-ranks-summary{
 margin:0!important;font-size:9px!important;
}
html[data-toptv-phone-selection] #live.hero #top.ranking #rankingList .toptv-ranks-top{font-size:9px}
@media(max-width:360px){
 html[data-toptv-phone-selection] #live.hero #top.ranking #rankingList .toptv-phone-selection-info{
  --toptv-selection-title-size:10px;--toptv-selection-title-line:11px;
  --toptv-selection-title-height:22px;--toptv-selection-meta-size:9px;
  --toptv-selection-meta-line:10px;--toptv-selection-top-line:11px;
 }
}

/* Main video: score and its own worldwide rankings share one row. */
html body:not(.toptv-immersive-open) #live.hero .videoInfo #videoTitle{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
}
html body:not(.toptv-immersive-open) #live.hero .videoInfo #videoTitle .toptv-active-badges{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 order:-1!important;gap:10px!important;flex-wrap:nowrap!important;
 width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
}
html body:not(.toptv-immersive-open) #live.hero .videoInfo #videoTitle .toptv-active-badges>.toptv-star-title{
 order:0!important;flex:none!important;align-self:center!important;margin:0!important;
 font-size:11px!important;line-height:1.2!important;
}
#live.hero .videoInfo #videoTitle .toptv-active-badges>.toptv-ranks-summary{
 display:inline-flex;align-items:center;gap:4px;flex:0 1 auto;
 min-width:0;width:max-content;max-width:100%;margin:0;padding:0;border:0;
 background:transparent;color:#dac389;font:400 11px/18px Arial,sans-serif;
 white-space:nowrap;box-shadow:none;cursor:pointer;
}
#videoTitle .toptv-ranks-summary:hover{color:#fff0c9}
#videoTitle .toptv-ranks-summary:focus-visible{outline:1px solid #e6ca85;outline-offset:3px;border-radius:3px}
#videoTitle .toptv-ranks-top{font-size:9px}
#videoTitle .toptv-ranks-global,#videoTitle .toptv-ranks-flag{font-size:13px;line-height:1}
#videoTitle .toptv-ranks-chevron{font-size:16px;line-height:1}
#videoTitle .toptv-ranks-summary .toptv-country-flag-inline{
 width:14px!important;height:9px!important;min-width:14px!important;flex:0 0 14px!important;
}
#videoTitle .toptv-ranks-summary .toptv-country-flag-inline img{width:14px!important;height:9px!important}
@media(max-width:360px){
 html body:not(.toptv-immersive-open) #live.hero .videoInfo #videoTitle .toptv-active-badges{gap:6px!important}
 #live.hero .videoInfo #videoTitle .toptv-active-badges>.toptv-ranks-summary{gap:3px;font-size:10px}
 #videoTitle .toptv-ranks-summary .toptv-country-flag-inline{width:12px!important;height:8px!important;min-width:12px!important;flex-basis:12px!important}
 #videoTitle .toptv-ranks-summary .toptv-country-flag-inline img{width:12px!important;height:8px!important}
}

/* Dialog only: native flags stay unchanged on phones; SVG on computer/iPad.
   Both children coexist so rotating/resizing does not need another render. */
#toptvVideoRankingsDialog .toptv-ranks-flag-image{display:none!important}
@media (min-width:621px) and (min-height:621px),(pointer:fine){
 #toptvVideoRankingsDialog .toptv-ranks-flag-emoji{display:none!important}
 #toptvVideoRankingsDialog .toptv-ranks-flag-image{
  display:block!important;width:18px!important;height:12px!important;
  max-width:none!important;object-fit:cover;border-radius:1px;
 }
}
