/* Top Plays Page Styles */

.top-plays-container {
    max-width: 1600px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Header */
.top-plays-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.top-plays-title {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
}

.top-plays-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.filter-select {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #fbbf24;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #fbbf24;
}

.filter-checkbox span {
    cursor: pointer;
}

/* Plays Grid */
.plays-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.play-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.play-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.play-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    z-index: 2;
}

.play-rank.top-1 {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.play-rank.top-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.play-rank.top-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
}

.play-thumbnail {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-thumbnail span {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.play-info {
    padding: 1.5rem;
}

.play-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.play-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.play-username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.play-map {
    margin-bottom: 1rem;
}

.play-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-artist {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.play-stat {
    display: flex;
    flex-direction: column;
}

.play-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.play-stat-value.pp {
    color: #fbbf24;
}

.play-mods {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.mod-badge {
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
}

.mod-badge i {
    font-size: 0.75rem;
    line-height: 1;
}

.play-date {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Load More */
.load-more {
    text-align: center;
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fbbf24;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .plays-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .filter-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .top-plays-title {
        font-size: 2.25rem;
    }
}