.schedule-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    font-family: sans-serif;
}

.schedule-table  caption {
    caption-side: top;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

.schedule-table thead {
    background-color: #f0f0f0;
  }

.schedule-table thead th, td {
    padding: 0.5rem;
    border: 1px solid #ccc;
    text-align: center;
  }
.schedule-table tbody th, td {
    padding: 0.5rem;
    border: 1px solid #ccc;
    text-align: center;
  }

  /* 使用 Flexbox 實現響應式佈局 */
  .competition-schedule-container {
    display: flex; /* 啟用 Flexbox */
    flex-wrap: wrap; /* 允許項目換行 */
    justify-content: center; /* 在容器中水平居中對齊 */
    gap:20px; /* 增加表格之間的間距 */
  }

  /* 當螢幕足夠寬時，讓每個表格佔據一半的可用空間 */
  @media (min-width: 768px) { /* 您可以根據需求調整此斷點值 */
    .competition-schedule-container table {
      flex: 1; /* 讓每個表格彈性擴展並均分可用空間 */
      max-width: unset; /* 取消固定的最大寬度限制，讓 flex 生效 */
    }
  }

  /* 在窄螢幕下（手機），表格會自動換行並縱向排列 */
  /* 因為 Flex 項目預設是從上到下堆疊的，所以這裡不需要額外的媒體查詢 */
.ticket-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.ticket-container > div {
  flex: 1 1 250px;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  display: flex;
  flex-direction: column;
  /*background-color: #fff;*/
}

/* 讓票卡內的 p 和 ul 有些基本樣式 */
.title-and-price p {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  text-align: center;
}
.title-and-price hr {
  margin-top: 10px;
}
.ticket-information ul {
  padding-left: 20px;
}
.ticket-information li {
  margin-bottom: 6px;
}
/* 置中按鈕容器 */
.registry-button {
  margin-top: 20px;
  text-align: center;
}

.detail-tbody td {
  text-align: left;
}

.judgecover-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

    /* 每個藝術家卡片 */
.judgecover-info {
    flex: 1 1; /* 最多一列 4 個 */
    max-width: 100%;
    text-align: center;
    min-width: 180px;
    position: relative; /* 為懸停文字提供定位上下文 */
}

    /* 藝術家圖片處理：中心裁切成圓形並固定大小 */
.judgecover {
    width: 150px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    margin: 0 auto 10px;
    cursor: pointer;
}

/* 懸停時顯示的文字樣式 */
.photo-credit {
    display: none; /* 預設隱藏 */
    position: absolute;
    bottom: 20px; /* 調整文字位置，位於圖片下方 */
    left: 50%;
    transform: translateX(-50%); /* 水平置中 */
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
}

/* 當滑鼠懸停在圖片上時顯示文字 */
.judgecover:hover + .photo-credit,
.photo-credit:hover {
    display: block;
}