
/* ===== TravelTube 登録者ランキング & 人気国画像 ===== */

.ranking-panel{
  padding:14px !important;
}

.ranking-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.ranking-title h3{
  margin:0 0 3px !important;
  font-size:1.05rem;
}
.ranking-title p{
  margin:0;
  color:#727d8d;
  font-size:.68rem;
}
.ranking-updated{
  font-size:.62rem;
  color:#929aa6;
  white-space:nowrap;
}

.ranking-podium{
  display:grid;
  gap:9px;
  margin-bottom:10px;
}
.rank-top{
  position:relative;
  display:grid;
  grid-template-columns:48px 64px minmax(0,1fr);
  align-items:center;
  gap:9px;
  text-decoration:none;
  color:#142033;
  background:#fff;
  border:1px solid #e4e9f0;
  border-radius:14px;
  padding:10px;
  overflow:hidden;
}
.rank-top.rank-1{
  border-color:#f2c44f;
  background:linear-gradient(135deg,#fffdf4,#fff);
}
.rank-top.rank-2{
  border-color:#c8ced6;
  background:linear-gradient(135deg,#fafbfc,#fff);
}
.rank-top.rank-3{
  border-color:#cf9664;
  background:linear-gradient(135deg,#fff9f5,#fff);
}
.rank-medal{
  font-size:2rem;
  line-height:1;
  text-align:center;
}
.rank-avatar{
  width:64px;
  height:64px;
  border-radius:50%;
  object-fit:cover;
  background:#eef2f6;
  border:2px solid #fff;
  box-shadow:0 4px 12px rgba(25,40,62,.12);
}
.rank-name{
  display:block;
  font-weight:900;
  font-size:.86rem;
  line-height:1.3;
  margin-bottom:4px;
}
.rank-subs{
  display:block;
  font-size:.75rem;
  font-weight:800;
}
.rank-change{
  display:block;
  margin-top:4px;
  font-size:.69rem;
  font-weight:900;
}
.rank-change.up{color:#15a45b}
.rank-change.down{color:#e24646}
.rank-change.flat{color:#7a8492}
.rank-change.wait{color:#9aa2ad;font-weight:700}

.ranking-list{
  display:grid;
}
.rank-row{
  display:grid;
  grid-template-columns:24px 32px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  padding:8px 3px;
  border-top:1px solid #edf0f4;
  text-decoration:none;
  color:#142033;
}
.rank-no{
  font-weight:900;
  text-align:center;
  font-size:.72rem;
}
.rank-small-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
  background:#eef2f6;
}
.rank-row-name{
  min-width:0;
}
.rank-row-name b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.72rem;
}
.rank-row-name small{
  color:#727d8d;
  font-size:.62rem;
}
.rank-mini-change{
  font-size:.64rem;
  font-weight:900;
  white-space:nowrap;
}
.rank-mini-change.up{color:#15a45b}
.rank-mini-change.down{color:#e24646}
.rank-mini-change.flat,.rank-mini-change.wait{color:#8a93a0}

.country-grid.photo-country-grid{
  grid-template-columns:repeat(4,1fr);
}
.photo-country-card{
  position:relative;
  min-height:148px;
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  background:#23364c;
  box-shadow:0 7px 22px rgba(20,35,55,.10);
}
.photo-country-card img{
  width:100%;
  height:148px;
  object-fit:cover;
  display:block;
  transition:.25s;
}
.photo-country-card:hover img{
  transform:scale(1.035);
}
.country-photo-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(5,15,25,.82) 0%,rgba(5,15,25,.12) 62%,rgba(5,15,25,.03) 100%);
}
.country-photo-copy{
  position:absolute;
  left:13px;
  right:13px;
  bottom:11px;
}
.country-photo-copy b{
  display:block;
  font-size:1rem;
  text-shadow:0 2px 8px rgba(0,0,0,.4);
}
.country-photo-copy small{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.88);
  font-size:.7rem;
}
.country-rank-badge{
  position:absolute;
  top:9px;
  left:9px;
  width:27px;
  height:27px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.94);
  color:#172033;
  font-size:.72rem;
  font-weight:900;
  box-shadow:0 3px 10px rgba(0,0,0,.15);
}

@media(max-width:980px){
  .country-grid.photo-country-grid{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:520px){
  .country-grid.photo-country-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .photo-country-card,
  .photo-country-card img{
    min-height:120px;
    height:120px;
  }
}
