/* ============================================================
   Porn Stars Ranking Card - v2.0
   ============================================================ */

.ranking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.ranking-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Card */
.actress-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.actress-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Rank top border */
.actress-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 2;
}

.actress-card.rank-1::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    height: 5px;
}

.actress-card.rank-2::before {
    background: linear-gradient(90deg, #c0c0c0, #e8e8e8);
    height: 5px;
}

.actress-card.rank-3::before {
    background: linear-gradient(90deg, #cd7f32, #daa520);
    height: 5px;
}

/* Image area */
.card-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.actress-card:hover .card-image-container img {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
}

/* Rank badge */
.rank-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #fff;
}

/* Card content */
.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.actress-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actress-name a {
    color: inherit;
    text-decoration: none;
}

.actress-excerpt {
    color: #5a6c7d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.total-score {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.read-more {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.actress-card:hover .read-more {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .ranking-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .ranking-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .card-image-container {
        height: 160px;
    }

    .card-content {
        padding: 12px;
    }

    .actress-excerpt {
        -webkit-line-clamp: 5;
    }
}

@media (max-width: 480px) {
    .ranking-grid {
        grid-template-columns: 1fr;
    }
}
