#actor_ranking {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px;
}

.actor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.actor-card {
  width: 150px;
  text-align: center;
}

.actor-card img {
  width: 100%;
  border-radius: 8px;
}

.rank-num {
  display: block;
  font-weight: bold;
  color: #ff6600;
  margin-bottom: 5px;
}


/* style.css - actor_main_page 전용 */

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #ffffff;
}

/* 1. 전체 wrap의 높이를 확보 */
#wrap {
  max-width: 1024px;
  margin: 0 auto;
  
}
.pg_tab {
  list-style: none;
  padding: 0;
  display: flex;
  border-top: 10px solid #f8f8f8;
}

.pg_tab li {
  flex: 1;
  text-align: center;
  background-color: #eef0f0;
  font-weight: bold;
  line-height: 50px;
}

.pg_tab li.on {
  background-image: url('/w2017/img/tab_active_bg.png');
  background-repeat: no-repeat;
  background-size: 50% 10px;
  background-position: 50% top;
}

.banner img.pc {
  display: block;
  width: 100%;
}

.banner img.mobile {
  display: none;
}

.lst {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.box {
  width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0px;
  overflow: hidden;
  text-align: center;
}

.box .photo img {
  width: 100%;
  height: auto;
}

.box .rnk_no {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff547c;
  color: #fff;
  padding: 4px 8px;
  font-weight: bold;
  border-radius: 4px;
}

.dscr {
  padding: 10px;
}




/* 공통 레이아웃 */
#wrap {
  width: 1024px;
  margin: 0 auto;
  font-family: 'Noto Sans KR', sans-serif;
}

.page-title {
  text-align: center;
  font-size: 17px;
  padding: 10px 0;
}

/* 탭 메뉴 */
.pg_tab {
  display: flex;
  justify-content: space-around;
  border-bottom: 2px solid #ddd;
  padding: 0;
  list-style: none;
  margin: 0; /* ✅ 상하좌우 margin 모두 제거 */
}
.pg_tab li {
  flex: 1;
  text-align: center;
}
.pg_tab li.on a {
  border-bottom: 3px solid #008080;
  font-weight: bold;
}

/* 배너 */
.banner {
  margin-bottom: 30px;
}
.banner img.pc { display: block; width: 100%; }
.banner img.mobile { display: none; }

/* 배우 리스트 */
.actor-list .lst {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 8px; /* 행간 16px, 열간 8px */
}



.actor-list .box {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px;
  text-align: center;
}
/* 리스트 점 제거 */
.actor-list .lst li {
  list-style: none;
}

.actor-list .lst li .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 0 !important;        /* ✅ 패딩 제거 */
    min-height: auto !important; /* ✅ 고정 높이 제거 */
    margin: 0 auto !important;   /* 중앙 정렬 (선택사항) */
  }
  

.actor-list .photo {
  position: relative;
}
.actor-list .photo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important;         /* ✅ img 기본 마진 제거 */
    padding: 0 !important;
  }
  

.actor-list .lst .dscr {
    text-align: center;
    margin-top: 6px !important;   /* ✅ 여백 축소 */
    padding: 0 !important;
    line-height: 1.2 !important;
  }
  


.rnk_no {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #c0392b;
  color: #fff;
  padding: 2px 8px;
  font-size: 13px;
  border-radius: 3px;
}
.k_name { font-size: 16px; font-weight: bold; }
.j_name { font-size: 14px; color: #888; display: block; }
.date { font-size: 13px; color: #444; }





.actor-list .lst {
  margin-bottom: 100px !important; /* 겹침 방지 */
}

@media screen and (max-width: 768px) {

    /* ✅ 상단 배너 */
    .banner {
      padding: 0 1px !important; /* 좌우 여백 1px */
      margin: 0 0 5px 0 !important; /* ✅ 아래쪽만 5px 간격 */
    }
  
    .banner img {
      display: block;
      width: 100% !important;
      height: auto;
      margin: 0 auto;
      padding: 0;
    }
  
    /* ✅ 전체 컨테이너 */
    #wrap {
      max-width: 100%;
      margin: 0 auto;
      padding: 0 1px; /* 좌우 여백 1px로 통일 */
      box-sizing: border-box;
    }
  
    .actor-list {
      padding: 0 !important;
      margin: 0 auto;
    }
  
    /* ✅ 배우 목록 3열 / 간격 2px */
    .actor-list .lst {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box;
        align-items: start !important;   /* ✅ 세로 여백 제거 */
      }
      
  
    .actor-list .lst li {
      list-style: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  
    .actor-list .box {
        max-width: 110px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        text-align: center;
        height: auto !important;
        min-height: auto !important;
      }
      
  
    .actor-list .photo img {
      width: 100% !important;
      aspect-ratio: 3 / 4 !important;
      object-fit: cover;
      border-radius: 0 !important;
      display: block;
    }
  
    .actor-list .dscr {
        margin: 0 !important;
        padding: 4px 0 !important;
        background: #fff;
        line-height: 1.2 !important;
      }
  }
  

  /* PC 전용 - 배우 리스트 관련 */
@media screen and (min-width: 1024px) {
    /* 상단 여백 5px 추가 */
    .actor-list {
      margin-top: 5px !important;   /* ✅ 상단과의 간격 */
      padding: 0 12px;              /* ✅ 좌우 여백 균형 조정 */
      box-sizing: border-box;
    }
  
    /* 카드 리스트 그리드 */
    .actor-list .lst {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px 6px; /* 세로 12px, 가로 6px 정도로 줄이기 */
        margin: 0 auto;
        padding: 0 10px;
        box-sizing: border-box;
      }
      
  
    /* 개별 카드 스타일 (보더 제거) */
    .actor-list .box {
      background: #fff;
      border: none !important;      /* ✅ 보더 제거 */
      box-shadow: none;
      
      padding: 0;
      margin: 0 auto;
      text-align: center;
    }
  
    /* 이미지 아래 설명 여백 정리 */
    .actor-list .dscr {
      margin-top: 6px !important;
      padding: 0;
      line-height: 1.2;
    }
  
    /* 이미지 정렬 */
    .actor-list .photo img {
      display: block;
      width: 100%;
      height: auto;
      margin: 0;
      padding: 0;
    }
  }
  