﻿.section-title {
    font-size: 19px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--primary); color: var(--text-main);
    display: flex; align-items: center; gap: 10px;
}

.section-title::before {
    content: ''; width: 4px; height: 18px;
    background: var(--primary); border-radius: 2px;
}

.section-title .keyword { color: var(--primary); font-weight: 600; }

.list-item {
    display: flex; gap: 20px; padding: 18px;
    background: var(--card-bg); border-radius: 10px;
    margin-bottom: 16px; border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.list-item:hover {
    transform: translateY(-2px); border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(26,158,108,0.12);
}

.poster-link { flex-shrink: 0; display: block; }

.movie-poster {
    width: 120px; height: 160px; object-fit: cover;
    border-radius: 8px; border: 1px solid var(--border);
    transition: transform .2s;
}

.poster-link:hover .movie-poster { transform: scale(1.03); }

.item-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.item-title {
    font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text-main);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.item-title a { color: var(--text-main); text-decoration: none; }
.item-title a:hover { color: var(--primary); }

.item-title .score {
    font-size: 14px; font-weight: normal; color: var(--text-sub);
}
.item-title .score .star { color: var(--star); font-size: 16px; }

.item-meta {
    margin-bottom: 10px; color: var(--text-light); font-size: 13px; line-height: 1.8;
}
.item-meta .meta-row { margin-bottom: 2px; }
.item-meta b { color: var(--text-sub); font-weight: 500; }

.item-info {
    color: var(--text-sub); margin-bottom: 14px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; font-size: 14px;
}

.item-footer { margin-top: auto; display: flex; gap: 10px; align-items: center; }

.btn-primary {
    display: inline-block; padding: 7px 20px;
    background: var(--primary); color: #fff !important; text-decoration: none;
    border-radius: 20px; font-size: 13px; font-weight: 500;
    transition: background .2s, transform .15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.top-list { list-style: none; padding: 0; margin: 0; }
.top-list li {
    padding: 10px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.top-list li:last-child { border: none; }

.top-list li a {
    flex: 1; color: var(--text-main); text-decoration: none; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-list li a:hover { color: var(--primary); }

.rank {
    width: 24px; height: 24px; flex-shrink: 0;
    background: var(--primary); color: #fff;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.top-list li:nth-child(1) .rank { background: var(--star); }
.top-list li:nth-child(2) .rank { background: var(--primary); opacity: .85; }
.top-list li:nth-child(3) .rank { background: var(--primary); opacity: .65; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list .news-item { padding: 9px 0; border-bottom: 1px solid var(--border); }
.news-list .news-item:last-child { border: none; }
.news-list .news-item a {
    color: var(--text-main); text-decoration: none; font-size: 14px;
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list .news-item a:hover { color: var(--primary); }

.pagination {
    display: flex; justify-content: center; margin-top: 24px; gap: 8px; flex-wrap: wrap;
}
.pagination-button {
    padding: 7px 14px; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 6px; font-size: 13px; color: var(--text-main); text-decoration: none;
    display: inline-block; transition: all .2s; cursor: pointer;
}
.pagination-button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-button.active {
    background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600;
}

@media (max-width: 992px) {
    .movie-poster { width: 100px; height: 134px; }
}

@media (max-width: 768px) {
    .list-item { flex-direction: column; gap: 14px; padding: 14px; }
    .movie-poster { width: 100%; height: auto; max-height: 260px; }
}

@media (max-width: 480px) {
    .item-title { font-size: 16px; }
    .movie-poster { max-height: 220px; }
}