/* Module Main Card Styles */
.module-main {
  --card-width: 325px;
  --card-height: 450px;
  --card-transition: 0.3s;
  --card-radius: 18px;
  --card-shadow: 0 5px 10px rgba(0, 0, 0, .2);
  --card-bg: rgba(0, 0, 0, 0.85);
  --text-color: #fff;
  --border-color: rgba(255, 255, 255, 0.4);
  --rating-color: #e3c414;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  /*padding: 15px;*/
  box-sizing: border-box;
}

/* Grid Layout */


.module-main .mm-card {
  position: relative;
  width: 234px;
  height: 373px;
  /*background: #000;*/
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin: 0 auto;
}

.module-main .mm-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.module-main .mm-poster-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  filter: brightness(0.6);
}

.module-main .mm-poster-link:hover {
  cursor: pointer;
}

.module-main .mm-poster img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--card-transition);
  transform-origin: center;
}

.module-main .mm-poster::before {
  content: '';
  position: absolute;
  bottom: -45%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: var(--card-transition);
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.module-main .mm-card:hover .mm-poster::before {
  bottom: 0;
}

.module-main .mm-card:hover .mm-poster img {
  transform: scale(1.1);
}

/* 新增：电影名称固定显示在卡片下方 */
.module-main .mm-title-fixed {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  color: var(--text-color);
  z-index: 3;
  transition: var(--card-transition);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.module-main .mm-title-fixed h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.module-main .mm-title-fixed .mm-year {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
  margin-top: 2px;
}

/* 修改悬停效果，确保固定标题和悬停详情不冲突 */
.module-main .mm-card:hover .mm-title-fixed {
  opacity: 0;
  transform: translateY(100%);
}

.module-main .mm-details {
  position: absolute;
  bottom: -105%;
  left: 0;
  width: 100%;
  height: auto;
  padding: 1.5em 1.5em 1.5em;
 background: rgb(0 0 0 / 80%);
  backdrop-filter: blur(16px) saturate(120%);
  transition: var(--card-transition);
  color: var(--text-color);
  z-index: 2;
}

.module-main .mm-card:hover .mm-details {
  bottom: 0;
}

.module-main .mm-details h1,
.module-main .mm-details h2 {
  font-weight: 700;
  margin: 0;
}

.module-main .mm-details h1 {
  font-size: 1.2em;
  margin-bottom: 5px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-main .mm-details h1 a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: inherit;
      font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.53px;
    line-height: 150%;
    color: rgb(254, 254, 254)
}

.module-main .mm-details h2 {
  font-weight: 400;
  font-size: 1em;
  margin-bottom: 10px;
  opacity: .6;
}

.module-main .mm-details .mm-rating {
  position: relative;
  margin-bottom: 15px;
  display: flex;
  gap: 1em;
}

.module-main .mm-details .mm-rating a {
  color: var(--rating-color);
  text-decoration: none;
}

.module-main .mm-details .mm-rating span {
  color: var(--text-color);
  margin-left: 0.25em;
}

.module-main .mm-details .mm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375em;
  margin-bottom: .875em;
  font-size: .85em;
}

.module-main .mm-details .mm-tag {
  padding: .35rem .65rem;
  color: var(--text-color);
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  text-decoration: none;
  transition: var(--card-transition);
}

.module-main .mm-details .mm-tag:hover {
  background: var(--text-color);
  color: #000;
  border-color: var(--text-color);
}

.module-main .mm-details .mm-desc {
  color: var(--text-color);
  opacity: .8;
  line-height: 1.5;
  margin-bottom: 1em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.module-main .mm-details .mm-cast h3 {
  margin-bottom: .5em;
  font-size: 1em;
  font-weight: 700;
}

.module-main .mm-details .mm-cast ul {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.module-main .mm-details .mm-cast ul li {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--text-color);
}

.module-main .mm-details .mm-cast ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .module-main .mm-card {
width: 175px;
    height: 265px;
  }
}
/* Mobile styles */
@media screen and (max-width: 768px) {
  .module-main .mm-details {
    padding: 1em;
  }
  
  .module-main .mm-details .mm-desc {
    /*width: 50%;*/
    /*float: left;*/
    /*margin-bottom: 0;*/
    padding-right: 10px;
    -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
  }
    .module-main .mm-details .cast-list {
    /*width: 50%;*/
    /*float: left;*/
    /*margin-bottom: 0;*/
    padding-right: 10px;
    -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
            white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
        
  }
  .module-main .mm-details .mm-cast {
    width: 50%;
    float: right;
  }
  
  .module-main .mm-details .mm-cast ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  
  .module-main .mm-details .mm-cast ul li {
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
  }
  
  /* Clear float */
  .module-main .mm-details:after {
    content: "";
    display: table;
    clear: both;
  }
}
/* 新的职位卡片样式 */
.job-card {
    padding: 12px;
    background-color: #1f2b3e;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin: 10px;
}

.job-card:hover {
    transform: scale(1.02);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.software-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(130deg, #f9f9f9, #e8e8e8);
}

.software-icon.png-icon {
    padding: 6px;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-card-title {
    font-weight: 600;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-card-title a {
    color:#fff;
    text-decoration: none;
}

.job-card-title a:hover {
    color: var(--active-color);
}

.job-card-subtitle {
    color: var(--subtitle-color, #83838e);
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 36px;
}

.job-detail-buttons {
    margin: 12px 0;
    min-height: 28px;
    overflow: hidden;
    white-space: nowrap;
}

.detail-button {
    background-color: #3D5A80;
    color: #acc2ef;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
    margin-right: 4px;
    margin-bottom: 4px;
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.job-card-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
}

.card-buttons, .card-buttons-msg {
    padding: 8px;
    width: 100%;
    font-size: 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
}

.card-buttons {
margin-right: 8px;
    background-color: #1F3A5F;
    color: #fff;
}

.card-buttons:hover {
    background-color: #0052d9;
    color: #fff;
    text-decoration: none;
}

.card-buttons-msg {
    background-color: var(--inactive-color, #f0f0f0);
    color: #83838e;
}

.card-buttons-msg:hover {
    background-color: #e4e4e4;
}

/* 五列布局 */
.col-5 {
    width: 20%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 10px;
    padding-left: 10px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .col-5 {
        width: 25%;
    }
}

@media (max-width: 992px) {
    .col-5 {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .col-5 {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .col-5 {
        width: 100%;
    }
}

.menu-dot {
    background-color: var(--placeholder-color, #9b9ba5);
    box-shadow: -6px 0 0 0 var(--placeholder-color, #9b9ba5), 6px 0 0 0 var(--placeholder-color, #9b9ba5);
    width: 4px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    margin-left: auto;
    margin-right: 8px;
}
