/* sample.php redesign: matched to affiliate ranking UI */
.top-hero-affi{
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.top-hero-affi__notice{
  padding: 10px 12px;
  background: linear-gradient(135deg, #e60023 0%, #ff7a00 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
}

.top-hero-affi__notice strong{
  color: #fff6a5;
}

.top-hero-affi__logo{
  padding: 14px 12px 10px;
  text-align: center;
  background: linear-gradient(135deg, #fff8e8 0%, #fff 100%);
}

.top-hero-affi__logo img{
  max-width: 100%;
  height: auto;
  border: 0;
}

.top-hero-affi__body{
  padding: 14px 12px 16px;
  text-align: center;
}

.top-hero-affi__lead{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #222;
  font-weight: 700;
}

.top-hero-affi__r18{
  margin: 0 0 14px;
}

.top-hero-affi__nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.top-hero-affi__navbtn{
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 13px 10px;
  border-radius: 12px;
  background: #fff7ea;
  border: 1px solid #ffd08a;
  color: #9a5300;
  font-size: 14px;
  font-weight: 700;
}

.top-hero-affi__navbtn--primary{
  background: linear-gradient(135deg, #ff5a36 0%, #ff8a00 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(255,102,0,.24);
}

.top-hero-affi__sub{
  margin: 0;
  padding: 12px;
  background: #fff4f4;
  border: 1px solid #ffd7d7;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}

.top-hero-affi__sub strong{
  color: #e60023;
}

.top-update-affi{
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  overflow: hidden;
}

.top-update-affi__head{
  padding: 14px 12px 12px;
  background: linear-gradient(135deg, #fff8e8 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f0;
}

.top-update-affi__head h2{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.5;
  color: #222;
}

.top-update-affi__head p{
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}

.top-update-affi__list{
  padding: 12px;
}

.top-update-affi__item{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 12px;
  margin-bottom: 10px;
}

.top-update-affi__badge{
  flex: 0 0 auto;
  display: inline-block;
  background: #e60023;
  color: #fff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.top-update-affi__name{
  flex: 1 1 auto;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.top-update-affi__arrow{
  flex: 0 0 auto;
  color: #ff7a00;
  font-size: 20px;
  line-height: 1;
}

.top-update-affi__links{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 14px;
}

.top-update-affi__more{
  display: block;
  text-align: center;
  text-decoration: none;
  background: #fff7ea;
  border: 1px solid #ffd08a;
  color: #9a5300;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 10px;
  border-radius: 10px;
}

@media (min-width: 768px){
  .top-hero-affi__body,
  .top-update-affi__list,
  .top-update-affi__links{
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-hero-affi__lead{
    font-size: 18px;
  }

  .top-update-affi__head{
    padding: 16px;
  }
}
