/* Специфичные стили для страницы мастеров */

.sort-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

.sort-options select, .sort-options button {
    background: #222;
    color: #d4d4d4;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 8px 15px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
}

.sort-options select:focus, .sort-options button:focus {
    outline: none;
    border-color: #ff3333;
}

.sort-options button.active {
    background: #ff3333;
    color: #fff;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.master {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    transition: all 0.3s;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    text-align: center;
}

.master:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.1);
}

.master-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.master-photo {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    background-color: #333;
    margin: 0 auto 15px;
    border: 1px solid #ff3333;
    overflow: hidden;
}

.master-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master h2 {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    margin: 0 0 10px;
    color: #fff;
    text-align: center;
    width: 100%;
}

.rating {
    color: #ffcc00;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.rating .stars {
    display: inline-block;
}

.rating .reviews {
    color: #a0a0a0;
    font-size: 12px;
    margin-left: 5px;
}

.master p {
    font-size: 14px;
    color: #a0a0a0;
    margin: 5px 0;
    text-align: center;
    width: 100%;
}

.master .upcoming-game {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
    font-size: 13px;
    text-align: center;
    width: 100%;
}

.master .upcoming-game strong {
    color: #ff3333;
}

.master .btn {
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    text-align: center;
}

@media (max-width: 1024px) {
    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .master {
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .masters-grid {
        grid-template-columns: 1fr;
    }
    .master {
        min-height: 400px;
    }
}
