/* 角色剧照+饰演信息模块 */
.role-photo-section {
  padding: 0; /* 移除内边距，让header和list可以占满宽度 */
}
.role-photo-header {
  padding: 10px 15px;
  background: #f7f7f7;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #555;
}
.role-photo-header .actor-link {
  color: #2ca6e0;
}
.role-photo-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px;
}
.role-photo-item {
  border: 1px solid #eee;
  padding: 4px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.role-photo-item img {
  width: 260px; /* 调整尺寸以适应布局 */
  /*height: auto;*/
  height:346px;
  display: block;
  border-radius: 2px;
}
.role-photo-caption {
  text-align: center;
  padding: 8px 0 4px 0;
  font-size: 14px;
  color: #666;
}
.role-photo-info {
  padding: 0 24px 24px 24px;
}
.role-photo-info .role-name {
  color: #222;
  font-weight: bold;
  font-size: 16px;
  margin-right: 8px;
}
.role-photo-info .fav-num {
  color: #ff9900;
  font-size: 16px;
  font-weight: bold;
  margin: 0 2px 0 2px;
  vertical-align: middle;
}
.role-photo-info .fav-icon {
  color: #ff9900;
  font-size: 18px;
  margin-left: 2px;
  vertical-align: middle;
}
.role-photo-info .role-desc-label {
  color: #888;
  margin-right: 4px;
}
.role-photo-info .role-desc {
  color: #444;
  margin-bottom: 4px;
}
.role-photo-info .role-lines-label {
  color: #888;
  margin-right: 4px;
}
.role-photo-info .role-lines {
  color: #444;
}


/* ====== 角色横向分组卡片列表（新版） ====== */
.role-group-list-section {
  background: #fff; /* The main container should be white */
  border-radius: 4px;
  padding: 24px;     /* Padding inside the white container */
  margin-bottom: 24px;
  border: 1px solid #e8e8e8; /* Border for the main white container */
}
.role-group-list.expanded {
  flex-wrap: wrap;
}
.role-group-list.expanded .role-group-card {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc(25% - 15px); /* 4 items per row, with 20px gap */
  box-sizing: border-box;
}
.role-group-card.initially-hidden {
  display: none;
}
.role-group-list {
  display: flex;
  gap: 20px; /* Gap between the inner grey cards */
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
}
.role-group-card {
  flex: 1;
  min-width: 0;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 16px 24px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 12px;
}
.role-group-card-title-row {
  display: flex;
  width: 100%;
  justify-content: space-around;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  font-weight: normal;
}
.role-group-card-img-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 12px;
}
.role-group-card-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
.role-group-card-img img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
  margin-bottom: 0;
}
.role-group-card-names-row {
  display: flex;
  width: 100%;
  justify-content: space-around;
  font-size: 15px;
  color: #444;
  margin-top: 0;
  font-weight: bold;
}
.role-group-card-names-row a {
  color: #444;
  text-decoration: none;
  transition: color 0.2s;
}
.role-group-card-names-row a:hover {
  color: #ff9900;
}
.role-group-list-more {
  text-align: center;
  margin-top: 24px;
}
.role-group-list-more a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  padding: 8px 24px;
  border-radius: 4px;
  background: #f5f5f5; /* Button background is grey */
  border: 1px solid #e8e8e8; /* Matching border */
  transition: all 0.2s;
}
.role-group-list-more a:hover {
  color: #fff;
  background: #2ca6e0;
  border-color: #2ca6e0;
}

/* 演员信息卡模块 */
.actor-info-section {
  background: #fff;
  border-radius: 6px;
  margin: 24px 0 32px 0;
  padding: 22px 28px 0 28px;
  box-sizing: border-box;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 32px;
}
.actor-info-photo {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.actor-info-photo img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.actor-info-photo .actor-photo-caption {
  margin-top: 6px;
  font-size: 15px;
  color: #fff;
  background: rgba(0,0,0,0.38);
  border-radius: 0 0 2px 2px;
  width: 100%;
  text-align: center;
  position: absolute;
  left: 0; bottom: 0;
  padding: 2px 0 2px 0;
}
.actor-info-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.actor-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 15px;
  color: #888;
  margin-bottom: 2px;
}
.actor-info-name {
  color: #ff9900;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 2px;
  margin-right: 18px;
}
.actor-info-label {
  color: #888;
  margin-right: 2px;
}
.actor-info-value {
  color: #222;
  margin-right: 18px;
}
.actor-info-detail {
  color: #888;
  font-size: 15px;
  margin: 4px 0 0 0;
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  max-height:36px;
}
.actor-info-more {
  position: absolute;
  right: 24px;
  top: 18px;
  color: #888;
  font-size: 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.actor-info-more:hover {
  color: #ff9900;
  text-decoration: underline;
}

/* 代表作列表模块 */
.actor-works-section {
  background: #f5f5f5;
  border-radius: 0 0 6px 6px;
  margin: 0 0 32px 0;
  padding: 18px 24px 18px 24px;
  box-sizing: border-box;
}
.actor-works-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 48px;
}
.actor-works-col {
  flex: 1;
  min-width: 320px;
}
.actor-works-item {
  font-size: 15px;
  color: #888;
  margin-bottom: 8px;
  line-height: 1.7;
}
.actor-works-item .works-year {
  color: #ff9900;
  font-weight: bold;
  margin-right: 4px;
}
.actor-works-item .works-title {
  color: #222;
  font-weight: bold;
  text-decoration: none;
  margin: 0 2px 0 2px;
}
.actor-works-item .works-title:hover {
  color: #ff9900;
  text-decoration: underline;
}
.actor-works-item .works-role {
  color: #ff9900;
  margin-left: 2px;
  text-decoration: none;
}
.actor-works-item .works-role:hover {
  text-decoration: underline;
}
