/* 基础样式 */
#posts {
    width: 1220px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.movie-card {
	width: calc(16% - 3px);
	background-color: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	transition: all 0.3s ease;
	position: relative;
	margin-right: 10px;
	margin-bottom: 10px;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.movie-poster-container {
    position: relative;
    overflow: hidden;
}

.movie-poster {
  width: 100%;
  height: 245px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

/* 按钮容器 */
.buttons-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px; /* 按钮之间的间距 */
}

/* 收藏按钮和点赞按钮 */
.buttons-container button {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.buttons-container button i {
    font-size: 20px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.buttons-container button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}


/* 收藏按钮 */
.favorite-btn.active i {
    color: #ff4757; /* 收藏激活时的颜色 */
}

/* 点赞按钮 */
.like-btn.active i {
    color: #2ed573; /* 点赞激活时的颜色 */
}

/* 最新角标 */
.new-badge {
  position: absolute;
  top: 0px;
  left: 0px;
  background: #ff6b6b;
  color: white;
  padding: 5px 10px;
  border-radius: 0 0 15px 0;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 电影信息 */
.movie-info {
    padding: 15px;
    background: white;
}

.movie-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    height: 80px;
}

.movie-title a {
    color: var(--text-color);
    text-decoration: none;
    width: 14rem;
  display: inline-block;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.movie-tags {
    display: flex;
    gap: 8px;
}

.movie-tag {
    background-color: #f0f0f0;
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.movie-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-rating {
    display: flex;
    align-items: center;
    color: #ffa500;
    font-weight: 600;
}

.movie-rating i {
    margin-right: 5px;
    color: #ffa500;
}

.movie-views {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-views i {
    color: #999;
}

.movie-comments {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-comments i {
    color: #999;
}

/* 额外的视觉增强效果 */
.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    opacity: 0.7;
}

.article-collect {
	background: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
}
.far.fa-heart {
  font-size: 20px;
  color: #ff2e4d;
}
.fas.fa-heart {
  font-size: 20px;
  color: #ff2e4d !important;
}


/* 手机端响应式 */
@media screen and (max-width: 768px) {
    .clearfix::before {
	content: unset !important;
}
  .container {
    padding:
0 5px !important;
    max-width: 620px !important;
  }
    #posts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0;
        width: 100%;
        margin-top: 0px;
    }

    .movie-card {
        width: 100%;
        margin: 0;
        margin-bottom: 0px;
    }

.movie-poster {
  width: 100%;
  height: 60vw;
  object-fit: cover;
  transition: transform 0.3s ease;
}

    .buttons-container {
        top: 10px;
        right: 10px;
    }

    .buttons-container button {
        width: 35px;
        height: 35px;
    }
.article-collect{
        width: 35px;
        height: 35px;
    }
    .buttons-container button i {
        font-size: 18px;
    }

    .movie-title {
        font-size: 14px;
    }

    .movie-tag {
        font-size: 11px;
    }
    .far.fa-check-square {
  font-size: 21px !important;
  color: #76acff !important;

  position: absolute;

}
.fas.fa-check-square {
  font-size: 21px !important;
  color: red;

  position: absolute;

}
.fanhuijian,.footer2 {
  display: none;
}
.agency-meta p {
  margin-bottom: 3px;
  color: #555;
  font-size: 0.9em;
}
.agency-meta i {
  margin-right: 8px;
  color: #007bff;
}
.agency-meta {
	margin-bottom: 5px;
	display: none;
}
.movie-title a {
	text-decoration: auto;
	word-break: break-all;
	width: 11em;
	display: block;
}
.movie-title {
	margin-bottom: 0px !important;
	height: 40px !important;
}
}