/**
 * Comment Section Component
 * 評論區組件（從 play-page.css 複製，確保與 play.html 一致）
 *
 * 用途：影片詳情頁和播放頁評論區
 * 設計來源：Figma comment frame
 */

/* ===================================== */
/* 樂迷評論區塊 - PC 彈性佈局 */
/* ===================================== */

.comment-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.comment-container {
  width: 100%;  /* 彈性寬度 */
  max-width: 1210px;  /* 最大寬度限制 */
  padding: 0;
}

.comment-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 37px 10px 20px 10px; /* 左右各 10px 間距 */
}

/* 評論標題區域 */
.comment-header {
  position: relative;
  width: 100%;
  height: 25px;
}

.comment-title {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;  /* 自動寬度 */
  height: 20px;
  font-family: Tahoma, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 0.8333333333333334em;
  color: #FFFFFF;
  margin: 0;
}

.comment-count {
  position: absolute;
  left: 117.25px;
  top: 4px;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4285714285714286em;
  color: #FFFFFF;
  margin: 0;
}

/* 評論輸入區域 */
.comment-input-area {
  width: 100%;
  height: 182px;
}

.comment-border {
  position: relative;
  width: 100%;  /* 彈性寬度 */
  height: 186.5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
}

.comment-textarea-wrapper {
  position: absolute;
  left: 1px;
  top: 1px;
  width: calc(100% - 2px);  /* 減去左右 border */
  height: 129.5px;
  padding: 16px 10px 29.5px;
  border-bottom: 1px solid #999999;
  box-sizing: border-box;
}

.comment-textarea-input {
  width: 100%;  /* 彈性寬度 */
  height: 100px;
  padding: 0 0 0 10px;
  margin: 0;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4285714285714286em;
  color: #FFFFFF;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.comment-textarea-input::placeholder {
  color: #757575;
}

.comment-counter {
  position: absolute;
  right: 10px;
  bottom: 9.5px;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5384615384615385em;
  color: #A9A9A9;
}

.comment-submit-btn {
  position: absolute;
  right: 21px;  /* 保持右間距 */
  top: 144px;
  width: 86px;
  height: 29px;
  background: #E42112;
  border: 1px solid #E42112;
  border-radius: 18px;
  font-family: Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 2.076923076923077em;
  color: #FFFFFF;
  text-align: center;
  padding: 1px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.comment-submit-btn:hover {
  background: #c91e10;
}

/* 空狀態提示 */
.comment-empty {
  width: 100%;
  height: 89.23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.comment-empty img {
  width: 150px;
  height: 84px;
  object-fit: contain;
}

.comment-empty-text {
  font-family: Tahoma, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 2.566666666666667em;
  color: #999999;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* 評論列表 */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  display: none; /* 預設隱藏，由 JS 控制顯示 */
}

.comment-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-item:last-child {
  border-bottom: none;
}

/* 用戶頭像 */
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 評論內容 */
.comment-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-username {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.comment-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* 評論操作 */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.comment-action-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.comment-like-count,
.comment-reply-count {
  font-size: 13px;
}

/* ===================================== */
/* PC 彈性佈局 - 無需響應式 @media */
/* 使用 width: 100% + max-width 自然適應父容器 */
/* ===================================== */
