/* ===== 공통 스타일 초기화 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #fff;
  color: #333;
}

/* ===== 큰 페이지 타이틀 ===== */
.trend-page-title {
  text-align: center;
  margin-top: 120px; /* 헤더 높이 고려 */
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 700;
}

/* ===== 메인 컨테이너 ===== */
.trend-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

/* 상단 2개 테이블 가로 배치 */
.ranking-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap; /* 화면 좁을 때 아래로 */
  margin-bottom: 40px;
}

/* ===== .table: 팬랭킹/트렌드 카드 ===== */
.table {
  width: 500px;              /* 카드 너비 */
  position: relative;
  border-radius: 16px;
  background-color: rgba(126, 53, 37, 0.09);
  border: 1.5px solid transparent;
  box-sizing: border-box;
  height: 400px;             /* 카드 높이 (원하는 값) */
  overflow: hidden;          /* 내용 넘치면 숨김 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 24px 0px;    /* 내부 여백 */
  text-align: left;
  font-size: 17px;
  color: #281d1b;
}

/* 상단: 제목 + 점3개 아이콘 */
.container {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.b {
  flex: 1;
  line-height: 24px;
  font-weight: 700;
  font-size: 17px;
}
.dots-horizontal-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

/* 테이블 내부 (.table1) */
.table1 {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 0px;
  box-sizing: border-box;
  font-size: 15px;
}
.column1 {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

/* 테이블 헤더 (검색어 + caret-down) */
.title {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px 0px;
  font-size: 13px;
  color: rgba(46, 25, 20, 0.62);
}
.label {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.div {
  line-height: 16px;
  font-weight: 500;
}

/* 스크롤바 (시각적) */
.scrollbar {
  width: 6px;
  position: absolute;
  top: 100px; /* 위치 조정 */
  right: 6px;
  border-radius: 999px;
  background-color: rgba(110, 80, 73, 0.2);
  height: 200px;
  z-index: 2;
}

/* 실시간 항목 (li) 스타일: ranking-list, trending-list */
.ranking-list, .trending-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  max-height: 200px;      /* 실제 스크롤 높이 */
  overflow-y: auto;       /* 스크롤 표시 */
  width: 100%;
  border-top: 1.5px solid rgba(110, 80, 73, 0.2);
}
.ranking-list li, .trending-list li {
  border-bottom: 1.5px solid rgba(110, 80, 73, 0.2);
  padding: 16px 0;
  font-size: 14px;
  color: #281d1b;
}
.percentage.positive {
  color: red;
}

.percentage.negative {
  color: blue;
}


/* ===== 하단 영역 (기존) ===== */
.bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* “많이 찾는 공연” 카드 (기존 스타일) */
.trendingConcert {
  position: relative;
  width: 60%; /* 2개 나란히 */
  background-color: #fff;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 20px 0;
}
.trendingConcert h2 {
  margin-left: -80px;
  margin-bottom: 20px;
  font-size: 30px;

}
.concert-cards {
  display: flex;
  gap: 20px;
  margin-left: -90px;
}
.concert-cards .card {
  background-color: #fff;
  border-radius: 8px;
  width: 250px;
  padding: 16px;
  
}
.concert-cards .card img {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-bottom: 12px;
}
footer{
  text-align: center;
}

/* ============== 반응형 스타일 (max-width: 768px) ============== */
@media screen and (max-width: 768px) {
  .trend-page-title {
    font-size: 1.5rem;
    margin-top: 80px;
    margin-bottom: 20px;
  }

  .trend-container {
    max-width: 100%;
    padding: 10px;
  }

  .ranking-row {
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
  }

  .table {
    width: 90%;
    height: auto;
    padding: 16px;
    font-size: 15px;
  }

  .table1 {
    padding: 16px 0;
    font-size: 14px;
  }

  .divider-line {
    margin: 0 5px;
  }

  .ranking-list,
  .trending-list {
    max-height: 150px;
    font-size: 13px;
  }

  .ranking-list li,
  .trending-list li {
    padding: 12px 0;
    font-size: 13px;
  }

  .bottom-row {
    flex-direction: column;
    gap: 20px;
    display: flex;
    align-items: center;
  }

  .trendingConcert {
    width: 100%;
    margin: 0 auto 20px;
    padding: 15px 10px;
  }

  .trendingConcert h2 {
    margin-left: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
  }

  .concert-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
    scale: 1.0;
    margin-left: 5px;
  }

  .concert-cards .card {
    width: 30%;
    padding: 12px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    text-align: center;
  }

  .concert-cards .card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
  }

  .concert-cards .card h3 {
    font-size: 0.85rem;
    margin-top: 6px;
    line-height: 1.2;
  }
}