/*************************
    home.php
**************************/
/* .home-page {
  padding: 0 1.4rem 4rem;
} */

.home-page .top {
  margin-left: -1.4rem;
  margin-right: -1.4rem;
}

.home-page .section-title {
margin: 0 0 14px;
font-size: 22px;
font-weight: 800;
}

.home-page .category-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 12px;
}

.home-page .category-link {
display: flex;
align-items: center;
gap: 1.5rem;
text-decoration: none;
background: #fff;
border: 1px solid var(--color-border);
border-radius: 1.5rem;
padding: 2rem 3rem;
color: #111827;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.home-page .icon-wrap {
width: 44px;
height: 44px;
border-radius: 50%;
background: #eff6ff;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 20px;
}

.home-page .category-title {
letter-spacing: -0.02em;
color: #323232;
font-size: 1.8rem;
font-weight: 700;
}

.home-page .category-sub {margin-top: 1rem;color: #5e5e5e;font-size: 1.5rem;font-weight: 400;}

.home-page .empty {
background: #fff;
border-radius: 12px;
border: 1px solid #e5e7eb;
padding: 20px;
color: #6b7280;
}

/*************************
performance_list.php
**************************/
.performance-list-page {
/* padding: 18px 14px 30px; */
}

.performance-list-page .filter-wrap,
.favorites-page .filter-wrap {
position: relative;
margin-bottom: 2.3rem;
}

.performance-list-page .select-trigger,
.favorites-page .select-trigger {
width: 100%;
border: 0.1rem solid var(--color-border);
border-radius: 1.5rem;
background: #fff;
padding: 2.5rem 3rem;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
box-sizing: border-box;
}

.performance-list-page #selectedRegionLabel,
.favorites-page #selectedCategoryLabel {
font-size: 1.8rem;
line-height: 1;
color: var(--color-font-gray);
font-weight: 600;
}

.performance-list-page .select-arrow,
.favorites-page .select-arrow {
transition: transform 0.2s;
}

.performance-list-page .select-trigger.open .select-arrow,
.favorites-page .select-trigger.open .select-arrow {
transform: rotate(180deg);
}

.performance-list-page .option-list,
.favorites-page .option-list {
display: none;
position: absolute;
top: 8.2rem;
left: 0;
right: 0;
z-index: 5;
background: #fff;
border: 1px solid var(--color-border);
border-radius: 1.5rem;
overflow-y: auto;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
max-height: 25.5rem;
}

.performance-list-page .option-list.open,
.favorites-page .option-list.open {
display: block;
}

.performance-list-page .option-item,
.favorites-page .option-item {
padding: 2rem 3rem;
font-size: 1.7rem;
cursor: pointer;
border-bottom: 1px solid var(--color-border);
color: var(--color-font-gray);
}

.performance-list-page .option-item:first-child,
.favorites-page .option-item:first-child {
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.performance-list-page .option-item:last-child,
.favorites-page .option-item:last-child {
    border-bottom: 0;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

.performance-list-page .option-item:hover,
.favorites-page .option-item:hover {
background: #f9fafb;
}

.performance-list-page .option-item.is-selected,
.favorites-page .option-item.is-selected {
  border: 1px solid #3372ff;
  background: #eef3ff;
  color: #3372ff;
}

.performance-list-page .fav-btn {
border: 0;
background: transparent;
cursor: pointer;
font-size: 19px;
color: #9ca3af;
padding: 0;
line-height: 1;
flex-shrink: 0;
}

.performance-list-page .fav-btn.is-on {
color: #FFE100;
}

.performance-list-page .performance-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 2.5rem;
margin-top: 4rem;
}

.performance-list-page .page-numbers {
display: flex;
align-items: center;
gap: 2.5rem;
}

.performance-list-page .page-number,
.performance-list-page .page-nav {
border-radius: 999px;
/* border: 1px solid #d1d5db; */
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
font-weight: 600;
color: var(--color-font-gray);
text-decoration: none;
background: #fff;
box-sizing: border-box;
}

.performance-list-page .page-number.is-current {
/* border-color: var(--brand-color); */
color: var(--brand-color);
}

.performance-list-page .page-nav img {
width: 14px;
height: 14px;
object-fit: contain;
}

.performance-list-page .page-nav.is-disabled {
opacity: 0.35;
pointer-events: none;
}

/*************************
performance_view.php
**************************/
.performance-view-page {
/* padding: 16px 14px 24px; */
}

.performance-view-page .poster {
width: 100%;
aspect-ratio: 352/316;
object-fit: cover;
background: #e5e7eb;
}

.performance-view-page .info-table {width: 100%;border-collapse: collapse;margin-top: 2.4rem;}

.performance-view-page .info-table th,
.performance-view-page .info-table td {
padding: 1.2rem 0;
font-size: 14px;
text-align: left;
vertical-align: top;
}

.performance-view-page .info-table th {
width: 8.6rem;
color: #000;
font-weight: 400;
font-size: 1.5rem;
}

.performance-view-page .info-table td {
font-size: 1.7rem;
font-weight: 600;
color: #323232;
}

.performance-view-page .price-list {
margin: 0;
padding: 0;
list-style: none;
}

.performance-view-page .price-list li {
margin-bottom: 1.4rem;
font-weight: 600;
font-size: 1.7rem;
color: #323232;
}

.performance-view-page .price-list li:last-child {
  margin-bottom: 0;
}

.performance-view-page .actions {display: grid;grid-template-columns: 1fr 1fr;gap: 1.2rem;margin-top: 6rem;}

/*************************
favorites.php
**************************/
.favorites-page {
/* padding: 18px 14px 30px; */
}

.favorites-page .remove-btn {border: 0;background: transparent;color: #FFE100;font-size: 1.9rem;cursor: pointer;padding: 0;line-height: 1;}

.pagination-wrap {
position: static !important;
margin-top: 1.2rem;
display: flex;
justify-content: center;
align-items: center;
gap: 0.8rem;
}

.page-btn {}

.page-btn.disabled {
opacity: 0.35;
pointer-events: none;
}

.page-list {
display: flex;
align-items: center;
gap: 0.8rem;
margin: 0;
padding: 0;
list-style: none;
}

.page-num, .page-btn, .page-dots {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2.4rem;
height: 2.4rem;
border-radius: 50%;
text-decoration: none;
color: var(--color-gray);
font-size: 1.2rem;
border: 1px solid var(--color-gray);
box-sizing: border-box;
display: grid;
place-items: center;
font-family: Inter;
font-weight: 400;
font-size: 0.9rem;
letter-spacing: 0%;
text-align: center;
line-height: 0;
position: relative;
}

.page-num.is-active {
border-color: var(--brand-color);
color: var(--brand-color);
}

.page-btn {
background: var(--brand-color);
border: 1px solid var(--brand-color);

}


/*************************
top area common (_list.php 기준 통일)
**************************/
.home-page .top,
.performance-list-page .top,
.performance-view-page .top,
.favorites-page .top {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 6rem;
margin-bottom: 4rem;
}

.home-page .top-left,
.performance-list-page .top-left,
.performance-view-page .top-left,
.favorites-page .top-left {
display: flex;
align-items: center;
gap: 1.6rem;
min-width: 0;
flex: 1;
}

.home-page .back,
.performance-list-page .back,
.performance-view-page .back,
.favorites-page .back {
color: #111827;
width: 1.4rem;
height: 2.5rem;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
text-decoration: none;
}

.home-page .back img,
.performance-list-page .back img,
.performance-view-page .back img,
.favorites-page .back img {
width: 100%;
height: 100%;
object-fit: contain;
}

.home-page .title,
.performance-list-page .title,
.performance-view-page .title,
.favorites-page .title {
margin: 0;
font-size: 2.3rem;
font-weight: 700;
color: #323232;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
flex: 1;
display: block;
max-width: 100%;
}

.home-page .favorite-link,
.performance-list-page .favorite-link,
.performance-view-page .favorite-link,
.favorites-page .favorite-link {
text-decoration: none;
font-size: 1.5rem;
font-weight: 400;
color: #323232;
flex-shrink: 0;
padding: 1rem;
border: 0.08rem solid var(--color-border);
border-radius: 1.5rem;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 1rem;
}

/*************************
  favorites card layout
**************************/
.favorites-page .grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.6rem;
}

.favorites-page .card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.6rem;
  background: #fff;
  border-radius: 1.5rem;
}

.favorites-page .card-media {
  width: 14.5rem;
  flex-shrink: 0;
}

.favorites-page .card-media .thumb {
  width: 100%;
  aspect-ratio: 145 / 124;
  object-fit: cover;
}

.favorites-page .card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.favorites-page .card-content .item-head {
  margin-top: 0;
}

.favorites-page .card-content .period {
}